Class Span.Links.Builder (2.55.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 2.55.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.internalGetMapFieldReflection(int) 
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int) 
    
    
    
    
    
    
      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 ()  
  
  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  
      
        valuesIterable <? extends com.google.devtools.cloudtrace.v2.Span.Link > 
     
  
  
  
    
public   Span . Links . Builder   addLink ( Span . Link   value )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
    
public   Span . Links . Builder   addLink ( Span . Link . Builder   builderForValue )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
    
public   Span . Links . Builder   addLink ( int   index ,   Span . Link   value )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
    
public   Span . Links . Builder   addLink ( int   index ,   Span . Link . Builder   builderForValue )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
    
public   Span . Link . Builder   addLinkBuilder ()  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
    
public   Span . Link . Builder   addLinkBuilder ( int   index )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  
    
public   Span . Links . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  
    
public   Span . Links   build ()  
  
  
    
public   Span . Links   buildPartial ()  
  
  
    
public   Span . Links . Builder   clear ()  
  
  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;
    
public   Span . Links . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  
    
public   Span . Links . Builder   clearLink ()  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
    
public   Span . Links . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  
    
public   Span . Links . Builder   clone ()  
  
  Overrides 
  
  
    
public   Span . Links   getDefaultInstanceForType ()  
  
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  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  
      
        indexint  
     
  
  
  
    
public   Span . Link . Builder   getLinkBuilder ( int   index )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  
    
public   List<Span . Link . Builder >  getLinkBuilderList ()  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
    
public   int   getLinkCount ()  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  
    
public   List<Span . Link >  getLinkList ()  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
    
public   Span . LinkOrBuilder   getLinkOrBuilder ( int   index )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  
    
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 ()  
  
  Overrides 
  
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  
    
public   Span . Links . Builder   mergeFrom ( Span . Links   other )  
  
  
  
    
public   Span . Links . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  
    
public   Span . Links . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  
    
public   final   Span . Links . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  
    
public   Span . Links . Builder   removeLink ( int   index )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  
    
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  
      
        valueint The droppedLinksCount to set.
 
     
  
  
  
    
public   Span . Links . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  
    
public   Span . Links . Builder   setLink ( int   index ,   Span . Link   value )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
    
public   Span . Links . Builder   setLink ( int   index ,   Span . Link . Builder   builderForValue )  
   A collection of links.
 repeated .google.devtools.cloudtrace.v2.Span.Link link = 1;
    
public   Span . Links . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  
    
public   final   Span . Links . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  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."],[],[]]