Class ServiceName
- java.lang.Object
-
- com.google.cloud.servicedirectory.v1beta1.ServiceName
-
- All Implemented Interfaces:
com.google.api.resourcenames.ResourceName
@Generated("by gapic-generator-java") public class ServiceName extends Object implements com.google.api.resourcenames.ResourceName
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServiceName.Builder
Builder for projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ServiceName()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static String
format(String project, String location, String namespace, String service)
String
getFieldValue(String fieldName)
Map<String,String>
getFieldValuesMap()
String
getLocation()
String
getNamespace()
String
getProject()
String
getService()
int
hashCode()
static boolean
isParsableFrom(String formattedString)
static ServiceName.Builder
newBuilder()
static ServiceName
of(String project, String location, String namespace, String service)
static ServiceName
parse(String formattedString)
static List<ServiceName>
parseList(List<String> formattedStrings)
ServiceName.Builder
toBuilder()
String
toString()
static List<String>
toStringList(List<ServiceName> values)
-
-
-
Constructor Detail
-
ServiceName
@Deprecated protected ServiceName()
Deprecated.
-
-
Method Detail
-
getProject
public String getProject()
-
getLocation
public String getLocation()
-
getNamespace
public String getNamespace()
-
getService
public String getService()
-
newBuilder
public static ServiceName.Builder newBuilder()
-
toBuilder
public ServiceName.Builder toBuilder()
-
of
public static ServiceName of(String project, String location, String namespace, String service)
-
format
public static String format(String project, String location, String namespace, String service)
-
parse
public static ServiceName parse(String formattedString)
-
parseList
public static List<ServiceName> parseList(List<String> formattedStrings)
-
toStringList
public static List<String> toStringList(List<ServiceName> values)
-
isParsableFrom
public static boolean isParsableFrom(String formattedString)
-
getFieldValuesMap
public Map<String,String> getFieldValuesMap()
- Specified by:
getFieldValuesMap
in interfacecom.google.api.resourcenames.ResourceName
-
getFieldValue
public String getFieldValue(String fieldName)
- Specified by:
getFieldValue
in interfacecom.google.api.resourcenames.ResourceName
-
-