Class MysqlColumn.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<MysqlColumn.Builder>
-
- com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder
-
- All Implemented Interfaces:
MysqlColumnOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- MysqlColumn
public static final class MysqlColumn.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MysqlColumn.Builder> implements MysqlColumnOrBuilder
MySQL Column.
Protobuf typegoogle.cloud.datastream.v1alpha1.MysqlColumn
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MysqlColumn.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MysqlColumn
build()
MysqlColumn
buildPartial()
MysqlColumn.Builder
clear()
MysqlColumn.Builder
clearCollation()
Column collation.MysqlColumn.Builder
clearColumnName()
Column name.MysqlColumn.Builder
clearDataType()
The MySQL data type.MysqlColumn.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
MysqlColumn.Builder
clearLength()
Column length.MysqlColumn.Builder
clearNullable()
Whether or not the column can accept a null value.MysqlColumn.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
MysqlColumn.Builder
clearOrdinalPosition()
The ordinal position of the column in the table.MysqlColumn.Builder
clearPrimaryKey()
Whether or not the column represents a primary key.MysqlColumn.Builder
clone()
String
getCollation()
Column collation.com.google.protobuf.ByteString
getCollationBytes()
Column collation.String
getColumnName()
Column name.com.google.protobuf.ByteString
getColumnNameBytes()
Column name.String
getDataType()
The MySQL data type.com.google.protobuf.ByteString
getDataTypeBytes()
The MySQL data type.MysqlColumn
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getLength()
Column length.boolean
getNullable()
Whether or not the column can accept a null value.int
getOrdinalPosition()
The ordinal position of the column in the table.boolean
getPrimaryKey()
Whether or not the column represents a primary key.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
MysqlColumn.Builder
mergeFrom(MysqlColumn other)
MysqlColumn.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
MysqlColumn.Builder
mergeFrom(com.google.protobuf.Message other)
MysqlColumn.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
MysqlColumn.Builder
setCollation(String value)
Column collation.MysqlColumn.Builder
setCollationBytes(com.google.protobuf.ByteString value)
Column collation.MysqlColumn.Builder
setColumnName(String value)
Column name.MysqlColumn.Builder
setColumnNameBytes(com.google.protobuf.ByteString value)
Column name.MysqlColumn.Builder
setDataType(String value)
The MySQL data type.MysqlColumn.Builder
setDataTypeBytes(com.google.protobuf.ByteString value)
The MySQL data type.MysqlColumn.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
MysqlColumn.Builder
setLength(int value)
Column length.MysqlColumn.Builder
setNullable(boolean value)
Whether or not the column can accept a null value.MysqlColumn.Builder
setOrdinalPosition(int value)
The ordinal position of the column in the table.MysqlColumn.Builder
setPrimaryKey(boolean value)
Whether or not the column represents a primary key.MysqlColumn.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
MysqlColumn.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
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<MysqlColumn.Builder>
-
clear
public MysqlColumn.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<MysqlColumn.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<MysqlColumn.Builder>
-
getDefaultInstanceForType
public MysqlColumn getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public MysqlColumn build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MysqlColumn buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MysqlColumn.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<MysqlColumn.Builder>
-
setField
public MysqlColumn.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<MysqlColumn.Builder>
-
clearField
public MysqlColumn.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<MysqlColumn.Builder>
-
clearOneof
public MysqlColumn.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<MysqlColumn.Builder>
-
setRepeatedField
public MysqlColumn.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<MysqlColumn.Builder>
-
addRepeatedField
public MysqlColumn.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<MysqlColumn.Builder>
-
mergeFrom
public MysqlColumn.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MysqlColumn.Builder>
-
mergeFrom
public MysqlColumn.Builder mergeFrom(MysqlColumn other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlColumn.Builder>
-
mergeFrom
public MysqlColumn.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<MysqlColumn.Builder>
- Throws:
IOException
-
getColumnName
public String getColumnName()
Column name.
string column_name = 1;
- Specified by:
getColumnName
in interfaceMysqlColumnOrBuilder
- Returns:
- The columnName.
-
getColumnNameBytes
public com.google.protobuf.ByteString getColumnNameBytes()
Column name.
string column_name = 1;
- Specified by:
getColumnNameBytes
in interfaceMysqlColumnOrBuilder
- Returns:
- The bytes for columnName.
-
setColumnName
public MysqlColumn.Builder setColumnName(String value)
Column name.
string column_name = 1;
- Parameters:
value
- The columnName to set.- Returns:
- This builder for chaining.
-
clearColumnName
public MysqlColumn.Builder clearColumnName()
Column name.
string column_name = 1;
- Returns:
- This builder for chaining.
-
setColumnNameBytes
public MysqlColumn.Builder setColumnNameBytes(com.google.protobuf.ByteString value)
Column name.
string column_name = 1;
- Parameters:
value
- The bytes for columnName to set.- Returns:
- This builder for chaining.
-
getDataType
public String getDataType()
The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html
string data_type = 2;
- Specified by:
getDataType
in interfaceMysqlColumnOrBuilder
- Returns:
- The dataType.
-
getDataTypeBytes
public com.google.protobuf.ByteString getDataTypeBytes()
The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html
string data_type = 2;
- Specified by:
getDataTypeBytes
in interfaceMysqlColumnOrBuilder
- Returns:
- The bytes for dataType.
-
setDataType
public MysqlColumn.Builder setDataType(String value)
The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html
string data_type = 2;
- Parameters:
value
- The dataType to set.- Returns:
- This builder for chaining.
-
clearDataType
public MysqlColumn.Builder clearDataType()
The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html
string data_type = 2;
- Returns:
- This builder for chaining.
-
setDataTypeBytes
public MysqlColumn.Builder setDataTypeBytes(com.google.protobuf.ByteString value)
The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html
string data_type = 2;
- Parameters:
value
- The bytes for dataType to set.- Returns:
- This builder for chaining.
-
getLength
public int getLength()
Column length.
int32 length = 3;
- Specified by:
getLength
in interfaceMysqlColumnOrBuilder
- Returns:
- The length.
-
setLength
public MysqlColumn.Builder setLength(int value)
Column length.
int32 length = 3;
- Parameters:
value
- The length to set.- Returns:
- This builder for chaining.
-
clearLength
public MysqlColumn.Builder clearLength()
Column length.
int32 length = 3;
- Returns:
- This builder for chaining.
-
getCollation
public String getCollation()
Column collation.
string collation = 4;
- Specified by:
getCollation
in interfaceMysqlColumnOrBuilder
- Returns:
- The collation.
-
getCollationBytes
public com.google.protobuf.ByteString getCollationBytes()
Column collation.
string collation = 4;
- Specified by:
getCollationBytes
in interfaceMysqlColumnOrBuilder
- Returns:
- The bytes for collation.
-
setCollation
public MysqlColumn.Builder setCollation(String value)
Column collation.
string collation = 4;
- Parameters:
value
- The collation to set.- Returns:
- This builder for chaining.
-
clearCollation
public MysqlColumn.Builder clearCollation()
Column collation.
string collation = 4;
- Returns:
- This builder for chaining.
-
setCollationBytes
public MysqlColumn.Builder setCollationBytes(com.google.protobuf.ByteString value)
Column collation.
string collation = 4;
- Parameters:
value
- The bytes for collation to set.- Returns:
- This builder for chaining.
-
getPrimaryKey
public boolean getPrimaryKey()
Whether or not the column represents a primary key.
bool primary_key = 5;
- Specified by:
getPrimaryKey
in interfaceMysqlColumnOrBuilder
- Returns:
- The primaryKey.
-
setPrimaryKey
public MysqlColumn.Builder setPrimaryKey(boolean value)
Whether or not the column represents a primary key.
bool primary_key = 5;
- Parameters:
value
- The primaryKey to set.- Returns:
- This builder for chaining.
-
clearPrimaryKey
public MysqlColumn.Builder clearPrimaryKey()
Whether or not the column represents a primary key.
bool primary_key = 5;
- Returns:
- This builder for chaining.
-
getNullable
public boolean getNullable()
Whether or not the column can accept a null value.
bool nullable = 6;
- Specified by:
getNullable
in interfaceMysqlColumnOrBuilder
- Returns:
- The nullable.
-
setNullable
public MysqlColumn.Builder setNullable(boolean value)
Whether or not the column can accept a null value.
bool nullable = 6;
- Parameters:
value
- The nullable to set.- Returns:
- This builder for chaining.
-
clearNullable
public MysqlColumn.Builder clearNullable()
Whether or not the column can accept a null value.
bool nullable = 6;
- Returns:
- This builder for chaining.
-
getOrdinalPosition
public int getOrdinalPosition()
The ordinal position of the column in the table.
int32 ordinal_position = 7;
- Specified by:
getOrdinalPosition
in interfaceMysqlColumnOrBuilder
- Returns:
- The ordinalPosition.
-
setOrdinalPosition
public MysqlColumn.Builder setOrdinalPosition(int value)
The ordinal position of the column in the table.
int32 ordinal_position = 7;
- Parameters:
value
- The ordinalPosition to set.- Returns:
- This builder for chaining.
-
clearOrdinalPosition
public MysqlColumn.Builder clearOrdinalPosition()
The ordinal position of the column in the table.
int32 ordinal_position = 7;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final MysqlColumn.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlColumn.Builder>
-
mergeUnknownFields
public final MysqlColumn.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlColumn.Builder>
-
-