Class ColumnSchema.Builder (1.19.0)

public static final class ColumnSchema.Builder extends GeneratedMessageV3.Builder<ColumnSchema.Builder> implements ColumnSchemaOrBuilder

A column within a schema. Columns can be nested inside other columns.

Protobuf type google.cloud.datacatalog.v1.ColumnSchema

Static Methods

getDescriptor()

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

Methods

addAllSubcolumns(Iterable<? extends ColumnSchema> values)

public ColumnSchema.Builder addAllSubcolumns(Iterable<? extends ColumnSchema> values)

Optional. Schema of sub-columns. A column can have zero or more sub-columns.

repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.datacatalog.v1.ColumnSchema>
Returns
TypeDescription
ColumnSchema.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSubcolumns(ColumnSchema value)

public ColumnSchema.Builder addSubcolumns(ColumnSchema value)

Optional. Schema of sub-columns. A column can have zero or more sub-columns.

repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueColumnSchema
Returns
TypeDescription
ColumnSchema.Builder

addSubcolumns(ColumnSchema.Builder builderForValue)

public ColumnSchema.Builder addSubcolumns(ColumnSchema.Builder builderForValue)

Optional. Schema of sub-columns. A column can have zero or more sub-columns.

repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueColumnSchema.Builder
Returns
TypeDescription
ColumnSchema.Builder

addSubcolumns(int index, ColumnSchema value)

public ColumnSchema.Builder addSubcolumns(int index, ColumnSchema value)

Optional. Schema of sub-columns. A column can have zero or more sub-columns.

repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueColumnSchema
Returns
TypeDescription
ColumnSchema.Builder

addSubcolumns(int index, ColumnSchema.Builder builderForValue)

public ColumnSchema.Builder addSubcolumns(int index, ColumnSchema.Builder builderForValue)

Optional. Schema of sub-columns. A column can have zero or more sub-columns.

repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueColumnSchema.Builder
Returns
TypeDescription
ColumnSchema.Builder

addSubcolumnsBuilder()

public ColumnSchema.Builder addSubcolumnsBuilder()

Optional. Schema of sub-columns. A column can have zero or more sub-columns.

repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ColumnSchema.Builder

addSubcolumnsBuilder(int index)

public ColumnSchema.Builder addSubcolumnsBuilder(int index)

Optional. Schema of sub-columns. A column can have zero or more sub-columns.

repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ColumnSchema.Builder

build()

public ColumnSchema build()
Returns
TypeDescription
ColumnSchema

buildPartial()

public ColumnSchema buildPartial()
Returns
TypeDescription
ColumnSchema

clear()

public ColumnSchema.Builder clear()
Returns
TypeDescription
ColumnSchema.Builder
Overrides

clearColumn()

public ColumnSchema.Builder clearColumn()

Required. Name of the column. Must be a UTF-8 string without dots (.). The maximum size is 64 bytes.

string column = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

clearDefaultValue()

public ColumnSchema.Builder clearDefaultValue()

Optional. Default value for the column.

string default_value = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

clearDescription()

public ColumnSchema.Builder clearDescription()

Optional. Description of the column. Default value is an empty string. The description must be a UTF-8 string with the maximum size of 2000 bytes.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGcRule()

public ColumnSchema.Builder clearGcRule()

Optional. Garbage collection policy for the column or column family. Applies to systems like Cloud Bigtable.

string gc_rule = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

clearHighestIndexingType()

public ColumnSchema.Builder clearHighestIndexingType()

Optional. Most important inclusion of this column.

.google.cloud.datacatalog.v1.ColumnSchema.IndexingType highest_indexing_type = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

clearLookerColumnSpec()

public ColumnSchema.Builder clearLookerColumnSpec()

Looker specific column info of this column.

.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18;

Returns
TypeDescription
ColumnSchema.Builder

clearMode()

public ColumnSchema.Builder clearMode()

Optional. A column's mode indicates whether values in this column are required, nullable, or repeated. Only NULLABLE, REQUIRED, and REPEATED values are supported. Default mode is NULLABLE.

string mode = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOrdinalPosition()

public ColumnSchema.Builder clearOrdinalPosition()

Optional. Ordinal position

int32 ordinal_position = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

clearSubcolumns()

public ColumnSchema.Builder clearSubcolumns()

Optional. Schema of sub-columns. A column can have zero or more sub-columns.

repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ColumnSchema.Builder

clearSystemSpec()

public ColumnSchema.Builder clearSystemSpec()
Returns
TypeDescription
ColumnSchema.Builder

clearType()

public ColumnSchema.Builder clearType()

Required. Type of the column. Must be a UTF-8 string with the maximum size of 128 bytes.

string type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

clone()

public ColumnSchema.Builder clone()
Returns
TypeDescription
ColumnSchema.Builder
Overrides

getColumn()

public String getColumn()

Required. Name of the column. Must be a UTF-8 string without dots (.). The maximum size is 64 bytes.

string column = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The column.

getColumnBytes()

public ByteString getColumnBytes()

Required. Name of the column. Must be a UTF-8 string without dots (.). The maximum size is 64 bytes.

string column = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for column.

getDefaultInstanceForType()

public ColumnSchema getDefaultInstanceForType()
Returns
TypeDescription
ColumnSchema

getDefaultValue()

public String getDefaultValue()

Optional. Default value for the column.

string default_value = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The defaultValue.

getDefaultValueBytes()

public ByteString getDefaultValueBytes()

Optional. Default value for the column.

string default_value = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for defaultValue.

getDescription()

public String getDescription()

Optional. Description of the column. Default value is an empty string. The description must be a UTF-8 string with the maximum size of 2000 bytes.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. Description of the column. Default value is an empty string. The description must be a UTF-8 string with the maximum size of 2000 bytes.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcRule()

public String getGcRule()

Optional. Garbage collection policy for the column or column family. Applies to systems like Cloud Bigtable.

string gc_rule = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The gcRule.

getGcRuleBytes()

public ByteString getGcRuleBytes()

Optional. Garbage collection policy for the column or column family. Applies to systems like Cloud Bigtable.

string gc_rule = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for gcRule.

getHighestIndexingType()

public ColumnSchema.IndexingType getHighestIndexingType()

Optional. Most important inclusion of this column.

.google.cloud.datacatalog.v1.ColumnSchema.IndexingType highest_indexing_type = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ColumnSchema.IndexingType

The highestIndexingType.

getHighestIndexingTypeValue()

public int getHighestIndexingTypeValue()

Optional. Most important inclusion of this column.

.google.cloud.datacatalog.v1.ColumnSchema.IndexingType highest_indexing_type = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for highestIndexingType.

getLookerColumnSpec()

public ColumnSchema.LookerColumnSpec getLookerColumnSpec()

Looker specific column info of this column.

.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18;

Returns
TypeDescription
ColumnSchema.LookerColumnSpec

The lookerColumnSpec.

getLookerColumnSpecBuilder()

public ColumnSchema.LookerColumnSpec.Builder getLookerColumnSpecBuilder()

Looker specific column info of this column.

.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18;

Returns
TypeDescription
ColumnSchema.LookerColumnSpec.Builder

getLookerColumnSpecOrBuilder()

public ColumnSchema.LookerColumnSpecOrBuilder getLookerColumnSpecOrBuilder()

Looker specific column info of this column.

.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18;

Returns
TypeDescription
ColumnSchema.LookerColumnSpecOrBuilder

getMode()

public String getMode()

Optional. A column's mode indicates whether values in this column are required, nullable, or repeated. Only NULLABLE, REQUIRED, and REPEATED values are supported. Default mode is NULLABLE.

string mode = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The mode.

getModeBytes()

public ByteString getModeBytes()

Optional. A column's mode indicates whether values in this column are required, nullable, or repeated. Only NULLABLE, REQUIRED, and REPEATED values are supported. Default mode is NULLABLE.

string mode = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for mode.

