Class SkuInstance (0.7.0)

public final class SkuInstance extends GeneratedMessageV3 implements SkuInstanceOrBuilder

A specific instance of the SKU.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.SkuInstance

Static Fields

BILLING_SKU_FIELD_NUMBER

public static final int BILLING_SKU_FIELD_NUMBER
Field Value
Type Description
int

BILLING_SKU_PER_VCPU_FIELD_NUMBER

public static final int BILLING_SKU_PER_VCPU_FIELD_NUMBER
Field Value
Type Description
int

POWER_SUPPLY_FIELD_NUMBER

public static final int POWER_SUPPLY_FIELD_NUMBER
Field Value
Type Description
int

REGION_CODE_FIELD_NUMBER

public static final int REGION_CODE_FIELD_NUMBER
Field Value
Type Description
int

SUBSCRIPTION_DURATION_MONTHS_FIELD_NUMBER

public static final int SUBSCRIPTION_DURATION_MONTHS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SkuInstance getDefaultInstance()
Returns
Type Description
SkuInstance

getDescriptor()

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

newBuilder()

public static SkuInstance.Builder newBuilder()
Returns
Type Description
SkuInstance.Builder

newBuilder(SkuInstance prototype)

public static SkuInstance.Builder newBuilder(SkuInstance prototype)
Parameter
Name Description
prototype SkuInstance
Returns
Type Description
SkuInstance.Builder

parseDelimitedFrom(InputStream input)

public static SkuInstance parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SkuInstance
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SkuInstance parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SkuInstance
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SkuInstance parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SkuInstance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SkuInstance parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SkuInstance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SkuInstance parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SkuInstance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SkuInstance parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SkuInstance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SkuInstance parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SkuInstance
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SkuInstance parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SkuInstance
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SkuInstance parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SkuInstance
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SkuInstance parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SkuInstance
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SkuInstance parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SkuInstance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SkuInstance parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SkuInstance
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SkuInstance> parser()
Returns
Type Description
Parser<SkuInstance>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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

getParserForType()

public Parser<SkuInstance> getParserForType()
Returns
Type Description
Parser<SkuInstance>
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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSubscriptionDurationMonths()

public int getSubscriptionDurationMonths()

Subscription duration for the hardware in months.

int32 subscription_duration_months = 5;

Returns
Type Description
int

The subscriptionDurationMonths.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SkuInstance.Builder newBuilderForType()
Returns
Type Description
SkuInstance.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SkuInstance.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SkuInstance.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SkuInstance.Builder toBuilder()
Returns
Type Description
SkuInstance.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException