Class Schema.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Schema.Builder>
com.google.cloud.datacatalog.v1beta1.Schema.Builder
All Implemented Interfaces:
SchemaOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Schema

public static final class Schema.Builder extends com.google.protobuf.GeneratedMessage.Builder<Schema.Builder> implements SchemaOrBuilder
 Represents a schema (e.g. BigQuery, GoogleSQL, Avro schema).
 
Protobuf type google.cloud.datacatalog.v1beta1.Schema
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Schema.Builder>
    • clear

      public Schema.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Schema.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Schema.Builder>
    • getDefaultInstanceForType

      public Schema getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Schema build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Schema buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Schema.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Schema.Builder>
    • mergeFrom

      public Schema.Builder mergeFrom(Schema other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Schema.Builder>
    • mergeFrom

      public Schema.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Schema.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getColumnsList in interface SchemaOrBuilder
    • 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];
      Specified by:
      getColumnsCount in interface SchemaOrBuilder
    • getColumns

      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];
      Specified by:
      getColumns in interface SchemaOrBuilder
    • setColumns

      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];
    • setColumns

      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];
    • addColumns

      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];
    • addColumns

      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];
    • addColumns

      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];
    • addColumns

      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];
    • addAllColumns

      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];
    • 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];
    • removeColumns

      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];
    • getColumnsBuilder

      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];
    • getColumnsOrBuilder

      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];
      Specified by:
      getColumnsOrBuilder in interface SchemaOrBuilder
    • 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];
      Specified by:
      getColumnsOrBuilderList in interface SchemaOrBuilder
    • 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];
    • addColumnsBuilder

      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];
    • 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];