getOrdinalPosition()

public int getOrdinalPosition()

Optional. Ordinal position

int32 ordinal_position = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The ordinalPosition.

getSubcolumns(int index)

public ColumnSchema getSubcolumns(int index)

Optional. Schema of sub-columns. A column can have zero or more sub-columns.

repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ColumnSchema

getSubcolumnsBuilder(int index)

public ColumnSchema.Builder getSubcolumnsBuilder(int index)

Optional. Schema of sub-columns. A column can have zero or more sub-columns.

repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ColumnSchema.Builder

getSubcolumnsBuilderList()

public List<ColumnSchema.Builder> getSubcolumnsBuilderList()

Optional. Schema of sub-columns. A column can have zero or more sub-columns.

repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Builder>

getSubcolumnsCount()

public int getSubcolumnsCount()

Optional. Schema of sub-columns. A column can have zero or more sub-columns.

repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getSubcolumnsList()

public List<ColumnSchema> getSubcolumnsList()

Optional. Schema of sub-columns. A column can have zero or more sub-columns.

repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<ColumnSchema>

getSubcolumnsOrBuilder(int index)

public ColumnSchemaOrBuilder getSubcolumnsOrBuilder(int index)

Optional. Schema of sub-columns. A column can have zero or more sub-columns.

repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ColumnSchemaOrBuilder

getSubcolumnsOrBuilderList()

public List<? extends ColumnSchemaOrBuilder> getSubcolumnsOrBuilderList()

Optional. Schema of sub-columns. A column can have zero or more sub-columns.

repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.datacatalog.v1.ColumnSchemaOrBuilder>

getSystemSpecCase()

public ColumnSchema.SystemSpecCase getSystemSpecCase()
Returns
TypeDescription
ColumnSchema.SystemSpecCase

getType()

public String getType()

Required. Type of the column. Must be a UTF-8 string with the maximum size of 128 bytes.

string type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Required. Type of the column. Must be a UTF-8 string with the maximum size of 128 bytes.

string type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for type.

hasLookerColumnSpec()

public boolean hasLookerColumnSpec()

Looker specific column info of this column.

.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18;

Returns
TypeDescription
boolean

Whether the lookerColumnSpec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ColumnSchema other)

public ColumnSchema.Builder mergeFrom(ColumnSchema other)
Parameter
NameDescription
otherColumnSchema
Returns
TypeDescription
ColumnSchema.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLookerColumnSpec(ColumnSchema.LookerColumnSpec value)

public ColumnSchema.Builder mergeLookerColumnSpec(ColumnSchema.LookerColumnSpec value)

Looker specific column info of this column.

.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18;

Parameter
NameDescription
valueColumnSchema.LookerColumnSpec
Returns
TypeDescription
ColumnSchema.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ColumnSchema.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ColumnSchema.Builder
Overrides

removeSubcolumns(int index)

public ColumnSchema.Builder removeSubcolumns(int index)

Optional. Schema of sub-columns. A column can have zero or more sub-columns.

repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ColumnSchema.Builder

setColumn(String value)

public ColumnSchema.Builder setColumn(String value)

Required. Name of the column. Must be a UTF-8 string without dots (.). The maximum size is 64 bytes.

string column = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The column to set.

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

setColumnBytes(ByteString value)

public ColumnSchema.Builder setColumnBytes(ByteString value)

Required. Name of the column. Must be a UTF-8 string without dots (.). The maximum size is 64 bytes.

string column = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for column to set.

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

setDefaultValue(String value)

public ColumnSchema.Builder setDefaultValue(String value)

Optional. Default value for the column.

string default_value = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The defaultValue to set.

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

setDefaultValueBytes(ByteString value)

public ColumnSchema.Builder setDefaultValueBytes(ByteString value)

Optional. Default value for the column.

string default_value = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for defaultValue to set.

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

setDescription(String value)

public ColumnSchema.Builder setDescription(String value)

