Send feedback
  
   
 
  
    
      Class Span.TimeEvents (2.42.0)
    
    
       
    
    
      
      Stay organized with collections
     
    
      
      Save and categorize content based on your preferences.
     
    
  
      
     
  
  
   
  
    
  
  
    
    
    
  Version 2.42.0keyboard_arrow_down  
  
 
    
    
     
    
    
    
    
    
      
  
  
  
    
public   static   final   class  Span . TimeEvents   extends   GeneratedMessageV3   implements   Span . TimeEventsOrBuilder  
   
   A collection of TimeEvents. A TimeEvent is a time-stamped annotation
 on the span, consisting of either user-supplied key:value pairs, or
 details of a message sent/received between Spans.
 Protobuf type google.devtools.cloudtrace.v2.Span.TimeEvents
 
  
  
  
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  
  
    
public   static   final   int   DROPPED_ANNOTATIONS_COUNT_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  
  
    
public   static   final   int   DROPPED_MESSAGE_EVENTS_COUNT_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  
  
    
public   static   final   int   TIME_EVENT_FIELD_NUMBER  
   
  
    
      
        Field Value  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Static Methods
   
   
  
  
    
public   static   Span . TimeEvents   getDefaultInstance ()  
   
  
   
  
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
   
  
   
  
  
    
public   static   Span . TimeEvents . Builder   newBuilder ()  
   
  
   
  
  
    
public   static   Span . TimeEvents . Builder   newBuilder ( Span . TimeEvents   prototype )  
   
  
  
   
  
  
    
public   static   Span . TimeEvents   parseDelimitedFrom ( InputStream   input )  
   
  
  
  
   
  
  
    
public   static   Span . TimeEvents   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   Span . TimeEvents   parseFrom ( byte []   data )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        data 
        byte [] 
       
     
  
  
  
   
  
  
    
public   static   Span . TimeEvents   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   Span . TimeEvents   parseFrom ( ByteString   data )  
   
  
  
  
   
  
  
    
public   static   Span . TimeEvents   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   Span . TimeEvents   parseFrom ( CodedInputStream   input )  
   
  
  
  
   
  
  
    
public   static   Span . TimeEvents   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   Span . TimeEvents   parseFrom ( InputStream   input )  
   
  
  
  
   
  
  
    
public   static   Span . TimeEvents   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   Span . TimeEvents   parseFrom ( ByteBuffer   data )  
   
  
  
  
   
  
  
    
public   static   Span . TimeEvents   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  
   
  
  
    
public   static   Parser<Span . TimeEvents >  parser ()  
   
  
  Methods
   
   
  
  
    
public   boolean   equals ( Object   obj )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        obj 
        Object  
       
     
  
  
  Overrides 
  
   
  
  
    
public   Span . TimeEvents   getDefaultInstanceForType ()  
   
  
   
  
  
    
public   int   getDroppedAnnotationsCount ()  
   
   The number of dropped annotations in all the included time events.
 If the value is 0, then no annotations were dropped.
 int32 dropped_annotations_count = 2;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
        The droppedAnnotationsCount.
 
       
     
  
   
  
  
    
public   int   getDroppedMessageEventsCount ()  
   
   The number of dropped message events in all the included time events.
 If the value is 0, then no message events were dropped.
 int32 dropped_message_events_count = 3;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
        The droppedMessageEventsCount.
 
       
     
  
   
  
  
    
public   Parser<Span . TimeEvents >  getParserForType ()  
   
  
  Overrides 
  
   
  
  
    
public   int   getSerializedSize ()  
   
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
   
  
  
    
public   Span . TimeEvent   getTimeEvent ( int   index )  
   
   A collection of TimeEvents.
 repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        index 
        int  
       
     
  
  
   
  
  
    
public   int   getTimeEventCount ()  
   
   A collection of TimeEvents.
 repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
   
  
  
    
public   List<Span . TimeEvent >  getTimeEventList ()  
   
   A collection of TimeEvents.
 repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
 
  
   
  
  
    
public   Span . TimeEventOrBuilder   getTimeEventOrBuilder ( int   index )  
   
   A collection of TimeEvents.
 repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        index 
        int  
       
     
  
  
   
  
  
    
public   List <?   extends   Span . TimeEventOrBuilder >  getTimeEventOrBuilderList ()  
   
   A collection of TimeEvents.
 repeated .google.devtools.cloudtrace.v2.Span.TimeEvent time_event = 1;
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        List <? extends com.google.devtools.cloudtrace.v2.Span.TimeEventOrBuilder > 
         
       
     
  
   
  
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
  Overrides 
  
   
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  
  Overrides 
  
   
  
  
    
public   final   boolean   isInitialized ()  
   
  
  Overrides 
  
   
  
  
    
public   Span . TimeEvents . Builder   newBuilderForType ()  
   
  
   
  
  
    
protected   Span . TimeEvents . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
   
  
  
  Overrides 
  
   
  
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
   
  
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        Object  
         
       
     
  
  Overrides 
  
   
  
  
    
public   Span . TimeEvents . Builder   toBuilder ()  
   
  
   
  
  
    
public   void   writeTo ( CodedOutputStream   output )  
   
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
 
  
    
    
      
    
     
  
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]