Class BiReservation (2.3.0)

public final class BiReservation extends GeneratedMessageV3 implements BiReservationOrBuilder

Represents a BI Reservation.

Protobuf type google.cloud.bigquery.reservation.v1.BiReservation

Static Fields

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PREFERRED_TABLES_FIELD_NUMBER

public static final int PREFERRED_TABLES_FIELD_NUMBER
Field Value
TypeDescription
int

SIZE_FIELD_NUMBER

public static final int SIZE_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static BiReservation getDefaultInstance()
Returns
TypeDescription
BiReservation

getDescriptor()

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

newBuilder()

public static BiReservation.Builder newBuilder()
Returns
TypeDescription
BiReservation.Builder

newBuilder(BiReservation prototype)

public static BiReservation.Builder newBuilder(BiReservation prototype)
Parameter
NameDescription
prototypeBiReservation
Returns
TypeDescription
BiReservation.Builder

parseDelimitedFrom(InputStream input)

public static BiReservation parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BiReservation
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static BiReservation parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
BiReservation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static BiReservation parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
BiReservation
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static BiReservation parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
BiReservation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static BiReservation parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
BiReservation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<BiReservation> parser()
Returns
TypeDescription
Parser<BiReservation>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public BiReservation getDefaultInstanceForType()
Returns
TypeDescription
BiReservation

getName()

public String getName()

The resource name of the singleton BI reservation. Reservation names have the form projects/{project_id}/locations/{location_id}/biReservation.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the singleton BI reservation. Reservation names have the form projects/{project_id}/locations/{location_id}/biReservation.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<BiReservation> getParserForType()
Returns
TypeDescription
Parser<BiReservation>
Overrides

getPreferredTables(int index)

public TableReference getPreferredTables(int index)

Preferred tables to use BI capacity for.

repeated .google.cloud.bigquery.reservation.v1.TableReference preferred_tables = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
TableReference

getPreferredTablesCount()

public int getPreferredTablesCount()

Preferred tables to use BI capacity for.

repeated .google.cloud.bigquery.reservation.v1.TableReference preferred_tables = 5;

Returns
TypeDescription
int

getPreferredTablesList()

public List<TableReference> getPreferredTablesList()

Preferred tables to use BI capacity for.

repeated .google.cloud.bigquery.reservation.v1.TableReference preferred_tables = 5;

Returns
TypeDescription
List<TableReference>

getPreferredTablesOrBuilder(int index)

public TableReferenceOrBuilder getPreferredTablesOrBuilder(int index)

Preferred tables to use BI capacity for.

repeated .google.cloud.bigquery.reservation.v1.TableReference preferred_tables = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
TableReferenceOrBuilder

getPreferredTablesOrBuilderList()

public List<? extends TableReferenceOrBuilder> getPreferredTablesOrBuilderList()

Preferred tables to use BI capacity for.

repeated .google.cloud.bigquery.reservation.v1.TableReference preferred_tables = 5;

Returns
TypeDescription
List<? extends com.google.cloud.bigquery.reservation.v1.TableReferenceOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSize()

public long getSize()

Size of a reservation, in bytes.

int64 size = 4;

Returns
TypeDescription
long

The size.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last update timestamp of a reservation.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last update timestamp of a reservation.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last update timestamp of a reservation.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

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 BiReservation.Builder newBuilderForType()
Returns
TypeDescription
BiReservation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public BiReservation.Builder toBuilder()
Returns
TypeDescription
BiReservation.Builder

writeTo(CodedOutputStream output)

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