Class SchedulingPolicy.Builder (2.77.0)

public static final class SchedulingPolicy.Builder extends GeneratedMessageV3.Builder<SchedulingPolicy.Builder> implements SchedulingPolicyOrBuilder

The scheduling policy controls how a reservation's resources are distributed.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SchedulingPolicy build()
Returns
Type Description
SchedulingPolicy

buildPartial()

public SchedulingPolicy buildPartial()
Returns
Type Description
SchedulingPolicy

clear()

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

clearConcurrency()

public SchedulingPolicy.Builder clearConcurrency()

Optional. If present and > 0, the reservation will attempt to limit the concurrency of jobs running for any particular project within it to the given value.

This feature is not yet generally available.

optional int64 concurrency = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SchedulingPolicy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMaxSlots()

public SchedulingPolicy.Builder clearMaxSlots()

Optional. If present and > 0, the reservation will attempt to limit the slot consumption of queries running for any particular project within it to the given value.

This feature is not yet generally available.

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

Returns
Type Description
SchedulingPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getConcurrency()

public long getConcurrency()

Optional. If present and > 0, the reservation will attempt to limit the concurrency of jobs running for any particular project within it to the given value.

This feature is not yet generally available.

optional int64 concurrency = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The concurrency.

getDefaultInstanceForType()

public SchedulingPolicy getDefaultInstanceForType()
Returns
Type Description
SchedulingPolicy

getDescriptorForType()

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

getMaxSlots()

public long getMaxSlots()

Optional. If present and > 0, the reservation will attempt to limit the slot consumption of queries running for any particular project within it to the given value.

This feature is not yet generally available.

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

Returns
Type Description
long

The maxSlots.

hasConcurrency()

public boolean hasConcurrency()

Optional. If present and > 0, the reservation will attempt to limit the concurrency of jobs running for any particular project within it to the given value.

This feature is not yet generally available.

optional int64 concurrency = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the concurrency field is set.

hasMaxSlots()

public boolean hasMaxSlots()

Optional. If present and > 0, the reservation will attempt to limit the slot consumption of queries running for any particular project within it to the given value.

This feature is not yet generally available.

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

Returns
Type Description
boolean

Whether the maxSlots field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SchedulingPolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConcurrency(long value)

public SchedulingPolicy.Builder setConcurrency(long value)

Optional. If present and > 0, the reservation will attempt to limit the concurrency of jobs running for any particular project within it to the given value.

This feature is not yet generally available.

optional int64 concurrency = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The concurrency to set.

Returns
Type Description
SchedulingPolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMaxSlots(long value)

public SchedulingPolicy.Builder setMaxSlots(long value)

Optional. If present and > 0, the reservation will attempt to limit the slot consumption of queries running for any particular project within it to the given value.

This feature is not yet generally available.

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

Parameter
Name Description
value long

The maxSlots to set.

Returns
Type Description
SchedulingPolicy.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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