Class Schema.Builder (1.20.0)

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

Implements

SchemaOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

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
NameDescription
valuesIterable<? extends com.google.cloud.datacatalog.v1beta1.ColumnSchema>
Returns
TypeDescription
Schema.Builder

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
NameDescription
valueColumnSchema
Returns
TypeDescription
Schema.Builder

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
NameDescription
builderForValueColumnSchema.Builder
Returns
TypeDescription
Schema.Builder

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
NameDescription
indexint
valueColumnSchema
Returns
TypeDescription
Schema.Builder

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
NameDescription
indexint
builderForValueColumnSchema.Builder
Returns
TypeDescription
Schema.Builder

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
TypeDescription
ColumnSchema.Builder

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
NameDescription
indexint
Returns
TypeDescription
ColumnSchema.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Schema.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Schema.Builder
Overrides

build()

public Schema build()
Returns
TypeDescription
Schema

buildPartial()

public Schema buildPartial()
Returns
TypeDescription
Schema

clear()

public Schema.Builder clear()
Returns
TypeDescription
Schema.Builder
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
TypeDescription
Schema.Builder

clearField(Descriptors.FieldDescriptor field)

public Schema.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Schema.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Schema.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Schema.Builder
Overrides

clone()

public Schema.Builder clone()
Returns
TypeDescription
Schema.Builder
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
NameDescription
indexint
Returns
TypeDescription
ColumnSchema

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
NameDescription
indexint
Returns
TypeDescription
ColumnSchema.Builder

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
TypeDescription
List<Builder>

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
TypeDescription
int

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
TypeDescription
List<ColumnSchema>

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
NameDescription
indexint
Returns
TypeDescription
ColumnSchemaOrBuilder

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
TypeDescription
List<? extends com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder>

getDefaultInstanceForType()

public Schema getDefaultInstanceForType()
Returns
TypeDescription
Schema

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Schema other)

public Schema.Builder mergeFrom(Schema other)
Parameter
NameDescription
otherSchema
Returns
TypeDescription
Schema.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Schema.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Schema.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Schema.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Schema.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Schema.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Schema.Builder
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
NameDescription
indexint
Returns
TypeDescription
Schema.Builder

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
NameDescription
indexint
valueColumnSchema
Returns
TypeDescription
Schema.Builder

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
NameDescription
indexint
builderForValueColumnSchema.Builder
Returns
TypeDescription
Schema.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Schema.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Schema.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Schema.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Schema.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Schema.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Schema.Builder
Overrides