Class Schema.Builder 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 1.5.4keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  Schema . Builder   extends   GeneratedMessageV3 . Builder<Schema . Builder >  implements   SchemaOrBuilder  
  
Represents a schema (e.g. BigQuery, GoogleSQL, Avro schema).
Protobuf type google.cloud.datacatalog.v1beta1.Schema
Methods
   
  addAllColumns(Iterable<? extends ColumnSchema> values) 
  
    
public   Schema . Builder   addAllColumns ( Iterable <?   extends   ColumnSchema >  values )  
  
Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be
 specified.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter 
  
    
      
        Name Description  
      
        values Iterable <? extends com.google.cloud.datacatalog.v1beta1.ColumnSchema > 
     
  
  Returns 
  
  addColumns(ColumnSchema value) 
  
    
public   Schema . Builder   addColumns ( ColumnSchema   value )  
  
Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be
 specified.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter 
  
  Returns 
  
  addColumns(ColumnSchema.Builder builderForValue) 
  
    
public   Schema . Builder   addColumns ( ColumnSchema . Builder   builderForValue )  
  
Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be
 specified.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter 
  
  Returns 
  
  addColumns(int index, ColumnSchema value) 
  
    
public   Schema . Builder   addColumns ( int   index ,   ColumnSchema   value )  
  
Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be
 specified.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED];
Parameters 
  
  Returns 
  
  addColumns(int index, ColumnSchema.Builder builderForValue) 
  
    
public   Schema . Builder   addColumns ( int   index ,   ColumnSchema . Builder   builderForValue )  
  
Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be
 specified.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED];
Parameters 
  
  Returns 
  
  addColumnsBuilder() 
  
    
public   ColumnSchema . Builder   addColumnsBuilder ()  
  
Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be
 specified.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED];
Returns 
  
  addColumnsBuilder(int index) 
  
    
public   ColumnSchema . Builder   addColumnsBuilder ( int   index )  
  
Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be
 specified.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter 
  
    
      
        Name Description  
      
        index int  
     
  
  Returns 
  
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   Schema . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  build() 
  
  Returns 
  
  buildPartial() 
  
    
public   Schema   buildPartial ()  
  Returns 
  
  clear() 
  
    
public   Schema . Builder   clear ()  
  Returns 
  
  Overrides 
  
  clearColumns() 
  
    
public   Schema . Builder   clearColumns ()  
  
Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be
 specified.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED];
Returns 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   Schema . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   Schema . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  clone() 
  
    
public   Schema . Builder   clone ()  
  Returns 
  
  Overrides 
  
  getColumns(int index) 
  
    
public   ColumnSchema   getColumns ( int   index )  
  
Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be
 specified.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter 
  
    
      
        Name Description  
      
        index int  
     
  
  Returns 
  
  getColumnsBuilder(int index) 
  
    
public   ColumnSchema . Builder   getColumnsBuilder ( int   index )  
  
Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be
 specified.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter 
  
    
      
        Name Description  
      
        index int  
     
  
  Returns 
  
  getColumnsBuilderList() 
  
    
public   List<ColumnSchema . Builder >  getColumnsBuilderList ()  
  
Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be
 specified.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED];
Returns 
  
  getColumnsCount() 
  
    
public   int   getColumnsCount ()  
  
Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be
 specified.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED];
Returns 
  
  getColumnsList() 
  
    
public   List<ColumnSchema>   getColumnsList ()  
  
Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be
 specified.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED];
Returns 
  
  getColumnsOrBuilder(int index) 
  
    
public   ColumnSchemaOrBuilder   getColumnsOrBuilder ( int   index )  
  
Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be
 specified.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter 
  
    
      
        Name Description  
      
        index int  
     
  
  Returns 
  
  getColumnsOrBuilderList() 
  
    
public   List <?   extends   ColumnSchemaOrBuilder >  getColumnsOrBuilderList ()  
  
Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be
 specified.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED];
Returns 
  
    
      
        Type Description  
      
        List <? extends com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder > 
     
  
  getDefaultInstanceForType() 
  
    
public   Schema   getDefaultInstanceForType ()  
  Returns 
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  Returns 
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  Returns 
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  Returns 
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  Returns 
  
  Overrides 
  
  mergeFrom(Schema other) 
  
    
public   Schema . Builder   mergeFrom ( Schema   other )  
  Parameter 
  
  Returns 
  
  
    
public   Schema . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  Exceptions 
  
  mergeFrom(Message other) 
  
    
public   Schema . Builder   mergeFrom ( Message   other )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   Schema . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  Parameter 
  
  Returns 
  
  Overrides 
  
  removeColumns(int index) 
  
    
public   Schema . Builder   removeColumns ( int   index )  
  
Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be
 specified.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter 
  
    
      
        Name Description  
      
        index int  
     
  
  Returns 
  
  setColumns(int index, ColumnSchema value) 
  
    
public   Schema . Builder   setColumns ( int   index ,   ColumnSchema   value )  
  
Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be
 specified.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED];
Parameters 
  
  Returns 
  
  setColumns(int index, ColumnSchema.Builder builderForValue) 
  
    
public   Schema . Builder   setColumns ( int   index ,   ColumnSchema . Builder   builderForValue )  
  
Required. Schema of columns. A maximum of 10,000 columns and sub-columns can be
 specified.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED];
Parameters 
  
  Returns 
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   Schema . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   Schema . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  Parameters 
  
  Returns 
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   Schema . 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-28 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-28 UTC."],[],[]]