Class ProjectName (2.78.0)

publicclass ProjectNameimplementsResourceName

Inheritance

Object > ProjectName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project)

publicstaticStringformat(Stringproject)
Parameter
Name Description
project String
Returns
Type Description
String

isParsableFrom(String formattedString)

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

newBuilder()

publicstaticProjectName.BuildernewBuilder()
Returns
Type Description
ProjectName.Builder

of(String project)

publicstaticProjectNameof(Stringproject)
Parameter
Name Description
project String
Returns
Type Description
ProjectName

parse(String formattedString)

publicstaticProjectNameparse(StringformattedString)
Parameter
Name Description
formattedString String
Returns
Type Description
ProjectName

parseList(List<String> formattedStrings)

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

toStringList(List<ProjectName> values)

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

Constructors

ProjectName() (deprecated)

protectedProjectName()

Methods

equals(Object o)

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

getFieldValue(String fieldName)

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

getFieldValuesMap()

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

getProject()

publicStringgetProject()
Returns
Type Description
String

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

toBuilder()

publicProjectName.BuildertoBuilder()
Returns
Type Description
ProjectName.Builder

toString()

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