Class FutureResourcesSpec (1.92.0)
Version latestkeyboard_arrow_down
public final class FutureResourcesSpec extends GeneratedMessageV3 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
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
DEPLOYMENT_TYPE_FIELD_NUMBER
public static final int DEPLOYMENT_TYPE_FIELD_NUMBER
Field Value
Type
Description
int
LOCATION_POLICY_FIELD_NUMBER
public static final int LOCATION_POLICY_FIELD_NUMBER
Field Value
Type
Description
int
TARGET_RESOURCES_FIELD_NUMBER
public static final int TARGET_RESOURCES_FIELD_NUMBER
Field Value
Type
Description
int
TIME_RANGE_SPEC_FIELD_NUMBER
public static final int TIME_RANGE_SPEC_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
getDefaultInstance()
public static FutureResourcesSpec getDefaultInstance ()
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
newBuilder()
public static FutureResourcesSpec . Builder newBuilder ()
newBuilder(FutureResourcesSpec prototype)
public static FutureResourcesSpec . Builder newBuilder ( FutureResourcesSpec prototype )
public static FutureResourcesSpec parseDelimitedFrom ( InputStream input )
public static FutureResourcesSpec parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(byte[] data)
public static FutureResourcesSpec parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static FutureResourcesSpec parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteString data)
public static FutureResourcesSpec parseFrom ( ByteString data )
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static FutureResourcesSpec parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static FutureResourcesSpec parseFrom ( CodedInputStream input )
public static FutureResourcesSpec parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static FutureResourcesSpec parseFrom ( InputStream input )
public static FutureResourcesSpec parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
parseFrom(ByteBuffer data)
public static FutureResourcesSpec parseFrom ( ByteBuffer data )
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static FutureResourcesSpec parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
parser()
public static Parser<FutureResourcesSpec> parser ()
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getDefaultInstanceForType()
public FutureResourcesSpec getDefaultInstanceForType ()
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.
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;
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;
getParserForType()
public Parser<FutureResourcesSpec> getParserForType ()
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
getTargetResources()
public FutureResourcesSpecTargetResources getTargetResources ()
Specification of the reserved resources.
optional .google.cloud.compute.v1.FutureResourcesSpecTargetResources target_resources = 528230647;
getTargetResourcesOrBuilder()
public FutureResourcesSpecTargetResourcesOrBuilder getTargetResourcesOrBuilder ()
Specification of the reserved resources.
optional .google.cloud.compute.v1.FutureResourcesSpecTargetResources target_resources = 528230647;
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;
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;
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.
hashCode()
Returns
Type
Description
int
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
newBuilderForType()
public FutureResourcesSpec . Builder newBuilderForType ()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected FutureResourcesSpec . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
toBuilder()
public FutureResourcesSpec . 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 2026-01-24 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 2026-01-24 UTC."],[],[]]