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:
  • 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getName

      public String getName()
       Identifier. Name of this SKU.
       Format: `projects/{project}/locations/{location}/skus/{sku}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface SkuOrBuilder
      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:
      getNameBytes in interface SkuOrBuilder
      Returns:
      The bytes for name.
    • getDisplayName

      public String getDisplayName()
       Output only. Display name of this SKU.
       
      string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDisplayName in interface SkuOrBuilder
      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:
      getDisplayNameBytes in interface SkuOrBuilder
      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:
      hasCreateTime in interface SkuOrBuilder
      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:
      getCreateTime in interface SkuOrBuilder
      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:
      getCreateTimeOrBuilder in interface SkuOrBuilder
    • 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:
      hasUpdateTime in interface SkuOrBuilder
      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:
      getUpdateTime in interface SkuOrBuilder
      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:
      getUpdateTimeOrBuilder in interface SkuOrBuilder
    • 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:
      hasConfig in interface SkuOrBuilder
      Returns:
      Whether the config field is set.
    • getConfig

      public SkuConfig getConfig()
       Output only. Configuration for this SKU.
       
      .google.cloud.gdchardwaremanagement.v1alpha.SkuConfig config = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getConfig in interface SkuOrBuilder
      Returns:
      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];
      Specified by:
      getConfigOrBuilder in interface SkuOrBuilder
    • 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];
      Specified by:
      getInstancesList in interface SkuOrBuilder
    • 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];
      Specified by:
      getInstancesOrBuilderList in interface SkuOrBuilder
    • 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:
      getInstancesCount in interface SkuOrBuilder
    • getInstances

      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];
      Specified by:
      getInstances in interface SkuOrBuilder
    • getInstancesOrBuilder

      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];
      Specified by:
      getInstancesOrBuilder in interface SkuOrBuilder
    • getDescription

      public String getDescription()
       Output only. Description of this SKU.
       
      string description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDescription in interface SkuOrBuilder
      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:
      getDescriptionBytes in interface SkuOrBuilder
      Returns:
      The bytes for description.
    • 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];
      Specified by:
      getRevisionId in interface SkuOrBuilder
      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:
      getRevisionIdBytes in interface SkuOrBuilder
      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:
      getIsActive in interface SkuOrBuilder
      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:
      getTypeValue in interface SkuOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • 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];
      Specified by:
      getType in interface SkuOrBuilder
      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:
      getVcpuCount in interface SkuOrBuilder
      Returns:
      The vcpuCount.
    • 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];
      Specified by:
      getHardwareCountRangesList in interface SkuOrBuilder
    • 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];
      Specified by:
      getHardwareCountRangesOrBuilderList in interface SkuOrBuilder
    • 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:
      getHardwareCountRangesCount in interface SkuOrBuilder
    • getHardwareCountRanges

      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];
      Specified by:
      getHardwareCountRanges in interface SkuOrBuilder
    • getHardwareCountRangesOrBuilder

      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];
      Specified by:
      getHardwareCountRangesOrBuilder in interface SkuOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static Sku parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      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

      public static Sku parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Sku parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Sku parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Sku parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Sku parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Sku parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Sku.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Sku.Builder newBuilder()
    • newBuilder

      public static Sku.Builder newBuilder(Sku prototype)
    • toBuilder

      public Sku.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Sku.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Sku getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Sku> parser()
    • getParserForType

      public com.google.protobuf.Parser<Sku> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Sku getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder