Class AllocationSpecificSKUReservation.Builder

    • Method Detail

      • 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.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.GeneratedMessageV3.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

        public AllocationSpecificSKUReservation 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AllocationSpecificSKUReservation.Builder>
      • 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.
      • setAssuredCount

        public AllocationSpecificSKUReservation.Builder setAssuredCount​(long value)
         [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] 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.
      • 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.
      • 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.
      • setInUseCount

        public AllocationSpecificSKUReservation.Builder setInUseCount​(long value)
         [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] 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.
      • clearInstanceProperties

        public AllocationSpecificSKUReservation.Builder clearInstanceProperties()
         The instance properties for the reservation.
         
        optional .google.cloud.compute.v1.AllocationSpecificSKUAllocationReservedInstanceProperties instance_properties = 215355165;
      • 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.