Class CustomMetricName (0.24.0)

public class CustomMetricName implements ResourceName

Inheritance

Object > CustomMetricName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String property, String customMetric)

public static String format(String property, String customMetric)
Parameters
NameDescription
propertyString
customMetricString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

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

newBuilder()

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

of(String property, String customMetric)

public static CustomMetricName of(String property, String customMetric)
Parameters
NameDescription
propertyString
customMetricString
Returns
TypeDescription
CustomMetricName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<CustomMetricName> values)

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

Constructors

CustomMetricName()

protected CustomMetricName()

Methods

equals(Object o)

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

getCustomMetric()

public String getCustomMetric()
Returns
TypeDescription
String

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>

getProperty()

public String getProperty()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides