Class HardwareLocation (0.22.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 0.22.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  HardwareLocation   extends   GeneratedMessageV3   implements   HardwareLocationOrBuilder  
   
   Represents the location of one or many hardware.
 Protobuf type google.cloud.gdchardwaremanagement.v1alpha.HardwareLocation
 
  
  
  
    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
   
  RACK_LOCATION_FIELD_NUMBER 
  
    
public   static   final   int   RACK_LOCATION_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  RACK_SPACE_FIELD_NUMBER 
  
    
public   static   final   int   RACK_SPACE_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  SITE_FIELD_NUMBER 
  
    
public   static   final   int   SITE_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Static Methods
   
   
  getDefaultInstance() 
  
    
public   static   HardwareLocation   getDefaultInstance ()  
   
  
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  
   
  newBuilder() 
  
    
public   static   HardwareLocation . Builder   newBuilder ()  
   
  
   
  newBuilder(HardwareLocation prototype) 
  
    
public   static   HardwareLocation . Builder   newBuilder ( HardwareLocation   prototype )  
   
  
  
   
  
  
    
public   static   HardwareLocation   parseDelimitedFrom ( InputStream   input )  
   
  
  
  
   
  
  
    
public   static   HardwareLocation   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(byte[] data) 
  
    
public   static   HardwareLocation   parseFrom ( byte []   data )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        data 
        byte [] 
       
     
  
  
  
   
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   HardwareLocation   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(ByteString data) 
  
    
public   static   HardwareLocation   parseFrom ( ByteString   data )  
   
  
  
  
   
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   HardwareLocation   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   HardwareLocation   parseFrom ( CodedInputStream   input )  
   
  
  
  
   
  
  
    
public   static   HardwareLocation   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   HardwareLocation   parseFrom ( InputStream   input )  
   
  
  
  
   
  
  
    
public   static   HardwareLocation   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parseFrom(ByteBuffer data) 
  
    
public   static   HardwareLocation   parseFrom ( ByteBuffer   data )  
   
  
  
  
   
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   HardwareLocation   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  parser() 
  
    
public   static   Parser<HardwareLocation>   parser ()  
   
  
  Methods
   
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        obj 
        Object  
       
     
  
  
  Overrides 
  
   
  getDefaultInstanceForType() 
  
    
public   HardwareLocation   getDefaultInstanceForType ()  
   
  
   
  getParserForType() 
  
    
public   Parser<HardwareLocation>   getParserForType ()  
   
  
  Overrides 
  
   
  getRackLocation() 
  
    
public   String   getRackLocation ()  
   
   Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
 Rack 3.
 string rack_location = 2 [(.google.api.field_behavior) = REQUIRED];
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        String  
        The rackLocation.
 
       
     
  
   
  getRackLocationBytes() 
  
    
public   ByteString   getRackLocationBytes ()  
   
   Required. Location of the rack in the site e.g. Floor 2, Room 201, Row 7,
 Rack 3.
 string rack_location = 2 [(.google.api.field_behavior) = REQUIRED];
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        ByteString  
        The bytes for rackLocation.
 
       
     
  
   
  getRackSpace(int index) 
  
    
public   RackSpace   getRackSpace ( int   index )  
   
   Optional. Spaces occupied by the hardware in the rack.
 If unset, this location is assumed to be the entire rack.
 
 repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        index 
        int  
       
     
  
  
   
  getRackSpaceCount() 
  
    
public   int   getRackSpaceCount ()  
   
   Optional. Spaces occupied by the hardware in the rack.
 If unset, this location is assumed to be the entire rack.
 
 repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
   
  getRackSpaceList() 
  
    
public   List<RackSpace>   getRackSpaceList ()  
   
   Optional. Spaces occupied by the hardware in the rack.
 If unset, this location is assumed to be the entire rack.
 
 repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
   
  getRackSpaceOrBuilder(int index) 
  
    
public   RackSpaceOrBuilder   getRackSpaceOrBuilder ( int   index )  
   
   Optional. Spaces occupied by the hardware in the rack.
 If unset, this location is assumed to be the entire rack.
 
 repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        index 
        int  
       
     
  
  
   
  getRackSpaceOrBuilderList() 
  
    
public   List <?   extends   RackSpaceOrBuilder >  getRackSpaceOrBuilderList ()  
   
   Optional. Spaces occupied by the hardware in the rack.
 If unset, this location is assumed to be the entire rack.
 
 repeated .google.cloud.gdchardwaremanagement.v1alpha.RackSpace rack_space = 3 [(.google.api.field_behavior) = OPTIONAL];
 
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        List <? extends com.google.cloud.gdchardwaremanagement.v1alpha.RackSpaceOrBuilder > 
         
       
     
  
   
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
   
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
   
  getSite() 
  
   Required. Name of the site where the hardware are present.
 Format: projects/{project}/locations/{location}/sites/{site}
 
 string site = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
 
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        String  
        The site.
 
       
     
  
   
  getSiteBytes() 
  
    
public   ByteString   getSiteBytes ()  
   
   Required. Name of the site where the hardware are present.
 Format: projects/{project}/locations/{location}/sites/{site}
 
 string site = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
 
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        ByteString  
        The bytes for site.
 
       
     
  
   
  hashCode() 
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  
  Overrides 
  
   
  newBuilderForType() 
  
    
public   HardwareLocation . Builder   newBuilderForType ()  
   
  
   
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   HardwareLocation . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  
  
  Overrides 
  
   
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        Object  
         
       
     
  
  Overrides 
  
   
  toBuilder() 
  
    
public   HardwareLocation . Builder   toBuilder ()  
   
  
   
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]