Class ContextName (2.5.3)

public class ContextName implements ResourceName

Inheritance

Object > ContextName

Implements

com.google.api.resourcenames.ResourceName

Constructors

ContextName()

protected ContextName()

Methods

equals(Object o)

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

format(String project, String location, String metadataStore, String context)

public static String format(String project, String location, String metadataStore, String context)
Parameters
NameDescription
projectString
locationString
metadataStoreString
contextString
Returns
TypeDescription
String

getContext()

public String getContext()
Returns
TypeDescription
String

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>

getLocation()

public String getLocation()
Returns
TypeDescription
String

getMetadataStore()

public String getMetadataStore()
Returns
TypeDescription
String

getProject()

public String getProject()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

isParsableFrom(String formattedString)

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

newBuilder()

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

of(String project, String location, String metadataStore, String context)

public static ContextName of(String project, String location, String metadataStore, String context)
Parameters
NameDescription
projectString
locationString
metadataStoreString
contextString
Returns
TypeDescription
ContextName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides

toStringList(List<ContextName> values)

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