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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>
public TargetChange getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public TargetChange build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public TargetChange buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public TargetChange.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TargetChange.Builder>
IOException
public int getTargetChangeTypeValue()
The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
getTargetChangeTypeValue
in interface TargetChangeOrBuilder
public TargetChange.Builder setTargetChangeTypeValue(int value)
The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
value
- The enum numeric value on the wire for targetChangeType to set.public TargetChange.TargetChangeType getTargetChangeType()
The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
getTargetChangeType
in interface TargetChangeOrBuilder
public TargetChange.Builder setTargetChangeType(TargetChange.TargetChangeType value)
The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
value
- The targetChangeType to set.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. The order of the target IDs is not defined.
repeated int32 target_ids = 2;
getTargetIdsList
in interface TargetChangeOrBuilder
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;
getTargetIdsCount
in interface TargetChangeOrBuilder
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;
getTargetIds
in interface TargetChangeOrBuilder
index
- The index of the element to return.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;
index
- The index to set the value at.value
- The targetIds to set.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;
value
- The targetIds to add.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;
values
- The targetIds to add.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;
public boolean hasCause()
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;
hasCause
in interface TargetChangeOrBuilder
public com.google.rpc.Status getCause()
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;
getCause
in interface TargetChangeOrBuilder
public 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 TargetChangeOrBuilder
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;
getResumeToken
in interface TargetChangeOrBuilder
public 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;
value
- The resumeToken to set.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 TargetChangeOrBuilder
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;
getReadTime
in interface TargetChangeOrBuilder
public 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 TargetChangeOrBuilder
public final TargetChange.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TargetChange.Builder>
Copyright © 2023 Google LLC. All rights reserved.