Class TargetChange.Builder (3.4.1)

public static final class TargetChange.Builder extends GeneratedMessageV3.Builder<TargetChange.Builder> implements TargetChangeOrBuilder

Targets being watched have changed.

Protobuf type google.firestore.v1.TargetChange

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllTargetIds(Iterable<? extends Integer> values)

public TargetChange.Builder addAllTargetIds(Iterable<? extends Integer> values)

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
valuesIterable<? extends java.lang.Integer>

The targetIds to add.

Returns
TypeDescription
TargetChange.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TargetChange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TargetChange.Builder
Overrides

addTargetIds(int value)

public TargetChange.Builder addTargetIds(int value)

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
valueint

The targetIds to add.

Returns
TypeDescription
TargetChange.Builder

This builder for chaining.

build()

public TargetChange build()
Returns
TypeDescription
TargetChange

buildPartial()

public TargetChange buildPartial()
Returns
TypeDescription
TargetChange

clear()

public TargetChange.Builder clear()
Returns
TypeDescription
TargetChange.Builder
Overrides

clearCause()

public TargetChange.Builder clearCause()

The error that resulted in this change, if applicable.

.google.rpc.Status cause = 3;

Returns
TypeDescription
TargetChange.Builder

clearField(Descriptors.FieldDescriptor field)

public TargetChange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TargetChange.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public TargetChange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TargetChange.Builder
Overrides

clearReadTime()

public TargetChange.Builder clearReadTime()

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
TargetChange.Builder

clearResumeToken()

public TargetChange.Builder clearResumeToken()

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
TargetChange.Builder

This builder for chaining.

clearTargetChangeType()

public TargetChange.Builder clearTargetChangeType()

The type of change that occurred.

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

Returns
TypeDescription
TargetChange.Builder

This builder for chaining.

clearTargetIds()

public TargetChange.Builder clearTargetIds()

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
TargetChange.Builder

This builder for chaining.

clone()

public TargetChange.Builder clone()
Returns
TypeDescription
TargetChange.Builder
Overrides

getCause()

public Status getCause()

The error that resulted in this change, if applicable.

.google.rpc.Status cause = 3;

Returns
TypeDescription
com.google.rpc.Status

The cause.

getCauseBuilder()

public Status.Builder getCauseBuilder()

The error that resulted in this change, if applicable.

.google.rpc.Status cause = 3;

Returns
TypeDescription
com.google.rpc.Status.Builder

getCauseOrBuilder()

public StatusOrBuilder getCauseOrBuilder()

The error that resulted in this change, if applicable.

.google.rpc.Status cause = 3;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getDefaultInstanceForType()

public TargetChange getDefaultInstanceForType()
Returns
TypeDescription
TargetChange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getReadTime()

public 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.

getReadTimeBuilder()

public Timestamp.Builder getReadTimeBuilder()

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
Builder

getReadTimeOrBuilder()

public 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 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 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 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 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 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 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 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 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCause(Status value)

public TargetChange.Builder mergeCause(Status value)

The error that resulted in this change, if applicable.

.google.rpc.Status cause = 3;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
TargetChange.Builder

mergeFrom(TargetChange other)

public TargetChange.Builder mergeFrom(TargetChange other)
Parameter
NameDescription
otherTargetChange
Returns
TypeDescription
TargetChange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TargetChange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TargetChange.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TargetChange.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TargetChange.Builder
Overrides

mergeReadTime(Timestamp value)

public TargetChange.Builder mergeReadTime(Timestamp value)

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;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TargetChange.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TargetChange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TargetChange.Builder
Overrides

setCause(Status value)

public TargetChange.Builder setCause(Status value)

The error that resulted in this change, if applicable.

.google.rpc.Status cause = 3;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
TargetChange.Builder

setCause(Status.Builder builderForValue)

public TargetChange.Builder setCause(Status.Builder builderForValue)

The error that resulted in this change, if applicable.

.google.rpc.Status cause = 3;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
TargetChange.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TargetChange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TargetChange.Builder
Overrides

setReadTime(Timestamp value)

public TargetChange.Builder setReadTime(Timestamp value)

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;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
TargetChange.Builder

setReadTime(Timestamp.Builder builderForValue)

public TargetChange.Builder setReadTime(Timestamp.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
TargetChange.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TargetChange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TargetChange.Builder
Overrides

setResumeToken(ByteString value)

public TargetChange.Builder setResumeToken(ByteString value)

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;

Parameter
NameDescription
valueByteString

The resumeToken to set.

Returns
TypeDescription
TargetChange.Builder

This builder for chaining.

setTargetChangeType(TargetChange.TargetChangeType value)

public TargetChange.Builder setTargetChangeType(TargetChange.TargetChangeType value)

The type of change that occurred.

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

Parameter
NameDescription
valueTargetChange.TargetChangeType

The targetChangeType to set.

Returns
TypeDescription
TargetChange.Builder

This builder for chaining.

setTargetChangeTypeValue(int value)

public TargetChange.Builder setTargetChangeTypeValue(int value)

The type of change that occurred.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for targetChangeType to set.

Returns
TypeDescription
TargetChange.Builder

This builder for chaining.

setTargetIds(int index, int value)

public TargetChange.Builder setTargetIds(int index, int value)

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;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

The targetIds to set.

Returns
TypeDescription
TargetChange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TargetChange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TargetChange.Builder
Overrides