Class AllocationSpecificSKUReservation.Builder

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

public static final class AllocationSpecificSKUReservation.Builder extends com.google.protobuf.GeneratedMessage.Builder<AllocationSpecificSKUReservation.Builder> implements AllocationSpecificSKUReservationOrBuilder
 This reservation type allows to pre allocate specific instance
 configuration.
 
Protobuf type google.cloud.compute.v1.AllocationSpecificSKUReservation
  • 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<AllocationSpecificSKUReservation.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<AllocationSpecificSKUReservation.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<AllocationSpecificSKUReservation.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public AllocationSpecificSKUReservation.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<AllocationSpecificSKUReservation.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<AllocationSpecificSKUReservation.Builder>
    • mergeFrom

      public AllocationSpecificSKUReservation.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<AllocationSpecificSKUReservation.Builder>
      Throws:
      IOException
    • hasAssuredCount

      public boolean hasAssuredCount()
       Output only. [Output Only] Indicates how many instances are actually usable currently.
       
      optional int64 assured_count = 281197645;
      Specified by:
      hasAssuredCount in interface AllocationSpecificSKUReservationOrBuilder
      Returns:
      Whether the assuredCount field is set.
    • getAssuredCount

      public long getAssuredCount()
       Output only. [Output Only] Indicates how many instances are actually usable currently.
       
      optional int64 assured_count = 281197645;
      Specified by:
      getAssuredCount in interface AllocationSpecificSKUReservationOrBuilder
      Returns:
      The assuredCount.
    • setAssuredCount

      public AllocationSpecificSKUReservation.Builder setAssuredCount(long value)
       Output only. [Output Only] Indicates how many instances are actually usable currently.
       
      optional int64 assured_count = 281197645;
      Parameters:
      value - The assuredCount to set.
      Returns:
      This builder for chaining.
    • clearAssuredCount

      public AllocationSpecificSKUReservation.Builder clearAssuredCount()
       Output only. [Output Only] Indicates how many instances are actually usable currently.
       
      optional int64 assured_count = 281197645;
      Returns:
      This builder for chaining.
    • hasCount

      public boolean hasCount()
       Specifies the number of resources that are allocated.
       
      optional int64 count = 94851343;
      Specified by:
      hasCount in interface AllocationSpecificSKUReservationOrBuilder
      Returns:
      Whether the count field is set.
    • getCount

      public long getCount()
       Specifies the number of resources that are allocated.
       
      optional int64 count = 94851343;
      Specified by:
      getCount in interface AllocationSpecificSKUReservationOrBuilder
      Returns:
      The count.
    • setCount

      public AllocationSpecificSKUReservation.Builder setCount(long value)
       Specifies the number of resources that are allocated.
       
      optional int64 count = 94851343;
      Parameters:
      value - The count to set.
      Returns:
      This builder for chaining.
    • clearCount

       Specifies the number of resources that are allocated.
       
      optional int64 count = 94851343;
      Returns:
      This builder for chaining.
    • hasInUseCount

      public boolean hasInUseCount()
       Output only. [Output Only] Indicates how many instances are in use.
       
      optional int64 in_use_count = 493458877;
      Specified by:
      hasInUseCount in interface AllocationSpecificSKUReservationOrBuilder
      Returns:
      Whether the inUseCount field is set.
    • getInUseCount

      public long getInUseCount()
       Output only. [Output Only] Indicates how many instances are in use.
       
      optional int64 in_use_count = 493458877;
      Specified by:
      getInUseCount in interface AllocationSpecificSKUReservationOrBuilder
      Returns:
      The inUseCount.
    • setInUseCount

      public AllocationSpecificSKUReservation.Builder setInUseCount(long value)
       Output only. [Output Only] Indicates how many instances are in use.
       
      optional int64 in_use_count = 493458877;
      Parameters:
      value - The inUseCount to set.
      Returns:
      This builder for chaining.
    • clearInUseCount

      public AllocationSpecificSKUReservation.Builder clearInUseCount()
       Output only. [Output Only] Indicates how many instances are in use.
       
      optional int64 in_use_count = 493458877;
      Returns:
      This builder for chaining.
    • hasInstanceProperties

      public boolean hasInstanceProperties()
       The instance properties for the reservation.
       
      optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
      Specified by:
      hasInstanceProperties in interface AllocationSpecificSKUReservationOrBuilder
      Returns:
      Whether the instanceProperties field is set.
    • getInstanceProperties

       The instance properties for the reservation.
       
      optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
      Specified by:
      getInstanceProperties in interface AllocationSpecificSKUReservationOrBuilder
      Returns:
      The instanceProperties.
    • setInstanceProperties

       The instance properties for the reservation.
       
      optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
    • setInstanceProperties

       The instance properties for the reservation.
       
      optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
    • mergeInstanceProperties

       The instance properties for the reservation.
       
      optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
    • clearInstanceProperties

      public AllocationSpecificSKUReservation.Builder clearInstanceProperties()
       The instance properties for the reservation.
       
      optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
    • getInstancePropertiesBuilder

       The instance properties for the reservation.
       
      optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
    • getInstancePropertiesOrBuilder

       The instance properties for the reservation.
       
      optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
      Specified by:
      getInstancePropertiesOrBuilder in interface AllocationSpecificSKUReservationOrBuilder
    • hasSourceInstanceTemplate

      public boolean hasSourceInstanceTemplate()
       Specifies the instance template to create the reservation. If you use
       this field, you must exclude the instanceProperties field.
      
       This field is optional, and it can be a full or partial URL. For example,
       the following are all valid URLs to an instance template:
      
      
       - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate
       - projects/project/global/instanceTemplates/instanceTemplate
       - global/instanceTemplates/instanceTemplate
       
      optional string source_instance_template = 332423616;
      Specified by:
      hasSourceInstanceTemplate in interface AllocationSpecificSKUReservationOrBuilder
      Returns:
      Whether the sourceInstanceTemplate field is set.
    • getSourceInstanceTemplate

      public String getSourceInstanceTemplate()
       Specifies the instance template to create the reservation. If you use
       this field, you must exclude the instanceProperties field.
      
       This field is optional, and it can be a full or partial URL. For example,
       the following are all valid URLs to an instance template:
      
      
       - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate
       - projects/project/global/instanceTemplates/instanceTemplate
       - global/instanceTemplates/instanceTemplate
       
      optional string source_instance_template = 332423616;
      Specified by:
      getSourceInstanceTemplate in interface AllocationSpecificSKUReservationOrBuilder
      Returns:
      The sourceInstanceTemplate.
    • getSourceInstanceTemplateBytes

      public com.google.protobuf.ByteString getSourceInstanceTemplateBytes()
       Specifies the instance template to create the reservation. If you use
       this field, you must exclude the instanceProperties field.
      
       This field is optional, and it can be a full or partial URL. For example,
       the following are all valid URLs to an instance template:
      
      
       - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate
       - projects/project/global/instanceTemplates/instanceTemplate
       - global/instanceTemplates/instanceTemplate
       
      optional string source_instance_template = 332423616;
      Specified by:
      getSourceInstanceTemplateBytes in interface AllocationSpecificSKUReservationOrBuilder
      Returns:
      The bytes for sourceInstanceTemplate.
    • setSourceInstanceTemplate

      public AllocationSpecificSKUReservation.Builder setSourceInstanceTemplate(String value)
       Specifies the instance template to create the reservation. If you use
       this field, you must exclude the instanceProperties field.
      
       This field is optional, and it can be a full or partial URL. For example,
       the following are all valid URLs to an instance template:
      
      
       - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate
       - projects/project/global/instanceTemplates/instanceTemplate
       - global/instanceTemplates/instanceTemplate
       
      optional string source_instance_template = 332423616;
      Parameters:
      value - The sourceInstanceTemplate to set.
      Returns:
      This builder for chaining.
    • clearSourceInstanceTemplate

      public AllocationSpecificSKUReservation.Builder clearSourceInstanceTemplate()
       Specifies the instance template to create the reservation. If you use
       this field, you must exclude the instanceProperties field.
      
       This field is optional, and it can be a full or partial URL. For example,
       the following are all valid URLs to an instance template:
      
      
       - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate
       - projects/project/global/instanceTemplates/instanceTemplate
       - global/instanceTemplates/instanceTemplate
       
      optional string source_instance_template = 332423616;
      Returns:
      This builder for chaining.
    • setSourceInstanceTemplateBytes

      public AllocationSpecificSKUReservation.Builder setSourceInstanceTemplateBytes(com.google.protobuf.ByteString value)
       Specifies the instance template to create the reservation. If you use
       this field, you must exclude the instanceProperties field.
      
       This field is optional, and it can be a full or partial URL. For example,
       the following are all valid URLs to an instance template:
      
      
       - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate
       - projects/project/global/instanceTemplates/instanceTemplate
       - global/instanceTemplates/instanceTemplate
       
      optional string source_instance_template = 332423616;
      Parameters:
      value - The bytes for sourceInstanceTemplate to set.
      Returns:
      This builder for chaining.