Class SpanName (2.15.0)

public class SpanName implements ResourceName

Inheritance

Object > SpanName

Implements

com.google.api.resourcenames.ResourceName

Static Methods

format(String project, String trace, String span)

public static String format(String project, String trace, String span)
Parameters
NameDescription
projectString
traceString
spanString
Returns
TypeDescription
String

isParsableFrom(String formattedString)

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

newBuilder()

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

of(String project, String trace, String span)

public static SpanName of(String project, String trace, String span)
Parameters
NameDescription
projectString
traceString
spanString
Returns
TypeDescription
SpanName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<SpanName> values)

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

Constructors

SpanName()

protected SpanName()

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>

getProject()

public String getProject()
Returns
TypeDescription
String

getSpan()

public String getSpan()
Returns
TypeDescription
String

getTrace()

public String getTrace()
Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
TypeDescription
String
Overrides