Class BiReservation.Builder (2.34.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.bigquery.reservation.v1.TableReference>
Returns
TypeDescription
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
NameDescription
valueTableReference
Returns
TypeDescription
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
NameDescription
builderForValueTableReference.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueTableReference
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTableReference.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
TableReference.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BiReservation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BiReservation.Builder
Overrides

build()

public BiReservation build()
Returns
TypeDescription
BiReservation

buildPartial()

public BiReservation buildPartial()
Returns
TypeDescription
BiReservation

clear()

public BiReservation.Builder clear()
Returns
TypeDescription
BiReservation.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public BiReservation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
BiReservation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BiReservation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
BiReservation.Builder

clearSize()

public BiReservation.Builder clearSize()

Size of a reservation, in bytes.

int64 size = 4;

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

clone()

public BiReservation.Builder clone()
Returns
TypeDescription
BiReservation.Builder
Overrides

getDefaultInstanceForType()

public BiReservation getDefaultInstanceForType()
Returns
TypeDescription
BiReservation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

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

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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

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>

getSize()

public long getSize()

Size of a reservation, in bytes.

int64 size = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BiReservation other)

public BiReservation.Builder mergeFrom(BiReservation other)
Parameter
NameDescription
otherBiReservation
Returns
TypeDescription
BiReservation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BiReservation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BiReservation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BiReservation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BiReservation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BiReservation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
BiReservation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BiReservation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
indexint
valueTableReference
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTableReference.Builder
Returns
TypeDescription
BiReservation.Builder

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

public BiReservation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BiReservation.Builder
Overrides

setSize(long value)

public BiReservation.Builder setSize(long value)

Size of a reservation, in bytes.

int64 size = 4;

Parameter
NameDescription
valuelong

The size to set.

Returns
TypeDescription
BiReservation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final BiReservation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
BiReservation.Builder