Class MetricsName

public class MetricsName implements ResourceName

Inheritance

Object > MetricsName

Implements

com.google.api.resourcenames.ResourceName

Constructors

MetricsName()

protected MetricsName()

Methods

equals(Object o)

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

format(String project, String key)

public static String format(String project, String key)
Parameters
NameDescription
projectString
keyString
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>

getKey()

public String getKey()
Returns
TypeDescription
String

getProject()

public String getProject()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

isParsableFrom(String formattedString)

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

newBuilder()

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

of(String project, String key)

public static MetricsName of(String project, String key)
Parameters
NameDescription
projectString
keyString
Returns
TypeDescription
MetricsName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides

toStringList(List<MetricsName> values)

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