@Generated(value="by gapic-generator-java") public class MetricDescriptorName extends Object implements com.google.api.resourcenames.ResourceName
| Modifier and Type | Class and Description |
|---|---|
static class |
MetricDescriptorName.Builder
Builder for projects/{project}/metricDescriptors/{metric_descriptor=**}.
|
static class |
MetricDescriptorName.FolderMetricDescriptorBuilder
Builder for folders/{folder}/metricDescriptors/{metric_descriptor=**}.
|
static class |
MetricDescriptorName.OrganizationMetricDescriptorBuilder
Builder for organizations/{organization}/metricDescriptors/{metric_descriptor=**}.
|
| Modifier | Constructor and Description |
|---|---|
protected |
MetricDescriptorName()
Deprecated.
|
@Deprecated protected MetricDescriptorName()
public String getProject()
public String getMetricDescriptor()
public String getOrganization()
public String getFolder()
public static MetricDescriptorName.Builder newBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static MetricDescriptorName.Builder newProjectMetricDescriptorBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static MetricDescriptorName.OrganizationMetricDescriptorBuilder newOrganizationMetricDescriptorBuilder()
@BetaApi(value="The per-pattern Builders are not stable yet and may be changed in the future.") public static MetricDescriptorName.FolderMetricDescriptorBuilder newFolderMetricDescriptorBuilder()
public MetricDescriptorName.Builder toBuilder()
public static MetricDescriptorName of(String project, String metricDescriptor)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static MetricDescriptorName ofProjectMetricDescriptorName(String project, String metricDescriptor)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static MetricDescriptorName ofOrganizationMetricDescriptorName(String organization, String metricDescriptor)
@BetaApi(value="The static create methods are not stable yet and may be changed in the future.") public static MetricDescriptorName ofFolderMetricDescriptorName(String folder, String metricDescriptor)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatProjectMetricDescriptorName(String project, String metricDescriptor)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatOrganizationMetricDescriptorName(String organization, String metricDescriptor)
@BetaApi(value="The static format methods are not stable yet and may be changed in the future.") public static String formatFolderMetricDescriptorName(String folder, String metricDescriptor)
public static MetricDescriptorName parse(String formattedString)
public static List<MetricDescriptorName> parseList(List<String> formattedStrings)
public static List<String> toStringList(List<MetricDescriptorName> 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.