Package com.google.cloud.chronicle.v1
Class DataTableColumnInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DataTableColumnInfo.Builder>
com.google.cloud.chronicle.v1.DataTableColumnInfo.Builder
- All Implemented Interfaces:
DataTableColumnInfoOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DataTableColumnInfo
public static final class DataTableColumnInfo.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DataTableColumnInfo.Builder>
implements DataTableColumnInfoOrBuilder
DataTableColumnInfo represents the column metadata of the datatable. The column_index represents the ordering of the values in DataTableRow.Protobuf type
google.cloud.chronicle.v1.DataTableColumnInfo-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEXOptional.Entity proto field path that the column is mapped toRequired.Optional.intRequired.Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEXintColumn type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEXstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.Entity proto field path that the column is mapped tocom.google.protobuf.ByteStringEntity proto field path that the column is mapped toRequired.com.google.protobuf.ByteStringRequired.booleanOptional.booleanColumn type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEXbooleanEntity proto field path that the column is mapped toprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DataTableColumnInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setColumnIndex(int value) Required.Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEXsetColumnTypeValue(int value) Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEXsetKeyColumn(boolean value) Optional.setMappedColumnPath(String value) Entity proto field path that the column is mapped tosetMappedColumnPathBytes(com.google.protobuf.ByteString value) Entity proto field path that the column is mapped tosetOriginalColumn(String value) Required.setOriginalColumnBytes(com.google.protobuf.ByteString value) Required.setRepeatedValues(boolean value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<DataTableColumnInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<DataTableColumnInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<DataTableColumnInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataTableColumnInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DataTableColumnInfo.Builder>
-
mergeFrom
public DataTableColumnInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DataTableColumnInfo.Builder>- Throws:
IOException
-
getPathOrTypeCase
- Specified by:
getPathOrTypeCasein interfaceDataTableColumnInfoOrBuilder
-
clearPathOrType
-
hasMappedColumnPath
public boolean hasMappedColumnPath()Entity proto field path that the column is mapped to
string mapped_column_path = 3;- Specified by:
hasMappedColumnPathin interfaceDataTableColumnInfoOrBuilder- Returns:
- Whether the mappedColumnPath field is set.
-
getMappedColumnPath
Entity proto field path that the column is mapped to
string mapped_column_path = 3;- Specified by:
getMappedColumnPathin interfaceDataTableColumnInfoOrBuilder- Returns:
- The mappedColumnPath.
-
getMappedColumnPathBytes
public com.google.protobuf.ByteString getMappedColumnPathBytes()Entity proto field path that the column is mapped to
string mapped_column_path = 3;- Specified by:
getMappedColumnPathBytesin interfaceDataTableColumnInfoOrBuilder- Returns:
- The bytes for mappedColumnPath.
-
setMappedColumnPath
Entity proto field path that the column is mapped to
string mapped_column_path = 3;- Parameters:
value- The mappedColumnPath to set.- Returns:
- This builder for chaining.
-
clearMappedColumnPath
Entity proto field path that the column is mapped to
string mapped_column_path = 3;- Returns:
- This builder for chaining.
-
setMappedColumnPathBytes
Entity proto field path that the column is mapped to
string mapped_column_path = 3;- Parameters:
value- The bytes for mappedColumnPath to set.- Returns:
- This builder for chaining.
-
hasColumnType
public boolean hasColumnType()Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX
.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4;- Specified by:
hasColumnTypein interfaceDataTableColumnInfoOrBuilder- Returns:
- Whether the columnType field is set.
-
getColumnTypeValue
public int getColumnTypeValue()Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX
.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4;- Specified by:
getColumnTypeValuein interfaceDataTableColumnInfoOrBuilder- Returns:
- The enum numeric value on the wire for columnType.
-
setColumnTypeValue
Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX
.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4;- Parameters:
value- The enum numeric value on the wire for columnType to set.- Returns:
- This builder for chaining.
-
getColumnType
Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX
.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4;- Specified by:
getColumnTypein interfaceDataTableColumnInfoOrBuilder- Returns:
- The columnType.
-
setColumnType
Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX
.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4;- Parameters:
value- The columnType to set.- Returns:
- This builder for chaining.
-
clearColumnType
Column type can be STRING, CIDR (Ex- 10.1.1.0/24), REGEX
.google.cloud.chronicle.v1.DataTableColumnInfo.DataTableColumnType column_type = 4;- Returns:
- This builder for chaining.
-
getColumnIndex
public int getColumnIndex()Required. Column Index. 0,1,2...
int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getColumnIndexin interfaceDataTableColumnInfoOrBuilder- Returns:
- The columnIndex.
-
setColumnIndex
Required. Column Index. 0,1,2...
int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The columnIndex to set.- Returns:
- This builder for chaining.
-
clearColumnIndex
Required. Column Index. 0,1,2...
int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getOriginalColumn
Required. Original column name of the Data Table (present in the CSV header in case of creation of data tables using file uploads). It must satisfy the following requirements: - Starts with letter. - Contains only letters, numbers and underscore. - Must be unique and has length < 256.
string original_column = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOriginalColumnin interfaceDataTableColumnInfoOrBuilder- Returns:
- The originalColumn.
-
getOriginalColumnBytes
public com.google.protobuf.ByteString getOriginalColumnBytes()Required. Original column name of the Data Table (present in the CSV header in case of creation of data tables using file uploads). It must satisfy the following requirements: - Starts with letter. - Contains only letters, numbers and underscore. - Must be unique and has length < 256.
string original_column = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOriginalColumnBytesin interfaceDataTableColumnInfoOrBuilder- Returns:
- The bytes for originalColumn.
-
setOriginalColumn
Required. Original column name of the Data Table (present in the CSV header in case of creation of data tables using file uploads). It must satisfy the following requirements: - Starts with letter. - Contains only letters, numbers and underscore. - Must be unique and has length < 256.
string original_column = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The originalColumn to set.- Returns:
- This builder for chaining.
-
clearOriginalColumn
Required. Original column name of the Data Table (present in the CSV header in case of creation of data tables using file uploads). It must satisfy the following requirements: - Starts with letter. - Contains only letters, numbers and underscore. - Must be unique and has length < 256.
string original_column = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setOriginalColumnBytes
Required. Original column name of the Data Table (present in the CSV header in case of creation of data tables using file uploads). It must satisfy the following requirements: - Starts with letter. - Contains only letters, numbers and underscore. - Must be unique and has length < 256.
string original_column = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for originalColumn to set.- Returns:
- This builder for chaining.
-
getKeyColumn
public boolean getKeyColumn()Optional. Whether to include this column in the calculation of the row ID. If no columns have key_column = true, all columns will be included in the calculation of the row ID.
bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getKeyColumnin interfaceDataTableColumnInfoOrBuilder- Returns:
- The keyColumn.
-
setKeyColumn
Optional. Whether to include this column in the calculation of the row ID. If no columns have key_column = true, all columns will be included in the calculation of the row ID.
bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The keyColumn to set.- Returns:
- This builder for chaining.
-
clearKeyColumn
Optional. Whether to include this column in the calculation of the row ID. If no columns have key_column = true, all columns will be included in the calculation of the row ID.
bool key_column = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getRepeatedValues
public boolean getRepeatedValues()Optional. Whether the column is a repeated values column.
bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRepeatedValuesin interfaceDataTableColumnInfoOrBuilder- Returns:
- The repeatedValues.
-
setRepeatedValues
Optional. Whether the column is a repeated values column.
bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The repeatedValues to set.- Returns:
- This builder for chaining.
-
clearRepeatedValues
Optional. Whether the column is a repeated values column.
bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-