Class SkuInstance.Builder (0.8.0)

public static final class SkuInstance.Builder extends GeneratedMessageV3.Builder<SkuInstance.Builder> implements SkuInstanceOrBuilder

A specific instance of the SKU.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.SkuInstance

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SkuInstance.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SkuInstance.Builder
Overrides

build()

public SkuInstance build()
Returns
Type Description
SkuInstance

buildPartial()

public SkuInstance buildPartial()
Returns
Type Description
SkuInstance

clear()

public SkuInstance.Builder clear()
Returns
Type Description
SkuInstance.Builder
Overrides

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
Type Description
SkuInstance.Builder

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
Type Description
SkuInstance.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SkuInstance.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SkuInstance.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SkuInstance.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SkuInstance.Builder
Overrides

clearPowerSupply()

public SkuInstance.Builder clearPowerSupply()

Power supply type for this instance.

.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2;

Returns
Type Description
SkuInstance.Builder

This builder for chaining.

clearRegionCode()

public SkuInstance.Builder clearRegionCode()

The Unicode CLDR region code where this instance is available.

string region_code = 1;

Returns
Type Description
SkuInstance.Builder

This builder for chaining.

clearSubscriptionDurationMonths()

public SkuInstance.Builder clearSubscriptionDurationMonths()

Subscription duration for the hardware in months.

int32 subscription_duration_months = 5;

Returns
Type Description
SkuInstance.Builder

This builder for chaining.

clone()

public SkuInstance.Builder clone()
Returns
Type Description
SkuInstance.Builder
Overrides

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;

Returns
Type Description
String

The billingSku.

getBillingSkuBytes()

public 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;

Returns
Type Description
ByteString

The bytes for billingSku.

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;

Returns
Type Description
String

The billingSkuPerVcpu.

getBillingSkuPerVcpuBytes()

public 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;

Returns
Type Description
ByteString

The bytes for billingSkuPerVcpu.

getDefaultInstanceForType()

public SkuInstance getDefaultInstanceForType()
Returns
Type Description
SkuInstance

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPowerSupply()

public PowerSupply getPowerSupply()

Power supply type for this instance.

.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2;

Returns
Type Description
PowerSupply

The powerSupply.

getPowerSupplyValue()

public int getPowerSupplyValue()

Power supply type for this instance.

.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2;

Returns
Type Description
int

The enum numeric value on the wire for powerSupply.

getRegionCode()

public String getRegionCode()

The Unicode CLDR region code where this instance is available.

string region_code = 1;

Returns
Type Description
String

The regionCode.

getRegionCodeBytes()

public ByteString getRegionCodeBytes()

The Unicode CLDR region code where this instance is available.

string region_code = 1;

Returns
Type Description
ByteString

The bytes for regionCode.

getSubscriptionDurationMonths()

public int getSubscriptionDurationMonths()

Subscription duration for the hardware in months.

int32 subscription_duration_months = 5;

Returns
Type Description
int

The subscriptionDurationMonths.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SkuInstance other)

public SkuInstance.Builder mergeFrom(SkuInstance other)
Parameter
Name Description
other SkuInstance
Returns
Type Description
SkuInstance.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SkuInstance.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SkuInstance.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SkuInstance.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SkuInstance.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SkuInstance.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SkuInstance.Builder
Overrides

setBillingSku(String value)

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;

Parameter
Name Description
value String

The billingSku to set.

Returns
Type Description
SkuInstance.Builder

This builder for chaining.

setBillingSkuBytes(ByteString value)

public SkuInstance.Builder setBillingSkuBytes(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;

Parameter
Name Description
value ByteString

The bytes for billingSku to set.

Returns
Type Description
SkuInstance.Builder

This builder for chaining.

setBillingSkuPerVcpu(String value)

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;

Parameter
Name Description
value String

The billingSkuPerVcpu to set.

Returns
Type Description
SkuInstance.Builder

This builder for chaining.

setBillingSkuPerVcpuBytes(ByteString value)

public SkuInstance.Builder setBillingSkuPerVcpuBytes(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;

Parameter
Name Description
value ByteString

The bytes for billingSkuPerVcpu to set.

Returns
Type Description
SkuInstance.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SkuInstance.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SkuInstance.Builder
Overrides

setPowerSupply(PowerSupply value)

public SkuInstance.Builder setPowerSupply(PowerSupply value)

Power supply type for this instance.

.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2;

Parameter
Name Description
value PowerSupply

The powerSupply to set.

Returns
Type Description
SkuInstance.Builder

This builder for chaining.

setPowerSupplyValue(int value)

public SkuInstance.Builder setPowerSupplyValue(int value)

Power supply type for this instance.

.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for powerSupply to set.

Returns
Type Description
SkuInstance.Builder

This builder for chaining.

setRegionCode(String value)

public SkuInstance.Builder setRegionCode(String value)

The Unicode CLDR region code where this instance is available.

string region_code = 1;

Parameter
Name Description
value String

The regionCode to set.

Returns
Type Description
SkuInstance.Builder

This builder for chaining.

setRegionCodeBytes(ByteString value)

public SkuInstance.Builder setRegionCodeBytes(ByteString value)

The Unicode CLDR region code where this instance is available.

string region_code = 1;

Parameter
Name Description
value ByteString

The bytes for regionCode to set.

Returns
Type Description
SkuInstance.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SkuInstance.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SkuInstance.Builder
Overrides

setSubscriptionDurationMonths(int value)

public SkuInstance.Builder setSubscriptionDurationMonths(int value)

Subscription duration for the hardware in months.

int32 subscription_duration_months = 5;

Parameter
Name Description
value int

The subscriptionDurationMonths to set.

Returns
Type Description
SkuInstance.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SkuInstance.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SkuInstance.Builder
Overrides