Class MetricsName (3.31.0)

public class MetricsName implements ResourceName

Inheritance

Object > MetricsName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String key)

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

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>

toStringList(List<MetricsName> values)

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

Constructors

MetricsName() (deprecated)

protected MetricsName()

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>

getKey()

public String getKey()
Returns
TypeDescription
String

getProject()

public String getProject()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides