Class DataChangeRecord

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.spanner.executor.v1.DataChangeRecord
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DataChangeRecordOrBuilder, Serializable

public final class DataChangeRecord extends com.google.protobuf.GeneratedMessageV3 implements DataChangeRecordOrBuilder
 ChangeStream data change record.
 
Protobuf type google.spanner.executor.v1.DataChangeRecord
See Also:
  • Field Details

    • COMMIT_TIME_FIELD_NUMBER

      public static final int COMMIT_TIME_FIELD_NUMBER
      See Also:
    • RECORD_SEQUENCE_FIELD_NUMBER

      public static final int RECORD_SEQUENCE_FIELD_NUMBER
      See Also:
    • TRANSACTION_ID_FIELD_NUMBER

      public static final int TRANSACTION_ID_FIELD_NUMBER
      See Also:
    • IS_LAST_RECORD_FIELD_NUMBER

      public static final int IS_LAST_RECORD_FIELD_NUMBER
      See Also:
    • TABLE_FIELD_NUMBER

      public static final int TABLE_FIELD_NUMBER
      See Also:
    • COLUMN_TYPES_FIELD_NUMBER

      public static final int COLUMN_TYPES_FIELD_NUMBER
      See Also:
    • MODS_FIELD_NUMBER

      public static final int MODS_FIELD_NUMBER
      See Also:
    • MOD_TYPE_FIELD_NUMBER

      public static final int MOD_TYPE_FIELD_NUMBER
      See Also:
    • VALUE_CAPTURE_TYPE_FIELD_NUMBER

      public static final int VALUE_CAPTURE_TYPE_FIELD_NUMBER
      See Also:
    • RECORD_COUNT_FIELD_NUMBER

      public static final int RECORD_COUNT_FIELD_NUMBER
      See Also:
    • PARTITION_COUNT_FIELD_NUMBER

      public static final int PARTITION_COUNT_FIELD_NUMBER
      See Also:
    • TRANSACTION_TAG_FIELD_NUMBER

      public static final int TRANSACTION_TAG_FIELD_NUMBER
      See Also:
    • IS_SYSTEM_TRANSACTION_FIELD_NUMBER

      public static final int IS_SYSTEM_TRANSACTION_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasCommitTime

      public boolean hasCommitTime()
       The timestamp in which the change was committed.
       
      .google.protobuf.Timestamp commit_time = 1;
      Specified by:
      hasCommitTime in interface DataChangeRecordOrBuilder
      Returns:
      Whether the commitTime field is set.
    • getCommitTime

      public com.google.protobuf.Timestamp getCommitTime()
       The timestamp in which the change was committed.
       
      .google.protobuf.Timestamp commit_time = 1;
      Specified by:
      getCommitTime in interface DataChangeRecordOrBuilder
      Returns:
      The commitTime.
    • getCommitTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder()
       The timestamp in which the change was committed.
       
      .google.protobuf.Timestamp commit_time = 1;
      Specified by:
      getCommitTimeOrBuilder in interface DataChangeRecordOrBuilder
    • getRecordSequence

      public String getRecordSequence()
       The sequence number for the record within the transaction.
       
      string record_sequence = 2;
      Specified by:
      getRecordSequence in interface DataChangeRecordOrBuilder
      Returns:
      The recordSequence.
    • getRecordSequenceBytes

      public com.google.protobuf.ByteString getRecordSequenceBytes()
       The sequence number for the record within the transaction.
       
      string record_sequence = 2;
      Specified by:
      getRecordSequenceBytes in interface DataChangeRecordOrBuilder
      Returns:
      The bytes for recordSequence.
    • getTransactionId

      public String getTransactionId()
       A globally unique string that represents the transaction in which the
       change was committed.
       
      string transaction_id = 3;
      Specified by:
      getTransactionId in interface DataChangeRecordOrBuilder
      Returns:
      The transactionId.
    • getTransactionIdBytes

      public com.google.protobuf.ByteString getTransactionIdBytes()
       A globally unique string that represents the transaction in which the
       change was committed.
       
      string transaction_id = 3;
      Specified by:
      getTransactionIdBytes in interface DataChangeRecordOrBuilder
      Returns:
      The bytes for transactionId.
    • getIsLastRecord

      public boolean getIsLastRecord()
       Indicates whether this is the last record for a transaction in the current
       partition.
       
      bool is_last_record = 4;
      Specified by:
      getIsLastRecord in interface DataChangeRecordOrBuilder
      Returns:
      The isLastRecord.
    • getTable

      public String getTable()
       Name of the table affected by the change.
       
      string table = 5;
      Specified by:
      getTable in interface DataChangeRecordOrBuilder
      Returns:
      The table.
    • getTableBytes

      public com.google.protobuf.ByteString getTableBytes()
       Name of the table affected by the change.
       
      string table = 5;
      Specified by:
      getTableBytes in interface DataChangeRecordOrBuilder
      Returns:
      The bytes for table.
    • getColumnTypesList

      public List<DataChangeRecord.ColumnType> getColumnTypesList()
       Column types defined in the schema.
       
      repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
      Specified by:
      getColumnTypesList in interface DataChangeRecordOrBuilder
    • getColumnTypesOrBuilderList

      public List<? extends DataChangeRecord.ColumnTypeOrBuilder> getColumnTypesOrBuilderList()
       Column types defined in the schema.
       
      repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
      Specified by:
      getColumnTypesOrBuilderList in interface DataChangeRecordOrBuilder
    • getColumnTypesCount

      public int getColumnTypesCount()
       Column types defined in the schema.
       
      repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
      Specified by:
      getColumnTypesCount in interface DataChangeRecordOrBuilder
    • getColumnTypes

      public DataChangeRecord.ColumnType getColumnTypes(int index)
       Column types defined in the schema.
       
      repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
      Specified by:
      getColumnTypes in interface DataChangeRecordOrBuilder
    • getColumnTypesOrBuilder

      public DataChangeRecord.ColumnTypeOrBuilder getColumnTypesOrBuilder(int index)
       Column types defined in the schema.
       
      repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
      Specified by:
      getColumnTypesOrBuilder in interface DataChangeRecordOrBuilder
    • getModsList

      public List<DataChangeRecord.Mod> getModsList()
       Changes made in the transaction.
       
      repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
      Specified by:
      getModsList in interface DataChangeRecordOrBuilder
    • getModsOrBuilderList

      public List<? extends DataChangeRecord.ModOrBuilder> getModsOrBuilderList()
       Changes made in the transaction.
       
      repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
      Specified by:
      getModsOrBuilderList in interface DataChangeRecordOrBuilder
    • getModsCount

      public int getModsCount()
       Changes made in the transaction.
       
      repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
      Specified by:
      getModsCount in interface DataChangeRecordOrBuilder
    • getMods

      public DataChangeRecord.Mod getMods(int index)
       Changes made in the transaction.
       
      repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
      Specified by:
      getMods in interface DataChangeRecordOrBuilder
    • getModsOrBuilder

      public DataChangeRecord.ModOrBuilder getModsOrBuilder(int index)
       Changes made in the transaction.
       
      repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
      Specified by:
      getModsOrBuilder in interface DataChangeRecordOrBuilder
    • getModType

      public String getModType()
       Describes the type of change. One of INSERT, UPDATE or DELETE.
       
      string mod_type = 8;
      Specified by:
      getModType in interface DataChangeRecordOrBuilder
      Returns:
      The modType.
    • getModTypeBytes

      public com.google.protobuf.ByteString getModTypeBytes()
       Describes the type of change. One of INSERT, UPDATE or DELETE.
       
      string mod_type = 8;
      Specified by:
      getModTypeBytes in interface DataChangeRecordOrBuilder
      Returns:
      The bytes for modType.
    • getValueCaptureType

      public String getValueCaptureType()
       One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES.
       
      string value_capture_type = 9;
      Specified by:
      getValueCaptureType in interface DataChangeRecordOrBuilder
      Returns:
      The valueCaptureType.
    • getValueCaptureTypeBytes

      public com.google.protobuf.ByteString getValueCaptureTypeBytes()
       One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES.
       
      string value_capture_type = 9;
      Specified by:
      getValueCaptureTypeBytes in interface DataChangeRecordOrBuilder
      Returns:
      The bytes for valueCaptureType.
    • getRecordCount

      public long getRecordCount()
       Number of records in transactions.
       
      int64 record_count = 10;
      Specified by:
      getRecordCount in interface DataChangeRecordOrBuilder
      Returns:
      The recordCount.
    • getPartitionCount

      public long getPartitionCount()
       Number of partitions in transactions.
       
      int64 partition_count = 11;
      Specified by:
      getPartitionCount in interface DataChangeRecordOrBuilder
      Returns:
      The partitionCount.
    • getTransactionTag

      public String getTransactionTag()
       Transaction tag info.
       
      string transaction_tag = 12;
      Specified by:
      getTransactionTag in interface DataChangeRecordOrBuilder
      Returns:
      The transactionTag.
    • getTransactionTagBytes

      public com.google.protobuf.ByteString getTransactionTagBytes()
       Transaction tag info.
       
      string transaction_tag = 12;
      Specified by:
      getTransactionTagBytes in interface DataChangeRecordOrBuilder
      Returns:
      The bytes for transactionTag.
    • getIsSystemTransaction

      public boolean getIsSystemTransaction()
       Whether the transaction is a system transactionn.
       
      bool is_system_transaction = 13;
      Specified by:
      getIsSystemTransaction in interface DataChangeRecordOrBuilder
      Returns:
      The isSystemTransaction.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static DataChangeRecord parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataChangeRecord parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataChangeRecord parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataChangeRecord parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataChangeRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataChangeRecord parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DataChangeRecord parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataChangeRecord parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DataChangeRecord parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DataChangeRecord parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataChangeRecord parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DataChangeRecord parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public DataChangeRecord.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static DataChangeRecord.Builder newBuilder()
    • newBuilder

      public static DataChangeRecord.Builder newBuilder(DataChangeRecord prototype)
    • toBuilder

      public DataChangeRecord.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected DataChangeRecord.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static DataChangeRecord getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DataChangeRecord> parser()
    • getParserForType

      public com.google.protobuf.Parser<DataChangeRecord> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public DataChangeRecord getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder