Class Sku
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.gdchardwaremanagement.v1alpha.Sku
- All Implemented Interfaces:
SkuOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Sku
extends com.google.protobuf.GeneratedMessage
implements SkuOrBuilder
A stock keeping unit (SKU) of GDC hardware.Protobuf type
google.cloud.gdchardwaremanagement.v1alpha.Sku- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA stock keeping unit (SKU) of GDC hardware.static final classInclusive range.static interfacestatic enumValid types of a 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 intstatic final intstatic final intstatic 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 TypeMethodDescriptionbooleanOutput only.Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static SkuOutput only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.getHardwareCountRanges(int index) Output only.intOutput only.Output only.getHardwareCountRangesOrBuilder(int index) Output only.List<? extends Sku.RangeOrBuilder>Output only.getInstances(int index) Output only.intOutput only.Output only.getInstancesOrBuilder(int index) Output only.List<? extends SkuInstanceOrBuilder>Output only.booleanOutput only.getName()Identifier.com.google.protobuf.ByteStringIdentifier.com.google.protobuf.Parser<Sku>Output only.com.google.protobuf.ByteStringOutput only.intgetType()Output only.intOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.intOutput only.booleanOutput only.booleanOutput only.inthashCode()booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Sku.Builderstatic Sku.BuildernewBuilder(Sku prototype) protected Sku.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SkuparseDelimitedFrom(InputStream input) static SkuparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SkuparseFrom(byte[] data) static SkuparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SkuparseFrom(com.google.protobuf.ByteString data) static SkuparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SkuparseFrom(com.google.protobuf.CodedInputStream input) static SkuparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SkuparseFrom(InputStream input) static SkuparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SkuparseFrom(ByteBuffer data) static SkuparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Sku>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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER- See Also:
-
CONFIG_FIELD_NUMBER
public static final int CONFIG_FIELD_NUMBER- See Also:
-
INSTANCES_FIELD_NUMBER
public static final int INSTANCES_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
REVISION_ID_FIELD_NUMBER
public static final int REVISION_ID_FIELD_NUMBER- See Also:
-
IS_ACTIVE_FIELD_NUMBER
public static final int IS_ACTIVE_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
VCPU_COUNT_FIELD_NUMBER
public static final int VCPU_COUNT_FIELD_NUMBER- See Also:
-
HARDWARE_COUNT_RANGES_FIELD_NUMBER
public static final int HARDWARE_COUNT_RANGES_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
-
getName
Identifier. Name of this SKU. Format: `projects/{project}/locations/{location}/skus/{sku}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNamein interfaceSkuOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Identifier. Name of this SKU. Format: `projects/{project}/locations/{location}/skus/{sku}`string name = 1 [(.google.api.field_behavior) = IDENTIFIER];- Specified by:
getNameBytesin interfaceSkuOrBuilder- Returns:
- The bytes for name.
-
getDisplayName
Output only. Display name of this SKU.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDisplayNamein interfaceSkuOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Output only. Display name of this SKU.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDisplayNameBytesin interfaceSkuOrBuilder- Returns:
- The bytes for displayName.
-
hasCreateTime
public boolean hasCreateTime()Output only. Time when this SKU was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceSkuOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Time when this SKU was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceSkuOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Time when this SKU was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceSkuOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. Time when this SKU was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceSkuOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. Time when this SKU was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceSkuOrBuilder- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Time when this SKU was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceSkuOrBuilder
-
hasConfig
public boolean hasConfig()Output only. Configuration for this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasConfigin interfaceSkuOrBuilder- Returns:
- Whether the config field is set.
-
getConfig
Output only. Configuration for this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getConfigin interfaceSkuOrBuilder- Returns:
- The config.
-
getConfigOrBuilder
Output only. Configuration for this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getConfigOrBuilderin interfaceSkuOrBuilder
-
getInstancesList
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstancesListin interfaceSkuOrBuilder
-
getInstancesOrBuilderList
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstancesOrBuilderListin interfaceSkuOrBuilder
-
getInstancesCount
public int getInstancesCount()Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstancesCountin interfaceSkuOrBuilder
-
getInstances
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstancesin interfaceSkuOrBuilder
-
getInstancesOrBuilder
Output only. Available instances of this SKU. This field should be used for checking availability of a SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.SkuInstance instances = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getInstancesOrBuilderin interfaceSkuOrBuilder
-
getDescription
Output only. Description of this SKU.
string description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDescriptionin interfaceSkuOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Output only. Description of this SKU.
string description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDescriptionBytesin interfaceSkuOrBuilder- Returns:
- The bytes for description.
-
getRevisionId
Output only. The SKU revision ID. A new revision is created whenever `config` is updated. The format is an 8-character hexadecimal string.
string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevisionIdin interfaceSkuOrBuilder- Returns:
- The revisionId.
-
getRevisionIdBytes
public com.google.protobuf.ByteString getRevisionIdBytes()Output only. The SKU revision ID. A new revision is created whenever `config` is updated. The format is an 8-character hexadecimal string.
string revision_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getRevisionIdBytesin interfaceSkuOrBuilder- Returns:
- The bytes for revisionId.
-
getIsActive
public boolean getIsActive()Output only. Flag to indicate whether or not this revision is active. Only an active revision can be used in a new Order.
bool is_active = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIsActivein interfaceSkuOrBuilder- Returns:
- The isActive.
-
getTypeValue
public int getTypeValue()Output only. Type of this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTypeValuein interfaceSkuOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
Output only. Type of this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getTypein interfaceSkuOrBuilder- Returns:
- The type.
-
getVcpuCount
public int getVcpuCount()Output only. The vCPU count associated with this SKU.
int32 vcpu_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getVcpuCountin interfaceSkuOrBuilder- Returns:
- The vcpuCount.
-
getHardwareCountRangesList
Output only. The inclusive ranges of hardware counts that are allowed in a zone using this SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku.Range hardware_count_ranges = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getHardwareCountRangesListin interfaceSkuOrBuilder
-
getHardwareCountRangesOrBuilderList
Output only. The inclusive ranges of hardware counts that are allowed in a zone using this SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku.Range hardware_count_ranges = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getHardwareCountRangesOrBuilderListin interfaceSkuOrBuilder
-
getHardwareCountRangesCount
public int getHardwareCountRangesCount()Output only. The inclusive ranges of hardware counts that are allowed in a zone using this SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku.Range hardware_count_ranges = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getHardwareCountRangesCountin interfaceSkuOrBuilder
-
getHardwareCountRanges
Output only. The inclusive ranges of hardware counts that are allowed in a zone using this SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku.Range hardware_count_ranges = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getHardwareCountRangesin interfaceSkuOrBuilder
-
getHardwareCountRangesOrBuilder
Output only. The inclusive ranges of hardware counts that are allowed in a zone using this SKU.
repeated .google.cloud.gdchardwaremanagement.v1alpha.Sku.Range hardware_count_ranges = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getHardwareCountRangesOrBuilderin interfaceSkuOrBuilder
-
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 Sku parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Sku parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Sku parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Sku parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Sku parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Sku parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Sku parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Sku 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
- 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
-