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