public final class Link extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Trace API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Link() |
| Modifier and Type | Method and Description |
|---|---|
Link |
clone() |
Attributes |
getAttributes()
A set of attributes on the link.
|
String |
getSpanId()
The [SPAN_ID] for a span within a trace.
|
String |
getTraceId()
The [TRACE_ID] for a trace within a project.
|
String |
getType()
The relationship of the current span relative to the linked span.
|
Link |
set(String fieldName,
Object value) |
Link |
setAttributes(Attributes attributes)
A set of attributes on the link.
|
Link |
setSpanId(String spanId)
The [SPAN_ID] for a span within a trace.
|
Link |
setTraceId(String traceId)
The [TRACE_ID] for a trace within a project.
|
Link |
setType(String type)
The relationship of the current span relative to the linked span.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Attributes getAttributes()
null for nonepublic Link setAttributes(Attributes attributes)
attributes - attributes or null for nonepublic String getSpanId()
null for nonepublic Link setSpanId(String spanId)
spanId - spanId or null for nonepublic String getTraceId()
null for nonepublic Link setTraceId(String traceId)
traceId - traceId or null for nonepublic String getType()
null for nonepublic Link setType(String type)
type - type or null for nonepublic Link set(String fieldName, Object value)
set in class GenericJsonpublic Link clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.