Class AllocationSpecificSKUReservation

  • All Implemented Interfaces:
    AllocationSpecificSKUReservationOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class AllocationSpecificSKUReservation
    extends com.google.protobuf.GeneratedMessageV3
    implements AllocationSpecificSKUReservationOrBuilder
     This reservation type allows to pre allocate specific instance configuration. Next ID: 6
     
    Protobuf type google.cloud.compute.v1.AllocationSpecificSKUReservation
    See Also:
    Serialized Form
    • Field Detail

      • ASSURED_COUNT_FIELD_NUMBER

        public static final int ASSURED_COUNT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • IN_USE_COUNT_FIELD_NUMBER

        public static final int IN_USE_COUNT_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INSTANCE_PROPERTIES_FIELD_NUMBER

        public static final int INSTANCE_PROPERTIES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SOURCE_INSTANCE_TEMPLATE_FIELD_NUMBER

        public static final int SOURCE_INSTANCE_TEMPLATE_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasAssuredCount

        public boolean hasAssuredCount()
         [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.
      • 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.
      • hasInUseCount

        public boolean hasInUseCount()
         [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.
      • 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.
      • 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.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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,
                                                                 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
      • newBuilderForType

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

        public AllocationSpecificSKUReservation.Builder 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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