Class ContextName (4.7.4)

public class ContextName implements ResourceName

Inheritance

Object > ContextName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String session, String context)

public static String format(String project, String session, String context)
Parameters
NameDescription
projectString
sessionString
contextString
Returns
TypeDescription
String

formatProjectEnvironmentUserSessionContextName(String project, String environment, String user, String session, String context)

public static String formatProjectEnvironmentUserSessionContextName(String project, String environment, String user, String session, String context)
Parameters
NameDescription
projectString
environmentString
userString
sessionString
contextString
Returns
TypeDescription
String

formatProjectLocationEnvironmentUserSessionContextName(String project, String location, String environment, String user, String session, String context)

public static String formatProjectLocationEnvironmentUserSessionContextName(String project, String location, String environment, String user, String session, String context)
Parameters
NameDescription
projectString
locationString
environmentString
userString
sessionString
contextString
Returns
TypeDescription
String

formatProjectLocationSessionContextName(String project, String location, String session, String context)

public static String formatProjectLocationSessionContextName(String project, String location, String session, String context)
Parameters
NameDescription
projectString
locationString
sessionString
contextString
Returns
TypeDescription
String

formatProjectSessionContextName(String project, String session, String context)

public static String formatProjectSessionContextName(String project, String session, String context)
Parameters
NameDescription
projectString
sessionString
contextString
Returns
TypeDescription
String

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

newProjectEnvironmentUserSessionContextBuilder()

public static ContextName.ProjectEnvironmentUserSessionContextBuilder newProjectEnvironmentUserSessionContextBuilder()
Returns
TypeDescription
ContextName.ProjectEnvironmentUserSessionContextBuilder

newProjectLocationEnvironmentUserSessionContextBuilder()

public static ContextName.ProjectLocationEnvironmentUserSessionContextBuilder newProjectLocationEnvironmentUserSessionContextBuilder()
Returns
TypeDescription
ContextName.ProjectLocationEnvironmentUserSessionContextBuilder

newProjectLocationSessionContextBuilder()

public static ContextName.ProjectLocationSessionContextBuilder newProjectLocationSessionContextBuilder()
Returns
TypeDescription
ContextName.ProjectLocationSessionContextBuilder

newProjectSessionContextBuilder()

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

of(String project, String session, String context)

public static ContextName of(String project, String session, String context)
Parameters
NameDescription
projectString
sessionString
contextString
Returns
TypeDescription
ContextName

ofProjectEnvironmentUserSessionContextName(String project, String environment, String user, String session, String context)

public static ContextName ofProjectEnvironmentUserSessionContextName(String project, String environment, String user, String session, String context)
Parameters
NameDescription
projectString
environmentString
userString
sessionString
contextString
Returns
TypeDescription
ContextName

ofProjectLocationEnvironmentUserSessionContextName(String project, String location, String environment, String user, String session, String context)

public static ContextName ofProjectLocationEnvironmentUserSessionContextName(String project, String location, String environment, String user, String session, String context)
Parameters
NameDescription
projectString
locationString
environmentString
userString
sessionString
contextString
Returns
TypeDescription
ContextName

ofProjectLocationSessionContextName(String project, String location, String session, String context)

public static ContextName ofProjectLocationSessionContextName(String project, String location, String session, String context)
Parameters
NameDescription
projectString
locationString
sessionString
contextString
Returns
TypeDescription
ContextName

ofProjectSessionContextName(String project, String session, String context)

public static ContextName ofProjectSessionContextName(String project, String session, String context)
Parameters
NameDescription
projectString
sessionString
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>

toStringList(List<ContextName> values)

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

Constructors

ContextName()

protected ContextName()

Methods

equals(Object o)

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

getContext()

public String getContext()
Returns
TypeDescription
String

getEnvironment()

public String getEnvironment()
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

getProject()

public String getProject()
Returns
TypeDescription
String

getSession()

public String getSession()
Returns
TypeDescription
String

getUser()

public String getUser()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides