public final class Sku extends GeneratedMessage implements SkuOrBuilder
A stock keeping unit (SKU) of GDC hardware.
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.Sku
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
CONFIG_FIELD_NUMBER
public static final int CONFIG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
HARDWARE_COUNT_RANGES_FIELD_NUMBER
public static final int HARDWARE_COUNT_RANGES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
INSTANCES_FIELD_NUMBER
public static final int INSTANCES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
IS_ACTIVE_FIELD_NUMBER
public static final int IS_ACTIVE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
REVISION_ID_FIELD_NUMBER
public static final int REVISION_ID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
VCPU_COUNT_FIELD_NUMBER
public static final int VCPU_COUNT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Sku getDefaultInstance()
| Returns |
| Type |
Description |
Sku |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Sku.Builder newBuilder()
newBuilder(Sku prototype)
public static Sku.Builder newBuilder(Sku prototype)
| Parameter |
| Name |
Description |
prototype |
Sku
|
public static Sku parseDelimitedFrom(InputStream input)
| Returns |
| Type |
Description |
Sku |
|
public static Sku parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Sku |
|
parseFrom(byte[] data)
public static Sku parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
Sku |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Sku parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Sku |
|
parseFrom(ByteString data)
public static Sku parseFrom(ByteString data)
| Returns |
| Type |
Description |
Sku |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Sku parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Sku |
|
public static Sku parseFrom(CodedInputStream input)
| Returns |
| Type |
Description |
Sku |
|
public static Sku parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Sku |
|
public static Sku parseFrom(InputStream input)
| Returns |
| Type |
Description |
Sku |
|
public static Sku parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Sku |
|
parseFrom(ByteBuffer data)
public static Sku parseFrom(ByteBuffer data)
| Returns |
| Type |
Description |
Sku |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Sku parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Sku |
|
parser()
public static Parser<Sku> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getConfig()
public SkuConfig getConfig()
Output only. Configuration for this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
SkuConfig |
The config.
|
getConfigOrBuilder()
public SkuConfigOrBuilder getConfigOrBuilder()
Output only. Configuration for this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime()
public Timestamp getCreateTime()
Output only. Time when this SKU was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
Timestamp |
The createTime.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Time when this SKU was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public Sku getDefaultInstanceForType()
| Returns |
| Type |
Description |
Sku |
|
getDescription()
public String getDescription()
Output only. Description of this SKU.
string description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The description.
|
getDescriptionBytes()
public ByteString getDescriptionBytes()
Output only. Description of this SKU.
string description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for description.
|
getDisplayName()
public String getDisplayName()
Output only. Display name of this SKU.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
String |
The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Output only. Display name of this SKU.
string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
ByteString |
The bytes for displayName.
|
getHardwareCountRanges(int index)
public Sku.Range getHardwareCountRanges(int index)
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];
| Parameter |
| Name |
Description |
index |
int
|
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];
| Returns |
| Type |
Description |
int |
|
getHardwareCountRangesList()
public List<Sku.Range> 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];
getHardwareCountRangesOrBuilder(int index)
public Sku.RangeOrBuilder getHardwareCountRangesOrBuilder(int index)
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];
| Parameter |
| Name |
Description |
index |
int
|
getHardwareCountRangesOrBuilderList()
public List<? extends Sku.RangeOrBuilder> 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];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.gdchardwaremanagement.v1alpha.Sku.RangeOrBuilder> |
|
getInstances(int index)
public SkuInstance getInstances(int index)
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];
| Parameter |
| Name |
Description |
index |
int
|
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];
| Returns |
| Type |
Description |
int |
|
getInstancesList()
public List<SkuInstance> 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];
getInstancesOrBuilder(int index)
public SkuInstanceOrBuilder getInstancesOrBuilder(int index)
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];
| Parameter |
| Name |
Description |
index |
int
|
getInstancesOrBuilderList()
public List<? extends SkuInstanceOrBuilder> 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];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.gdchardwaremanagement.v1alpha.SkuInstanceOrBuilder> |
|
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];
| Returns |
| Type |
Description |
boolean |
The isActive.
|
getName()
Identifier. Name of this SKU.
Format: projects/{project}/locations/{location}/skus/{sku}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns |
| Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
Identifier. Name of this SKU.
Format: projects/{project}/locations/{location}/skus/{sku}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns |
| Type |
Description |
ByteString |
The bytes for name.
|
getParserForType()
public Parser<Sku> getParserForType()
Overrides
getRevisionId()
public String 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];
| Returns |
| Type |
Description |
String |
The revisionId.
|
getRevisionIdBytes()
public 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];
| Returns |
| Type |
Description |
ByteString |
The bytes for revisionId.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getType()
public Sku.Type getType()
Output only. Type of this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
Sku.Type |
The type.
|
getTypeValue()
public int getTypeValue()
Output only. Type of this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.Sku.Type type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for type.
|
getUpdateTime()
public Timestamp getUpdateTime()
Output only. Time when this SKU was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
Timestamp |
The updateTime.
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Time when this SKU was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getVcpuCount()
public int getVcpuCount()
Output only. The vCPU count associated with this SKU.
int32 vcpu_count = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
The vcpuCount.
|
hasConfig()
public boolean hasConfig()
Output only. Configuration for this SKU.
.google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the config field is set.
|
hasCreateTime()
public boolean hasCreateTime()
Output only. Time when this SKU was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the createTime field is set.
|
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];
| Returns |
| Type |
Description |
boolean |
Whether the updateTime field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Sku.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Sku.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Sku.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides