Class FutureResourcesSpec.Builder (1.91.0)

public static final class FutureResourcesSpec.Builder extends GeneratedMessageV3.Builder<FutureResourcesSpec.Builder> implements FutureResourcesSpecOrBuilder

Specification of resources to be created at some time in the future within an optionally specified set of locations, and within the specified time range.

Protobuf type google.cloud.compute.v1.FutureResourcesSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FutureResourcesSpec build()
Returns
Type Description
FutureResourcesSpec

buildPartial()

public FutureResourcesSpec buildPartial()
Returns
Type Description
FutureResourcesSpec

clear()

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

clearDeploymentType()

public FutureResourcesSpec.Builder clearDeploymentType()

Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). Defaults to DENSE. Check the DeploymentType enum for the list of possible values.

optional string deployment_type = 396722292;

Returns
Type Description
FutureResourcesSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLocationPolicy()

public FutureResourcesSpec.Builder clearLocationPolicy()

Optional location policy allowing to exclude some zone(s) in which the resources must not be created.

optional .google.cloud.compute.v1.FutureResourcesSpecLocationPolicy location_policy = 465689852;

Returns
Type Description
FutureResourcesSpec.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTargetResources()

public FutureResourcesSpec.Builder clearTargetResources()

Specification of the reserved resources.

optional .google.cloud.compute.v1.FutureResourcesSpecTargetResources target_resources = 528230647;

Returns
Type Description
FutureResourcesSpec.Builder

clearTimeRangeSpec()

public FutureResourcesSpec.Builder clearTimeRangeSpec()

Specification of a time range in which the resources may be created. The time range specifies start of resource use and planned end of resource use.

optional .google.cloud.compute.v1.FlexibleTimeRange time_range_spec = 116516399;

Returns
Type Description
FutureResourcesSpec.Builder

clone()

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

getDefaultInstanceForType()

public FutureResourcesSpec getDefaultInstanceForType()
Returns
Type Description
FutureResourcesSpec

getDeploymentType()

public String getDeploymentType()

Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). Defaults to DENSE. Check the DeploymentType enum for the list of possible values.

optional string deployment_type = 396722292;

Returns
Type Description
String

The deploymentType.

getDeploymentTypeBytes()

public ByteString getDeploymentTypeBytes()

Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). Defaults to DENSE. Check the DeploymentType enum for the list of possible values.

optional string deployment_type = 396722292;

Returns
Type Description
ByteString

The bytes for deploymentType.

getDescriptorForType()

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

getLocationPolicy()

public FutureResourcesSpecLocationPolicy getLocationPolicy()

Optional location policy allowing to exclude some zone(s) in which the resources must not be created.

optional .google.cloud.compute.v1.FutureResourcesSpecLocationPolicy location_policy = 465689852;

Returns
Type Description
FutureResourcesSpecLocationPolicy

The locationPolicy.

getLocationPolicyBuilder()

public FutureResourcesSpecLocationPolicy.Builder getLocationPolicyBuilder()

Optional location policy allowing to exclude some zone(s) in which the resources must not be created.

optional .google.cloud.compute.v1.FutureResourcesSpecLocationPolicy location_policy = 465689852;

Returns
Type Description
FutureResourcesSpecLocationPolicy.Builder

getLocationPolicyOrBuilder()

public FutureResourcesSpecLocationPolicyOrBuilder getLocationPolicyOrBuilder()

Optional location policy allowing to exclude some zone(s) in which the resources must not be created.

optional .google.cloud.compute.v1.FutureResourcesSpecLocationPolicy location_policy = 465689852;

Returns
Type Description
FutureResourcesSpecLocationPolicyOrBuilder

getTargetResources()

public FutureResourcesSpecTargetResources getTargetResources()

Specification of the reserved resources.

optional .google.cloud.compute.v1.FutureResourcesSpecTargetResources target_resources = 528230647;

Returns
Type Description
FutureResourcesSpecTargetResources

The targetResources.

getTargetResourcesBuilder()

public FutureResourcesSpecTargetResources.Builder getTargetResourcesBuilder()

