Class ServiceName (3.15.0)

public class ServiceName implements ResourceName

Inheritance

Object > ServiceName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String service)

public static String format(String project, String service)
Parameters
NameDescription
projectString
serviceString
Returns
TypeDescription
String

formatFolderServiceName(String folder, String service)

public static String formatFolderServiceName(String folder, String service)
Parameters
NameDescription
folderString
serviceString
Returns
TypeDescription
String

formatOrganizationServiceName(String organization, String service)

public static String formatOrganizationServiceName(String organization, String service)
Parameters
NameDescription
organizationString
serviceString
Returns
TypeDescription
String

formatProjectServiceName(String project, String service)

public static String formatProjectServiceName(String project, String service)
Parameters
NameDescription
projectString
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

newFolderServiceBuilder()

public static ServiceName.FolderServiceBuilder newFolderServiceBuilder()
Returns
TypeDescription
ServiceName.FolderServiceBuilder

newOrganizationServiceBuilder()

public static ServiceName.OrganizationServiceBuilder newOrganizationServiceBuilder()
Returns
TypeDescription
ServiceName.OrganizationServiceBuilder

newProjectServiceBuilder()

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

of(String project, String service)

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

ofFolderServiceName(String folder, String service)

public static ServiceName ofFolderServiceName(String folder, String service)
Parameters
NameDescription
folderString
serviceString
Returns
TypeDescription
ServiceName

ofOrganizationServiceName(String organization, String service)

public static ServiceName ofOrganizationServiceName(String organization, String service)
Parameters
NameDescription
organizationString
serviceString
Returns
TypeDescription
ServiceName

ofProjectServiceName(String project, String service)

public static ServiceName ofProjectServiceName(String project, String service)
Parameters
NameDescription
projectString
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()

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>

getFolder()

public String getFolder()
Returns
TypeDescription
String

getOrganization()

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