Class ServiceName

public class ServiceName implements ResourceName

Inheritance

Object > ServiceName

Implements

com.google.api.resourcenames.ResourceName

Constructors

ServiceName()

protected ServiceName()

Methods

equals(Object o)

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

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

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

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>

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides

toStringList(List<ServiceName> values)

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