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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<TargetChange.Builder>
public TargetChange.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<TargetChange.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<TargetChange.Builder>
public TargetChange getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public TargetChange build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public TargetChange buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public TargetChange.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<TargetChange.Builder>
public TargetChange.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<TargetChange.Builder>
public TargetChange.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<TargetChange.Builder>
public TargetChange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<TargetChange.Builder>
public TargetChange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<TargetChange.Builder>
public TargetChange.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<TargetChange.Builder>
public TargetChange.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<TargetChange.Builder>
public TargetChange.Builder mergeFrom(TargetChange other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<TargetChange.Builder>
public TargetChange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<TargetChange.Builder>
java.io.IOException
public int getTargetChangeTypeValue()
The type of change that occurred.
.google.firestore.v1beta1.TargetChange.TargetChangeType target_change_type = 1;
getTargetChangeTypeValue
in interface TargetChangeOrBuilder
public 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 TargetChangeOrBuilder
public 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 TargetChangeOrBuilder
public 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 TargetChangeOrBuilder
public 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 TargetChangeOrBuilder
public 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 TargetChangeOrBuilder
public Status getCause()
The error that resulted in this change, if applicable.
.google.rpc.Status cause = 3;
getCause
in interface TargetChangeOrBuilder
public 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 TargetChangeOrBuilder
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;
getResumeToken
in interface TargetChangeOrBuilder
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;
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 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(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 TargetChangeOrBuilder
public final TargetChange.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<TargetChange.Builder>
public final TargetChange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<TargetChange.Builder>