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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DataTableColumnInfo.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DataTableColumnInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DataTableColumnInfo.Builder>
    • getDefaultInstanceForType

      public DataTableColumnInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public DataTableColumnInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DataTableColumnInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DataTableColumnInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DataTableColumnInfo.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DataTableColumnInfo.Builder>
      Throws:
      IOException
    • getPathOrTypeCase

      public DataTableColumnInfo.PathOrTypeCase getPathOrTypeCase()
      Specified by:
      getPathOrTypeCase in interface DataTableColumnInfoOrBuilder
    • clearPathOrType

      public DataTableColumnInfo.Builder clearPathOrType()
    • hasMappedColumnPath

      public boolean hasMappedColumnPath()
       Entity proto field path that the column is mapped to
       
      string mapped_column_path = 3;
      Specified by:
      hasMappedColumnPath in interface DataTableColumnInfoOrBuilder
      Returns:
      Whether the mappedColumnPath field is set.
    • getMappedColumnPath

      public String getMappedColumnPath()
       Entity proto field path that the column is mapped to
       
      string mapped_column_path = 3;
      Specified by:
      getMappedColumnPath in interface DataTableColumnInfoOrBuilder
      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:
      getMappedColumnPathBytes in interface DataTableColumnInfoOrBuilder
      Returns:
      The bytes for mappedColumnPath.
    • setMappedColumnPath

      public DataTableColumnInfo.Builder setMappedColumnPath(String value)
       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

      public DataTableColumnInfo.Builder clearMappedColumnPath()
       Entity proto field path that the column is mapped to
       
      string mapped_column_path = 3;
      Returns:
      This builder for chaining.
    • setMappedColumnPathBytes

      public DataTableColumnInfo.Builder setMappedColumnPathBytes(com.google.protobuf.ByteString value)
       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:
      hasColumnType in interface DataTableColumnInfoOrBuilder
      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:
      getColumnTypeValue in interface DataTableColumnInfoOrBuilder
      Returns:
      The enum numeric value on the wire for columnType.
    • setColumnTypeValue

      public DataTableColumnInfo.Builder setColumnTypeValue(int value)
       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:
      getColumnType in interface DataTableColumnInfoOrBuilder
      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

      public DataTableColumnInfo.Builder 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:
      getColumnIndex in interface DataTableColumnInfoOrBuilder
      Returns:
      The columnIndex.
    • setColumnIndex

      public DataTableColumnInfo.Builder setColumnIndex(int value)
       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

      public DataTableColumnInfo.Builder clearColumnIndex()
       Required. Column Index. 0,1,2...
       
      int32 column_index = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getOriginalColumn

      public String 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:
      getOriginalColumn in interface DataTableColumnInfoOrBuilder
      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:
      getOriginalColumnBytes in interface DataTableColumnInfoOrBuilder
      Returns:
      The bytes for originalColumn.
    • setOriginalColumn

      public DataTableColumnInfo.Builder setOriginalColumn(String value)
       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

      public DataTableColumnInfo.Builder 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

      public DataTableColumnInfo.Builder setOriginalColumnBytes(com.google.protobuf.ByteString value)
       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:
      getKeyColumn in interface DataTableColumnInfoOrBuilder
      Returns:
      The keyColumn.
    • setKeyColumn

      public DataTableColumnInfo.Builder setKeyColumn(boolean value)
       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

      public DataTableColumnInfo.Builder 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:
      getRepeatedValues in interface DataTableColumnInfoOrBuilder
      Returns:
      The repeatedValues.
    • setRepeatedValues

      public DataTableColumnInfo.Builder setRepeatedValues(boolean value)
       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

      public DataTableColumnInfo.Builder clearRepeatedValues()
       Optional. Whether the column is a repeated values column.
       
      bool repeated_values = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.