Class ChangeStreamRecord.PartitionStartRecord

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

public static final class ChangeStreamRecord.PartitionStartRecord extends com.google.protobuf.GeneratedMessageV3 implements ChangeStreamRecord.PartitionStartRecordOrBuilder
 A partition start record serves as a notification that the client should
 schedule the partitions to be queried. PartitionStartRecord returns
 information about one or more partitions.
 
Protobuf type google.spanner.v1.ChangeStreamRecord.PartitionStartRecord
See Also:
  • Field Details

    • START_TIMESTAMP_FIELD_NUMBER

      public static final int START_TIMESTAMP_FIELD_NUMBER
      See Also:
    • RECORD_SEQUENCE_FIELD_NUMBER

      public static final int RECORD_SEQUENCE_FIELD_NUMBER
      See Also:
    • PARTITION_TOKENS_FIELD_NUMBER

      public static final int PARTITION_TOKENS_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
    • hasStartTimestamp

      public boolean hasStartTimestamp()
       Start timestamp at which the partitions should be queried to return
       change stream records with timestamps >= start_timestamp.
       DataChangeRecord.commit_timestamps,
       PartitionStartRecord.start_timestamps,
       PartitionEventRecord.commit_timestamps, and
       PartitionEndRecord.end_timestamps can have the same value in the same
       partition.
       
      .google.protobuf.Timestamp start_timestamp = 1;
      Specified by:
      hasStartTimestamp in interface ChangeStreamRecord.PartitionStartRecordOrBuilder
      Returns:
      Whether the startTimestamp field is set.
    • getStartTimestamp

      public com.google.protobuf.Timestamp getStartTimestamp()
       Start timestamp at which the partitions should be queried to return
       change stream records with timestamps >= start_timestamp.
       DataChangeRecord.commit_timestamps,
       PartitionStartRecord.start_timestamps,
       PartitionEventRecord.commit_timestamps, and
       PartitionEndRecord.end_timestamps can have the same value in the same
       partition.
       
      .google.protobuf.Timestamp start_timestamp = 1;
      Specified by:
      getStartTimestamp in interface ChangeStreamRecord.PartitionStartRecordOrBuilder
      Returns:
      The startTimestamp.
    • getStartTimestampOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimestampOrBuilder()
       Start timestamp at which the partitions should be queried to return
       change stream records with timestamps >= start_timestamp.
       DataChangeRecord.commit_timestamps,
       PartitionStartRecord.start_timestamps,
       PartitionEventRecord.commit_timestamps, and
       PartitionEndRecord.end_timestamps can have the same value in the same
       partition.
       
      .google.protobuf.Timestamp start_timestamp = 1;
      Specified by:
      getStartTimestampOrBuilder in interface ChangeStreamRecord.PartitionStartRecordOrBuilder
    • 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.PartitionStartRecordOrBuilder
      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.PartitionStartRecordOrBuilder
      Returns:
      The bytes for recordSequence.
    • getPartitionTokensList

      public com.google.protobuf.ProtocolStringList getPartitionTokensList()
       Unique partition identifiers to be used in queries.
       
      repeated string partition_tokens = 3;
      Specified by:
      getPartitionTokensList in interface ChangeStreamRecord.PartitionStartRecordOrBuilder
      Returns:
      A list containing the partitionTokens.
    • getPartitionTokensCount

      public int getPartitionTokensCount()
       Unique partition identifiers to be used in queries.
       
      repeated string partition_tokens = 3;
      Specified by:
      getPartitionTokensCount in interface ChangeStreamRecord.PartitionStartRecordOrBuilder
      Returns:
      The count of partitionTokens.
    • getPartitionTokens

      public String getPartitionTokens(int index)
       Unique partition identifiers to be used in queries.
       
      repeated string partition_tokens = 3;
      Specified by:
      getPartitionTokens in interface ChangeStreamRecord.PartitionStartRecordOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The partitionTokens at the given index.
    • getPartitionTokensBytes

      public com.google.protobuf.ByteString getPartitionTokensBytes(int index)
       Unique partition identifiers to be used in queries.
       
      repeated string partition_tokens = 3;
      Specified by:
      getPartitionTokensBytes in interface ChangeStreamRecord.PartitionStartRecordOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the partitionTokens at the given index.
    • 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.PartitionStartRecord parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static ChangeStreamRecord.PartitionStartRecord 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.PartitionStartRecord parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

      public static ChangeStreamRecord.PartitionStartRecord 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.PartitionStartRecord.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static ChangeStreamRecord.PartitionStartRecord getDefaultInstance()
    • parser

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

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