Specification of the reserved resources.

optional .google.cloud.compute.v1.FutureResourcesSpecTargetResources target_resources = 528230647;

Returns
Type Description
FutureResourcesSpecTargetResources.Builder

getTargetResourcesOrBuilder()

public FutureResourcesSpecTargetResourcesOrBuilder getTargetResourcesOrBuilder()

Specification of the reserved resources.

optional .google.cloud.compute.v1.FutureResourcesSpecTargetResources target_resources = 528230647;

Returns
Type Description
FutureResourcesSpecTargetResourcesOrBuilder

getTimeRangeSpec()

public FlexibleTimeRange getTimeRangeSpec()

Specification of a time range in which the resources may be created. The time range specifies start of resource use and planned end of resource use.

optional .google.cloud.compute.v1.FlexibleTimeRange time_range_spec = 116516399;

Returns
Type Description
FlexibleTimeRange

The timeRangeSpec.

getTimeRangeSpecBuilder()

public FlexibleTimeRange.Builder getTimeRangeSpecBuilder()

Specification of a time range in which the resources may be created. The time range specifies start of resource use and planned end of resource use.

optional .google.cloud.compute.v1.FlexibleTimeRange time_range_spec = 116516399;

Returns
Type Description
FlexibleTimeRange.Builder

getTimeRangeSpecOrBuilder()

public FlexibleTimeRangeOrBuilder getTimeRangeSpecOrBuilder()

Specification of a time range in which the resources may be created. The time range specifies start of resource use and planned end of resource use.

optional .google.cloud.compute.v1.FlexibleTimeRange time_range_spec = 116516399;

Returns
Type Description
FlexibleTimeRangeOrBuilder

hasDeploymentType()

public boolean hasDeploymentType()

Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). Defaults to DENSE. Check the DeploymentType enum for the list of possible values.

optional string deployment_type = 396722292;

Returns
Type Description
boolean

Whether the deploymentType field is set.

hasLocationPolicy()

public boolean hasLocationPolicy()

Optional location policy allowing to exclude some zone(s) in which the resources must not be created.

optional .google.cloud.compute.v1.FutureResourcesSpecLocationPolicy location_policy = 465689852;

Returns
Type Description
boolean

Whether the locationPolicy field is set.

hasTargetResources()

public boolean hasTargetResources()

Specification of the reserved resources.

optional .google.cloud.compute.v1.FutureResourcesSpecTargetResources target_resources = 528230647;

Returns
Type Description
boolean

Whether the targetResources field is set.

hasTimeRangeSpec()

public boolean hasTimeRangeSpec()

Specification of a time range in which the resources may be created. The time range specifies start of resource use and planned end of resource use.

optional .google.cloud.compute.v1.FlexibleTimeRange time_range_spec = 116516399;

Returns
Type Description
boolean

Whether the timeRangeSpec field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FutureResourcesSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLocationPolicy(FutureResourcesSpecLocationPolicy value)

public FutureResourcesSpec.Builder mergeLocationPolicy(FutureResourcesSpecLocationPolicy value)

Optional location policy allowing to exclude some zone(s) in which the resources must not be created.

optional .google.cloud.compute.v1.FutureResourcesSpecLocationPolicy location_policy = 465689852;

Parameter
Name Description
value FutureResourcesSpecLocationPolicy
Returns
Type Description
FutureResourcesSpec.Builder

mergeTargetResources(FutureResourcesSpecTargetResources value)

public FutureResourcesSpec.Builder mergeTargetResources(FutureResourcesSpecTargetResources value)

Specification of the reserved resources.

optional .google.cloud.compute.v1.FutureResourcesSpecTargetResources target_resources = 528230647;

Parameter
Name Description
value FutureResourcesSpecTargetResources
Returns
Type Description
FutureResourcesSpec.Builder

mergeTimeRangeSpec(FlexibleTimeRange value)

public FutureResourcesSpec.Builder mergeTimeRangeSpec(FlexibleTimeRange value)

Specification of a time range in which the resources may be created. The time range specifies start of resource use and planned end of resource use.

optional .google.cloud.compute.v1.FlexibleTimeRange time_range_spec = 116516399;

Parameter
Name Description
value FlexibleTimeRange
Returns
Type Description
FutureResourcesSpec.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDeploymentType(String value)

public FutureResourcesSpec.Builder setDeploymentType(String value)

Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). Defaults to DENSE. Check the DeploymentType enum for the list of possible values.

optional string deployment_type = 396722292;

Parameter
Name Description
value String

The deploymentType to set.

Returns
Type Description
FutureResourcesSpec.Builder

This builder for chaining.

setDeploymentTypeBytes(ByteString value)

public FutureResourcesSpec.Builder setDeploymentTypeBytes(ByteString value)

Indicates if the reservation allocation strategy is static (DENSE) or dynamic (STANDARD). Defaults to DENSE. Check the DeploymentType enum for the list of possible values.

optional string deployment_type = 396722292;

Parameter
Name Description
value ByteString

The bytes for deploymentType to set.

Returns
Type Description
FutureResourcesSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLocationPolicy(FutureResourcesSpecLocationPolicy value)

public FutureResourcesSpec.Builder setLocationPolicy(FutureResourcesSpecLocationPolicy value)

Optional location policy allowing to exclude some zone(s) in which the resources must not be created.

optional .google.cloud.compute.v1.FutureResourcesSpecLocationPolicy location_policy = 465689852;

Parameter
Name Description
value FutureResourcesSpecLocationPolicy
Returns
Type Description
FutureResourcesSpec.Builder

setLocationPolicy(FutureResourcesSpecLocationPolicy.Builder builderForValue)

public FutureResourcesSpec.Builder setLocationPolicy(FutureResourcesSpecLocationPolicy.Builder builderForValue)

Optional location policy allowing to exclude some zone(s) in which the resources must not be created.

optional .google.cloud.compute.v1.FutureResourcesSpecLocationPolicy location_policy = 465689852;

Parameter
Name Description
builderForValue FutureResourcesSpecLocationPolicy.Builder
Returns
Type Description
FutureResourcesSpec.Builder

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

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

setTargetResources(FutureResourcesSpecTargetResources value)

public FutureResourcesSpec.Builder setTargetResources(FutureResourcesSpecTargetResources value)

Specification of the reserved resources.

optional .google.cloud.compute.v1.FutureResourcesSpecTargetResources target_resources = 528230647;

Parameter
Name Description
value FutureResourcesSpecTargetResources
Returns
Type Description
FutureResourcesSpec.Builder

setTargetResources(FutureResourcesSpecTargetResources.Builder builderForValue)

public FutureResourcesSpec.Builder setTargetResources(FutureResourcesSpecTargetResources.Builder builderForValue)

Specification of the reserved resources.

optional .google.cloud.compute.v1.FutureResourcesSpecTargetResources target_resources = 528230647;

Parameter
Name Description
builderForValue FutureResourcesSpecTargetResources.Builder
Returns
Type Description
FutureResourcesSpec.Builder

setTimeRangeSpec(FlexibleTimeRange value)

public FutureResourcesSpec.Builder setTimeRangeSpec(FlexibleTimeRange value)

Specification of a time range in which the resources may be created. The time range specifies start of resource use and planned end of resource use.

optional .google.cloud.compute.v1.FlexibleTimeRange time_range_spec = 116516399;

Parameter
Name Description
value FlexibleTimeRange
Returns
Type Description
FutureResourcesSpec.Builder

setTimeRangeSpec(FlexibleTimeRange.Builder builderForValue)

public FutureResourcesSpec.Builder setTimeRangeSpec(FlexibleTimeRange.Builder builderForValue)

Specification of a time range in which the resources may be created. The time range specifies start of resource use and planned end of resource use.

optional .google.cloud.compute.v1.FlexibleTimeRange time_range_spec = 116516399;

Parameter
Name Description
builderForValue FlexibleTimeRange.Builder
Returns
Type Description
FutureResourcesSpec.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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