Class MetricDescriptorName (3.34.0)

public class MetricDescriptorName implements ResourceName

Inheritance

Object > MetricDescriptorName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String metricDescriptor)

public static String format(String project, String metricDescriptor)
Parameters
NameDescription
projectString
metricDescriptorString
Returns
TypeDescription
String

formatFolderMetricDescriptorName(String folder, String metricDescriptor)

public static String formatFolderMetricDescriptorName(String folder, String metricDescriptor)
Parameters
NameDescription
folderString
metricDescriptorString
Returns
TypeDescription
String

formatOrganizationMetricDescriptorName(String organization, String metricDescriptor)

public static String formatOrganizationMetricDescriptorName(String organization, String metricDescriptor)
Parameters
NameDescription
organizationString
metricDescriptorString
Returns
TypeDescription
String

formatProjectMetricDescriptorName(String project, String metricDescriptor)

public static String formatProjectMetricDescriptorName(String project, String metricDescriptor)
Parameters
NameDescription
projectString
metricDescriptorString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

public static boolean isParsableFrom(String formattedString)
Parameter
NameDescription
formattedStringString
Returns
TypeDescription
boolean

newBuilder()

public static MetricDescriptorName.Builder newBuilder()
Returns
TypeDescription
MetricDescriptorName.Builder

newFolderMetricDescriptorBuilder()

public static MetricDescriptorName.FolderMetricDescriptorBuilder newFolderMetricDescriptorBuilder()
Returns
TypeDescription
MetricDescriptorName.FolderMetricDescriptorBuilder

newOrganizationMetricDescriptorBuilder()

public static MetricDescriptorName.OrganizationMetricDescriptorBuilder newOrganizationMetricDescriptorBuilder()
Returns
TypeDescription
MetricDescriptorName.OrganizationMetricDescriptorBuilder

newProjectMetricDescriptorBuilder()

public static MetricDescriptorName.Builder newProjectMetricDescriptorBuilder()
Returns
TypeDescription
MetricDescriptorName.Builder

of(String project, String metricDescriptor)

public static MetricDescriptorName of(String project, String metricDescriptor)
Parameters
NameDescription
projectString
metricDescriptorString
Returns
TypeDescription
MetricDescriptorName

ofFolderMetricDescriptorName(String folder, String metricDescriptor)

public static MetricDescriptorName ofFolderMetricDescriptorName(String folder, String metricDescriptor)
Parameters
NameDescription
folderString
metricDescriptorString
Returns
TypeDescription
MetricDescriptorName

ofOrganizationMetricDescriptorName(String organization, String metricDescriptor)

public static MetricDescriptorName ofOrganizationMetricDescriptorName(String organization, String metricDescriptor)
Parameters
NameDescription
organizationString
metricDescriptorString
Returns
TypeDescription
MetricDescriptorName

ofProjectMetricDescriptorName(String project, String metricDescriptor)

public static MetricDescriptorName ofProjectMetricDescriptorName(String project, String metricDescriptor)
Parameters
NameDescription
projectString
metricDescriptorString
Returns
TypeDescription
MetricDescriptorName

parse(String formattedString)

public static MetricDescriptorName parse(String formattedString)
Parameter
NameDescription
formattedStringString
Returns
TypeDescription
MetricDescriptorName

parseList(List<String> formattedStrings)

public static List<MetricDescriptorName> parseList(List<String> formattedStrings)
Parameter
NameDescription
formattedStringsList<String>
Returns
TypeDescription
List<MetricDescriptorName>

toStringList(List<MetricDescriptorName> values)

public static List<String> toStringList(List<MetricDescriptorName> values)
Parameter
NameDescription
valuesList<MetricDescriptorName>
Returns
TypeDescription
List<String>

Constructors

MetricDescriptorName() (deprecated)

protected MetricDescriptorName()

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getFieldValue(String fieldName)

public String getFieldValue(String fieldName)
Parameter
NameDescription
fieldNameString
Returns
TypeDescription
String

getFieldValuesMap()

public Map<String,String> getFieldValuesMap()
Returns
TypeDescription
Map<String,String>

getFolder()

public String getFolder()
Returns
TypeDescription
String

getMetricDescriptor()

public String getMetricDescriptor()
Returns
TypeDescription
String

getOrganization()

public String getOrganization()
Returns
TypeDescription
String

getProject()

public String getProject()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

public MetricDescriptorName.Builder toBuilder()
Returns
TypeDescription
MetricDescriptorName.Builder

toString()

public String toString()
Returns
TypeDescription
String
Overrides