Class SkuInstance
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstance
- All Implemented Interfaces:
SkuInstanceOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class SkuInstance
extends com.google.protobuf.GeneratedMessage
implements SkuInstanceOrBuilder
A specific instance of the SKU.Protobuf type
google.cloud.gdchardwaremanagement.v1alpha.SkuInstance- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA specific instance of the SKU.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanReference 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 SkuInstancestatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<SkuInstance>Power 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.intintSubscription duration for the hardware in months.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic SkuInstance.Builderstatic SkuInstance.BuildernewBuilder(SkuInstance prototype) protected SkuInstance.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SkuInstanceparseDelimitedFrom(InputStream input) static SkuInstanceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SkuInstanceparseFrom(byte[] data) static SkuInstanceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SkuInstanceparseFrom(com.google.protobuf.ByteString data) static SkuInstanceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SkuInstanceparseFrom(com.google.protobuf.CodedInputStream input) static SkuInstanceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SkuInstanceparseFrom(InputStream input) static SkuInstanceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SkuInstanceparseFrom(ByteBuffer data) static SkuInstanceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SkuInstance>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
REGION_CODE_FIELD_NUMBER
public static final int REGION_CODE_FIELD_NUMBER- See Also:
-
POWER_SUPPLY_FIELD_NUMBER
public static final int POWER_SUPPLY_FIELD_NUMBER- See Also:
-
BILLING_SKU_FIELD_NUMBER
public static final int BILLING_SKU_FIELD_NUMBER- See Also:
-
BILLING_SKU_PER_VCPU_FIELD_NUMBER
public static final int BILLING_SKU_PER_VCPU_FIELD_NUMBER- See Also:
-
SUBSCRIPTION_DURATION_MONTHS_FIELD_NUMBER
public static final int SUBSCRIPTION_DURATION_MONTHS_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
getPowerSupply
Power supply type for this instance.
.google.cloud.gdchardwaremanagement.v1alpha.PowerSupply power_supply = 2;- Specified by:
getPowerSupplyin interfaceSkuInstanceOrBuilder- Returns:
- The powerSupply.
-
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.
-
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.
-
getSubscriptionDurationMonths
public int getSubscriptionDurationMonths()Subscription duration for the hardware in months.
int32 subscription_duration_months = 5;- Specified by:
getSubscriptionDurationMonthsin interfaceSkuInstanceOrBuilder- Returns:
- The subscriptionDurationMonths.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SkuInstance parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SkuInstance parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SkuInstance parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SkuInstance parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SkuInstance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SkuInstance parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SkuInstance parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SkuInstance parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SkuInstance parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SkuInstance.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-