Class QueryForecastsRequest.Builder (0.1.0)

public static final class QueryForecastsRequest.Builder extends GeneratedMessageV3.Builder<QueryForecastsRequest.Builder> implements QueryForecastsRequestOrBuilder

The QueryForecasts request. Next : 14

Protobuf type google.cloud.capacityplanner.v1beta.QueryForecastsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QueryForecastsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QueryForecastsRequest.Builder
Overrides

build()

public QueryForecastsRequest build()
Returns
Type Description
QueryForecastsRequest

buildPartial()

public QueryForecastsRequest buildPartial()
Returns
Type Description
QueryForecastsRequest

clear()

public QueryForecastsRequest.Builder clear()
Returns
Type Description
QueryForecastsRequest.Builder
Overrides

clearAggregationMethod()

public QueryForecastsRequest.Builder clearAggregationMethod()

Aggregation Method of the historical usage for which the forecast is generated

.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod aggregation_method = 8;

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

clearCloudResourceType()

public QueryForecastsRequest.Builder clearCloudResourceType()

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". Empty cloud_resource_type will return results matching all resources.

string cloud_resource_type = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

clearConfidentialMode()

public QueryForecastsRequest.Builder clearConfidentialMode()

Optional. Whether the persistent disk is in confidential mode.

bool confidential_mode = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

clearDiskType()

public QueryForecastsRequest.Builder clearDiskType()

Optional. The disk_type for the Forecast values to return with request persistent-disk cloud_resource_type. Empty disk_type will return results matching all disk types.

string disk_type = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public QueryForecastsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
QueryForecastsRequest.Builder
Overrides

clearForecastType()

public QueryForecastsRequest.Builder clearForecastType()

The type of forecast to use to select the Forecast values to return. FORECAST_TYPE_UNSPECIFIED will return results matching all the forecast types.

.google.cloud.capacityplanner.v1beta.Forecast.ForecastType forecast_type = 4;

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

clearGpuType()

public QueryForecastsRequest.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
QueryForecastsRequest.Builder

This builder for chaining.

clearMachineFamily()

public QueryForecastsRequest.Builder clearMachineFamily()

The machine family to use to select the Forecast values to return. Possible values include "n1", and "n2d". Empty machine_family will return results matching all machine families.

string machine_family = 2;

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

clearMachineShape()

public QueryForecastsRequest.Builder clearMachineShape()

Optional. The machine shape for the time series values to return.

.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
QueryForecastsRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public QueryForecastsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
QueryForecastsRequest.Builder
Overrides

clearParent()

public QueryForecastsRequest.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
QueryForecastsRequest.Builder

This builder for chaining.

clearPredictionInterval()

public QueryForecastsRequest.Builder clearPredictionInterval()

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;

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

clearTpuType()

public QueryForecastsRequest.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
QueryForecastsRequest.Builder

This builder for chaining.

clone()

public QueryForecastsRequest.Builder clone()
Returns
Type Description
QueryForecastsRequest.Builder
Overrides

getAggregationMethod()

public UsageHistory.AggregationMethod getAggregationMethod()

Aggregation Method of the historical usage for which the forecast is generated

.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod aggregation_method = 8;

Returns
Type Description
UsageHistory.AggregationMethod

The aggregationMethod.

getAggregationMethodValue()

public int getAggregationMethodValue()

Aggregation Method of the historical usage for which the forecast is generated

.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod aggregation_method = 8;

Returns
Type Description
int

The enum numeric value on the wire for aggregationMethod.

getCloudResourceType()

public String getCloudResourceType()

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". 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 Forecast 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 = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The confidentialMode.

getDefaultInstanceForType()

public QueryForecastsRequest getDefaultInstanceForType()
Returns
Type Description
QueryForecastsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDiskType()

public String getDiskType()

Optional. The disk_type for the Forecast values to return with request persistent-disk cloud_resource_type. Empty disk_type will return results matching all disk types.

