Class LocationName (2.12.0)

publicclass LocationNameimplementsResourceName

Inheritance

Object > LocationName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String location)

publicstaticStringformat(Stringproject,Stringlocation)
Parameters
Name Description
project String
location String
Returns
Type Description

isParsableFrom(String formattedString)

publicstaticbooleanisParsableFrom(StringformattedString)
Parameter
Name Description
formattedString String
Returns
Type Description

newBuilder()

publicstaticLocationName.BuildernewBuilder()
Returns
Type Description

of(String project, String location)

publicstaticLocationNameof(Stringproject,Stringlocation)
Parameters
Name Description
project String
location String
Returns
Type Description

parse(String formattedString)

publicstaticLocationNameparse(StringformattedString)
Parameter
Name Description
formattedString String
Returns
Type Description

parseList(List<String> formattedStrings)

publicstaticList<LocationName>parseList(List<String>formattedStrings)
Parameter
Name Description
formattedStrings List<String>
Returns
Type Description

toStringList(List<LocationName> values)

publicstaticList<String>toStringList(List<LocationName>values)
Parameter
Name Description
values List<LocationName>
Returns
Type Description

Constructors

LocationName()

protectedLocationName()

Methods

equals(Object o)

publicbooleanequals(Objecto)
Parameter
Name Description
o Object
Returns
Type Description
Overrides

getFieldValue(String fieldName)

publicStringgetFieldValue(StringfieldName)
Parameter
Name Description
fieldName String
Returns
Type Description

getFieldValuesMap()

publicMap<String,String>getFieldValuesMap()
Returns
Type Description

getLocation()

publicStringgetLocation()
Returns
Type Description

getProject()

publicStringgetProject()
Returns
Type Description

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

toBuilder()

publicLocationName.BuildertoBuilder()
Returns
Type Description

toString()

publicStringtoString()
Returns
Type Description
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.