public static final class QueryUsageHistoriesRequest.Builder extends GeneratedMessageV3.Builder<QueryUsageHistoriesRequest.Builder> implements QueryUsageHistoriesRequestOrBuilder The QueryUsageHistories request.
Next : 16
Protobuf type google.cloud.capacityplanner.v1beta.QueryUsageHistoriesRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > QueryUsageHistoriesRequest.BuilderImplements
QueryUsageHistoriesRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public QueryUsageHistoriesRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
build()
public QueryUsageHistoriesRequest build()| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest |
|
buildPartial()
public QueryUsageHistoriesRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest |
|
clear()
public QueryUsageHistoriesRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
clearCloudResourceType()
public QueryUsageHistoriesRequest.Builder clearCloudResourceType() Required. The resource for the UsageHistory values to return. Possible
values include "gce-vcpus", "gce-ram", "gce-local-ssd",
"gce-persistent-disk", "gce-gpu" and "gce-tpu". Empty cloud_resource_type
will return results matching all resources.
string cloud_resource_type = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
clearConfidentialMode()
public QueryUsageHistoriesRequest.Builder clearConfidentialMode()Optional. Whether the persistent disk is in confidential mode.
bool confidential_mode = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
clearDiskType()
public QueryUsageHistoriesRequest.Builder clearDiskType() Optional. The disk_type for the UsageHistory values to return request
with persistent-disk cloud_resource_type. Empty disk_type will return
results matching all disk types.
string disk_type = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
clearEndDate()
public QueryUsageHistoriesRequest.Builder clearEndDate()Optional. The end date of reservations usage.
.google.type.Date end_date = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public QueryUsageHistoriesRequest.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
clearGpuType()
public QueryUsageHistoriesRequest.Builder clearGpuType() Optional. The GPU type for the UsageHistory values to return. Sample
values are "nvidia-tesla-t4", and "nvidia-tesla-a100". See
https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type
will return results matching all GPUs.
string gpu_type = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
clearIsSpot()
public QueryUsageHistoriesRequest.Builder clearIsSpot()Optional. The is_spot flag is used to fetch the usage data for preemptible Resources.
bool is_spot = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
clearLocationLevel()
public QueryUsageHistoriesRequest.Builder clearLocationLevel()Optional. The location level of the reservations usage timeseries.
.google.cloud.capacityplanner.v1beta.TimeSeries.LocationType location_level = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
clearMachineFamily()
public QueryUsageHistoriesRequest.Builder clearMachineFamily() The machine family for the UsageHistory values to return. Possible values
include "n1", and "n2d". See
https://cloud.google.com/compute/docs/machine-types for more examples.
Empty machine_family will return results matching all machine families.
string machine_family = 2;
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
clearMachineShape()
public QueryUsageHistoriesRequest.Builder clearMachineShape() Optional. The machine shape for the UsageHistory values to return.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public QueryUsageHistoriesRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
clearParent()
public QueryUsageHistoriesRequest.Builder clearParent()Required. The compute engine resource and location for the time series values to return. The format is:
projects/{project}/locations/{location} or
organizations/{organization}/locations/{location} or
folders/{folder}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
clearStartDate()
public QueryUsageHistoriesRequest.Builder clearStartDate()Optional. The start date of reservations usage.
.google.type.Date start_date = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
clearTpuType()
public QueryUsageHistoriesRequest.Builder clearTpuType() Optional. The TPU type for the UsageHistory values to return. Empty
tpu_type will return results matching all TPUs.
string tpu_type = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
clearUsageAggregationMethod()
public QueryUsageHistoriesRequest.Builder clearUsageAggregationMethod()The method that should be used to convert sampled usage data to daily usage values. AGGREGATION_METHOD_UNSPECIFIED will return results matching all the aggregation methods.
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod usage_aggregation_method = 4;
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
clone()
public QueryUsageHistoriesRequest.Builder clone()| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
getCloudResourceType()
public String getCloudResourceType() Required. The resource for the UsageHistory values to return. Possible
values include "gce-vcpus", "gce-ram", "gce-local-ssd",
"gce-persistent-disk", "gce-gpu" and "gce-tpu". Empty cloud_resource_type
will return results matching all resources.
string cloud_resource_type = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The cloudResourceType. |
getCloudResourceTypeBytes()
public ByteString getCloudResourceTypeBytes() Required. The resource for the UsageHistory values to return. Possible
values include "gce-vcpus", "gce-ram", "gce-local-ssd",
"gce-persistent-disk", "gce-gpu" and "gce-tpu". Empty cloud_resource_type
will return results matching all resources.
string cloud_resource_type = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for cloudResourceType. |
getConfidentialMode()
public boolean getConfidentialMode()Optional. Whether the persistent disk is in confidential mode.
bool confidential_mode = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The confidentialMode. |
getDefaultInstanceForType()
public QueryUsageHistoriesRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDiskType()
public String getDiskType() Optional. The disk_type for the UsageHistory values to return request
with persistent-disk cloud_resource_type. Empty disk_type will return
results matching all disk types.
string disk_type = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The diskType. |
getDiskTypeBytes()
public ByteString getDiskTypeBytes() Optional. The disk_type for the UsageHistory values to return request
with persistent-disk cloud_resource_type. Empty disk_type will return
results matching all disk types.
string disk_type = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for diskType. |
getEndDate()
public Date getEndDate()Optional. The end date of reservations usage.
.google.type.Date end_date = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date |
The endDate. |
getEndDateBuilder()
public Date.Builder getEndDateBuilder()Optional. The end date of reservations usage.
.google.type.Date end_date = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date.Builder |
|
getEndDateOrBuilder()
public DateOrBuilder getEndDateOrBuilder()Optional. The end date of reservations usage.
.google.type.Date end_date = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.DateOrBuilder |
|
getGpuType()
public String getGpuType() Optional. The GPU type for the UsageHistory values to return. Sample
values are "nvidia-tesla-t4", and "nvidia-tesla-a100". See
https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type
will return results matching all GPUs.
string gpu_type = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The gpuType. |
getGpuTypeBytes()
public ByteString getGpuTypeBytes() Optional. The GPU type for the UsageHistory values to return. Sample
values are "nvidia-tesla-t4", and "nvidia-tesla-a100". See
https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type
will return results matching all GPUs.
string gpu_type = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for gpuType. |
getIsSpot()
public boolean getIsSpot()Optional. The is_spot flag is used to fetch the usage data for preemptible Resources.
bool is_spot = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The isSpot. |
getLocationLevel()
public TimeSeries.LocationType getLocationLevel()Optional. The location level of the reservations usage timeseries.
.google.cloud.capacityplanner.v1beta.TimeSeries.LocationType location_level = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
TimeSeries.LocationType |
The locationLevel. |
getLocationLevelValue()
public int getLocationLevelValue()Optional. The location level of the reservations usage timeseries.
.google.cloud.capacityplanner.v1beta.TimeSeries.LocationType location_level = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for locationLevel. |
getMachineFamily()
public String getMachineFamily() The machine family for the UsageHistory values to return. Possible values
include "n1", and "n2d". See
https://cloud.google.com/compute/docs/machine-types for more examples.
Empty machine_family will return results matching all machine families.
string machine_family = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The machineFamily. |
getMachineFamilyBytes()
public ByteString getMachineFamilyBytes() The machine family for the UsageHistory values to return. Possible values
include "n1", and "n2d". See
https://cloud.google.com/compute/docs/machine-types for more examples.
Empty machine_family will return results matching all machine families.
string machine_family = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for machineFamily. |
getMachineShape()
public MachineShape getMachineShape() Optional. The machine shape for the UsageHistory values to return.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
MachineShape |
The machineShape. |
getMachineShapeBuilder()
public MachineShape.Builder getMachineShapeBuilder() Optional. The machine shape for the UsageHistory values to return.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
MachineShape.Builder |
|
getMachineShapeOrBuilder()
public MachineShapeOrBuilder getMachineShapeOrBuilder() Optional. The machine shape for the UsageHistory values to return.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
MachineShapeOrBuilder |
|
getParent()
public String getParent()Required. The compute engine resource and location for the time series values to return. The format is:
projects/{project}/locations/{location} or
organizations/{organization}/locations/{location} or
folders/{folder}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes()Required. The compute engine resource and location for the time series values to return. The format is:
projects/{project}/locations/{location} or
organizations/{organization}/locations/{location} or
folders/{folder}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
getStartDate()
public Date getStartDate()Optional. The start date of reservations usage.
.google.type.Date start_date = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date |
The startDate. |
getStartDateBuilder()
public Date.Builder getStartDateBuilder()Optional. The start date of reservations usage.
.google.type.Date start_date = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date.Builder |
|
getStartDateOrBuilder()
public DateOrBuilder getStartDateOrBuilder()Optional. The start date of reservations usage.
.google.type.Date start_date = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.DateOrBuilder |
|
getTpuType()
public String getTpuType() Optional. The TPU type for the UsageHistory values to return. Empty
tpu_type will return results matching all TPUs.
string tpu_type = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The tpuType. |
getTpuTypeBytes()
public ByteString getTpuTypeBytes() Optional. The TPU type for the UsageHistory values to return. Empty
tpu_type will return results matching all TPUs.
string tpu_type = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for tpuType. |
getUsageAggregationMethod()
public UsageHistory.AggregationMethod getUsageAggregationMethod()The method that should be used to convert sampled usage data to daily usage values. AGGREGATION_METHOD_UNSPECIFIED will return results matching all the aggregation methods.
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod usage_aggregation_method = 4;
| Returns | |
|---|---|
| Type | Description |
UsageHistory.AggregationMethod |
The usageAggregationMethod. |
getUsageAggregationMethodValue()
public int getUsageAggregationMethodValue()The method that should be used to convert sampled usage data to daily usage values. AGGREGATION_METHOD_UNSPECIFIED will return results matching all the aggregation methods.
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod usage_aggregation_method = 4;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for usageAggregationMethod. |
hasEndDate()
public boolean hasEndDate()Optional. The end date of reservations usage.
.google.type.Date end_date = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the endDate field is set. |
hasMachineShape()
public boolean hasMachineShape() Optional. The machine shape for the UsageHistory values to return.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the machineShape field is set. |
hasStartDate()
public boolean hasStartDate()Optional. The start date of reservations usage.
.google.type.Date start_date = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the startDate field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeEndDate(Date value)
public QueryUsageHistoriesRequest.Builder mergeEndDate(Date value)Optional. The end date of reservations usage.
.google.type.Date end_date = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
mergeFrom(QueryUsageHistoriesRequest other)
public QueryUsageHistoriesRequest.Builder mergeFrom(QueryUsageHistoriesRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
QueryUsageHistoriesRequest |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public QueryUsageHistoriesRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public QueryUsageHistoriesRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
mergeMachineShape(MachineShape value)
public QueryUsageHistoriesRequest.Builder mergeMachineShape(MachineShape value) Optional. The machine shape for the UsageHistory values to return.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 13 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
MachineShape |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
mergeStartDate(Date value)
public QueryUsageHistoriesRequest.Builder mergeStartDate(Date value)Optional. The start date of reservations usage.
.google.type.Date start_date = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final QueryUsageHistoriesRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
setCloudResourceType(String value)
public QueryUsageHistoriesRequest.Builder setCloudResourceType(String value) Required. The resource for the UsageHistory values to return. Possible
values include "gce-vcpus", "gce-ram", "gce-local-ssd",
"gce-persistent-disk", "gce-gpu" and "gce-tpu". Empty cloud_resource_type
will return results matching all resources.
string cloud_resource_type = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe cloudResourceType to set. |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
setCloudResourceTypeBytes(ByteString value)
public QueryUsageHistoriesRequest.Builder setCloudResourceTypeBytes(ByteString value) Required. The resource for the UsageHistory values to return. Possible
values include "gce-vcpus", "gce-ram", "gce-local-ssd",
"gce-persistent-disk", "gce-gpu" and "gce-tpu". Empty cloud_resource_type
will return results matching all resources.
string cloud_resource_type = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for cloudResourceType to set. |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
setConfidentialMode(boolean value)
public QueryUsageHistoriesRequest.Builder setConfidentialMode(boolean value)Optional. Whether the persistent disk is in confidential mode.
bool confidential_mode = 15 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe confidentialMode to set. |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
setDiskType(String value)
public QueryUsageHistoriesRequest.Builder setDiskType(String value) Optional. The disk_type for the UsageHistory values to return request
with persistent-disk cloud_resource_type. Empty disk_type will return
results matching all disk types.
string disk_type = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe diskType to set. |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
setDiskTypeBytes(ByteString value)
public QueryUsageHistoriesRequest.Builder setDiskTypeBytes(ByteString value) Optional. The disk_type for the UsageHistory values to return request
with persistent-disk cloud_resource_type. Empty disk_type will return
results matching all disk types.
string disk_type = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for diskType to set. |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
setEndDate(Date value)
public QueryUsageHistoriesRequest.Builder setEndDate(Date value)Optional. The end date of reservations usage.
.google.type.Date end_date = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
setEndDate(Date.Builder builderForValue)
public QueryUsageHistoriesRequest.Builder setEndDate(Date.Builder builderForValue)Optional. The end date of reservations usage.
.google.type.Date end_date = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Date.Builder |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public QueryUsageHistoriesRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
setGpuType(String value)
public QueryUsageHistoriesRequest.Builder setGpuType(String value) Optional. The GPU type for the UsageHistory values to return. Sample
values are "nvidia-tesla-t4", and "nvidia-tesla-a100". See
https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type
will return results matching all GPUs.
string gpu_type = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe gpuType to set. |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
setGpuTypeBytes(ByteString value)
public QueryUsageHistoriesRequest.Builder setGpuTypeBytes(ByteString value) Optional. The GPU type for the UsageHistory values to return. Sample
values are "nvidia-tesla-t4", and "nvidia-tesla-a100". See
https://cloud.google.com/compute/docs/gpus for a list. Empty gpu_type
will return results matching all GPUs.
string gpu_type = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for gpuType to set. |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
setIsSpot(boolean value)
public QueryUsageHistoriesRequest.Builder setIsSpot(boolean value)Optional. The is_spot flag is used to fetch the usage data for preemptible Resources.
bool is_spot = 14 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe isSpot to set. |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
setLocationLevel(TimeSeries.LocationType value)
public QueryUsageHistoriesRequest.Builder setLocationLevel(TimeSeries.LocationType value)Optional. The location level of the reservations usage timeseries.
.google.cloud.capacityplanner.v1beta.TimeSeries.LocationType location_level = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
TimeSeries.LocationTypeThe locationLevel to set. |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
setLocationLevelValue(int value)
public QueryUsageHistoriesRequest.Builder setLocationLevelValue(int value)Optional. The location level of the reservations usage timeseries.
.google.cloud.capacityplanner.v1beta.TimeSeries.LocationType location_level = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for locationLevel to set. |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
setMachineFamily(String value)
public QueryUsageHistoriesRequest.Builder setMachineFamily(String value) The machine family for the UsageHistory values to return. Possible values
include "n1", and "n2d". See
https://cloud.google.com/compute/docs/machine-types for more examples.
Empty machine_family will return results matching all machine families.
string machine_family = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe machineFamily to set. |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
setMachineFamilyBytes(ByteString value)
public QueryUsageHistoriesRequest.Builder setMachineFamilyBytes(ByteString value) The machine family for the UsageHistory values to return. Possible values
include "n1", and "n2d". See
https://cloud.google.com/compute/docs/machine-types for more examples.
Empty machine_family will return results matching all machine families.
string machine_family = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for machineFamily to set. |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
setMachineShape(MachineShape value)
public QueryUsageHistoriesRequest.Builder setMachineShape(MachineShape value) Optional. The machine shape for the UsageHistory values to return.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 13 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
MachineShape |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
setMachineShape(MachineShape.Builder builderForValue)
public QueryUsageHistoriesRequest.Builder setMachineShape(MachineShape.Builder builderForValue) Optional. The machine shape for the UsageHistory values to return.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 13 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
MachineShape.Builder |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
setParent(String value)
public QueryUsageHistoriesRequest.Builder setParent(String value)Required. The compute engine resource and location for the time series values to return. The format is:
projects/{project}/locations/{location} or
organizations/{organization}/locations/{location} or
folders/{folder}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public QueryUsageHistoriesRequest.Builder setParentBytes(ByteString value)Required. The compute engine resource and location for the time series values to return. The format is:
projects/{project}/locations/{location} or
organizations/{organization}/locations/{location} or
folders/{folder}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public QueryUsageHistoriesRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
setStartDate(Date value)
public QueryUsageHistoriesRequest.Builder setStartDate(Date value)Optional. The start date of reservations usage.
.google.type.Date start_date = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
setStartDate(Date.Builder builderForValue)
public QueryUsageHistoriesRequest.Builder setStartDate(Date.Builder builderForValue)Optional. The start date of reservations usage.
.google.type.Date start_date = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Date.Builder |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
setTpuType(String value)
public QueryUsageHistoriesRequest.Builder setTpuType(String value) Optional. The TPU type for the UsageHistory values to return. Empty
tpu_type will return results matching all TPUs.
string tpu_type = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tpuType to set. |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
setTpuTypeBytes(ByteString value)
public QueryUsageHistoriesRequest.Builder setTpuTypeBytes(ByteString value) Optional. The TPU type for the UsageHistory values to return. Empty
tpu_type will return results matching all TPUs.
string tpu_type = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for tpuType to set. |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final QueryUsageHistoriesRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
|
setUsageAggregationMethod(UsageHistory.AggregationMethod value)
public QueryUsageHistoriesRequest.Builder setUsageAggregationMethod(UsageHistory.AggregationMethod value)The method that should be used to convert sampled usage data to daily usage values. AGGREGATION_METHOD_UNSPECIFIED will return results matching all the aggregation methods.
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod usage_aggregation_method = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
UsageHistory.AggregationMethodThe usageAggregationMethod to set. |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |
setUsageAggregationMethodValue(int value)
public QueryUsageHistoriesRequest.Builder setUsageAggregationMethodValue(int value)The method that should be used to convert sampled usage data to daily usage values. AGGREGATION_METHOD_UNSPECIFIED will return results matching all the aggregation methods.
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod usage_aggregation_method = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for usageAggregationMethod to set. |
| Returns | |
|---|---|
| Type | Description |
QueryUsageHistoriesRequest.Builder |
This builder for chaining. |