string disk_type = 9 [(.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 cloud_resource_type. Empty disk_type will return results matching all disk types.

string disk_type = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for diskType.

getForecastType()

public Forecast.ForecastType getForecastType()

The type of forecast to use to select the Forecast values to return. FORECAST_TYPE_UNSPECIFIED will return results matching all the forecast types.

.google.cloud.capacityplanner.v1beta.Forecast.ForecastType forecast_type = 4;

Returns
Type Description
Forecast.ForecastType

The forecastType.

getForecastTypeValue()

public int getForecastTypeValue()

The type of forecast to use to select the Forecast values to return. FORECAST_TYPE_UNSPECIFIED will return results matching all the forecast types.

.google.cloud.capacityplanner.v1beta.Forecast.ForecastType forecast_type = 4;

Returns
Type Description
int

The enum numeric value on the wire for forecastType.

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()

The machine family to use to select the Forecast values to return. Possible values include "n1", and "n2d". 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 to use to select the Forecast values to return. Possible values include "n1", and "n2d". 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 time series values to return.

.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 return.

.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 return.

.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 12 [(.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.

getPredictionInterval()

public Forecast.PredictionInterval getPredictionInterval()

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;

Returns
Type Description
Forecast.PredictionInterval

The predictionInterval.

getPredictionIntervalValue()

public int getPredictionIntervalValue()

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;

Returns
Type Description
int

The enum numeric value on the wire for predictionInterval.

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.

hasMachineShape()

public boolean hasMachineShape()

Optional. The machine shape for the time series values to return.

.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the machineShape field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QueryForecastsRequest other)

public QueryForecastsRequest.Builder mergeFrom(QueryForecastsRequest other)
Parameter
Name Description
other QueryForecastsRequest
Returns
Type Description
QueryForecastsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QueryForecastsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryForecastsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public QueryForecastsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
QueryForecastsRequest.Builder
Overrides

mergeMachineShape(MachineShape value)

public QueryForecastsRequest.Builder mergeMachineShape(MachineShape value)

Optional. The machine shape for the time series values to return.

.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value MachineShape
Returns
Type Description
QueryForecastsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QueryForecastsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QueryForecastsRequest.Builder
Overrides

setAggregationMethod(UsageHistory.AggregationMethod value)

public QueryForecastsRequest.Builder setAggregationMethod(UsageHistory.AggregationMethod value)

Aggregation Method of the historical usage for which the forecast is generated

.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod aggregation_method = 8;

Parameter
Name Description
value UsageHistory.AggregationMethod

The aggregationMethod to set.

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

setAggregationMethodValue(int value)

public QueryForecastsRequest.Builder setAggregationMethodValue(int value)

Aggregation Method of the historical usage for which the forecast is generated

.google.cloud.capacityplanner.v1beta.UsageHistory.AggregationMethod aggregation_method = 8;

Parameter
Name Description
value int

The enum numeric value on the wire for aggregationMethod to set.

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

setCloudResourceType(String value)

public QueryForecastsRequest.Builder setCloudResourceType(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". Empty cloud_resource_type will return results matching all resources.

string cloud_resource_type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The cloudResourceType to set.

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

setCloudResourceTypeBytes(ByteString value)

public QueryForecastsRequest.Builder setCloudResourceTypeBytes(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". Empty cloud_resource_type will return results matching all resources.

string cloud_resource_type = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for cloudResourceType to set.

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

setConfidentialMode(boolean value)

public QueryForecastsRequest.Builder setConfidentialMode(boolean value)

Optional. Whether the persistent disk is in confidential mode.

bool confidential_mode = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The confidentialMode to set.

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

setDiskType(String value)

public QueryForecastsRequest.Builder setDiskType(String value)

Optional. The disk_type for the Forecast values to return with request persistent-disk cloud_resource_type. Empty disk_type will return results matching all disk types.

string disk_type = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The diskType to set.

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

setDiskTypeBytes(ByteString value)

public QueryForecastsRequest.Builder setDiskTypeBytes(ByteString value)

Optional. The disk_type for the Forecast values to return with request persistent-disk cloud_resource_type. Empty disk_type will return results matching all disk types.

string disk_type = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for diskType to set.

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public QueryForecastsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
QueryForecastsRequest.Builder
Overrides

setForecastType(Forecast.ForecastType value)

public QueryForecastsRequest.Builder setForecastType(Forecast.ForecastType value)

The type of forecast to use to select the Forecast values to return. FORECAST_TYPE_UNSPECIFIED will return results matching all the forecast types.

.google.cloud.capacityplanner.v1beta.Forecast.ForecastType forecast_type = 4;

Parameter
Name Description
value Forecast.ForecastType

The forecastType to set.

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

setForecastTypeValue(int value)

public QueryForecastsRequest.Builder setForecastTypeValue(int value)

The type of forecast to use to select the Forecast values to return. FORECAST_TYPE_UNSPECIFIED will return results matching all the forecast types.

.google.cloud.capacityplanner.v1beta.Forecast.ForecastType forecast_type = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for forecastType to set.

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

setGpuType(String value)

public QueryForecastsRequest.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 String

The gpuType to set.

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

setGpuTypeBytes(ByteString value)

public QueryForecastsRequest.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 ByteString

The bytes for gpuType to set.

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

setMachineFamily(String value)

public QueryForecastsRequest.Builder setMachineFamily(String value)

The machine family to use to select the Forecast values to return. Possible values include "n1", and "n2d". Empty machine_family will return results matching all machine families.

string machine_family = 2;

Parameter
Name Description
value String

The machineFamily to set.

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

setMachineFamilyBytes(ByteString value)

public QueryForecastsRequest.Builder setMachineFamilyBytes(ByteString value)

The machine family to use to select the Forecast values to return. Possible values include "n1", and "n2d". Empty machine_family will return results matching all machine families.

string machine_family = 2;

Parameter
Name Description
value ByteString

The bytes for machineFamily to set.

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

setMachineShape(MachineShape value)

public QueryForecastsRequest.Builder setMachineShape(MachineShape value)

Optional. The machine shape for the time series values to return.

.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value MachineShape
Returns
Type Description
QueryForecastsRequest.Builder

setMachineShape(MachineShape.Builder builderForValue)

public QueryForecastsRequest.Builder setMachineShape(MachineShape.Builder builderForValue)

Optional. The machine shape for the time series values to return.

.google.cloud.capacityplanner.v1beta.MachineShape machine_shape = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue MachineShape.Builder
Returns
Type Description
QueryForecastsRequest.Builder

setParent(String value)

public QueryForecastsRequest.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 String

The parent to set.

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public QueryForecastsRequest.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 ByteString

The bytes for parent to set.

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

setPredictionInterval(Forecast.PredictionInterval value)

public QueryForecastsRequest.Builder setPredictionInterval(Forecast.PredictionInterval value)

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;

Parameter
Name Description
value Forecast.PredictionInterval

The predictionInterval to set.

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

setPredictionIntervalValue(int value)

public QueryForecastsRequest.Builder setPredictionIntervalValue(int value)

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;

Parameter
Name Description
value int

The enum numeric value on the wire for predictionInterval to set.

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public QueryForecastsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
QueryForecastsRequest.Builder
Overrides

setTpuType(String value)

public QueryForecastsRequest.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 String

The tpuType to set.

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

setTpuTypeBytes(ByteString value)

public QueryForecastsRequest.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 ByteString

The bytes for tpuType to set.

Returns
Type Description
QueryForecastsRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final QueryForecastsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
QueryForecastsRequest.Builder
Overrides