Class Reservation.Autoscale.Builder (2.84.0)

public static final class Reservation.Autoscale.Builder extends GeneratedMessage.Builder<Reservation.Autoscale.Builder> implements Reservation.AutoscaleOrBuilder

Auto scaling settings.

Protobuf type google.cloud.bigquery.reservation.v1.Reservation.Autoscale

Static Methods

getDescriptor()

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

Methods

build()

public Reservation.Autoscale build()
Returns
Type Description
Reservation.Autoscale

buildPartial()

public Reservation.Autoscale buildPartial()
Returns
Type Description
Reservation.Autoscale

clear()

public Reservation.Autoscale.Builder clear()
Returns
Type Description
Reservation.Autoscale.Builder
Overrides

clearCurrentSlots()

public Reservation.Autoscale.Builder clearCurrentSlots()

Output only. The slot capacity added to this reservation when autoscale happens. Will be between [0, max_slots]. Note: after users reduce max_slots, it may take a while before it can be propagated, so current_slots may stay in the original value and could be larger than max_slots for that brief period (less than one minute)

int64 current_slots = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Reservation.Autoscale.Builder

This builder for chaining.

clearMaxSlots()

public Reservation.Autoscale.Builder clearMaxSlots()

Optional. Number of slots to be scaled when needed.

int64 max_slots = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Reservation.Autoscale.Builder

This builder for chaining.

getCurrentSlots()

public long getCurrentSlots()

Output only. The slot capacity added to this reservation when autoscale happens. Will be between [0, max_slots]. Note: after users reduce max_slots, it may take a while before it can be propagated, so current_slots may stay in the original value and could be larger than max_slots for that brief period (less than one minute)

int64 current_slots = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The currentSlots.

getDefaultInstanceForType()

public Reservation.Autoscale getDefaultInstanceForType()
Returns
Type Description
Reservation.Autoscale

getDescriptorForType()

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

getMaxSlots()

public long getMaxSlots()

Optional. Number of slots to be scaled when needed.

int64 max_slots = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The maxSlots.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Reservation.Autoscale other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCurrentSlots(long value)

public Reservation.Autoscale.Builder setCurrentSlots(long value)

Output only. The slot capacity added to this reservation when autoscale happens. Will be between [0, max_slots]. Note: after users reduce max_slots, it may take a while before it can be propagated, so current_slots may stay in the original value and could be larger than max_slots for that brief period (less than one minute)

int64 current_slots = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value long

The currentSlots to set.

Returns
Type Description
Reservation.Autoscale.Builder

This builder for chaining.

setMaxSlots(long value)

public Reservation.Autoscale.Builder setMaxSlots(long value)

Optional. Number of slots to be scaled when needed.

int64 max_slots = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The maxSlots to set.

Returns
Type Description
Reservation.Autoscale.Builder

This builder for chaining.