public final class TargetChange extends com.google.protobuf.GeneratedMessageV3 implements TargetChangeOrBuilder
Targets being watched have changed.Protobuf type
google.firestore.v1.TargetChange| Modifier and Type | Class and Description |
|---|---|
static class |
TargetChange.Builder
Targets being watched have changed.
|
static class |
TargetChange.TargetChangeType
The type of change.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| 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 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.rpc.Status |
getCause()
The error that resulted in this change, if applicable.
|
com.google.rpc.StatusOrBuilder |
getCauseOrBuilder()
The error that resulted in this change, if applicable.
|
static TargetChange |
getDefaultInstance() |
TargetChange |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<TargetChange> |
getParserForType() |
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.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.
|
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.
|
List<Integer> |
getTargetIdsList()
The target IDs of targets that have changed.
|
com.google.protobuf.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 com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static TargetChange.Builder |
newBuilder() |
static TargetChange.Builder |
newBuilder(TargetChange prototype) |
TargetChange.Builder |
newBuilderForType() |
protected TargetChange.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static TargetChange |
parseDelimitedFrom(InputStream input) |
static TargetChange |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TargetChange |
parseFrom(byte[] data) |
static TargetChange |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TargetChange |
parseFrom(ByteBuffer data) |
static TargetChange |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TargetChange |
parseFrom(com.google.protobuf.ByteString data) |
static TargetChange |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TargetChange |
parseFrom(com.google.protobuf.CodedInputStream input) |
static TargetChange |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static TargetChange |
parseFrom(InputStream input) |
static TargetChange |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<TargetChange> |
parser() |
TargetChange.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, waitpublic 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
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getTargetChangeTypeValue()
The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;getTargetChangeTypeValue in interface TargetChangeOrBuilderpublic TargetChange.TargetChangeType getTargetChangeType()
The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;getTargetChangeType in interface TargetChangeOrBuilderpublic 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 TargetChangeOrBuilderpublic 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 TargetChangeOrBuilderpublic 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 TargetChangeOrBuilderindex - The index of the element to return.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 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 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 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 boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static TargetChange parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TargetChange parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TargetChange parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TargetChange parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TargetChange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TargetChange parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static TargetChange parseFrom(InputStream input) throws IOException
IOExceptionpublic static TargetChange parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TargetChange parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static TargetChange parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static TargetChange parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static TargetChange parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic TargetChange.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static TargetChange.Builder newBuilder()
public static TargetChange.Builder newBuilder(TargetChange prototype)
public TargetChange.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected TargetChange.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static TargetChange getDefaultInstance()
public static com.google.protobuf.Parser<TargetChange> parser()
public com.google.protobuf.Parser<TargetChange> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public TargetChange getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.