Class Sku (0.3.0)

public final class Sku extends GeneratedMessageV3 implements SkuOrBuilder

A stock keeping unit (SKU) of GDC hardware.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.Sku

Implements

SkuOrBuilder

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()
Returns
Type Description
Descriptor

newBuilder()

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

newBuilder(Sku prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

Returns
Type Description
SkuConfigOrBuilder

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];

Returns
Type Description
TimestampOrBuilder

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
Returns
Type Description
SkuInstance

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];

Returns
Type Description
List<SkuInstance>

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
Returns
Type Description
SkuInstanceOrBuilder

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()

public String 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()
Returns
Type Description
Parser<Sku>
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];

Returns
Type Description
TimestampOrBuilder

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()

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 Sku.Builder newBuilderForType()
Returns
Type Description
Sku.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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