Class QueuedResource.Guaranteed.Builder (2.84.0)

public static final class QueuedResource.Guaranteed.Builder extends GeneratedMessage.Builder<QueuedResource.Guaranteed.Builder> implements QueuedResource.GuaranteedOrBuilder

Guaranteed tier definition.

Protobuf type google.cloud.tpu.v2.QueuedResource.Guaranteed

Static Methods

getDescriptor()

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

Methods

build()

public QueuedResource.Guaranteed build()
Returns
Type Description
QueuedResource.Guaranteed

buildPartial()

public QueuedResource.Guaranteed buildPartial()
Returns
Type Description
QueuedResource.Guaranteed

clear()

public QueuedResource.Guaranteed.Builder clear()
Returns
Type Description
QueuedResource.Guaranteed.Builder
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];

Returns
Type Description
QueuedResource.Guaranteed.Builder

getDefaultInstanceForType()

public QueuedResource.Guaranteed getDefaultInstanceForType()
Returns
Type Description
QueuedResource.Guaranteed

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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];

Returns
Type Description
Builder

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];

Returns
Type Description
DurationOrBuilder

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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QueuedResource.Guaranteed other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public QueuedResource.Guaranteed.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
QueuedResource.Guaranteed.Builder
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
Returns
Type Description
QueuedResource.Guaranteed.Builder

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
Returns
Type Description
QueuedResource.Guaranteed.Builder

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
Returns
Type Description
QueuedResource.Guaranteed.Builder