Class BiReservation.Builder (2.47.0)

public static final class BiReservation.Builder extends GeneratedMessageV3.Builder<BiReservation.Builder> implements BiReservationOrBuilder

Represents a BI Reservation.

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

Static Methods

getDescriptor()

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

Methods

addAllPreferredTables(Iterable<? extends TableReference> values)

public BiReservation.Builder addAllPreferredTables(Iterable<? extends TableReference> values)

Preferred tables to use BI capacity for.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.bigquery.reservation.v1.TableReference>
Returns
Type Description
BiReservation.Builder

addPreferredTables(TableReference value)

public BiReservation.Builder addPreferredTables(TableReference value)

Preferred tables to use BI capacity for.

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

Parameter
Name Description
value TableReference
Returns
Type Description
BiReservation.Builder

addPreferredTables(TableReference.Builder builderForValue)

public BiReservation.Builder addPreferredTables(TableReference.Builder builderForValue)

Preferred tables to use BI capacity for.

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

Parameter
Name Description
builderForValue TableReference.Builder
Returns
Type Description
BiReservation.Builder

addPreferredTables(int index, TableReference value)

public BiReservation.Builder addPreferredTables(int index, TableReference value)

Preferred tables to use BI capacity for.

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

Parameters
Name Description
index int
value TableReference
Returns
Type Description
BiReservation.Builder

addPreferredTables(int index, TableReference.Builder builderForValue)

public BiReservation.Builder addPreferredTables(int index, TableReference.Builder builderForValue)

Preferred tables to use BI capacity for.

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

Parameters
Name Description
index int
builderForValue TableReference.Builder
Returns
Type Description
BiReservation.Builder

addPreferredTablesBuilder()

public TableReference.Builder addPreferredTablesBuilder()

Preferred tables to use BI capacity for.

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

Returns
Type Description
TableReference.Builder

addPreferredTablesBuilder(int index)

public TableReference.Builder addPreferredTablesBuilder(int index)

Preferred tables to use BI capacity for.

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

Parameter
Name Description
index int
Returns
Type Description
TableReference.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BiReservation build()
Returns
Type Description
BiReservation

buildPartial()

public BiReservation buildPartial()
Returns
Type Description
BiReservation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public BiReservation.Builder clearName()

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

string name = 1;

Returns
Type Description
BiReservation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPreferredTables()

public BiReservation.Builder clearPreferredTables()

Preferred tables to use BI capacity for.

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

Returns
Type Description
BiReservation.Builder

clearSize()

public BiReservation.Builder clearSize()

Size of a reservation, in bytes.

int64 size = 4;

Returns
Type Description
BiReservation.Builder

This builder for chaining.

clearUpdateTime()

public BiReservation.Builder clearUpdateTime()

Output only. The last update timestamp of a reservation.

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

Returns
Type Description
BiReservation.Builder

clone()

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

getDefaultInstanceForType()

public BiReservation getDefaultInstanceForType()
Returns
Type Description
BiReservation

getDescriptorForType()

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

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
Type Description
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
Type Description
ByteString

The bytes for name.

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
Name Description
index int
Returns
Type Description
TableReference

getPreferredTablesBuilder(int index)

public TableReference.Builder getPreferredTablesBuilder(int index)

Preferred tables to use BI capacity for.

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

Parameter
Name Description
index int
Returns
Type Description
TableReference.Builder

getPreferredTablesBuilderList()

public List<TableReference.Builder> getPreferredTablesBuilderList()

Preferred tables to use BI capacity for.

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

Returns
Type Description
List<Builder>

getPreferredTablesCount()

public int getPreferredTablesCount()

Preferred tables to use BI capacity for.

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

Returns
Type Description
int

getPreferredTablesList()

public List<TableReference> getPreferredTablesList()

Preferred tables to use BI capacity for.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.bigquery.reservation.v1.TableReferenceOrBuilder>

getSize()

public long getSize()

Size of a reservation, in bytes.

int64 size = 4;

Returns
Type Description
long

The size.

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
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The last update timestamp of a reservation.

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

Returns
Type Description
Builder

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
Type Description
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
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BiReservation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public BiReservation.Builder mergeUpdateTime(Timestamp value)

Output only. The last update timestamp of a reservation.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
BiReservation.Builder

removePreferredTables(int index)

public BiReservation.Builder removePreferredTables(int index)

Preferred tables to use BI capacity for.

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

Parameter
Name Description
index int
Returns
Type Description
BiReservation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public BiReservation.Builder setName(String value)

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

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
BiReservation.Builder

This builder for chaining.

setNameBytes(ByteString value)

public BiReservation.Builder setNameBytes(ByteString value)

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

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
BiReservation.Builder

This builder for chaining.

setPreferredTables(int index, TableReference value)

public BiReservation.Builder setPreferredTables(int index, TableReference value)

Preferred tables to use BI capacity for.

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

Parameters
Name Description
index int
value TableReference
Returns
Type Description
BiReservation.Builder

setPreferredTables(int index, TableReference.Builder builderForValue)

public BiReservation.Builder setPreferredTables(int index, TableReference.Builder builderForValue)

Preferred tables to use BI capacity for.

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

Parameters
Name Description
index int
builderForValue TableReference.Builder
Returns
Type Description
BiReservation.Builder

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

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

setSize(long value)

public BiReservation.Builder setSize(long value)

Size of a reservation, in bytes.

int64 size = 4;

Parameter
Name Description
value long

The size to set.

Returns
Type Description
BiReservation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public BiReservation.Builder setUpdateTime(Timestamp value)

Output only. The last update timestamp of a reservation.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
BiReservation.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public BiReservation.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The last update timestamp of a reservation.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
BiReservation.Builder