Class LogMetricName (3.20.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
Name Description
project String
metric String
Returns
Type Description
String

isParsableFrom(String formattedString)

public static boolean isParsableFrom(String formattedString)
Parameter
Name Description
formattedString String
Returns
Type Description
boolean

newBuilder()

public static LogMetricName.Builder newBuilder()
Returns
Type Description
LogMetricName.Builder

of(String project, String metric)

public static LogMetricName of(String project, String metric)
Parameters
Name Description
project String
metric String
Returns
Type Description
LogMetricName

parse(String formattedString)

public static LogMetricName parse(String formattedString)
Parameter
Name Description
formattedString String
Returns
Type Description
LogMetricName

parseList(List<String> formattedStrings)

public static List<LogMetricName> parseList(List<String> formattedStrings)
Parameter
Name Description
formattedStrings List<String>
Returns
Type Description
List<LogMetricName>

toStringList(List<LogMetricName> values)

public static List<String> toStringList(List<LogMetricName> values)
Parameter
Name Description
values List<LogMetricName>
Returns
Type Description
List<String>

Constructors

LogMetricName() (deprecated)

protected LogMetricName()

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getFieldValue(String fieldName)

public String getFieldValue(String fieldName)
Parameter
Name Description
fieldName String
Returns
Type Description
String

getFieldValuesMap()

public Map<String,String> getFieldValuesMap()
Returns
Type Description
Map<String,String>

getMetric()

public String getMetric()
Returns
Type Description
String

getProject()

public String getProject()
Returns
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

public LogMetricName.Builder toBuilder()
Returns
Type Description
LogMetricName.Builder

toString()

public String toString()
Returns
Type Description
String
Overrides