Class FutureResourcesSpec

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.FutureResourcesSpec
All Implemented Interfaces:
FutureResourcesSpecOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class FutureResourcesSpec extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • DEPLOYMENT_TYPE_FIELD_NUMBER

      public static final int DEPLOYMENT_TYPE_FIELD_NUMBER
      See Also:
    • LOCATION_POLICY_FIELD_NUMBER

      public static final int LOCATION_POLICY_FIELD_NUMBER
      See Also:
    • TARGET_RESOURCES_FIELD_NUMBER

      public static final int TARGET_RESOURCES_FIELD_NUMBER
      See Also:
    • TIME_RANGE_SPEC_FIELD_NUMBER

      public static final int TIME_RANGE_SPEC_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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;
      Specified by:
      hasDeploymentType in interface FutureResourcesSpecOrBuilder
      Returns:
      Whether the deploymentType field is set.
    • 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;
      Specified by:
      getDeploymentType in interface FutureResourcesSpecOrBuilder
      Returns:
      The deploymentType.
    • getDeploymentTypeBytes

      public com.google.protobuf.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;
      Specified by:
      getDeploymentTypeBytes in interface FutureResourcesSpecOrBuilder
      Returns:
      The bytes for deploymentType.
    • 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;
      Specified by:
      hasLocationPolicy in interface FutureResourcesSpecOrBuilder
      Returns:
      Whether the locationPolicy field is set.
    • 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;
      Specified by:
      getLocationPolicy in interface FutureResourcesSpecOrBuilder
      Returns:
      The locationPolicy.
    • 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;
      Specified by:
      getLocationPolicyOrBuilder in interface FutureResourcesSpecOrBuilder
    • hasTargetResources

      public boolean hasTargetResources()
       Specification of the reserved resources.
       
      optional .google.cloud.compute.v1.FutureResourcesSpecTargetResources target_resources = 528230647;
      Specified by:
      hasTargetResources in interface FutureResourcesSpecOrBuilder
      Returns:
      Whether the targetResources field is set.
    • getTargetResources

      public FutureResourcesSpecTargetResources getTargetResources()
       Specification of the reserved resources.
       
      optional .google.cloud.compute.v1.FutureResourcesSpecTargetResources target_resources = 528230647;
      Specified by:
      getTargetResources in interface FutureResourcesSpecOrBuilder
      Returns:
      The targetResources.
    • getTargetResourcesOrBuilder

      public FutureResourcesSpecTargetResourcesOrBuilder getTargetResourcesOrBuilder()
       Specification of the reserved resources.
       
      optional .google.cloud.compute.v1.FutureResourcesSpecTargetResources target_resources = 528230647;
      Specified by:
      getTargetResourcesOrBuilder in interface FutureResourcesSpecOrBuilder
    • 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;
      Specified by:
      hasTimeRangeSpec in interface FutureResourcesSpecOrBuilder
      Returns:
      Whether the timeRangeSpec field is set.
    • 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;
      Specified by:
      getTimeRangeSpec in interface FutureResourcesSpecOrBuilder
      Returns:
      The timeRangeSpec.
    • 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;
      Specified by:
      getTimeRangeSpecOrBuilder in interface FutureResourcesSpecOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static FutureResourcesSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FutureResourcesSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FutureResourcesSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FutureResourcesSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FutureResourcesSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FutureResourcesSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FutureResourcesSpec parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FutureResourcesSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FutureResourcesSpec parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FutureResourcesSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FutureResourcesSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FutureResourcesSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public FutureResourcesSpec.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static FutureResourcesSpec.Builder newBuilder()
    • newBuilder

      public static FutureResourcesSpec.Builder newBuilder(FutureResourcesSpec prototype)
    • toBuilder

      public FutureResourcesSpec.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected FutureResourcesSpec.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static FutureResourcesSpec getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<FutureResourcesSpec> parser()
    • getParserForType

      public com.google.protobuf.Parser<FutureResourcesSpec> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public FutureResourcesSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder