Class UserName (2.29.0)

public class UserName implements ResourceName

Inheritance

Object > UserName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String user)

public static String format(String user)
Parameter
NameDescription
userString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

public static boolean isParsableFrom(String formattedString)
Parameter
NameDescription
formattedStringString
Returns
TypeDescription
boolean

newBuilder()

public static UserName.Builder newBuilder()
Returns
TypeDescription
UserName.Builder

of(String user)

public static UserName of(String user)
Parameter
NameDescription
userString
Returns
TypeDescription
UserName

parse(String formattedString)

public static UserName parse(String formattedString)
Parameter
NameDescription
formattedStringString
Returns
TypeDescription
UserName

parseList(List<String> formattedStrings)

public static List<UserName> parseList(List<String> formattedStrings)
Parameter
NameDescription
formattedStringsList<String>
Returns
TypeDescription
List<UserName>

toStringList(List<UserName> values)

public static List<String> toStringList(List<UserName> values)
Parameter
NameDescription
valuesList<UserName>
Returns
TypeDescription
List<String>

Constructors

UserName()

protected UserName()

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getFieldValue(String fieldName)

public String getFieldValue(String fieldName)
Parameter
NameDescription
fieldNameString
Returns
TypeDescription
String

getFieldValuesMap()

public Map<String,String> getFieldValuesMap()
Returns
TypeDescription
Map<String,String>

getUser()

public String getUser()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public UserName.Builder toBuilder()
Returns
TypeDescription
UserName.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides