Package com.google.firestore.v1
Class TargetChange.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>
com.google.firestore.v1.TargetChange.Builder
- All Implemented Interfaces:
TargetChangeOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TargetChange
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllTargetIds(Iterable<? extends Integer> values) The target IDs of targets that have changed.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addTargetIds(int value) The target IDs of targets that have changed.build()clear()The error that resulted in this change, if applicable.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot).A token that can be used to resume the stream for the given `target_ids`, or all targets if `target_ids` is empty.The type of change that occurred.The target IDs of targets that have changed.clone()com.google.rpc.StatusgetCause()The error that resulted in this change, if applicable.com.google.rpc.Status.BuilderThe error that resulted in this change, if applicable.com.google.rpc.StatusOrBuilderThe error that resulted in this change, if applicable.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampThe consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot).com.google.protobuf.Timestamp.BuilderThe consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot).com.google.protobuf.TimestampOrBuilderThe consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot).com.google.protobuf.ByteStringA token that can be used to resume the stream for the given `target_ids`, or all targets if `target_ids` is empty.The type of change that occurred.intThe type of change that occurred.intgetTargetIds(int index) The target IDs of targets that have changed.intThe target IDs of targets that have changed.The target IDs of targets that have changed.booleanhasCause()The error that resulted in this change, if applicable.booleanThe consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeCause(com.google.rpc.Status value) The error that resulted in this change, if applicable.mergeFrom(TargetChange other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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).final TargetChange.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCause(com.google.rpc.Status value) The error that resulted in this change, if applicable.setCause(com.google.rpc.Status.Builder builderForValue) The error that resulted in this change, if applicable.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).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).setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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.The type of change that occurred.setTargetChangeTypeValue(int value) The type of change that occurred.setTargetIds(int index, int value) The target IDs of targets that have changed.final TargetChange.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>
-
setField
public TargetChange.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>
-
setRepeatedField
public TargetChange.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>
-
addRepeatedField
public TargetChange.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TargetChange.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>
-
mergeFrom
public TargetChange.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TargetChange.Builder>- Throws:
IOException
-
getTargetChangeTypeValue
public int getTargetChangeTypeValue()The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;- Specified by:
getTargetChangeTypeValuein interfaceTargetChangeOrBuilder- Returns:
- The enum numeric value on the wire for targetChangeType.
-
setTargetChangeTypeValue
The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;- Parameters:
value- The enum numeric value on the wire for targetChangeType to set.- Returns:
- This builder for chaining.
-
getTargetChangeType
The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;- Specified by:
getTargetChangeTypein interfaceTargetChangeOrBuilder- Returns:
- The targetChangeType.
-
setTargetChangeType
The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;- Parameters:
value- The targetChangeType to set.- Returns:
- This builder for chaining.
-
clearTargetChangeType
The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;- Returns:
- This builder for chaining.
-
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;- Specified by:
getTargetIdsListin interfaceTargetChangeOrBuilder- Returns:
- A list containing the targetIds.
-
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;- Specified by:
getTargetIdsCountin interfaceTargetChangeOrBuilder- Returns:
- The count of targetIds.
-
getTargetIds
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;- Specified by:
getTargetIdsin interfaceTargetChangeOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The targetIds at the given index.
-
setTargetIds
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:
index- The index to set the value at.value- The targetIds to set.- Returns:
- This builder for chaining.
-
addTargetIds
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:
value- The targetIds to add.- Returns:
- This builder for chaining.
-
addAllTargetIds
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:
values- The targetIds to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
hasCause
public boolean hasCause()The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;- Specified by:
hasCausein interfaceTargetChangeOrBuilder- Returns:
- Whether the cause field is set.
-
getCause
public com.google.rpc.Status getCause()The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;- Specified by:
getCausein interfaceTargetChangeOrBuilder- Returns:
- The cause.
-
setCause
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3; -
setCause
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3; -
mergeCause
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3; -
clearCause
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3; -
getCauseBuilder
public com.google.rpc.Status.Builder getCauseBuilder()The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3; -
getCauseOrBuilder
public com.google.rpc.StatusOrBuilder getCauseOrBuilder()The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;- Specified by:
getCauseOrBuilderin interfaceTargetChangeOrBuilder
-
getResumeToken
public 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;- Specified by:
getResumeTokenin interfaceTargetChangeOrBuilder- Returns:
- The resumeToken.
-
setResumeToken
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;- Parameters:
value- The resumeToken to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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;- Specified by:
hasReadTimein interfaceTargetChangeOrBuilder- Returns:
- Whether the readTime field is set.
-
getReadTime
public 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;- Specified by:
getReadTimein interfaceTargetChangeOrBuilder- Returns:
- The readTime.
-
setReadTime
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; -
setReadTime
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; -
mergeReadTime
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; -
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; -
getReadTimeBuilder
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; -
getReadTimeOrBuilder
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;- Specified by:
getReadTimeOrBuilderin interfaceTargetChangeOrBuilder
-
setUnknownFields
public final TargetChange.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>
-
mergeUnknownFields
public final TargetChange.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>
-