public static final class ChangeStreamRecord.PartitionStartRecord extends GeneratedMessage 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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
PARTITION_TOKENS_FIELD_NUMBER
public static final int PARTITION_TOKENS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
RECORD_SEQUENCE_FIELD_NUMBER
public static final int RECORD_SEQUENCE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
START_TIMESTAMP_FIELD_NUMBER
public static final int START_TIMESTAMP_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static ChangeStreamRecord.PartitionStartRecord getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ChangeStreamRecord.PartitionStartRecord.Builder newBuilder()
newBuilder(ChangeStreamRecord.PartitionStartRecord prototype)
public static ChangeStreamRecord.PartitionStartRecord.Builder newBuilder(ChangeStreamRecord.PartitionStartRecord prototype)
public static ChangeStreamRecord.PartitionStartRecord parseDelimitedFrom(InputStream input)
public static ChangeStreamRecord.PartitionStartRecord parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ChangeStreamRecord.PartitionStartRecord parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ChangeStreamRecord.PartitionStartRecord parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ChangeStreamRecord.PartitionStartRecord parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ChangeStreamRecord.PartitionStartRecord parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ChangeStreamRecord.PartitionStartRecord parseFrom(CodedInputStream input)
public static ChangeStreamRecord.PartitionStartRecord parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ChangeStreamRecord.PartitionStartRecord parseFrom(InputStream input)
public static ChangeStreamRecord.PartitionStartRecord parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ChangeStreamRecord.PartitionStartRecord parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ChangeStreamRecord.PartitionStartRecord parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ChangeStreamRecord.PartitionStartRecord> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public ChangeStreamRecord.PartitionStartRecord getDefaultInstanceForType()
getParserForType()
public Parser<ChangeStreamRecord.PartitionStartRecord> getParserForType()
Overrides
getPartitionTokens(int index)
public String getPartitionTokens(int index)
Unique partition identifiers to be used in queries.
repeated string partition_tokens = 3;
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The partitionTokens at the given index.
|
getPartitionTokensBytes(int index)
public ByteString getPartitionTokensBytes(int index)
Unique partition identifiers to be used in queries.
repeated string partition_tokens = 3;
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the partitionTokens at the given index.
|
getPartitionTokensCount()
public int getPartitionTokensCount()
Unique partition identifiers to be used in queries.
repeated string partition_tokens = 3;
| Returns |
| Type |
Description |
int |
The count of partitionTokens.
|
getPartitionTokensList()
public ProtocolStringList getPartitionTokensList()
Unique partition identifiers to be used in queries.
repeated string partition_tokens = 3;
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;
| Returns |
| Type |
Description |
String |
The recordSequence.
|
getRecordSequenceBytes()
public 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;
| Returns |
| Type |
Description |
ByteString |
The bytes for recordSequence.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getStartTimestamp()
public 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;
| Returns |
| Type |
Description |
Timestamp |
The startTimestamp.
|
getStartTimestampOrBuilder()
public 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;
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;
| Returns |
| Type |
Description |
boolean |
Whether the startTimestamp field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ChangeStreamRecord.PartitionStartRecord.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ChangeStreamRecord.PartitionStartRecord.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public ChangeStreamRecord.PartitionStartRecord.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides