Class SkuInstance.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SkuInstance.Builder>
com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance.Builder
All Implemented Interfaces:
SkuInstanceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SkuInstance

public static final class SkuInstance.Builder extends com.google.protobuf.GeneratedMessage.Builder<SkuInstance.Builder> implements SkuInstanceOrBuilder
 A specific instance of the SKU.
 
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.SkuInstance
  • 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<SkuInstance.Builder>
    • clear

      public SkuInstance.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<SkuInstance.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<SkuInstance.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SkuInstance.Builder mergeFrom(SkuInstance other)
    • isInitialized

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

      public SkuInstance.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<SkuInstance.Builder>
      Throws:
      IOException
    • getRegionCode

      public String getRegionCode()
       The [Unicode CLDR](https://cldr.unicode.org) region code where this
       instance is available.
       
      string region_code = 1;
      Specified by:
      getRegionCode in interface SkuInstanceOrBuilder
      Returns:
      The regionCode.
    • getRegionCodeBytes

      public com.google.protobuf.ByteString getRegionCodeBytes()
       The [Unicode CLDR](https://cldr.unicode.org) region code where this
       instance is available.
       
      string region_code = 1;
      Specified by:
      getRegionCodeBytes in interface SkuInstanceOrBuilder
      Returns:
      The bytes for regionCode.
    • setRegionCode

      public SkuInstance.Builder setRegionCode(String value)
       The [Unicode CLDR](https://cldr.unicode.org) region code where this
       instance is available.
       
      string region_code = 1;
      Parameters:
      value - The regionCode to set.
      Returns:
      This builder for chaining.
    • clearRegionCode

      public SkuInstance.Builder clearRegionCode()
       The [Unicode CLDR](https://cldr.unicode.org) region code where this
       instance is available.
       
      string region_code = 1;
      Returns:
      This builder for chaining.
    • setRegionCodeBytes

      public SkuInstance.Builder setRegionCodeBytes(com.google.protobuf.ByteString value)
       The [Unicode CLDR](https://cldr.unicode.org) region code where this
       instance is available.
       
      string region_code = 1;
      Parameters:
      value - The bytes for regionCode to set.
      Returns:
      This builder for chaining.
    • getPowerSupplyValue

      public int getPowerSupplyValue()
       Power supply type for this instance.
       
      .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2;
      Specified by:
      getPowerSupplyValue in interface SkuInstanceOrBuilder
      Returns:
      The enum numeric value on the wire for powerSupply.
    • setPowerSupplyValue

      public SkuInstance.Builder setPowerSupplyValue(int value)
       Power supply type for this instance.
       
      .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2;
      Parameters:
      value - The enum numeric value on the wire for powerSupply to set.
      Returns:
      This builder for chaining.
    • getPowerSupply

      public PowerSupply getPowerSupply()
       Power supply type for this instance.
       
      .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2;
      Specified by:
      getPowerSupply in interface SkuInstanceOrBuilder
      Returns:
      The powerSupply.
    • setPowerSupply

      public SkuInstance.Builder setPowerSupply(PowerSupply value)
       Power supply type for this instance.
       
      .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2;
      Parameters:
      value - The powerSupply to set.
      Returns:
      This builder for chaining.
    • clearPowerSupply

      public SkuInstance.Builder clearPowerSupply()
       Power supply type for this instance.
       
      .google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2;
      Returns:
      This builder for chaining.
    • getBillingSku

      public String getBillingSku()
       Reference to the corresponding SKU in the Cloud Billing API.
       The estimated price information can be retrieved using that API.
       Format: `services/{service}/skus/{sku}`
       
      string billing_sku = 3;
      Specified by:
      getBillingSku in interface SkuInstanceOrBuilder
      Returns:
      The billingSku.
    • getBillingSkuBytes

      public com.google.protobuf.ByteString getBillingSkuBytes()
       Reference to the corresponding SKU in the Cloud Billing API.
       The estimated price information can be retrieved using that API.
       Format: `services/{service}/skus/{sku}`
       
      string billing_sku = 3;
      Specified by:
      getBillingSkuBytes in interface SkuInstanceOrBuilder
      Returns:
      The bytes for billingSku.
    • setBillingSku

      public SkuInstance.Builder setBillingSku(String value)
       Reference to the corresponding SKU in the Cloud Billing API.
       The estimated price information can be retrieved using that API.
       Format: `services/{service}/skus/{sku}`
       
      string billing_sku = 3;
      Parameters:
      value - The billingSku to set.
      Returns:
      This builder for chaining.
    • clearBillingSku

      public SkuInstance.Builder clearBillingSku()
       Reference to the corresponding SKU in the Cloud Billing API.
       The estimated price information can be retrieved using that API.
       Format: `services/{service}/skus/{sku}`
       
      string billing_sku = 3;
      Returns:
      This builder for chaining.
    • setBillingSkuBytes

      public SkuInstance.Builder setBillingSkuBytes(com.google.protobuf.ByteString value)
       Reference to the corresponding SKU in the Cloud Billing API.
       The estimated price information can be retrieved using that API.
       Format: `services/{service}/skus/{sku}`
       
      string billing_sku = 3;
      Parameters:
      value - The bytes for billingSku to set.
      Returns:
      This builder for chaining.
    • getBillingSkuPerVcpu

      public String getBillingSkuPerVcpu()
       Reference to the corresponding SKU per vCPU in the Cloud Billing API.
       The estimated price information can be retrieved using that API.
       Format: `services/{service}/skus/{sku}`
       
      string billing_sku_per_vcpu = 4;
      Specified by:
      getBillingSkuPerVcpu in interface SkuInstanceOrBuilder
      Returns:
      The billingSkuPerVcpu.
    • getBillingSkuPerVcpuBytes

      public com.google.protobuf.ByteString getBillingSkuPerVcpuBytes()
       Reference to the corresponding SKU per vCPU in the Cloud Billing API.
       The estimated price information can be retrieved using that API.
       Format: `services/{service}/skus/{sku}`
       
      string billing_sku_per_vcpu = 4;
      Specified by:
      getBillingSkuPerVcpuBytes in interface SkuInstanceOrBuilder
      Returns:
      The bytes for billingSkuPerVcpu.
    • setBillingSkuPerVcpu

      public SkuInstance.Builder setBillingSkuPerVcpu(String value)
       Reference to the corresponding SKU per vCPU in the Cloud Billing API.
       The estimated price information can be retrieved using that API.
       Format: `services/{service}/skus/{sku}`
       
      string billing_sku_per_vcpu = 4;
      Parameters:
      value - The billingSkuPerVcpu to set.
      Returns:
      This builder for chaining.
    • clearBillingSkuPerVcpu

      public SkuInstance.Builder clearBillingSkuPerVcpu()
       Reference to the corresponding SKU per vCPU in the Cloud Billing API.
       The estimated price information can be retrieved using that API.
       Format: `services/{service}/skus/{sku}`
       
      string billing_sku_per_vcpu = 4;
      Returns:
      This builder for chaining.
    • setBillingSkuPerVcpuBytes

      public SkuInstance.Builder setBillingSkuPerVcpuBytes(com.google.protobuf.ByteString value)
       Reference to the corresponding SKU per vCPU in the Cloud Billing API.
       The estimated price information can be retrieved using that API.
       Format: `services/{service}/skus/{sku}`
       
      string billing_sku_per_vcpu = 4;
      Parameters:
      value - The bytes for billingSkuPerVcpu to set.
      Returns:
      This builder for chaining.
    • getSubscriptionDurationMonths

      public int getSubscriptionDurationMonths()
       Subscription duration for the hardware in months.
       
      int32 subscription_duration_months = 5;
      Specified by:
      getSubscriptionDurationMonths in interface SkuInstanceOrBuilder
      Returns:
      The subscriptionDurationMonths.
    • setSubscriptionDurationMonths

      public SkuInstance.Builder setSubscriptionDurationMonths(int value)
       Subscription duration for the hardware in months.
       
      int32 subscription_duration_months = 5;
      Parameters:
      value - The subscriptionDurationMonths to set.
      Returns:
      This builder for chaining.
    • clearSubscriptionDurationMonths

      public SkuInstance.Builder clearSubscriptionDurationMonths()
       Subscription duration for the hardware in months.
       
      int32 subscription_duration_months = 5;
      Returns:
      This builder for chaining.