public static final class TargetChange.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder> implements TargetChangeOrBuilder
Targets being watched have changed.Protobuf type
google.firestore.v1.TargetChange| Modifier and Type | Method and Description |
|---|---|
TargetChange.Builder |
addAllTargetIds(Iterable<? extends Integer> values)
The target IDs of targets that have changed.
|
TargetChange.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
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(com.google.protobuf.Descriptors.FieldDescriptor field) |
TargetChange.Builder |
clearOneof(com.google.protobuf.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() |
com.google.rpc.Status |
getCause()
The error that resulted in this change, if applicable.
|
com.google.rpc.Status.Builder |
getCauseBuilder()
The error that resulted in this change, if applicable.
|
com.google.rpc.StatusOrBuilder |
getCauseOrBuilder()
The error that resulted in this change, if applicable.
|
TargetChange |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Timestamp |
getReadTime()
The consistent `read_time` for the given `target_ids` (omitted when the
target_ids are not at a consistent snapshot).
|
com.google.protobuf.Timestamp.Builder |
getReadTimeBuilder()
The consistent `read_time` for the given `target_ids` (omitted when the
target_ids are not at a consistent snapshot).
|
com.google.protobuf.TimestampOrBuilder |
getReadTimeOrBuilder()
The consistent `read_time` for the given `target_ids` (omitted when the
target_ids are not at a consistent snapshot).
|
com.google.protobuf.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.
|
List<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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TargetChange.Builder |
mergeCause(com.google.rpc.Status value)
The error that resulted in this change, if applicable.
|
TargetChange.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TargetChange.Builder |
mergeFrom(com.google.protobuf.Message other) |
TargetChange.Builder |
mergeFrom(TargetChange other) |
TargetChange.Builder |
mergeReadTime(com.google.protobuf.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(com.google.protobuf.UnknownFieldSet unknownFields) |
TargetChange.Builder |
setCause(com.google.rpc.Status.Builder builderForValue)
The error that resulted in this change, if applicable.
|
TargetChange.Builder |
setCause(com.google.rpc.Status value)
The error that resulted in this change, if applicable.
|
TargetChange.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TargetChange.Builder |
setReadTime(com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TargetChange.Builder |
setResumeToken(com.google.protobuf.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(com.google.protobuf.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, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>public TargetChange.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>public TargetChange getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TargetChange build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TargetChange buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TargetChange.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>public TargetChange.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>public TargetChange.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>public TargetChange.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>public TargetChange.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>public TargetChange.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>public TargetChange.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TargetChange.Builder>public TargetChange.Builder mergeFrom(TargetChange other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>public TargetChange.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TargetChange.Builder>IOExceptionpublic int getTargetChangeTypeValue()
The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;getTargetChangeTypeValue in interface TargetChangeOrBuilderpublic TargetChange.Builder setTargetChangeTypeValue(int value)
The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;public TargetChange.TargetChangeType getTargetChangeType()
The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;getTargetChangeType in interface TargetChangeOrBuilderpublic TargetChange.Builder setTargetChangeType(TargetChange.TargetChangeType value)
The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;public TargetChange.Builder clearTargetChangeType()
The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;public List<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(Iterable<? extends 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 com.google.rpc.Status getCause()
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;getCause in interface TargetChangeOrBuilderpublic TargetChange.Builder setCause(com.google.rpc.Status value)
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;public TargetChange.Builder setCause(com.google.rpc.Status.Builder builderForValue)
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;public TargetChange.Builder mergeCause(com.google.rpc.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 com.google.rpc.Status.Builder getCauseBuilder()
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;public com.google.rpc.StatusOrBuilder getCauseOrBuilder()
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;getCauseOrBuilder in interface TargetChangeOrBuilderpublic com.google.protobuf.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(com.google.protobuf.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 com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.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(com.google.protobuf.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 com.google.protobuf.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 com.google.protobuf.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(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>public final TargetChange.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>Copyright © 2019 Google LLC. All rights reserved.