public static final class ExportReservationsUsageRequest.Builder extends GeneratedMessageV3.Builder<ExportReservationsUsageRequest.Builder> implements ExportReservationsUsageRequestOrBuilder The ExportReservationsUsage request
Protobuf type google.cloud.capacityplanner.v1beta.ExportReservationsUsageRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ExportReservationsUsageRequest.BuilderImplements
ExportReservationsUsageRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ExportReservationsUsageRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
build()
public ExportReservationsUsageRequest build()| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest |
|
buildPartial()
public ExportReservationsUsageRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest |
|
clear()
public ExportReservationsUsageRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
clearCloudResourceType()
public ExportReservationsUsageRequest.Builder clearCloudResourceType() Required. The resource for the ReservationsUsage values to return.
Possible values include "gce-vcpus", "gce-ram", "gce-local-ssd", and
"gce-gpu".
string cloud_resource_type = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
clearEndDate()
public ExportReservationsUsageRequest.Builder clearEndDate()Optional. The end date of reservations usage.
.google.type.Date end_date = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public ExportReservationsUsageRequest.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
clearGpuType()
public ExportReservationsUsageRequest.Builder clearGpuType()Optional. The GPU type to query reservations and usage by. For example: NVIDIA T4.
string gpu_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
clearLocationLevel()
public ExportReservationsUsageRequest.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 |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
clearMachineFamily()
public ExportReservationsUsageRequest.Builder clearMachineFamily()Optional. The machine family to query reservations and usage by. For example: n1, n2d.
string machine_family = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
clearMachineShape()
public ExportReservationsUsageRequest.Builder clearMachineShape()Optional. The machine_shape as a filter to select matching reservations and its usage.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public ExportReservationsUsageRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
clearOutputConfig()
public ExportReservationsUsageRequest.Builder clearOutputConfig()Required. Output configuration indicating where the results will be output to.
.google.cloud.capacityplanner.v1beta.OutputConfig output_config = 10 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
clearParent()
public ExportReservationsUsageRequest.Builder clearParent()Required. The compute engine resource and location of the reservationsusage. 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 |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
clearResource()
public ExportReservationsUsageRequest.Builder clearResource()| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
clearShareType()
public ExportReservationsUsageRequest.Builder clearShareType()Optional. Type of share settings to filter reservations in response. If unspecified, all types are included.
.google.cloud.capacityplanner.v1beta.ExportReservationsUsageRequest.ShareType share_type = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
clearStartDate()
public ExportReservationsUsageRequest.Builder clearStartDate()Optional. The start date of reservations usage.
.google.type.Date start_date = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
clearUsageAggregationMethod()
public ExportReservationsUsageRequest.Builder clearUsageAggregationMethod()Required. The method that should be used to convert sampled reservations data to daily usage values.
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod usage_aggregation_method = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
clone()
public ExportReservationsUsageRequest.Builder clone()| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
getCloudResourceType()
public String getCloudResourceType() Required. The resource for the ReservationsUsage values to return.
Possible values include "gce-vcpus", "gce-ram", "gce-local-ssd", and
"gce-gpu".
string cloud_resource_type = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The cloudResourceType. |
getCloudResourceTypeBytes()
public ByteString getCloudResourceTypeBytes() Required. The resource for the ReservationsUsage values to return.
Possible values include "gce-vcpus", "gce-ram", "gce-local-ssd", and
"gce-gpu".
string cloud_resource_type = 5 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for cloudResourceType. |
getDefaultInstanceForType()
public ExportReservationsUsageRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEndDate()
public Date getEndDate()Optional. The end date of reservations usage.
.google.type.Date end_date = 9 [(.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 = 9 [(.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 = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.DateOrBuilder |
|
getGpuType()
public String getGpuType()Optional. The GPU type to query reservations and usage by. For example: NVIDIA T4.
string gpu_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The gpuType. |
getGpuTypeBytes()
public ByteString getGpuTypeBytes()Optional. The GPU type to query reservations and usage by. For example: NVIDIA T4.
string gpu_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for gpuType. |
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()Optional. The machine family to query reservations and usage by. For example: n1, n2d.
string machine_family = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The machineFamily. |
getMachineFamilyBytes()
public ByteString getMachineFamilyBytes()Optional. The machine family to query reservations and usage by. For example: n1, n2d.
string machine_family = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for machineFamily. |
getMachineShape()
public MachineShape getMachineShape()Optional. The machine_shape as a filter to select matching reservations and its usage.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
MachineShape |
The machineShape. |
getMachineShapeBuilder()
public MachineShape.Builder getMachineShapeBuilder()Optional. The machine_shape as a filter to select matching reservations and its usage.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
MachineShape.Builder |
|
getMachineShapeOrBuilder()
public MachineShapeOrBuilder getMachineShapeOrBuilder()Optional. The machine_shape as a filter to select matching reservations and its usage.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
MachineShapeOrBuilder |
|
getOutputConfig()
public OutputConfig getOutputConfig()Required. Output configuration indicating where the results will be output to.
.google.cloud.capacityplanner.v1beta.OutputConfig output_config = 10 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OutputConfig |
The outputConfig. |
getOutputConfigBuilder()
public OutputConfig.Builder getOutputConfigBuilder()Required. Output configuration indicating where the results will be output to.
.google.cloud.capacityplanner.v1beta.OutputConfig output_config = 10 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OutputConfig.Builder |
|
getOutputConfigOrBuilder()
public OutputConfigOrBuilder getOutputConfigOrBuilder()Required. Output configuration indicating where the results will be output to.
.google.cloud.capacityplanner.v1beta.OutputConfig output_config = 10 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OutputConfigOrBuilder |
|
getParent()
public String getParent()Required. The compute engine resource and location of the reservationsusage. 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 of the reservationsusage. 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. |
getResourceCase()
public ExportReservationsUsageRequest.ResourceCase getResourceCase()| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.ResourceCase |
|
getShareType()
public ExportReservationsUsageRequest.ShareType getShareType()Optional. Type of share settings to filter reservations in response. If unspecified, all types are included.
.google.cloud.capacityplanner.v1beta.ExportReservationsUsageRequest.ShareType share_type = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.ShareType |
The shareType. |
getShareTypeValue()
public int getShareTypeValue()Optional. Type of share settings to filter reservations in response. If unspecified, all types are included.
.google.cloud.capacityplanner.v1beta.ExportReservationsUsageRequest.ShareType share_type = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for shareType. |
getStartDate()
public Date getStartDate()Optional. The start date of reservations usage.
.google.type.Date start_date = 8 [(.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 = 8 [(.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 = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.DateOrBuilder |
|
getUsageAggregationMethod()
public UsageHistory.AggregationMethod getUsageAggregationMethod()Required. The method that should be used to convert sampled reservations data to daily usage values.
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod usage_aggregation_method = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
UsageHistory.AggregationMethod |
The usageAggregationMethod. |
getUsageAggregationMethodValue()
public int getUsageAggregationMethodValue()Required. The method that should be used to convert sampled reservations data to daily usage values.
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod usage_aggregation_method = 6 [(.google.api.field_behavior) = REQUIRED];
| 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 = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the endDate field is set. |
hasGpuType()
public boolean hasGpuType()Optional. The GPU type to query reservations and usage by. For example: NVIDIA T4.
string gpu_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the gpuType field is set. |
hasMachineFamily()
public boolean hasMachineFamily()Optional. The machine family to query reservations and usage by. For example: n1, n2d.
string machine_family = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the machineFamily field is set. |
hasMachineShape()
public boolean hasMachineShape()Optional. The machine_shape as a filter to select matching reservations and its usage.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the machineShape field is set. |
hasOutputConfig()
public boolean hasOutputConfig()Required. Output configuration indicating where the results will be output to.
.google.cloud.capacityplanner.v1beta.OutputConfig output_config = 10 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the outputConfig field is set. |
hasStartDate()
public boolean hasStartDate()Optional. The start date of reservations usage.
.google.type.Date start_date = 8 [(.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 ExportReservationsUsageRequest.Builder mergeEndDate(Date value)Optional. The end date of reservations usage.
.google.type.Date end_date = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
mergeFrom(ExportReservationsUsageRequest other)
public ExportReservationsUsageRequest.Builder mergeFrom(ExportReservationsUsageRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
ExportReservationsUsageRequest |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ExportReservationsUsageRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ExportReservationsUsageRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
mergeMachineShape(MachineShape value)
public ExportReservationsUsageRequest.Builder mergeMachineShape(MachineShape value)Optional. The machine_shape as a filter to select matching reservations and its usage.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
MachineShape |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
mergeOutputConfig(OutputConfig value)
public ExportReservationsUsageRequest.Builder mergeOutputConfig(OutputConfig value)Required. Output configuration indicating where the results will be output to.
.google.cloud.capacityplanner.v1beta.OutputConfig output_config = 10 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
OutputConfig |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
mergeStartDate(Date value)
public ExportReservationsUsageRequest.Builder mergeStartDate(Date value)Optional. The start date of reservations usage.
.google.type.Date start_date = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ExportReservationsUsageRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
setCloudResourceType(String value)
public ExportReservationsUsageRequest.Builder setCloudResourceType(String value) Required. The resource for the ReservationsUsage values to return.
Possible values include "gce-vcpus", "gce-ram", "gce-local-ssd", and
"gce-gpu".
string cloud_resource_type = 5 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe cloudResourceType to set. |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
setCloudResourceTypeBytes(ByteString value)
public ExportReservationsUsageRequest.Builder setCloudResourceTypeBytes(ByteString value) Required. The resource for the ReservationsUsage values to return.
Possible values include "gce-vcpus", "gce-ram", "gce-local-ssd", and
"gce-gpu".
string cloud_resource_type = 5 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for cloudResourceType to set. |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
setEndDate(Date value)
public ExportReservationsUsageRequest.Builder setEndDate(Date value)Optional. The end date of reservations usage.
.google.type.Date end_date = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
setEndDate(Date.Builder builderForValue)
public ExportReservationsUsageRequest.Builder setEndDate(Date.Builder builderForValue)Optional. The end date of reservations usage.
.google.type.Date end_date = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Date.Builder |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public ExportReservationsUsageRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
setGpuType(String value)
public ExportReservationsUsageRequest.Builder setGpuType(String value)Optional. The GPU type to query reservations and usage by. For example: NVIDIA T4.
string gpu_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe gpuType to set. |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
setGpuTypeBytes(ByteString value)
public ExportReservationsUsageRequest.Builder setGpuTypeBytes(ByteString value)Optional. The GPU type to query reservations and usage by. For example: NVIDIA T4.
string gpu_type = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for gpuType to set. |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
setLocationLevel(TimeSeries.LocationType value)
public ExportReservationsUsageRequest.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 |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
setLocationLevelValue(int value)
public ExportReservationsUsageRequest.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 |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
setMachineFamily(String value)
public ExportReservationsUsageRequest.Builder setMachineFamily(String value)Optional. The machine family to query reservations and usage by. For example: n1, n2d.
string machine_family = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe machineFamily to set. |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
setMachineFamilyBytes(ByteString value)
public ExportReservationsUsageRequest.Builder setMachineFamilyBytes(ByteString value)Optional. The machine family to query reservations and usage by. For example: n1, n2d.
string machine_family = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for machineFamily to set. |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
setMachineShape(MachineShape value)
public ExportReservationsUsageRequest.Builder setMachineShape(MachineShape value)Optional. The machine_shape as a filter to select matching reservations and its usage.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
MachineShape |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
setMachineShape(MachineShape.Builder builderForValue)
public ExportReservationsUsageRequest.Builder setMachineShape(MachineShape.Builder builderForValue)Optional. The machine_shape as a filter to select matching reservations and its usage.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
MachineShape.Builder |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
setOutputConfig(OutputConfig value)
public ExportReservationsUsageRequest.Builder setOutputConfig(OutputConfig value)Required. Output configuration indicating where the results will be output to.
.google.cloud.capacityplanner.v1beta.OutputConfig output_config = 10 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
OutputConfig |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
setOutputConfig(OutputConfig.Builder builderForValue)
public ExportReservationsUsageRequest.Builder setOutputConfig(OutputConfig.Builder builderForValue)Required. Output configuration indicating where the results will be output to.
.google.cloud.capacityplanner.v1beta.OutputConfig output_config = 10 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
OutputConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
setParent(String value)
public ExportReservationsUsageRequest.Builder setParent(String value)Required. The compute engine resource and location of the reservationsusage. 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 |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public ExportReservationsUsageRequest.Builder setParentBytes(ByteString value)Required. The compute engine resource and location of the reservationsusage. 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 |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ExportReservationsUsageRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
setShareType(ExportReservationsUsageRequest.ShareType value)
public ExportReservationsUsageRequest.Builder setShareType(ExportReservationsUsageRequest.ShareType value)Optional. Type of share settings to filter reservations in response. If unspecified, all types are included.
.google.cloud.capacityplanner.v1beta.ExportReservationsUsageRequest.ShareType share_type = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ExportReservationsUsageRequest.ShareTypeThe shareType to set. |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
setShareTypeValue(int value)
public ExportReservationsUsageRequest.Builder setShareTypeValue(int value)Optional. Type of share settings to filter reservations in response. If unspecified, all types are included.
.google.cloud.capacityplanner.v1beta.ExportReservationsUsageRequest.ShareType share_type = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for shareType to set. |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
setStartDate(Date value)
public ExportReservationsUsageRequest.Builder setStartDate(Date value)Optional. The start date of reservations usage.
.google.type.Date start_date = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
setStartDate(Date.Builder builderForValue)
public ExportReservationsUsageRequest.Builder setStartDate(Date.Builder builderForValue)Optional. The start date of reservations usage.
.google.type.Date start_date = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Date.Builder |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final ExportReservationsUsageRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
|
setUsageAggregationMethod(UsageHistory.AggregationMethod value)
public ExportReservationsUsageRequest.Builder setUsageAggregationMethod(UsageHistory.AggregationMethod value)Required. The method that should be used to convert sampled reservations data to daily usage values.
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod usage_aggregation_method = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
UsageHistory.AggregationMethodThe usageAggregationMethod to set. |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |
setUsageAggregationMethodValue(int value)
public ExportReservationsUsageRequest.Builder setUsageAggregationMethodValue(int value)Required. The method that should be used to convert sampled reservations data to daily usage values.
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod usage_aggregation_method = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for usageAggregationMethod to set. |
| Returns | |
|---|---|
| Type | Description |
ExportReservationsUsageRequest.Builder |
This builder for chaining. |