Class SpanName (2.49.0)

See more code actions.
public class SpanName implements ResourceName
Object > SpanName
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
Name Description
project String
trace String
span 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 SpanName.Builder newBuilder()
Returns
Type Description
SpanName.Builder

of(String project, String trace, String span)

public static SpanName of(String project, String trace, String span)
Parameters
Name Description
project String
trace String
span String
Returns
Type Description
SpanName

parse(String formattedString)

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

parseList(List<String> formattedStrings)

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

toStringList(List<SpanName> values)

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

Constructors

SpanName() (deprecated)

protected SpanName()

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>

getProject()

public String getProject()
Returns
Type Description
String

getSpan()

public String getSpan()
Returns
Type Description
String

getTrace()

public String getTrace()
Returns
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

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

toString()

public String toString()
Returns
Type Description
String
Overrides