@Generated(value="by gapic-generator-java") public class ServiceName extends Object implements com.google.api.resourcenames.ResourceName
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceName.Builder
Builder for projects/{project}/locations/{location}/services/{service}.
|
static class |
ServiceName.FolderLocationServiceBuilder
Builder for folders/{folder}/locations/{location}/services/{service}.
|
static class |
ServiceName.OrganizationLocationServiceBuilder
Builder for organizations/{organization}/locations/{location}/services/{service}.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ServiceName()
Deprecated.
|
@Deprecated protected ServiceName()
public String getProject()
public String getLocation()
public String getService()
public String getFolder()
public String getOrganization()
public static ServiceName.Builder newBuilder()
public static ServiceName.Builder newProjectLocationServiceBuilder()
public static ServiceName.FolderLocationServiceBuilder newFolderLocationServiceBuilder()
public static ServiceName.OrganizationLocationServiceBuilder newOrganizationLocationServiceBuilder()
public ServiceName.Builder toBuilder()
public static ServiceName of(String project, String location, String service)
public static ServiceName ofProjectLocationServiceName(String project, String location, String service)
public static ServiceName ofFolderLocationServiceName(String folder, String location, String service)
public static ServiceName ofOrganizationLocationServiceName(String organization, String location, String service)
public static String formatProjectLocationServiceName(String project, String location, String service)
public static String formatFolderLocationServiceName(String folder, String location, String service)
public static String formatOrganizationLocationServiceName(String organization, String location, String service)
public static ServiceName parse(String formattedString)
public static List<ServiceName> parseList(List<String> formattedStrings)
public static List<String> toStringList(List<ServiceName> values)
public static boolean isParsableFrom(String formattedString)
public Map<String,String> getFieldValuesMap()
getFieldValuesMap in interface com.google.api.resourcenames.ResourceNamepublic String getFieldValue(String fieldName)
getFieldValue in interface com.google.api.resourcenames.ResourceNameCopyright © 2025 Google LLC. All rights reserved.