public static final class ChangeStreamRecord.PartitionEndRecord extends GeneratedMessage 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
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
END_TIMESTAMP_FIELD_NUMBER
public static final int END_TIMESTAMP_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PARTITION_TOKEN_FIELD_NUMBER
public static final int PARTITION_TOKEN_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
RECORD_SEQUENCE_FIELD_NUMBER
public static final int RECORD_SEQUENCE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static ChangeStreamRecord.PartitionEndRecord getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ChangeStreamRecord.PartitionEndRecord.Builder newBuilder()
newBuilder(ChangeStreamRecord.PartitionEndRecord prototype)
public static ChangeStreamRecord.PartitionEndRecord.Builder newBuilder(ChangeStreamRecord.PartitionEndRecord prototype)
public static ChangeStreamRecord.PartitionEndRecord parseDelimitedFrom(InputStream input)
public static ChangeStreamRecord.PartitionEndRecord parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ChangeStreamRecord.PartitionEndRecord parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ChangeStreamRecord.PartitionEndRecord parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ChangeStreamRecord.PartitionEndRecord parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ChangeStreamRecord.PartitionEndRecord parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ChangeStreamRecord.PartitionEndRecord parseFrom(CodedInputStream input)
public static ChangeStreamRecord.PartitionEndRecord parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ChangeStreamRecord.PartitionEndRecord parseFrom(InputStream input)
public static ChangeStreamRecord.PartitionEndRecord parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ChangeStreamRecord.PartitionEndRecord parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ChangeStreamRecord.PartitionEndRecord parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ChangeStreamRecord.PartitionEndRecord> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public ChangeStreamRecord.PartitionEndRecord getDefaultInstanceForType()
getEndTimestamp()
public 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;
| Returns |
| Type |
Description |
Timestamp |
The endTimestamp.
|
getEndTimestampOrBuilder()
public 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;
getParserForType()
public Parser<ChangeStreamRecord.PartitionEndRecord> getParserForType()
Overrides
getPartitionToken()
public String getPartitionToken()
Unique partition identifier describing the terminated change stream
partition.
partition_token
is equal to the partition token of the change stream partition currently
queried to return this PartitionEndRecord.
string partition_token = 3;
| Returns |
| Type |
Description |
String |
The partitionToken.
|
getPartitionTokenBytes()
public ByteString getPartitionTokenBytes()
Unique partition identifier describing the terminated change stream
partition.
partition_token
is equal to the partition token of the change stream partition currently
queried to return this PartitionEndRecord.
string partition_token = 3;
| Returns |
| Type |
Description |
ByteString |
The bytes for partitionToken.
|
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
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;
| Returns |
| Type |
Description |
boolean |
Whether the endTimestamp field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ChangeStreamRecord.PartitionEndRecord.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ChangeStreamRecord.PartitionEndRecord.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public ChangeStreamRecord.PartitionEndRecord.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides