public final class TargetChange extends GeneratedMessageV3 implements TargetChangeOrBuilder
Targets being watched have changed.Protobuf type
google.firestore.v1beta1.TargetChange| Modifier and Type | Class and Description |
|---|---|
static class |
TargetChange.Builder
Targets being watched have changed.
|
static class |
TargetChange.TargetChangeType
The type of change.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
CAUSE_FIELD_NUMBER |
static int |
READ_TIME_FIELD_NUMBER |
static int |
RESUME_TOKEN_FIELD_NUMBER |
static int |
TARGET_CHANGE_TYPE_FIELD_NUMBER |
static int |
TARGET_IDS_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Status |
getCause()
The error that resulted in this change, if applicable.
|
StatusOrBuilder |
getCauseOrBuilder()
The error that resulted in this change, if applicable.
|
static TargetChange |
getDefaultInstance() |
TargetChange |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Parser<TargetChange> |
getParserForType() |
Timestamp |
getReadTime()
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.
|
int |
getSerializedSize() |
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.
|
UnknownFieldSet |
getUnknownFields() |
boolean |
hasCause()
The error that resulted in this change, if applicable.
|
int |
hashCode() |
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() |
static TargetChange.Builder |
newBuilder() |
static TargetChange.Builder |
newBuilder(TargetChange prototype) |
TargetChange.Builder |
newBuilderForType() |
protected TargetChange.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static TargetChange |
parseDelimitedFrom(java.io.InputStream input) |
static TargetChange |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static TargetChange |
parseFrom(byte[] data) |
static TargetChange |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static TargetChange |
parseFrom(java.nio.ByteBuffer data) |
static TargetChange |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static TargetChange |
parseFrom(ByteString data) |
static TargetChange |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static TargetChange |
parseFrom(CodedInputStream input) |
static TargetChange |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static TargetChange |
parseFrom(java.io.InputStream input) |
static TargetChange |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<TargetChange> |
parser() |
TargetChange.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int TARGET_CHANGE_TYPE_FIELD_NUMBER
public static final int TARGET_IDS_FIELD_NUMBER
public static final int CAUSE_FIELD_NUMBER
public static final int RESUME_TOKEN_FIELD_NUMBER
public static final int READ_TIME_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public int getTargetChangeTypeValue()
The type of change that occurred.
.google.firestore.v1beta1.TargetChange.TargetChangeType target_change_type = 1;getTargetChangeTypeValue in interface TargetChangeOrBuilderpublic TargetChange.TargetChangeType getTargetChangeType()
The type of change that occurred.
.google.firestore.v1beta1.TargetChange.TargetChangeType target_change_type = 1;getTargetChangeType in interface TargetChangeOrBuilderpublic 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 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 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 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 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 boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static TargetChange parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static TargetChange parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static TargetChange parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static TargetChange parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static TargetChange parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static TargetChange parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static TargetChange parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static TargetChange parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static TargetChange parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static TargetChange parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static TargetChange parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static TargetChange parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic TargetChange.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static TargetChange.Builder newBuilder()
public static TargetChange.Builder newBuilder(TargetChange prototype)
public TargetChange.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected TargetChange.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static TargetChange getDefaultInstance()
public static Parser<TargetChange> parser()
public Parser<TargetChange> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public TargetChange getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder