public static final class ColumnSchema.Builder extends GeneratedMessage.Builder<ColumnSchema.Builder> implements ColumnSchemaOrBuilderRepresentation of a column within a schema. Columns could be nested inside other columns.
Protobuf type google.cloud.datacatalog.v1beta1.ColumnSchema
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ColumnSchema.BuilderImplements
ColumnSchemaOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
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.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.datacatalog.v1beta1.ColumnSchema> |
| Returns | |
|---|---|
| Type | Description |
ColumnSchema.Builder |
|
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.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ColumnSchema |
| Returns | |
|---|---|
| Type | Description |
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.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ColumnSchema.Builder |
| Returns | |
|---|---|
| Type | Description |
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.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ColumnSchema |
| Returns | |
|---|---|
| Type | Description |
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.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ColumnSchema.Builder |
| Returns | |
|---|---|
| Type | Description |
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.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
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.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ColumnSchema.Builder |
|
build()
public ColumnSchema build()| Returns | |
|---|---|
| Type | Description |
ColumnSchema |
|
buildPartial()
public ColumnSchema buildPartial()| Returns | |
|---|---|
| Type | Description |
ColumnSchema |
|
clear()
public ColumnSchema.Builder clear()| Returns | |
|---|---|
| Type | Description |
ColumnSchema.Builder |
|
clearColumn()
public ColumnSchema.Builder clearColumn()Required. Name of the column.
string column = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ColumnSchema.Builder |
This builder for chaining. |
clearDescription()
public ColumnSchema.Builder clearDescription()Optional. Description of the column. Default value is an empty string.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ColumnSchema.Builder |
This builder for chaining. |
clearMode()
public ColumnSchema.Builder clearMode() Optional. A column's mode indicates whether the values in this column are
required, nullable, etc. Only NULLABLE, REQUIRED and REPEATED are
supported. Default mode is NULLABLE.
string mode = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
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.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ColumnSchema.Builder |
|
clearType()
public ColumnSchema.Builder clearType()Required. Type of the column.
string type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ColumnSchema.Builder |
This builder for chaining. |
getColumn()
public String getColumn()Required. Name of the column.
string column = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The column. |
getColumnBytes()
public ByteString getColumnBytes()Required. Name of the column.
string column = 6 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for column. |
getDefaultInstanceForType()
public ColumnSchema getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ColumnSchema |
|
getDescription()
public String getDescription()Optional. Description of the column. Default value is an empty string.
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.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMode()
public String getMode() Optional. A column's mode indicates whether the values in this column are
required, nullable, etc. Only NULLABLE, REQUIRED and REPEATED 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 the values in this column are
required, nullable, etc. Only NULLABLE, REQUIRED and REPEATED are
supported. Default mode is NULLABLE.
string mode = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for mode. |
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.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
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.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
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.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getSubcolumnsCount()
public int getSubcolumnsCount()Optional. Schema of sub-columns. A column can have zero or more sub-columns.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getSubcolumnsList()
public List<ColumnSchema> getSubcolumnsList()Optional. Schema of sub-columns. A column can have zero or more sub-columns.
repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
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.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
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.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder> |
|
getType()
public String getType()Required. Type of the column.
string type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The type. |
getTypeBytes()
public ByteString getTypeBytes()Required. Type of the column.
string type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for type. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ColumnSchema other)
public ColumnSchema.Builder mergeFrom(ColumnSchema other)| Parameter | |
|---|---|
| Name | Description |
other |
ColumnSchema |
| Returns | |
|---|---|
| Type | Description |
ColumnSchema.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ColumnSchema.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ColumnSchema.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ColumnSchema.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ColumnSchema.Builder |
|
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.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ColumnSchema.Builder |
|
setColumn(String value)
public ColumnSchema.Builder setColumn(String value)Required. Name of the column.
string column = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe column to set. |
| Returns | |
|---|---|
| Type | Description |
ColumnSchema.Builder |
This builder for chaining. |
setColumnBytes(ByteString value)
public ColumnSchema.Builder setColumnBytes(ByteString value)Required. Name of the column.
string column = 6 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for column to set. |
| Returns | |
|---|---|
| Type | Description |
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.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
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.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
ColumnSchema.Builder |
This builder for chaining. |
setMode(String value)
public ColumnSchema.Builder setMode(String value) Optional. A column's mode indicates whether the values in this column are
required, nullable, etc. Only NULLABLE, REQUIRED and REPEATED are
supported. Default mode is NULLABLE.
string mode = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe mode to set. |
| Returns | |
|---|---|
| Type | Description |
ColumnSchema.Builder |
This builder for chaining. |
setModeBytes(ByteString value)
public ColumnSchema.Builder setModeBytes(ByteString value) Optional. A column's mode indicates whether the values in this column are
required, nullable, etc. Only NULLABLE, REQUIRED and REPEATED are
supported. Default mode is NULLABLE.
string mode = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for mode to set. |
| Returns | |
|---|---|
| Type | Description |
ColumnSchema.Builder |
This builder for chaining. |
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.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ColumnSchema |
| Returns | |
|---|---|
| Type | Description |
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.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ColumnSchema.Builder |
| Returns | |
|---|---|
| Type | Description |
ColumnSchema.Builder |
|
setType(String value)
public ColumnSchema.Builder setType(String value)Required. Type of the column.
string type = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe type to set. |
| Returns | |
|---|---|
| Type | Description |
ColumnSchema.Builder |
This builder for chaining. |
setTypeBytes(ByteString value)
public ColumnSchema.Builder setTypeBytes(ByteString value)Required. Type of the column.
string type = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for type to set. |
| Returns | |
|---|---|
| Type | Description |
ColumnSchema.Builder |
This builder for chaining. |