Class Reservation.Autoscale (2.24.0)

public static final class Reservation.Autoscale extends GeneratedMessageV3 implements Reservation.AutoscaleOrBuilder

Auto scaling settings.

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

Static Fields

CURRENT_SLOTS_FIELD_NUMBER

public static final int CURRENT_SLOTS_FIELD_NUMBER
Field Value
TypeDescription
int

MAX_SLOTS_FIELD_NUMBER

public static final int MAX_SLOTS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Reservation.Autoscale getDefaultInstance()
Returns
TypeDescription
Reservation.Autoscale

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Reservation.Autoscale.Builder newBuilder()
Returns
TypeDescription
Reservation.Autoscale.Builder

newBuilder(Reservation.Autoscale prototype)

public static Reservation.Autoscale.Builder newBuilder(Reservation.Autoscale prototype)
Parameter
NameDescription
prototypeReservation.Autoscale
Returns
TypeDescription
Reservation.Autoscale.Builder

parseDelimitedFrom(InputStream input)

public static Reservation.Autoscale parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Reservation.Autoscale
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Reservation.Autoscale parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reservation.Autoscale
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Reservation.Autoscale parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Reservation.Autoscale
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Reservation.Autoscale parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reservation.Autoscale
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Reservation.Autoscale parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Reservation.Autoscale
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Reservation.Autoscale parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reservation.Autoscale
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Reservation.Autoscale parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Reservation.Autoscale
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Reservation.Autoscale parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reservation.Autoscale
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Reservation.Autoscale parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Reservation.Autoscale
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Reservation.Autoscale parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reservation.Autoscale
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Reservation.Autoscale parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Reservation.Autoscale
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Reservation.Autoscale parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Reservation.Autoscale
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Reservation.Autoscale> parser()
Returns
TypeDescription
Parser<Autoscale>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCurrentSlots()

public long getCurrentSlots()

Output only. The slot capacity added to this reservation when autoscale happens. Will be between [0, max_slots].

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

Returns
TypeDescription
long

The currentSlots.

getDefaultInstanceForType()

public Reservation.Autoscale getDefaultInstanceForType()
Returns
TypeDescription
Reservation.Autoscale

getMaxSlots()

public long getMaxSlots()

Number of slots to be scaled when needed.

int64 max_slots = 2;

Returns
TypeDescription
long

The maxSlots.

getParserForType()

public Parser<Reservation.Autoscale> getParserForType()
Returns
TypeDescription
Parser<Autoscale>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Reservation.Autoscale.Builder newBuilderForType()
Returns
TypeDescription
Reservation.Autoscale.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Reservation.Autoscale.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Reservation.Autoscale.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Reservation.Autoscale.Builder toBuilder()
Returns
TypeDescription
Reservation.Autoscale.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException