Class ChangeStreamRecord.PartitionEndRecord

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.spanner.v1.ChangeStreamRecord.PartitionEndRecord
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ChangeStreamRecord.PartitionEndRecordOrBuilder, Serializable
Enclosing class:
ChangeStreamRecord

public static final class ChangeStreamRecord.PartitionEndRecord extends com.google.protobuf.GeneratedMessageV3 implements ChangeStreamRecord.PartitionEndRecordOrBuilder
 A partition end record serves as a notification that the client should stop
 reading the partition. No further records are expected to be retrieved on
 it.
 
Protobuf type google.spanner.v1.ChangeStreamRecord.PartitionEndRecord
See Also:
  • Field Details

    • END_TIMESTAMP_FIELD_NUMBER

      public static final int END_TIMESTAMP_FIELD_NUMBER
      See Also:
    • RECORD_SEQUENCE_FIELD_NUMBER

      public static final int RECORD_SEQUENCE_FIELD_NUMBER
      See Also:
    • PARTITION_TOKEN_FIELD_NUMBER

      public static final int PARTITION_TOKEN_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
    • hasEndTimestamp

      public boolean hasEndTimestamp()
       End timestamp at which the change stream partition is terminated. All
       changes generated by this partition will have timestamps <=
       end_timestamp. DataChangeRecord.commit_timestamps,
       PartitionStartRecord.start_timestamps,
       PartitionEventRecord.commit_timestamps, and
       PartitionEndRecord.end_timestamps can have the same value in the same
       partition. PartitionEndRecord is the last record returned for a
       partition.
       
      .google.protobuf.Timestamp end_timestamp = 1;
      Specified by:
      hasEndTimestamp in interface ChangeStreamRecord.PartitionEndRecordOrBuilder
      Returns:
      Whether the endTimestamp field is set.
    • getEndTimestamp

      public com.google.protobuf.Timestamp getEndTimestamp()
       End timestamp at which the change stream partition is terminated. All
       changes generated by this partition will have timestamps <=
       end_timestamp. DataChangeRecord.commit_timestamps,
       PartitionStartRecord.start_timestamps,
       PartitionEventRecord.commit_timestamps, and
       PartitionEndRecord.end_timestamps can have the same value in the same
       partition. PartitionEndRecord is the last record returned for a
       partition.
       
      .google.protobuf.Timestamp end_timestamp = 1;
      Specified by:
      getEndTimestamp in interface ChangeStreamRecord.PartitionEndRecordOrBuilder
      Returns:
      The endTimestamp.
    • getEndTimestampOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEndTimestampOrBuilder()
       End timestamp at which the change stream partition is terminated. All
       changes generated by this partition will have timestamps <=
       end_timestamp. DataChangeRecord.commit_timestamps,
       PartitionStartRecord.start_timestamps,
       PartitionEventRecord.commit_timestamps, and
       PartitionEndRecord.end_timestamps can have the same value in the same
       partition. PartitionEndRecord is the last record returned for a
       partition.
       
      .google.protobuf.Timestamp end_timestamp = 1;
      Specified by:
      getEndTimestampOrBuilder in interface ChangeStreamRecord.PartitionEndRecordOrBuilder
    • getRecordSequence

      public String getRecordSequence()
       Record sequence numbers are unique and monotonically increasing (but not
       necessarily contiguous) for a specific timestamp across record
       types in the same partition. To guarantee ordered processing, the reader
       should process records (of potentially different types) in
       record_sequence order for a specific timestamp in the same partition.
       
      string record_sequence = 2;
      Specified by:
      getRecordSequence in interface ChangeStreamRecord.PartitionEndRecordOrBuilder
      Returns:
      The recordSequence.
    • getRecordSequenceBytes

      public com.google.protobuf.ByteString getRecordSequenceBytes()
       Record sequence numbers are unique and monotonically increasing (but not
       necessarily contiguous) for a specific timestamp across record
       types in the same partition. To guarantee ordered processing, the reader
       should process records (of potentially different types) in
       record_sequence order for a specific timestamp in the same partition.
       
      string record_sequence = 2;
      Specified by:
      getRecordSequenceBytes in interface ChangeStreamRecord.PartitionEndRecordOrBuilder
      Returns:
      The bytes for recordSequence.
    • getPartitionToken

      public String getPartitionToken()
       Unique partition identifier describing the terminated change stream
       partition.
       [partition_token][google.spanner.v1.ChangeStreamRecord.PartitionEndRecord.partition_token]
       is equal to the partition token of the change stream partition currently
       queried to return this PartitionEndRecord.
       
      string partition_token = 3;
      Specified by:
      getPartitionToken in interface ChangeStreamRecord.PartitionEndRecordOrBuilder
      Returns:
      The partitionToken.
    • getPartitionTokenBytes

      public com.google.protobuf.ByteString getPartitionTokenBytes()
       Unique partition identifier describing the terminated change stream
       partition.
       [partition_token][google.spanner.v1.ChangeStreamRecord.PartitionEndRecord.partition_token]
       is equal to the partition token of the change stream partition currently
       queried to return this PartitionEndRecord.
       
      string partition_token = 3;
      Specified by:
      getPartitionTokenBytes in interface ChangeStreamRecord.PartitionEndRecordOrBuilder
      Returns:
      The bytes for partitionToken.
    • 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 ChangeStreamRecord.PartitionEndRecord parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static ChangeStreamRecord.PartitionEndRecord parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static ChangeStreamRecord.PartitionEndRecord parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static ChangeStreamRecord.PartitionEndRecord getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<ChangeStreamRecord.PartitionEndRecord> 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 ChangeStreamRecord.PartitionEndRecord getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder