Send feedback
Class Location (2.17.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.17.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
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
arg0
Location
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
arg0
byte []
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
arg0
String
equals(Object arg0)
public boolean equals ( Object arg0 )
Parameter
Name
Description
arg0
Object
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
arg0
String
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
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
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
arg0
int
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
Send feedback
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-05-14 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-14 UTC."],[],[]]