Class ColumnSchema.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ColumnSchema.Builder>
-
- com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder
-
- All Implemented Interfaces:
ColumnSchemaOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ColumnSchema
public static final class ColumnSchema.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ColumnSchema.Builder> implements ColumnSchemaOrBuilder
Representation of a column within a schema. Columns could be nested inside other columns.
Protobuf typegoogle.cloud.datacatalog.v1beta1.ColumnSchema
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColumnSchema.Builder>
-
clear
public ColumnSchema.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColumnSchema.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColumnSchema.Builder>
-
getDefaultInstanceForType
public ColumnSchema getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ColumnSchema build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ColumnSchema buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ColumnSchema.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColumnSchema.Builder>
-
setField
public ColumnSchema.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColumnSchema.Builder>
-
clearField
public ColumnSchema.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColumnSchema.Builder>
-
clearOneof
public ColumnSchema.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColumnSchema.Builder>
-
setRepeatedField
public ColumnSchema.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColumnSchema.Builder>
-
addRepeatedField
public ColumnSchema.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColumnSchema.Builder>
-
mergeFrom
public ColumnSchema.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ColumnSchema.Builder>
-
mergeFrom
public ColumnSchema.Builder mergeFrom(ColumnSchema other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColumnSchema.Builder>
-
mergeFrom
public ColumnSchema.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ColumnSchema.Builder>
- Throws:
IOException
-
getColumn
public String getColumn()
Required. Name of the column.
string column = 6 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getColumn
in interfaceColumnSchemaOrBuilder
- Returns:
- The column.
-
getColumnBytes
public com.google.protobuf.ByteString getColumnBytes()
Required. Name of the column.
string column = 6 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getColumnBytes
in interfaceColumnSchemaOrBuilder
- Returns:
- The bytes for column.
-
setColumn
public ColumnSchema.Builder setColumn(String value)
Required. Name of the column.
string column = 6 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The column to set.- Returns:
- This builder for chaining.
-
clearColumn
public ColumnSchema.Builder clearColumn()
Required. Name of the column.
string column = 6 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
setColumnBytes
public ColumnSchema.Builder setColumnBytes(com.google.protobuf.ByteString value)
Required. Name of the column.
string column = 6 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The bytes for column to set.- Returns:
- This builder for chaining.
-
getType
public String getType()
Required. Type of the column.
string type = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getType
in interfaceColumnSchemaOrBuilder
- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()
Required. Type of the column.
string type = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getTypeBytes
in interfaceColumnSchemaOrBuilder
- Returns:
- The bytes for type.
-
setType
public ColumnSchema.Builder setType(String value)
Required. Type of the column.
string type = 1 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
public ColumnSchema.Builder clearType()
Required. Type of the column.
string type = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- This builder for chaining.
-
setTypeBytes
public ColumnSchema.Builder setTypeBytes(com.google.protobuf.ByteString value)
Required. Type of the column.
string type = 1 [(.google.api.field_behavior) = REQUIRED];
- Parameters:
value
- The bytes for type to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
Optional. Description of the column. Default value is an empty string.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getDescription
in interfaceColumnSchemaOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Optional. Description of the column. Default value is an empty string.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getDescriptionBytes
in interfaceColumnSchemaOrBuilder
- Returns:
- The bytes for description.
-
setDescription
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];
- Parameters:
value
- The description to set.- Returns:
- 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:
- This builder for chaining.
-
setDescriptionBytes
public ColumnSchema.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Optional. Description of the column. Default value is an empty string.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getMode
in interfaceColumnSchemaOrBuilder
- Returns:
- The mode.
-
getModeBytes
public com.google.protobuf.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];
- Specified by:
getModeBytes
in interfaceColumnSchemaOrBuilder
- Returns:
- The bytes for mode.
-
setMode
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];
- Parameters:
value
- The mode to set.- Returns:
- 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:
- This builder for chaining.
-
setModeBytes
public ColumnSchema.Builder setModeBytes(com.google.protobuf.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];
- Parameters:
value
- The bytes for mode to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getSubcolumnsList
in interfaceColumnSchemaOrBuilder
-
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];
- Specified by:
getSubcolumnsCount
in interfaceColumnSchemaOrBuilder
-
getSubcolumns
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];
- Specified by:
getSubcolumns
in interfaceColumnSchemaOrBuilder
-
setSubcolumns
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];
-
setSubcolumns
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];
-
addSubcolumns
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];
-
addSubcolumns
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];
-
addSubcolumns
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];
-
addSubcolumns
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];
-
addAllSubcolumns
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];
-
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];
-
removeSubcolumns
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];
-
getSubcolumnsBuilder
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];
-
getSubcolumnsOrBuilder
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];
- Specified by:
getSubcolumnsOrBuilder
in interfaceColumnSchemaOrBuilder
-
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];
- Specified by:
getSubcolumnsOrBuilderList
in interfaceColumnSchemaOrBuilder
-
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];
-
addSubcolumnsBuilder
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];
-
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];
-
setUnknownFields
public final ColumnSchema.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColumnSchema.Builder>
-
mergeUnknownFields
public final ColumnSchema.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ColumnSchema.Builder>
-
-