Class LogMetricName (3.13.1)

public class LogMetricName implements ResourceName

Inheritance

Object > LogMetricName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String metric)

public static String format(String project, String metric)
Parameters
NameDescription
projectString
metricString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

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

newBuilder()

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

of(String project, String metric)

public static LogMetricName of(String project, String metric)
Parameters
NameDescription
projectString
metricString
Returns
TypeDescription
LogMetricName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<LogMetricName> values)

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

Constructors

LogMetricName()

protected LogMetricName()

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>

getMetric()

public String getMetric()
Returns
TypeDescription
String

getProject()

public String getProject()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides