Class Location (2.7.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.7.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   final   class  Location   extends   GeneratedMessageV3   implements   LocationOrBuilder  
  
  
  
  Static Fields
   
  DISPLAY_NAME_FIELD_NUMBER 
  
    
public   static   final   int   DISPLAY_NAME_FIELD_NUMBER  
  Field Value 
  
  LABELS_FIELD_NUMBER 
  
    
public   static   final   int   LABELS_FIELD_NUMBER  
  Field Value 
  
  LOCATION_ID_FIELD_NUMBER 
  
    
public   static   final   int   LOCATION_ID_FIELD_NUMBER  
  Field Value 
  
  
  
    
public   static   final   int   METADATA_FIELD_NUMBER  
  Field Value 
  
  NAME_FIELD_NUMBER 
  
    
public   static   final   int   NAME_FIELD_NUMBER  
  Field Value 
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   Location   getDefaultInstance ()  
  Returns 
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  Returns 
  
  newBuilder() 
  
    
public   static   Location . Builder   newBuilder ()  
  Returns 
  
  newBuilder(Location arg0) 
  
    
public   static   Location . Builder   newBuilder ( Location   arg0 )  
  Parameter 
  
  Returns 
  
  
    
public   static   Location   parseDelimitedFrom ( InputStream   arg0 )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   Location   parseDelimitedFrom ( InputStream   arg0 ,   ExtensionRegistryLite   arg1 )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parseFrom(byte[] arg0) 
  
    
public   static   Location   parseFrom ( byte []   arg0 )  
  Parameter 
  
    
      
        Name Description  
      
        arg0 byte [] 
     
  
  Returns 
  
  Exceptions 
  
  parseFrom(byte[] arg0, ExtensionRegistryLite arg1) 
  
    
public   static   Location   parseFrom ( byte []   arg0 ,   ExtensionRegistryLite   arg1 )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteString arg0) 
  
    
public   static   Location   parseFrom ( ByteString   arg0 )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteString arg0, ExtensionRegistryLite arg1) 
  
    
public   static   Location   parseFrom ( ByteString   arg0 ,   ExtensionRegistryLite   arg1 )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   Location   parseFrom ( CodedInputStream   arg0 )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   Location   parseFrom ( CodedInputStream   arg0 ,   ExtensionRegistryLite   arg1 )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   Location   parseFrom ( InputStream   arg0 )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  
    
public   static   Location   parseFrom ( InputStream   arg0 ,   ExtensionRegistryLite   arg1 )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteBuffer arg0) 
  
    
public   static   Location   parseFrom ( ByteBuffer   arg0 )  
  Parameter 
  
  Returns 
  
  Exceptions 
  
  parseFrom(ByteBuffer arg0, ExtensionRegistryLite arg1) 
  
    
public   static   Location   parseFrom ( ByteBuffer   arg0 ,   ExtensionRegistryLite   arg1 )  
  Parameters 
  
  Returns 
  
  Exceptions 
  
  parser() 
  
    
public   static   Parser<Location>   parser ()  
  Returns 
  
  Methods
   
  containsLabels(String arg0) 
  
    
public   boolean   containsLabels ( String   arg0 )  
  Parameter 
  
  Returns 
  
  equals(Object arg0) 
  
    
public   boolean   equals ( Object   arg0 )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   Location   getDefaultInstanceForType ()  
  Returns 
  
  getDisplayName() 
  
    
public   String   getDisplayName ()  
  Returns 
  
  getDisplayNameBytes() 
  
    
public   ByteString   getDisplayNameBytes ()  
  Returns 
  
  getLabels() 
  
    
public   Map<String , String >  getLabels ()  
  Returns 
  
  getLabelsCount() 
  
    
public   int   getLabelsCount ()  
  Returns 
  
  getLabelsMap() 
  
    
public   Map<String , String >  getLabelsMap ()  
  Returns 
  
  getLabelsOrDefault(String arg0, String arg1) 
  
    
public   String   getLabelsOrDefault ( String   arg0 ,   String   arg1 )  
  Parameters 
  
  Returns 
  
  getLabelsOrThrow(String arg0) 
  
    
public   String   getLabelsOrThrow ( String   arg0 )  
  Parameter 
  
  Returns 
  
  getLocationId() 
  
    
public   String   getLocationId ()  
  Returns 
  
  getLocationIdBytes() 
  
    
public   ByteString   getLocationIdBytes ()  
  Returns 
  
  Returns 
  
  
    
public   AnyOrBuilder   getMetadataOrBuilder ()  
  Returns 
  
  getName() 
  
  Returns 
  
  getNameBytes() 
  
    
public   ByteString   getNameBytes ()  
  Returns 
  
  getParserForType() 
  
    
public   Parser<Location>   getParserForType ()  
  Returns 
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  Returns 
  
  Overrides 
  
  getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
  Returns 
  
  Overrides 
  
  
    
public   boolean   hasMetadata ()  
  Returns 
  
  hashCode() 
  
  Returns 
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  Returns 
  
  Overrides 
  
  internalGetMapField(int arg0) 
  
    
protected   MapField   internalGetMapField ( int   arg0 )  
  Parameter 
  
    
      
        Name Description  
      
        arg0 int  
     
  
  Returns 
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  Returns 
  
  Overrides 
  
  newBuilderForType() 
  
    
public   Location . Builder   newBuilderForType ()  
  Returns 
  
  newBuilderForType(GeneratedMessageV3.BuilderParent arg0) 
  
    
protected   Location . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   arg0 )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter arg0) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   arg0 )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  toBuilder() 
  
    
public   Location . Builder   toBuilder ()  
  Returns 
  
  writeTo(CodedOutputStream arg0) 
  
    
public   void   writeTo ( CodedOutputStream   arg0 )  
  Parameter 
  
  Overrides 
  
  Exceptions 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  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-29 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-29 UTC."],[],[]]