Class Span.Links.Builder (2.8.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.8.0keyboard_arrow_down  
  
 
    
    
    
      
  
  
  
    
public   static   final   class  Span . Links . Builder   extends   GeneratedMessageV3 . Builder<Span . Links . Builder >  implements   Span . LinksOrBuilder  
   A collection of links, which are references from this span to a span
 in the same or different trace.
 Protobuf type google.devtools.cloudtrace.v2.Span.Links
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString) 
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int) 
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int) 
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder) 
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Methods
   
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  Returns 
  
  Methods
   
  
    
public   Span . Links . Builder   addAllLink ( Iterable <?   extends   Span . Link >  values )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
Parameter 
  
    
      
        Name Description  
      
        values Iterable <? extends com.google.devtools.cloudtrace.v2.Span.Link > 
     
  
  Returns 
  
  
    
public   Span . Links . Builder   addLink ( Span . Link   value )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
Parameter 
  
  Returns 
  
  
    
public   Span . Links . Builder   addLink ( Span . Link . Builder   builderForValue )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
Parameter 
  
  Returns 
  
  
    
public   Span . Links . Builder   addLink ( int   index ,   Span . Link   value )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
Parameters 
  
  Returns 
  
  
    
public   Span . Links . Builder   addLink ( int   index ,   Span . Link . Builder   builderForValue )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
Parameters 
  
  Returns 
  
  
    
public   Span . Link . Builder   addLinkBuilder ()  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
Returns 
  
  
    
public   Span . Link . Builder   addLinkBuilder ( int   index )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
Parameter 
  
    
      
        Name Description  
      
        index int  
     
  
  Returns 
  
  
    
public   Span . Links . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  
    
public   Span . Links   build ()  
  Returns 
  
  
    
public   Span . Links   buildPartial ()  
  Returns 
  
  
    
public   Span . Links . Builder   clear ()  
  Returns 
  
  Overrides 
  
  
    
public   Span . Links . Builder   clearDroppedLinksCount ()  
   The number of dropped links after the maximum size was enforced. If
 this value is 0, then no links were dropped.
 int32 dropped_links_count = 2;
Returns 
  
  
    
public   Span . Links . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  
    
public   Span . Links . Builder   clearLink ()  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
Returns 
  
  
    
public   Span . Links . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  
    
public   Span . Links . Builder   clone ()  
  Returns 
  
  Overrides 
  
  
    
public   Span . Links   getDefaultInstanceForType ()  
  Returns 
  
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  Returns 
  
  Overrides 
  
  
    
public   int   getDroppedLinksCount ()  
   The number of dropped links after the maximum size was enforced. If
 this value is 0, then no links were dropped.
 int32 dropped_links_count = 2;
Returns 
  
    
      
        Type Description  
      
        int The droppedLinksCount.
 
     
  
  
    
public   Span . Link   getLink ( int   index )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
Parameter 
  
    
      
        Name Description  
      
        index int  
     
  
  Returns 
  
  
    
public   Span . Link . Builder   getLinkBuilder ( int   index )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
Parameter 
  
    
      
        Name Description  
      
        index int  
     
  
  Returns 
  
  
    
public   List<Span . Link . Builder >  getLinkBuilderList ()  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
Returns 
  
  
    
public   int   getLinkCount ()  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
Returns 
  
  
    
public   List<Span . Link >  getLinkList ()  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
Returns 
  
  
    
public   Span . LinkOrBuilder   getLinkOrBuilder ( int   index )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
Parameter 
  
    
      
        Name Description  
      
        index int  
     
  
  Returns 
  
  
    
public   List <?   extends   Span . LinkOrBuilder >  getLinkOrBuilderList ()  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
Returns 
  
    
      
        Type Description  
      
        List <? extends com.google.devtools.cloudtrace.v2.Span.LinkOrBuilder > 
     
  
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  Returns 
  
  Overrides 
  
  
    
public   final   boolean   isInitialized ()  
  Returns 
  
  Overrides 
  
  
    
public   Span . Links . Builder   mergeFrom ( Span . Links   other )  
  Parameter 
  
  Returns 
  
  
    
public   Span . Links . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  Exceptions 
  
  
    
public   Span . Links . Builder   mergeFrom ( Message   other )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  
    
public   final   Span . Links . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  
    
public   Span . Links . Builder   removeLink ( int   index )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
Parameter 
  
    
      
        Name Description  
      
        index int  
     
  
  Returns 
  
  
    
public   Span . Links . Builder   setDroppedLinksCount ( int   value )  
   The number of dropped links after the maximum size was enforced. If
 this value is 0, then no links were dropped.
 int32 dropped_links_count = 2;
Parameter 
  
    
      
        Name Description  
      
        value int The droppedLinksCount to set.
 
     
  
  Returns 
  
  
    
public   Span . Links . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  
    
public   Span . Links . Builder   setLink ( int   index ,   Span . Link   value )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
Parameters 
  
  Returns 
  
  
    
public   Span . Links . Builder   setLink ( int   index ,   Span . Link . Builder   builderForValue )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
Parameters 
  
  Returns 
  
  
    
public   Span . Links . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  
    
public   final   Span . Links . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  Parameter 
  
  Returns 
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  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-11 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]