Optional. Description of the column. Default value is an empty string. The description must be a UTF-8 string with the maximum size of 2000 bytes.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ColumnSchema.Builder setDescriptionBytes(ByteString value)

Optional. Description of the column. Default value is an empty string. The description must be a UTF-8 string with the maximum size of 2000 bytes.

string description = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcRule(String value)

public ColumnSchema.Builder setGcRule(String value)

Optional. Garbage collection policy for the column or column family. Applies to systems like Cloud Bigtable.

string gc_rule = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The gcRule to set.

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

setGcRuleBytes(ByteString value)

public ColumnSchema.Builder setGcRuleBytes(ByteString value)

Optional. Garbage collection policy for the column or column family. Applies to systems like Cloud Bigtable.

string gc_rule = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for gcRule to set.

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

setHighestIndexingType(ColumnSchema.IndexingType value)

public ColumnSchema.Builder setHighestIndexingType(ColumnSchema.IndexingType value)

Optional. Most important inclusion of this column.

.google.cloud.datacatalog.v1.ColumnSchema.IndexingType highest_indexing_type = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueColumnSchema.IndexingType

The highestIndexingType to set.

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

setHighestIndexingTypeValue(int value)

public ColumnSchema.Builder setHighestIndexingTypeValue(int value)

Optional. Most important inclusion of this column.

.google.cloud.datacatalog.v1.ColumnSchema.IndexingType highest_indexing_type = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

The enum numeric value on the wire for highestIndexingType to set.

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

setLookerColumnSpec(ColumnSchema.LookerColumnSpec value)

public ColumnSchema.Builder setLookerColumnSpec(ColumnSchema.LookerColumnSpec value)

Looker specific column info of this column.

.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18;

Parameter
NameDescription
valueColumnSchema.LookerColumnSpec
Returns
TypeDescription
ColumnSchema.Builder

setLookerColumnSpec(ColumnSchema.LookerColumnSpec.Builder builderForValue)

public ColumnSchema.Builder setLookerColumnSpec(ColumnSchema.LookerColumnSpec.Builder builderForValue)

Looker specific column info of this column.

.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18;

Parameter
NameDescription
builderForValueColumnSchema.LookerColumnSpec.Builder
Returns
TypeDescription
ColumnSchema.Builder

setMode(String value)

public ColumnSchema.Builder setMode(String value)

Optional. A column's mode indicates whether values in this column are required, nullable, or repeated. Only NULLABLE, REQUIRED, and REPEATED values are supported. Default mode is NULLABLE.

string mode = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The mode to set.

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

setModeBytes(ByteString value)

public ColumnSchema.Builder setModeBytes(ByteString value)

Optional. A column's mode indicates whether values in this column are required, nullable, or repeated. Only NULLABLE, REQUIRED, and REPEATED values are supported. Default mode is NULLABLE.

string mode = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for mode to set.

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

setOrdinalPosition(int value)

public ColumnSchema.Builder setOrdinalPosition(int value)

Optional. Ordinal position

int32 ordinal_position = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

The ordinalPosition to set.

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

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

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

setSubcolumns(int index, ColumnSchema value)

public ColumnSchema.Builder setSubcolumns(int index, ColumnSchema value)

Optional. Schema of sub-columns. A column can have zero or more sub-columns.

repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueColumnSchema
Returns
TypeDescription
ColumnSchema.Builder

setSubcolumns(int index, ColumnSchema.Builder builderForValue)

public ColumnSchema.Builder setSubcolumns(int index, ColumnSchema.Builder builderForValue)

Optional. Schema of sub-columns. A column can have zero or more sub-columns.

repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueColumnSchema.Builder
Returns
TypeDescription
ColumnSchema.Builder

setType(String value)

public ColumnSchema.Builder setType(String value)

Required. Type of the column. Must be a UTF-8 string with the maximum size of 128 bytes.

string type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The type to set.

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public ColumnSchema.Builder setTypeBytes(ByteString value)

Required. Type of the column. Must be a UTF-8 string with the maximum size of 128 bytes.

string type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
ColumnSchema.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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