@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}/services/{service}.
|
static class |
ServiceName.FolderServiceBuilder
Builder for folders/{folder}/services/{service}.
|
static class |
ServiceName.OrganizationServiceBuilder
Builder for organizations/{organization}/services/{service}.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ServiceName()
Deprecated.
|
@Deprecated protected ServiceName()
public String getProject()
public String getService()
public String getOrganization()
public String getFolder()
public static ServiceName.Builder newBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static ServiceName.Builder newProjectServiceBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static ServiceName.OrganizationServiceBuilder newOrganizationServiceBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static ServiceName.FolderServiceBuilder newFolderServiceBuilder()
public ServiceName.Builder toBuilder()
public static ServiceName of(String project, String service)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static ServiceName ofProjectServiceName(String project, String service)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static ServiceName ofOrganizationServiceName(String organization, String service)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static ServiceName ofFolderServiceName(String folder, String service)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatProjectServiceName(String project, String service)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatOrganizationServiceName(String organization, String service)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatFolderServiceName(String folder, 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 © 2023 Google LLC. All rights reserved.