Class Span (0.1.0)

public final class Span extends GeneratedMessage implements SpanOrBuilder

A span is a unit of work or a single operation during the request processing.

Protobuf type google.cloud.ces.v1.Span

Implements

SpanOrBuilder

Static Fields

ATTRIBUTES_FIELD_NUMBER

public static final int ATTRIBUTES_FIELD_NUMBER
Field Value
Type Description
int

CHILD_SPANS_FIELD_NUMBER

public static final int CHILD_SPANS_FIELD_NUMBER
Field Value
Type Description
int

DURATION_FIELD_NUMBER

public static final int DURATION_FIELD_NUMBER
Field Value
Type Description
int

END_TIME_FIELD_NUMBER

public static final int END_TIME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Span getDefaultInstance()
Returns
Type Description
Span

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

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

newBuilder(Span prototype)

public static Span.Builder newBuilder(Span prototype)
Parameter
Name Description
prototype Span
Returns
Type Description
Span.Builder

parseDelimitedFrom(InputStream input)

public static Span parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Span
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Span parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Span parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Span
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Span parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Span parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Span
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Span parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Span parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Span
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Span parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Span parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Span
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Span parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Span parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Span
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Span parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Span
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Span> parser()
Returns
Type Description
Parser<Span>

Methods

equals(Object obj)

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

getAttributes()

public Struct getAttributes()

Output only. Key-value attributes associated with the span.

.google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Struct

The attributes.

getAttributesOrBuilder()

public StructOrBuilder getAttributesOrBuilder()

Output only. Key-value attributes associated with the span.

.google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StructOrBuilder

getChildSpans(int index)

public Span getChildSpans(int index)

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Span

getChildSpansCount()

public int getChildSpansCount()

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getChildSpansList()

public List<Span> getChildSpansList()

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Span>

getChildSpansOrBuilder(int index)

public SpanOrBuilder getChildSpansOrBuilder(int index)

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
SpanOrBuilder

getChildSpansOrBuilderList()

public List<? extends SpanOrBuilder> getChildSpansOrBuilderList()

Output only. The child spans that are nested under this span.

repeated .google.cloud.ces.v1.Span child_spans = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.ces.v1.SpanOrBuilder>

getDefaultInstanceForType()

public Span getDefaultInstanceForType()
Returns
Type Description
Span

getDuration()

public Duration getDuration()

Output only. The duration of the span.

.google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Duration

The duration.

getDurationOrBuilder()

public DurationOrBuilder getDurationOrBuilder()

Output only. The duration of the span.

.google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DurationOrBuilder

getEndTime()

public Timestamp getEndTime()

Output only. The end time of the span.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The endTime.

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. The end time of the span.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getName()

public String getName()

Output only. The name of the span.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the span.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<Span> getParserForType()
Returns
Type Description
Parser<Span>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStartTime()

public Timestamp getStartTime()

Output only. The start time of the span.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The startTime.

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. The start time of the span.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasAttributes()

public boolean hasAttributes()

Output only. Key-value attributes associated with the span.

.google.protobuf.Struct attributes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the attributes field is set.

hasDuration()

public boolean hasDuration()

Output only. The duration of the span.

.google.protobuf.Duration duration = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the duration field is set.

hasEndTime()

public boolean hasEndTime()

Output only. The end time of the span.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Output only. The start time of the span.

.google.protobuf.Timestamp start_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the startTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Span.Builder newBuilderForType()
Returns
Type Description
Span.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Span.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Span.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException