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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Reference to the corresponding SKU in the Cloud Billing API.Reference to the corresponding SKU per vCPU in the Cloud Billing API.Power supply type for this instance.The [Unicode CLDR](https://cldr.unicode.org) region code where this instance is available.Subscription duration for the hardware in months.Reference to the corresponding SKU in the Cloud Billing API.com.google.protobuf.ByteStringReference to the corresponding SKU in the Cloud Billing API.Reference to the corresponding SKU per vCPU in the Cloud Billing API.com.google.protobuf.ByteStringReference to the corresponding SKU per vCPU in the Cloud Billing API.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorPower supply type for this instance.intPower supply type for this instance.The [Unicode CLDR](https://cldr.unicode.org) region code where this instance is available.com.google.protobuf.ByteStringThe [Unicode CLDR](https://cldr.unicode.org) region code where this instance is available.intSubscription duration for the hardware in months.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SkuInstance other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setBillingSku(String value) Reference to the corresponding SKU in the Cloud Billing API.setBillingSkuBytes(com.google.protobuf.ByteString value) Reference to the corresponding SKU in the Cloud Billing API.setBillingSkuPerVcpu(String value) Reference to the corresponding SKU per vCPU in the Cloud Billing API.setBillingSkuPerVcpuBytes(com.google.protobuf.ByteString value) Reference to the corresponding SKU per vCPU in the Cloud Billing API.setPowerSupply(PowerSupply value) Power supply type for this instance.setPowerSupplyValue(int value) Power supply type for this instance.setRegionCode(String value) The [Unicode CLDR](https://cldr.unicode.org) region code where this instance is available.setRegionCodeBytes(com.google.protobuf.ByteString value) The [Unicode CLDR](https://cldr.unicode.org) region code where this instance is available.setSubscriptionDurationMonths(int value) Subscription duration for the hardware in months.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SkuInstance.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SkuInstance.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SkuInstance.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SkuInstance.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SkuInstance.Builder>- Throws:
IOException
-
getRegionCode
The [Unicode CLDR](https://cldr.unicode.org) region code where this instance is available.
string region_code = 1;- Specified by:
getRegionCodein interfaceSkuInstanceOrBuilder- 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:
getRegionCodeBytesin interfaceSkuInstanceOrBuilder- Returns:
- The bytes for regionCode.
-
setRegionCode
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
The [Unicode CLDR](https://cldr.unicode.org) region code where this instance is available.
string region_code = 1;- Returns:
- This builder for chaining.
-
setRegionCodeBytes
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:
getPowerSupplyValuein interfaceSkuInstanceOrBuilder- Returns:
- The enum numeric value on the wire for powerSupply.
-
setPowerSupplyValue
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
Power supply type for this instance.
.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2;- Specified by:
getPowerSupplyin interfaceSkuInstanceOrBuilder- Returns:
- The powerSupply.
-
setPowerSupply
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
Power supply type for this instance.
.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2;- Returns:
- This builder for chaining.
-
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:
getBillingSkuin interfaceSkuInstanceOrBuilder- 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:
getBillingSkuBytesin interfaceSkuInstanceOrBuilder- Returns:
- The bytes for billingSku.
-
setBillingSku
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
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
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
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:
getBillingSkuPerVcpuin interfaceSkuInstanceOrBuilder- 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:
getBillingSkuPerVcpuBytesin interfaceSkuInstanceOrBuilder- Returns:
- The bytes for billingSkuPerVcpu.
-
setBillingSkuPerVcpu
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
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
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:
getSubscriptionDurationMonthsin interfaceSkuInstanceOrBuilder- Returns:
- The subscriptionDurationMonths.
-
setSubscriptionDurationMonths
Subscription duration for the hardware in months.
int32 subscription_duration_months = 5;- Parameters:
value- The subscriptionDurationMonths to set.- Returns:
- This builder for chaining.
-
clearSubscriptionDurationMonths
Subscription duration for the hardware in months.
int32 subscription_duration_months = 5;- Returns:
- This builder for chaining.
-