public static enum TraceSpan.SpanKind extends java.lang.Enum<TraceSpan.SpanKind> implements ProtocolMessageEnum
Type of span. Can be used to specify additional relationships between spans in addition to a parent/child relationship.Protobuf enum
google.devtools.cloudtrace.v1.TraceSpan.SpanKind
Enum Constant and Description |
---|
RPC_CLIENT
Indicates that the span covers the client-side wrapper around an RPC or
other remote request.
|
RPC_SERVER
Indicates that the span covers server-side handling of an RPC or other
remote network request.
|
SPAN_KIND_UNSPECIFIED
Unspecified.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
RPC_CLIENT_VALUE
Indicates that the span covers the client-side wrapper around an RPC or
other remote request.
|
static int |
RPC_SERVER_VALUE
Indicates that the span covers server-side handling of an RPC or other
remote network request.
|
static int |
SPAN_KIND_UNSPECIFIED_VALUE
Unspecified.
|
Modifier and Type | Method and Description |
---|---|
static TraceSpan.SpanKind |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<TraceSpan.SpanKind> |
internalGetValueMap() |
static TraceSpan.SpanKind |
valueOf(Descriptors.EnumValueDescriptor desc) |
static TraceSpan.SpanKind |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static TraceSpan.SpanKind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TraceSpan.SpanKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TraceSpan.SpanKind SPAN_KIND_UNSPECIFIED
Unspecified.
SPAN_KIND_UNSPECIFIED = 0;
public static final TraceSpan.SpanKind RPC_SERVER
Indicates that the span covers server-side handling of an RPC or other remote network request.
RPC_SERVER = 1;
public static final TraceSpan.SpanKind RPC_CLIENT
Indicates that the span covers the client-side wrapper around an RPC or other remote request.
RPC_CLIENT = 2;
public static final TraceSpan.SpanKind UNRECOGNIZED
public static final int SPAN_KIND_UNSPECIFIED_VALUE
Unspecified.
SPAN_KIND_UNSPECIFIED = 0;
public static final int RPC_SERVER_VALUE
Indicates that the span covers server-side handling of an RPC or other remote network request.
RPC_SERVER = 1;
public static final int RPC_CLIENT_VALUE
Indicates that the span covers the client-side wrapper around an RPC or other remote request.
RPC_CLIENT = 2;
public static TraceSpan.SpanKind[] values()
for (TraceSpan.SpanKind c : TraceSpan.SpanKind.values()) System.out.println(c);
public static TraceSpan.SpanKind valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static TraceSpan.SpanKind valueOf(int value)
forNumber(int)
instead.public static TraceSpan.SpanKind forNumber(int value)
public static Internal.EnumLiteMap<TraceSpan.SpanKind> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static TraceSpan.SpanKind valueOf(Descriptors.EnumValueDescriptor desc)