Class QueuedResource.Guaranteed.Builder (2.20.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.v2alpha1.QueuedResource.Guaranteed

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QueuedResource.Guaranteed build()
Returns
TypeDescription
QueuedResource.Guaranteed

buildPartial()

public QueuedResource.Guaranteed buildPartial()
Returns
TypeDescription
QueuedResource.Guaranteed

clear()

public QueuedResource.Guaranteed.Builder clear()
Returns
TypeDescription
QueuedResource.Guaranteed.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public QueuedResource.Guaranteed.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
QueuedResource.Guaranteed.Builder
Overrides

clearReserved()

public QueuedResource.Guaranteed.Builder clearReserved()

Optional. Specifies the request should be scheduled on reserved capacity.

bool reserved = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
QueuedResource.Guaranteed.Builder

This builder for chaining.

clone()

public QueuedResource.Guaranteed.Builder clone()
Returns
TypeDescription
QueuedResource.Guaranteed.Builder
Overrides

getDefaultInstanceForType()

public QueuedResource.Guaranteed getDefaultInstanceForType()
Returns
TypeDescription
QueuedResource.Guaranteed

getDescriptorForType()

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

getReserved()

public boolean getReserved()

Optional. Specifies the request should be scheduled on reserved capacity.

bool reserved = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The reserved.

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
TypeDescription
boolean

Whether the minDuration field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(QueuedResource.Guaranteed other)

public QueuedResource.Guaranteed.Builder mergeFrom(QueuedResource.Guaranteed other)
Parameter
NameDescription
otherQueuedResource.Guaranteed
Returns
TypeDescription
QueuedResource.Guaranteed.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public QueuedResource.Guaranteed.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
QueuedResource.Guaranteed.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QueuedResource.Guaranteed.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QueuedResource.Guaranteed.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setReserved(boolean value)

public QueuedResource.Guaranteed.Builder setReserved(boolean value)

Optional. Specifies the request should be scheduled on reserved capacity.

bool reserved = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The reserved to set.

Returns
TypeDescription
QueuedResource.Guaranteed.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final QueuedResource.Guaranteed.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QueuedResource.Guaranteed.Builder
Overrides