public static final class ExportForecastsRequest.Builder extends GeneratedMessageV3.Builder<ExportForecastsRequest.Builder> implements ExportForecastsRequestOrBuilder The ExportForecasts request
Next : 13
Protobuf type google.cloud.capacityplanner.v1beta.ExportForecastsRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ExportForecastsRequest.BuilderImplements
ExportForecastsRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ExportForecastsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
build()
public ExportForecastsRequest build()| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest |
|
buildPartial()
public ExportForecastsRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest |
|
clear()
public ExportForecastsRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
clearAggregationMethod()
public ExportForecastsRequest.Builder clearAggregationMethod()Optional. Aggregation Method of the historical usage for which the forecast is generated.
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod aggregation_method = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
clearDiskType()
public ExportForecastsRequest.Builder clearDiskType() Optional. The disk_type for the Forecast values to return with request
persistent-disk resource_type.
string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
clearEndDate()
public ExportForecastsRequest.Builder clearEndDate()Optional. The end date of forecasts.
.google.type.Date end_date = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public ExportForecastsRequest.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
clearGpuType()
public ExportForecastsRequest.Builder clearGpuType() Optional. The GPU type for the Forecast 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 = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
clearMachineFamily()
public ExportForecastsRequest.Builder clearMachineFamily() Optional. The machine family to use to select the Forecast values to
return. Possible values include "n1", and "n2d".
string machine_family = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
clearMachineShape()
public ExportForecastsRequest.Builder clearMachineShape()Optional. The machine shape for the time series values to export.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public ExportForecastsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
clearOutputConfig()
public ExportForecastsRequest.Builder clearOutputConfig()Required. Output configuration indicating where the results will be output to.
.google.cloud.capacityplanner.v1beta.OutputConfig output_config = 9 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
clearParent()
public ExportForecastsRequest.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 |
ExportForecastsRequest.Builder |
This builder for chaining. |
clearPredictionInterval()
public ExportForecastsRequest.Builder clearPredictionInterval() Optional. The prediction interval to use to select the Forecast values to
return. PREDICTION_INTERVAL_UNSPECIFIED will return results matching all
prediction intervals.
.google.cloud.capacityplanner.v1beta.Forecast.PredictionInterval prediction_interval = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
clearResourceType()
public ExportForecastsRequest.Builder clearResourceType() Required. The resource for the Forecast values to return. Possible values
include "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk",
"gce-gpu" and "gce-tpu".
string resource_type = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
clearStartDate()
public ExportForecastsRequest.Builder clearStartDate()Optional. The start date of forecasts.
.google.type.Date start_date = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
clearTpuType()
public ExportForecastsRequest.Builder clearTpuType() Optional. The TPU type for the Forecast values to return. Empty tpu_type
will return results matching all TPUs.
string tpu_type = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
clone()
public ExportForecastsRequest.Builder clone()| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
getAggregationMethod()
public UsageHistory.AggregationMethod getAggregationMethod()Optional. Aggregation Method of the historical usage for which the forecast is generated.
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod aggregation_method = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
UsageHistory.AggregationMethod |
The aggregationMethod. |
getAggregationMethodValue()
public int getAggregationMethodValue()Optional. Aggregation Method of the historical usage for which the forecast is generated.
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod aggregation_method = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for aggregationMethod. |
getDefaultInstanceForType()
public ExportForecastsRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDiskType()
public String getDiskType() Optional. The disk_type for the Forecast values to return with request
persistent-disk resource_type.
string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The diskType. |
getDiskTypeBytes()
public ByteString getDiskTypeBytes() Optional. The disk_type for the Forecast values to return with request
persistent-disk resource_type.
string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for diskType. |
getEndDate()
public Date getEndDate()Optional. The end date of forecasts.
.google.type.Date end_date = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date |
The endDate. |
getEndDateBuilder()
public Date.Builder getEndDateBuilder()Optional. The end date of forecasts.
.google.type.Date end_date = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date.Builder |
|
getEndDateOrBuilder()
public DateOrBuilder getEndDateOrBuilder()Optional. The end date of forecasts.
.google.type.Date end_date = 8 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.DateOrBuilder |
|
getGpuType()
public String getGpuType() Optional. The GPU type for the Forecast 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 = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The gpuType. |
getGpuTypeBytes()
public ByteString getGpuTypeBytes() Optional. The GPU type for the Forecast 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 = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for gpuType. |
getMachineFamily()
public String getMachineFamily() Optional. The machine family to use to select the Forecast values to
return. Possible values include "n1", and "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 use to select the Forecast values to
return. Possible values include "n1", and "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 for the time series values to export.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
MachineShape |
The machineShape. |
getMachineShapeBuilder()
public MachineShape.Builder getMachineShapeBuilder()Optional. The machine shape for the time series values to export.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
MachineShape.Builder |
|
getMachineShapeOrBuilder()
public MachineShapeOrBuilder getMachineShapeOrBuilder()Optional. The machine shape for the time series values to export.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 12 [(.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 = 9 [(.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 = 9 [(.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 = 9 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
OutputConfigOrBuilder |
|
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. |
getPredictionInterval()
public Forecast.PredictionInterval getPredictionInterval() Optional. The prediction interval to use to select the Forecast values to
return. PREDICTION_INTERVAL_UNSPECIFIED will return results matching all
prediction intervals.
.google.cloud.capacityplanner.v1beta.Forecast.PredictionInterval prediction_interval = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Forecast.PredictionInterval |
The predictionInterval. |
getPredictionIntervalValue()
public int getPredictionIntervalValue() Optional. The prediction interval to use to select the Forecast values to
return. PREDICTION_INTERVAL_UNSPECIFIED will return results matching all
prediction intervals.
.google.cloud.capacityplanner.v1beta.Forecast.PredictionInterval prediction_interval = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for predictionInterval. |
getResourceType()
public String getResourceType() Required. The resource for the Forecast values to return. Possible values
include "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk",
"gce-gpu" and "gce-tpu".
string resource_type = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The resourceType. |
getResourceTypeBytes()
public ByteString getResourceTypeBytes() Required. The resource for the Forecast values to return. Possible values
include "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk",
"gce-gpu" and "gce-tpu".
string resource_type = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for resourceType. |
getStartDate()
public Date getStartDate()Optional. The start date of forecasts.
.google.type.Date start_date = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date |
The startDate. |
getStartDateBuilder()
public Date.Builder getStartDateBuilder()Optional. The start date of forecasts.
.google.type.Date start_date = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date.Builder |
|
getStartDateOrBuilder()
public DateOrBuilder getStartDateOrBuilder()Optional. The start date of forecasts.
.google.type.Date start_date = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
com.google.type.DateOrBuilder |
|
getTpuType()
public String getTpuType() Optional. The TPU type for the Forecast values to return. Empty tpu_type
will return results matching all TPUs.
string tpu_type = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The tpuType. |
getTpuTypeBytes()
public ByteString getTpuTypeBytes() Optional. The TPU type for the Forecast values to return. Empty tpu_type
will return results matching all TPUs.
string tpu_type = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for tpuType. |
hasEndDate()
public boolean hasEndDate()Optional. The end date of forecasts.
.google.type.Date end_date = 8 [(.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 time series values to export.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 12 [(.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 = 9 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the outputConfig field is set. |
hasStartDate()
public boolean hasStartDate()Optional. The start date of forecasts.
.google.type.Date start_date = 7 [(.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 ExportForecastsRequest.Builder mergeEndDate(Date value)Optional. The end date of forecasts.
.google.type.Date end_date = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
mergeFrom(ExportForecastsRequest other)
public ExportForecastsRequest.Builder mergeFrom(ExportForecastsRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
ExportForecastsRequest |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ExportForecastsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ExportForecastsRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
mergeMachineShape(MachineShape value)
public ExportForecastsRequest.Builder mergeMachineShape(MachineShape value)Optional. The machine shape for the time series values to export.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
MachineShape |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
mergeOutputConfig(OutputConfig value)
public ExportForecastsRequest.Builder mergeOutputConfig(OutputConfig value)Required. Output configuration indicating where the results will be output to.
.google.cloud.capacityplanner.v1beta.OutputConfig output_config = 9 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
OutputConfig |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
mergeStartDate(Date value)
public ExportForecastsRequest.Builder mergeStartDate(Date value)Optional. The start date of forecasts.
.google.type.Date start_date = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ExportForecastsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
setAggregationMethod(UsageHistory.AggregationMethod value)
public ExportForecastsRequest.Builder setAggregationMethod(UsageHistory.AggregationMethod value)Optional. Aggregation Method of the historical usage for which the forecast is generated.
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod aggregation_method = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
UsageHistory.AggregationMethodThe aggregationMethod to set. |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
setAggregationMethodValue(int value)
public ExportForecastsRequest.Builder setAggregationMethodValue(int value)Optional. Aggregation Method of the historical usage for which the forecast is generated.
.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod aggregation_method = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for aggregationMethod to set. |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
setDiskType(String value)
public ExportForecastsRequest.Builder setDiskType(String value) Optional. The disk_type for the Forecast values to return with request
persistent-disk resource_type.
string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe diskType to set. |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
setDiskTypeBytes(ByteString value)
public ExportForecastsRequest.Builder setDiskTypeBytes(ByteString value) Optional. The disk_type for the Forecast values to return with request
persistent-disk resource_type.
string disk_type = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for diskType to set. |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
setEndDate(Date value)
public ExportForecastsRequest.Builder setEndDate(Date value)Optional. The end date of forecasts.
.google.type.Date end_date = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
setEndDate(Date.Builder builderForValue)
public ExportForecastsRequest.Builder setEndDate(Date.Builder builderForValue)Optional. The end date of forecasts.
.google.type.Date end_date = 8 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Date.Builder |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public ExportForecastsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
setGpuType(String value)
public ExportForecastsRequest.Builder setGpuType(String value) Optional. The GPU type for the Forecast 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 = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe gpuType to set. |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
setGpuTypeBytes(ByteString value)
public ExportForecastsRequest.Builder setGpuTypeBytes(ByteString value) Optional. The GPU type for the Forecast 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 = 10 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for gpuType to set. |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
setMachineFamily(String value)
public ExportForecastsRequest.Builder setMachineFamily(String value) Optional. The machine family to use to select the Forecast values to
return. Possible values include "n1", and "n2d".
string machine_family = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe machineFamily to set. |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
setMachineFamilyBytes(ByteString value)
public ExportForecastsRequest.Builder setMachineFamilyBytes(ByteString value) Optional. The machine family to use to select the Forecast values to
return. Possible values include "n1", and "n2d".
string machine_family = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for machineFamily to set. |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
setMachineShape(MachineShape value)
public ExportForecastsRequest.Builder setMachineShape(MachineShape value)Optional. The machine shape for the time series values to export.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
MachineShape |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
setMachineShape(MachineShape.Builder builderForValue)
public ExportForecastsRequest.Builder setMachineShape(MachineShape.Builder builderForValue)Optional. The machine shape for the time series values to export.
.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
MachineShape.Builder |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
setOutputConfig(OutputConfig value)
public ExportForecastsRequest.Builder setOutputConfig(OutputConfig value)Required. Output configuration indicating where the results will be output to.
.google.cloud.capacityplanner.v1beta.OutputConfig output_config = 9 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
OutputConfig |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
setOutputConfig(OutputConfig.Builder builderForValue)
public ExportForecastsRequest.Builder setOutputConfig(OutputConfig.Builder builderForValue)Required. Output configuration indicating where the results will be output to.
.google.cloud.capacityplanner.v1beta.OutputConfig output_config = 9 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
OutputConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
setParent(String value)
public ExportForecastsRequest.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 |
ExportForecastsRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public ExportForecastsRequest.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 |
ExportForecastsRequest.Builder |
This builder for chaining. |
setPredictionInterval(Forecast.PredictionInterval value)
public ExportForecastsRequest.Builder setPredictionInterval(Forecast.PredictionInterval value) Optional. The prediction interval to use to select the Forecast values to
return. PREDICTION_INTERVAL_UNSPECIFIED will return results matching all
prediction intervals.
.google.cloud.capacityplanner.v1beta.Forecast.PredictionInterval prediction_interval = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Forecast.PredictionIntervalThe predictionInterval to set. |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
setPredictionIntervalValue(int value)
public ExportForecastsRequest.Builder setPredictionIntervalValue(int value) Optional. The prediction interval to use to select the Forecast values to
return. PREDICTION_INTERVAL_UNSPECIFIED will return results matching all
prediction intervals.
.google.cloud.capacityplanner.v1beta.Forecast.PredictionInterval prediction_interval = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for predictionInterval to set. |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ExportForecastsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
setResourceType(String value)
public ExportForecastsRequest.Builder setResourceType(String value) Required. The resource for the Forecast values to return. Possible values
include "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk",
"gce-gpu" and "gce-tpu".
string resource_type = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe resourceType to set. |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
setResourceTypeBytes(ByteString value)
public ExportForecastsRequest.Builder setResourceTypeBytes(ByteString value) Required. The resource for the Forecast values to return. Possible values
include "gce-vcpus", "gce-ram", "gce-local-ssd", "gce-persistent-disk",
"gce-gpu" and "gce-tpu".
string resource_type = 4 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for resourceType to set. |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
setStartDate(Date value)
public ExportForecastsRequest.Builder setStartDate(Date value)Optional. The start date of forecasts.
.google.type.Date start_date = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
setStartDate(Date.Builder builderForValue)
public ExportForecastsRequest.Builder setStartDate(Date.Builder builderForValue)Optional. The start date of forecasts.
.google.type.Date start_date = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Date.Builder |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|
setTpuType(String value)
public ExportForecastsRequest.Builder setTpuType(String value) Optional. The TPU type for the Forecast values to return. Empty tpu_type
will return results matching all TPUs.
string tpu_type = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tpuType to set. |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
setTpuTypeBytes(ByteString value)
public ExportForecastsRequest.Builder setTpuTypeBytes(ByteString value) Optional. The TPU type for the Forecast values to return. Empty tpu_type
will return results matching all TPUs.
string tpu_type = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for tpuType to set. |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ExportForecastsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ExportForecastsRequest.Builder |
|