Class QueuedResource.Guaranteed.Builder (2.77.0)
public static final class QueuedResource.Guaranteed.Builder extends GeneratedMessageV3.Builder<QueuedResource.Guaranteed.Builder> implements QueuedResource.GuaranteedOrBuilder
Guaranteed tier definition.
Protobuf type google.cloud.tpu.v2.QueuedResource.Guaranteed
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public QueuedResource.Guaranteed.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public QueuedResource.Guaranteed build()
buildPartial()
public QueuedResource.Guaranteed buildPartial()
clear()
public QueuedResource.Guaranteed.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public QueuedResource.Guaranteed.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearMinDuration()
public QueuedResource.Guaranteed.Builder clearMinDuration()
Optional. Defines the minimum duration of the guarantee. If specified,
the requested resources will only be provisioned if they can be
allocated for at least the given duration.
.google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
clearOneof(Descriptors.OneofDescriptor oneof)
public QueuedResource.Guaranteed.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public QueuedResource.Guaranteed.Builder clone()
Overrides
getDefaultInstanceForType()
public QueuedResource.Guaranteed getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMinDuration()
public Duration getMinDuration()
Optional. Defines the minimum duration of the guarantee. If specified,
the requested resources will only be provisioned if they can be
allocated for at least the given duration.
.google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
Duration |
The minDuration.
|
getMinDurationBuilder()
public Duration.Builder getMinDurationBuilder()
Optional. Defines the minimum duration of the guarantee. If specified,
the requested resources will only be provisioned if they can be
allocated for at least the given duration.
.google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
getMinDurationOrBuilder()
public DurationOrBuilder getMinDurationOrBuilder()
Optional. Defines the minimum duration of the guarantee. If specified,
the requested resources will only be provisioned if they can be
allocated for at least the given duration.
.google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
hasMinDuration()
public boolean hasMinDuration()
Optional. Defines the minimum duration of the guarantee. If specified,
the requested resources will only be provisioned if they can be
allocated for at least the given duration.
.google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the minDuration field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(QueuedResource.Guaranteed other)
public QueuedResource.Guaranteed.Builder mergeFrom(QueuedResource.Guaranteed other)
public QueuedResource.Guaranteed.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public QueuedResource.Guaranteed.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeMinDuration(Duration value)
public QueuedResource.Guaranteed.Builder mergeMinDuration(Duration value)
Optional. Defines the minimum duration of the guarantee. If specified,
the requested resources will only be provisioned if they can be
allocated for at least the given duration.
.google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
Duration
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final QueuedResource.Guaranteed.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public QueuedResource.Guaranteed.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setMinDuration(Duration value)
public QueuedResource.Guaranteed.Builder setMinDuration(Duration value)
Optional. Defines the minimum duration of the guarantee. If specified,
the requested resources will only be provisioned if they can be
allocated for at least the given duration.
.google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
Duration
|
setMinDuration(Duration.Builder builderForValue)
public QueuedResource.Guaranteed.Builder setMinDuration(Duration.Builder builderForValue)
Optional. Defines the minimum duration of the guarantee. If specified,
the requested resources will only be provisioned if they can be
allocated for at least the given duration.
.google.protobuf.Duration min_duration = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
builderForValue |
Builder
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public QueuedResource.Guaranteed.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final QueuedResource.Guaranteed.Builder setUnknownFields(UnknownFieldSet unknownFields)
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."],[],[]]