Class ServiceName (0.3.0)

public class ServiceName implements ResourceName

Inheritance

Object > ServiceName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String location, String service)

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

formatFolderLocationServiceName(String folder, String location, String service)

public static String formatFolderLocationServiceName(String folder, String location, String service)
Parameters
NameDescription
folderString
locationString
serviceString
Returns
TypeDescription
String

formatOrganizationLocationServiceName(String organization, String location, String service)

public static String formatOrganizationLocationServiceName(String organization, String location, String service)
Parameters
NameDescription
organizationString
locationString
serviceString
Returns
TypeDescription
String

formatProjectLocationServiceName(String project, String location, String service)

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

newFolderLocationServiceBuilder()

public static ServiceName.FolderLocationServiceBuilder newFolderLocationServiceBuilder()
Returns
TypeDescription
ServiceName.FolderLocationServiceBuilder

newOrganizationLocationServiceBuilder()

public static ServiceName.OrganizationLocationServiceBuilder newOrganizationLocationServiceBuilder()
Returns
TypeDescription
ServiceName.OrganizationLocationServiceBuilder

newProjectLocationServiceBuilder()

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

of(String project, String location, String service)

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

ofFolderLocationServiceName(String folder, String location, String service)

public static ServiceName ofFolderLocationServiceName(String folder, String location, String service)
Parameters
NameDescription
folderString
locationString
serviceString
Returns
TypeDescription
ServiceName

ofOrganizationLocationServiceName(String organization, String location, String service)

public static ServiceName ofOrganizationLocationServiceName(String organization, String location, String service)
Parameters
NameDescription
organizationString
locationString
serviceString
Returns
TypeDescription
ServiceName

ofProjectLocationServiceName(String project, String location, String service)

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

getFolder()

public String getFolder()
Returns
TypeDescription
String

getLocation()

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