Send feedback
  
   
 
  
    
      Class AnnotationSpecName.Builder (3.79.0)
    
    
       
    
    
      
      Stay organized with collections
     
    
      
      Save and categorize content based on your preferences.
     
    
  
      
     
  
  
   
  
    
  
  
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   class  AnnotationSpecName . Builder  
   
  Builder for
 projects/{project}/locations/{location}/datasets/{dataset}/annotationSpecs/{annotation_spec}.
 
  
  
  Constructors
   
   
  
  
  Methods
   
   
  
  
    
public   AnnotationSpecName   build ()  
   
  
   
  
  
    
public   String   getAnnotationSpec ()  
   
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        String  
         
       
     
  
   
  
  
    
public   String   getDataset ()  
   
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        String  
         
       
     
  
   
  
  
    
public   String   getLocation ()  
   
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        String  
         
       
     
  
   
  
  
    
public   String   getProject ()  
   
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        String  
         
       
     
  
   
  
  
    
public   AnnotationSpecName . Builder   setAnnotationSpec ( String   annotationSpec )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        annotationSpec 
        String  
       
     
  
  
   
  
  
    
public   AnnotationSpecName . Builder   setDataset ( String   dataset )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        dataset 
        String  
       
     
  
  
   
  
  
    
public   AnnotationSpecName . Builder   setLocation ( String   location )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        location 
        String  
       
     
  
  
   
  
  
    
public   AnnotationSpecName . Builder   setProject ( String   project )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        project 
        String  
       
     
  
  
 
     
    
  
  
  
     
  
 
  
    
    
      
    
     
  
       
         
  
  
    
    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."],[],[]]