Send feedback
Class ColumnSchema.Builder
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.5.4 keyboard_arrow_down
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
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
Name Description values Iterable <? extends com.google.cloud.datacatalog.v1.ColumnSchema >
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ColumnSchema . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
build()
public ColumnSchema build ()
Returns
buildPartial()
public ColumnSchema buildPartial ()
Returns
clear()
public ColumnSchema . Builder clear ()
Returns
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
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
clearField(Descriptors.FieldDescriptor field)
public ColumnSchema . Builder clearField ( Descriptors . FieldDescriptor field )
Parameter
Returns
Overrides
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
clearOneof(Descriptors.OneofDescriptor oneof)
public ColumnSchema . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Parameter
Returns
Overrides
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
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
clone()
public ColumnSchema . Builder clone ()
Returns
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
Type Description 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
getDefaultInstanceForType()
public ColumnSchema getDefaultInstanceForType ()
Returns
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
Type Description 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
Type Description ByteString The bytes for description.
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Returns
Overrides
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
Type Description 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
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
Returns
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
Returns
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
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
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
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
Returns
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
Type Description List <? extends com.google.cloud.datacatalog.v1.ColumnSchemaOrBuilder >
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
Type Description 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
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
mergeFrom(ColumnSchema other)
public ColumnSchema . Builder mergeFrom ( ColumnSchema other )
Parameter
Returns
public ColumnSchema . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ColumnSchema . Builder mergeFrom ( Message other )
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ColumnSchema . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
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
Returns
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
Name Description value String
The column to set.
Returns
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
Name Description value ByteString
The bytes for column to set.
Returns
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
Name Description value String
The description to set.
Returns
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
Name Description value ByteString
The bytes for description to set.
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ColumnSchema . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Parameters
Returns
Overrides
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
Name Description value String
The mode to set.
Returns
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
Name Description value ByteString
The bytes for mode to set.
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ColumnSchema . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Parameters
Returns
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
Returns
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
Returns
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
Name Description value String
The type to set.
Returns
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
Name Description value ByteString
The bytes for type to set.
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ColumnSchema . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Parameter
Returns
Overrides
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-01-28 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-01-28 UTC."],[],[]]