Class ServiceName (2.36.0)

public class ServiceName implements ResourceName

Inheritance

Object > ServiceName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String location, String namespace, String service)

public static String format(String project, String location, String namespace, String service)
Parameters
NameDescription
projectString
locationString
namespaceString
serviceString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

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

newBuilder()

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

of(String project, String location, String namespace, String service)

public static ServiceName of(String project, String location, String namespace, String service)
Parameters
NameDescription
projectString
locationString
namespaceString
serviceString
Returns
TypeDescription
ServiceName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<ServiceName> values)

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

Constructors

ServiceName() (deprecated)

protected ServiceName()

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>

getLocation()

public String getLocation()
Returns
TypeDescription
String

getNamespace()

public String getNamespace()
Returns
TypeDescription
String

getProject()

public String getProject()
Returns
TypeDescription
String

getService()

public String getService()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides