Class Span (0.7.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

getDescriptor()

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

newBuilder()

  public 
  
 static 
  
 Span 
 . 
 Builder 
  
 newBuilder 
 () 
 
Returns
Type
Description

newBuilder(Span prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

  public 
  
 boolean 
  
 equals 
 ( 
 Object 
  
 obj 
 ) 
 
Parameter
Name
Description
obj
Returns
Type
Description
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

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

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

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

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

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

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

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

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

getName()

  public 
  
 String 
  
 getName 
 () 
 

Output only. The name of the span.

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

Returns
Type
Description

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

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

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

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

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

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

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

Whether the startTime field is set.

hashCode()

  public 
  
 int 
  
 hashCode 
 () 
 
Returns
Type
Description
int
Overrides

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessage 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

newBuilderForType()

  public 
  
 Span 
 . 
 Builder 
  
 newBuilderForType 
 () 
 
Returns
Type
Description

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

  public 
  
 Span 
 . 
 Builder 
  
 toBuilder 
 () 
 
Returns
Type
Description

writeTo(CodedOutputStream output)

  public 
  
 void 
  
 writeTo 
 ( 
 CodedOutputStream 
  
 output 
 ) 
 
Parameter
Name
Description
Overrides
Exceptions
Type
Description
Create a Mobile Website
View Site in Mobile | Classic
Share by: