Class FutureResourcesSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FutureResourcesSpec.Builder>
com.google.cloud.compute.v1.FutureResourcesSpec.Builder
All Implemented Interfaces:
FutureResourcesSpecOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
FutureResourcesSpec

public static final class FutureResourcesSpec.Builder extends com.google.protobuf.GeneratedMessage.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
  • 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.Builder<FutureResourcesSpec.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<FutureResourcesSpec.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FutureResourcesSpec.Builder>
    • getDefaultInstanceForType

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

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

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

      public FutureResourcesSpec.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FutureResourcesSpec.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<FutureResourcesSpec.Builder>
    • mergeFrom

      public FutureResourcesSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FutureResourcesSpec.Builder>
      Throws:
      IOException
    • 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.
    • setDeploymentType

      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;
      Parameters:
      value - The deploymentType to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setDeploymentTypeBytes

      public FutureResourcesSpec.Builder setDeploymentTypeBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for deploymentType to set.
      Returns:
      This builder for chaining.
    • 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.
    • setLocationPolicy

       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;
    • setLocationPolicy

      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;
    • mergeLocationPolicy

       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;
    • 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;
    • 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;
    • 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.
    • setTargetResources

       Specification of the reserved resources.
       
      optional .google.cloud.compute.v1.FutureResourcesSpecTargetResources target_resources = 528230647;
    • setTargetResources

      public FutureResourcesSpec.Builder setTargetResources(FutureResourcesSpecTargetResources.Builder builderForValue)
       Specification of the reserved resources.
       
      optional .google.cloud.compute.v1.FutureResourcesSpecTargetResources target_resources = 528230647;
    • mergeTargetResources

       Specification of the reserved resources.
       
      optional .google.cloud.compute.v1.FutureResourcesSpecTargetResources target_resources = 528230647;
    • clearTargetResources

      public FutureResourcesSpec.Builder clearTargetResources()
       Specification of the reserved resources.
       
      optional .google.cloud.compute.v1.FutureResourcesSpecTargetResources target_resources = 528230647;
    • getTargetResourcesBuilder

      public FutureResourcesSpecTargetResources.Builder getTargetResourcesBuilder()
       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;
      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.
    • setTimeRangeSpec

      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;
    • setTimeRangeSpec

      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;
    • mergeTimeRangeSpec

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