@Generated(value="by gapic-generator-java") public class LocationName extends Object implements com.google.api.resourcenames.ResourceName
| Modifier and Type | Class and Description |
|---|---|
static class |
LocationName.Builder
Builder for organizations/{organization}/locations/{location}.
|
static class |
LocationName.ProjectLocationBuilder
Builder for projects/{project}/locations/{location}.
|
| Modifier | Constructor and Description |
|---|---|
protected |
LocationName()
Deprecated.
|
@Deprecated protected LocationName()
public String getOrganization()
public String getLocation()
public String getProject()
public static LocationName.Builder newBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static LocationName.Builder newOrganizationLocationBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static LocationName.ProjectLocationBuilder newProjectLocationBuilder()
public LocationName.Builder toBuilder()
public static LocationName of(String organization, String location)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static LocationName ofOrganizationLocationName(String organization, String location)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static LocationName ofProjectLocationName(String project, String location)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatOrganizationLocationName(String organization, String location)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatProjectLocationName(String project, String location)
public static LocationName parse(String formattedString)
public static List<LocationName> parseList(List<String> formattedStrings)
public static List<String> toStringList(List<LocationName> 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 © 2024 Google LLC. All rights reserved.