Interface TargetChangeOrBuilder (3.16.3)

public interface TargetChangeOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCause()

public abstract Status getCause()

The error that resulted in this change, if applicable.

.google.rpc.Status cause = 3;

Returns
TypeDescription
com.google.rpc.Status

The cause.

getCauseOrBuilder()

public abstract StatusOrBuilder getCauseOrBuilder()

The error that resulted in this change, if applicable.

.google.rpc.Status cause = 3;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getReadTime()

public abstract Timestamp getReadTime()

The consistent read_time for the given target_ids (omitted when the target_ids are not at a consistent snapshot).

The stream is guaranteed to send a read_time with target_ids empty whenever the entire stream reaches a new consistent snapshot. ADD, CURRENT, and RESET messages are guaranteed to (eventually) result in a new consistent snapshot (while NO_CHANGE and REMOVE messages are not).

For a given stream, read_time is guaranteed to be monotonically increasing.

.google.protobuf.Timestamp read_time = 6;

Returns
TypeDescription
Timestamp

The readTime.

getReadTimeOrBuilder()

public abstract TimestampOrBuilder getReadTimeOrBuilder()

The consistent read_time for the given target_ids (omitted when the target_ids are not at a consistent snapshot).

The stream is guaranteed to send a read_time with target_ids empty whenever the entire stream reaches a new consistent snapshot. ADD, CURRENT, and RESET messages are guaranteed to (eventually) result in a new consistent snapshot (while NO_CHANGE and REMOVE messages are not).

For a given stream, read_time is guaranteed to be monotonically increasing.

.google.protobuf.Timestamp read_time = 6;

Returns
TypeDescription
TimestampOrBuilder

getResumeToken()

public abstract ByteString getResumeToken()

A token that can be used to resume the stream for the given target_ids, or all targets if target_ids is empty.

Not set on every target change.

bytes resume_token = 4;

Returns
TypeDescription
ByteString

The resumeToken.

getTargetChangeType()

public abstract TargetChange.TargetChangeType getTargetChangeType()

The type of change that occurred.

.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;

Returns
TypeDescription
TargetChange.TargetChangeType

The targetChangeType.

getTargetChangeTypeValue()

public abstract int getTargetChangeTypeValue()

The type of change that occurred.

.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for targetChangeType.

getTargetIds(int index)

public abstract int getTargetIds(int index)

The target IDs of targets that have changed.

If empty, the change applies to all targets.

The order of the target IDs is not defined.

repeated int32 target_ids = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
int

The targetIds at the given index.

getTargetIdsCount()

public abstract int getTargetIdsCount()

The target IDs of targets that have changed.

If empty, the change applies to all targets.

The order of the target IDs is not defined.

repeated int32 target_ids = 2;

Returns
TypeDescription
int

The count of targetIds.

getTargetIdsList()

public abstract List<Integer> getTargetIdsList()

The target IDs of targets that have changed.

If empty, the change applies to all targets.

The order of the target IDs is not defined.

repeated int32 target_ids = 2;

Returns
TypeDescription
List<Integer>

A list containing the targetIds.

hasCause()

public abstract boolean hasCause()

The error that resulted in this change, if applicable.

.google.rpc.Status cause = 3;

Returns
TypeDescription
boolean

Whether the cause field is set.

hasReadTime()

public abstract boolean hasReadTime()

The consistent read_time for the given target_ids (omitted when the target_ids are not at a consistent snapshot).

The stream is guaranteed to send a read_time with target_ids empty whenever the entire stream reaches a new consistent snapshot. ADD, CURRENT, and RESET messages are guaranteed to (eventually) result in a new consistent snapshot (while NO_CHANGE and REMOVE messages are not).

For a given stream, read_time is guaranteed to be monotonically increasing.

.google.protobuf.Timestamp read_time = 6;

Returns
TypeDescription
boolean

Whether the readTime field is set.