Class SchedulingPolicy (2.77.0)
public final class SchedulingPolicy extends GeneratedMessageV3 implements SchedulingPolicyOrBuilder
The scheduling policy controls how a reservation's resources are distributed.
Protobuf type google.cloud.bigquery.reservation.v1.SchedulingPolicy
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CONCURRENCY_FIELD_NUMBER
public static final int CONCURRENCY_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
MAX_SLOTS_FIELD_NUMBER
public static final int MAX_SLOTS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static SchedulingPolicy getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SchedulingPolicy.Builder newBuilder()
newBuilder(SchedulingPolicy prototype)
public static SchedulingPolicy.Builder newBuilder(SchedulingPolicy prototype)
public static SchedulingPolicy parseDelimitedFrom(InputStream input)
public static SchedulingPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SchedulingPolicy parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SchedulingPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SchedulingPolicy parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SchedulingPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SchedulingPolicy parseFrom(CodedInputStream input)
public static SchedulingPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SchedulingPolicy parseFrom(InputStream input)
public static SchedulingPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SchedulingPolicy parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SchedulingPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SchedulingPolicy> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
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()
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.
|
getParserForType()
public Parser<SchedulingPolicy> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SchedulingPolicy.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SchedulingPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public SchedulingPolicy.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]