Class HardwareGroup

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup
All Implemented Interfaces:
HardwareGroupOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class HardwareGroup extends com.google.protobuf.GeneratedMessage implements HardwareGroupOrBuilder
 A group of hardware that is part of the same order, has the same SKU, and is
 delivered to the same site.
 
Protobuf type google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • 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 hardware group.
       Format:
       `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface HardwareGroupOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Name of this hardware group.
       Format:
       `projects/{project}/locations/{location}/orders/{order}/hardwareGroups/{hardware_group}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface HardwareGroupOrBuilder
      Returns:
      The bytes for name.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Time when this hardware group was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface HardwareGroupOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Time when this hardware group was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface HardwareGroupOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Time when this hardware group was created.
       
      .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface HardwareGroupOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Time when this hardware group was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface HardwareGroupOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Time when this hardware group was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface HardwareGroupOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Time when this hardware group was last updated.
       
      .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface HardwareGroupOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: HardwareGroupOrBuilder
       Optional. Labels associated with this hardware group as key value pairs.
       For more information about labels, see [Create and manage
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface HardwareGroupOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Labels associated with this hardware group as key value pairs.
       For more information about labels, see [Create and manage
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface HardwareGroupOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface HardwareGroupOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Labels associated with this hardware group as key value pairs.
       For more information about labels, see [Create and manage
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface HardwareGroupOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Labels associated with this hardware group as key value pairs.
       For more information about labels, see [Create and manage
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface HardwareGroupOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Labels associated with this hardware group as key value pairs.
       For more information about labels, see [Create and manage
       labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels).
       
      map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface HardwareGroupOrBuilder
    • getHardwareCount

      public int getHardwareCount()
       Required. Number of hardware in this HardwareGroup.
       
      int32 hardware_count = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getHardwareCount in interface HardwareGroupOrBuilder
      Returns:
      The hardwareCount.
    • hasConfig

      public boolean hasConfig()
       Required. Configuration for hardware in this HardwareGroup.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasConfig in interface HardwareGroupOrBuilder
      Returns:
      Whether the config field is set.
    • getConfig

      public HardwareConfig getConfig()
       Required. Configuration for hardware in this HardwareGroup.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConfig in interface HardwareGroupOrBuilder
      Returns:
      The config.
    • getConfigOrBuilder

      public HardwareConfigOrBuilder getConfigOrBuilder()
       Required. Configuration for hardware in this HardwareGroup.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwareConfig config = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConfigOrBuilder in interface HardwareGroupOrBuilder
    • getSite

      public String getSite()
       Required. Name of the site where the hardware in this HardwareGroup will be
       delivered.
       Format: `projects/{project}/locations/{location}/sites/{site}`
       
      string site = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getSite in interface HardwareGroupOrBuilder
      Returns:
      The site.
    • getSiteBytes

      public com.google.protobuf.ByteString getSiteBytes()
       Required. Name of the site where the hardware in this HardwareGroup will be
       delivered.
       Format: `projects/{project}/locations/{location}/sites/{site}`
       
      string site = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getSiteBytes in interface HardwareGroupOrBuilder
      Returns:
      The bytes for site.
    • getStateValue

      public int getStateValue()
       Output only. Current state of this HardwareGroup.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface HardwareGroupOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • getState

      public HardwareGroup.State getState()
       Output only. Current state of this HardwareGroup.
       
      .google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface HardwareGroupOrBuilder
      Returns:
      The state.
    • getZone

      public String getZone()
       Optional. Name of the zone that the hardware in this HardwareGroup belongs
       to. Format: `projects/{project}/locations/{location}/zones/{zone}`
       
      string zone = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getZone in interface HardwareGroupOrBuilder
      Returns:
      The zone.
    • getZoneBytes

      public com.google.protobuf.ByteString getZoneBytes()
       Optional. Name of the zone that the hardware in this HardwareGroup belongs
       to. Format: `projects/{project}/locations/{location}/zones/{zone}`
       
      string zone = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getZoneBytes in interface HardwareGroupOrBuilder
      Returns:
      The bytes for zone.
    • hasRequestedInstallationDate

      @Deprecated public boolean hasRequestedInstallationDate()
      Deprecated.
      google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.requested_installation_date is deprecated. See google/cloud/gdchardwaremanagement/v1alpha/resources.proto;l=408
       Deprecated: This value is not used. Use the requested_installation_date
       field in the Order resource instead.
       
      .google.type.Date requested_installation_date = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRequestedInstallationDate in interface HardwareGroupOrBuilder
      Returns:
      Whether the requestedInstallationDate field is set.
    • getRequestedInstallationDate

      @Deprecated public Date getRequestedInstallationDate()
      Deprecated.
      google.cloud.gdchardwaremanagement.v1alpha.HardwareGroup.requested_installation_date is deprecated. See google/cloud/gdchardwaremanagement/v1alpha/resources.proto;l=408
       Deprecated: This value is not used. Use the requested_installation_date
       field in the Order resource instead.
       
      .google.type.Date requested_installation_date = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestedInstallationDate in interface HardwareGroupOrBuilder
      Returns:
      The requestedInstallationDate.
    • getRequestedInstallationDateOrBuilder

      @Deprecated public DateOrBuilder getRequestedInstallationDateOrBuilder()
      Deprecated.
       Deprecated: This value is not used. Use the requested_installation_date
       field in the Order resource instead.
       
      .google.type.Date requested_installation_date = 10 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestedInstallationDateOrBuilder in interface HardwareGroupOrBuilder
    • 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 HardwareGroup parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HardwareGroup parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HardwareGroup parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HardwareGroup parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HardwareGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static HardwareGroup parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

      public static HardwareGroup.Builder newBuilder()
    • newBuilder

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

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

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

      public static HardwareGroup getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<HardwareGroup> 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 HardwareGroup getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder