Class KeyName (2.0.0)

public class KeyName implements ResourceName

Inheritance

Object > KeyName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String serviceAccount, String key)

public static String format(String project, String serviceAccount, String key)
Parameters
NameDescription
projectString
serviceAccountString
keyString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

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

newBuilder()

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

of(String project, String serviceAccount, String key)

public static KeyName of(String project, String serviceAccount, String key)
Parameters
NameDescription
projectString
serviceAccountString
keyString
Returns
TypeDescription
KeyName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<KeyName> values)

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

Constructors

KeyName()

protected KeyName()

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>

getKey()

public String getKey()
Returns
TypeDescription
String

getProject()

public String getProject()
Returns
TypeDescription
String

getServiceAccount()

public String getServiceAccount()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides