public static final class TargetChange.Builder extends GeneratedMessageV3.Builder<TargetChange.Builder> implements TargetChangeOrBuilder
Targets being watched have changed.Protobuf type
google.firestore.v1beta1.TargetChange| Modifier and Type | Method and Description |
|---|---|
TargetChange.Builder |
addAllTargetIds(java.lang.Iterable<? extends java.lang.Integer> values)
The target IDs of targets that have changed.
|
TargetChange.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
TargetChange.Builder |
addTargetIds(int value)
The target IDs of targets that have changed.
|
TargetChange |
build() |
TargetChange |
buildPartial() |
TargetChange.Builder |
clear() |
TargetChange.Builder |
clearCause()
The error that resulted in this change, if applicable.
|
TargetChange.Builder |
clearField(Descriptors.FieldDescriptor field) |
TargetChange.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
TargetChange.Builder |
clearReadTime()
The consistent `read_time` for the given `target_ids` (omitted when the
target_ids are not at a consistent snapshot).
|
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.
|
TargetChange.Builder |
clearTargetChangeType()
The type of change that occurred.
|
TargetChange.Builder |
clearTargetIds()
The target IDs of targets that have changed.
|
TargetChange.Builder |
clone() |
Status |
getCause()
The error that resulted in this change, if applicable.
|
Status.Builder |
getCauseBuilder()
The error that resulted in this change, if applicable.
|
StatusOrBuilder |
getCauseOrBuilder()
The error that resulted in this change, if applicable.
|
TargetChange |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Timestamp |
getReadTime()
The consistent `read_time` for the given `target_ids` (omitted when the
target_ids are not at a consistent snapshot).
|
Timestamp.Builder |
getReadTimeBuilder()
The consistent `read_time` for the given `target_ids` (omitted when the
target_ids are not at a consistent snapshot).
|
TimestampOrBuilder |
getReadTimeOrBuilder()
The consistent `read_time` for the given `target_ids` (omitted when the
target_ids are not at a consistent snapshot).
|
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.
|
TargetChange.TargetChangeType |
getTargetChangeType()
The type of change that occurred.
|
int |
getTargetChangeTypeValue()
The type of change that occurred.
|
int |
getTargetIds(int index)
The target IDs of targets that have changed.
|
int |
getTargetIdsCount()
The target IDs of targets that have changed.
|
java.util.List<java.lang.Integer> |
getTargetIdsList()
The target IDs of targets that have changed.
|
boolean |
hasCause()
The error that resulted in this change, if applicable.
|
boolean |
hasReadTime()
The consistent `read_time` for the given `target_ids` (omitted when the
target_ids are not at a consistent snapshot).
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TargetChange.Builder |
mergeCause(Status value)
The error that resulted in this change, if applicable.
|
TargetChange.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
TargetChange.Builder |
mergeFrom(Message other) |
TargetChange.Builder |
mergeFrom(TargetChange other) |
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).
|
TargetChange.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
TargetChange.Builder |
setCause(Status.Builder builderForValue)
The error that resulted in this change, if applicable.
|
TargetChange.Builder |
setCause(Status value)
The error that resulted in this change, if applicable.
|
TargetChange.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
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).
|
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).
|
TargetChange.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
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.
|
TargetChange.Builder |
setTargetChangeType(TargetChange.TargetChangeType value)
The type of change that occurred.
|
TargetChange.Builder |
setTargetChangeTypeValue(int value)
The type of change that occurred.
|
TargetChange.Builder |
setTargetIds(int index,
int value)
The target IDs of targets that have changed.
|
TargetChange.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<TargetChange.Builder>public TargetChange.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<TargetChange.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<TargetChange.Builder>public TargetChange getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic TargetChange build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic TargetChange buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic TargetChange.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<TargetChange.Builder>public TargetChange.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<TargetChange.Builder>public TargetChange.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<TargetChange.Builder>public TargetChange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<TargetChange.Builder>public TargetChange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<TargetChange.Builder>public TargetChange.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<TargetChange.Builder>public TargetChange.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<TargetChange.Builder>public TargetChange.Builder mergeFrom(TargetChange other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<TargetChange.Builder>public TargetChange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<TargetChange.Builder>java.io.IOExceptionpublic int getTargetChangeTypeValue()
The type of change that occurred.
.google.firestore.v1beta1.TargetChange.TargetChangeType target_change_type = 1;getTargetChangeTypeValue in interface TargetChangeOrBuilderpublic TargetChange.Builder setTargetChangeTypeValue(int value)
The type of change that occurred.
.google.firestore.v1beta1.TargetChange.TargetChangeType target_change_type = 1;public TargetChange.TargetChangeType getTargetChangeType()
The type of change that occurred.
.google.firestore.v1beta1.TargetChange.TargetChangeType target_change_type = 1;getTargetChangeType in interface TargetChangeOrBuilderpublic TargetChange.Builder setTargetChangeType(TargetChange.TargetChangeType value)
The type of change that occurred.
.google.firestore.v1beta1.TargetChange.TargetChangeType target_change_type = 1;public TargetChange.Builder clearTargetChangeType()
The type of change that occurred.
.google.firestore.v1beta1.TargetChange.TargetChangeType target_change_type = 1;public java.util.List<java.lang.Integer> getTargetIdsList()
The target IDs of targets that have changed. If empty, the change applies to all targets. For `target_change_type=ADD`, the order of the target IDs matches the order of the requests to add the targets. This allows clients to unambiguously associate server-assigned target IDs with added targets. For other states, the order of the target IDs is not defined.
repeated int32 target_ids = 2;getTargetIdsList in interface TargetChangeOrBuilderpublic int getTargetIdsCount()
The target IDs of targets that have changed. If empty, the change applies to all targets. For `target_change_type=ADD`, the order of the target IDs matches the order of the requests to add the targets. This allows clients to unambiguously associate server-assigned target IDs with added targets. For other states, the order of the target IDs is not defined.
repeated int32 target_ids = 2;getTargetIdsCount in interface TargetChangeOrBuilderpublic int getTargetIds(int index)
The target IDs of targets that have changed. If empty, the change applies to all targets. For `target_change_type=ADD`, the order of the target IDs matches the order of the requests to add the targets. This allows clients to unambiguously associate server-assigned target IDs with added targets. For other states, the order of the target IDs is not defined.
repeated int32 target_ids = 2;getTargetIds in interface TargetChangeOrBuilderpublic TargetChange.Builder setTargetIds(int index, int value)
The target IDs of targets that have changed. If empty, the change applies to all targets. For `target_change_type=ADD`, the order of the target IDs matches the order of the requests to add the targets. This allows clients to unambiguously associate server-assigned target IDs with added targets. For other states, the order of the target IDs is not defined.
repeated int32 target_ids = 2;public TargetChange.Builder addTargetIds(int value)
The target IDs of targets that have changed. If empty, the change applies to all targets. For `target_change_type=ADD`, the order of the target IDs matches the order of the requests to add the targets. This allows clients to unambiguously associate server-assigned target IDs with added targets. For other states, the order of the target IDs is not defined.
repeated int32 target_ids = 2;public TargetChange.Builder addAllTargetIds(java.lang.Iterable<? extends java.lang.Integer> values)
The target IDs of targets that have changed. If empty, the change applies to all targets. For `target_change_type=ADD`, the order of the target IDs matches the order of the requests to add the targets. This allows clients to unambiguously associate server-assigned target IDs with added targets. For other states, the order of the target IDs is not defined.
repeated int32 target_ids = 2;public TargetChange.Builder clearTargetIds()
The target IDs of targets that have changed. If empty, the change applies to all targets. For `target_change_type=ADD`, the order of the target IDs matches the order of the requests to add the targets. This allows clients to unambiguously associate server-assigned target IDs with added targets. For other states, the order of the target IDs is not defined.
repeated int32 target_ids = 2;public boolean hasCause()
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;hasCause in interface TargetChangeOrBuilderpublic Status getCause()
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;getCause in interface TargetChangeOrBuilderpublic TargetChange.Builder setCause(Status value)
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;public TargetChange.Builder setCause(Status.Builder builderForValue)
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;public TargetChange.Builder mergeCause(Status value)
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;public TargetChange.Builder clearCause()
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;public Status.Builder getCauseBuilder()
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;public StatusOrBuilder getCauseOrBuilder()
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;getCauseOrBuilder in interface TargetChangeOrBuilderpublic 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;getResumeToken in interface TargetChangeOrBuilderpublic 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;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;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;hasReadTime in interface TargetChangeOrBuilderpublic 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;getReadTime in interface TargetChangeOrBuilderpublic 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;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;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;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;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;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;getReadTimeOrBuilder in interface TargetChangeOrBuilderpublic final TargetChange.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<TargetChange.Builder>public final TargetChange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<TargetChange.Builder>