public final class Sku extends GeneratedMessageV3 implements SkuOrBuilder
A stock keeping unit (SKU) of GDC hardware.
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.Sku
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(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 |
|
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.
|
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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Sku.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Sku.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Sku.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides