Class MetricDescriptorName

  • All Implemented Interfaces:
    com.google.api.resourcenames.ResourceName

    @Generated("by gapic-generator-java")
    public class MetricDescriptorName
    extends Object
    implements com.google.api.resourcenames.ResourceName
    • Constructor Detail

      • MetricDescriptorName

        @Deprecated
        protected MetricDescriptorName()
        Deprecated.
    • Method Detail

      • getProject

        public String getProject()
      • getMetricDescriptor

        public String getMetricDescriptor()
      • getOrganization

        public String getOrganization()
      • getFolder

        public String getFolder()
      • newProjectMetricDescriptorBuilder

        @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
        public static MetricDescriptorName.Builder newProjectMetricDescriptorBuilder()
      • ofProjectMetricDescriptorName

        @BetaApi("The static create methods are not stable yet and may be changed in the future.")
        public static MetricDescriptorName ofProjectMetricDescriptorName​(String project,
                                                                         String metricDescriptor)
      • ofOrganizationMetricDescriptorName

        @BetaApi("The static create methods are not stable yet and may be changed in the future.")
        public static MetricDescriptorName ofOrganizationMetricDescriptorName​(String organization,
                                                                              String metricDescriptor)
      • ofFolderMetricDescriptorName

        @BetaApi("The static create methods are not stable yet and may be changed in the future.")
        public static MetricDescriptorName ofFolderMetricDescriptorName​(String folder,
                                                                        String metricDescriptor)
      • formatProjectMetricDescriptorName

        @BetaApi("The static format methods are not stable yet and may be changed in the future.")
        public static String formatProjectMetricDescriptorName​(String project,
                                                               String metricDescriptor)
      • formatOrganizationMetricDescriptorName

        @BetaApi("The static format methods are not stable yet and may be changed in the future.")
        public static String formatOrganizationMetricDescriptorName​(String organization,
                                                                    String metricDescriptor)
      • formatFolderMetricDescriptorName

        @BetaApi("The static format methods are not stable yet and may be changed in the future.")
        public static String formatFolderMetricDescriptorName​(String folder,
                                                              String metricDescriptor)
      • isParsableFrom

        public static boolean isParsableFrom​(String formattedString)
      • getFieldValuesMap

        public Map<String,​String> getFieldValuesMap()
        Specified by:
        getFieldValuesMap in interface com.google.api.resourcenames.ResourceName
      • getFieldValue

        public String getFieldValue​(String fieldName)
        Specified by:
        getFieldValue in interface com.google.api.resourcenames.ResourceName
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object