Class AllocationSpecificSKUReservation

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

@Generated public final class AllocationSpecificSKUReservation extends com.google.protobuf.GeneratedMessage implements AllocationSpecificSKUReservationOrBuilder
 This reservation type allows to pre allocate specific instance
 configuration.
 
Protobuf type google.cloud.compute.v1.AllocationSpecificSKUReservation
See Also:
  • Field Details

    • ASSURED_COUNT_FIELD_NUMBER

      public static final int ASSURED_COUNT_FIELD_NUMBER
      See Also:
    • COUNT_FIELD_NUMBER

      public static final int COUNT_FIELD_NUMBER
      See Also:
    • IN_USE_COUNT_FIELD_NUMBER

      public static final int IN_USE_COUNT_FIELD_NUMBER
      See Also:
    • INSTANCE_PROPERTIES_FIELD_NUMBER

      public static final int INSTANCE_PROPERTIES_FIELD_NUMBER
      See Also:
    • SOURCE_INSTANCE_TEMPLATE_FIELD_NUMBER

      public static final int SOURCE_INSTANCE_TEMPLATE_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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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 AllocationSpecificSKUReservation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static AllocationSpecificSKUReservation.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static AllocationSpecificSKUReservation getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<AllocationSpecificSKUReservation> 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 AllocationSpecificSKUReservation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder