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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
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()
newBuilder()
public static Span.Builder newBuilder()
newBuilder(Span prototype)
public static Span.Builder newBuilder(Span prototype)
| Parameter |
| Name |
Description |
prototype |
Span
|
public static Span parseDelimitedFrom(InputStream input)
| Returns |
| Type |
Description |
Span |
|
public static Span parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Span |
|
parseFrom(byte[] data)
public static Span parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
| Returns |
| Type |
Description |
Span |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Span parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Span |
|
parseFrom(ByteString data)
public static Span parseFrom(ByteString data)
| Returns |
| Type |
Description |
Span |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Span parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Span |
|
public static Span parseFrom(CodedInputStream input)
| Returns |
| Type |
Description |
Span |
|
public static Span parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Span |
|
public static Span parseFrom(InputStream input)
| Returns |
| Type |
Description |
Span |
|
public static Span parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Span |
|
parseFrom(ByteBuffer data)
public static Span parseFrom(ByteBuffer data)
| Returns |
| Type |
Description |
Span |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Span parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
| Returns |
| Type |
Description |
Span |
|
parser()
public static Parser<Span> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
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];
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];
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
|
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];
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];
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()
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];
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()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Span.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Span.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Span.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides