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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public int getTargetChangeTypeValue()
The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
getTargetChangeTypeValue
in interface TargetChangeOrBuilder
public TargetChange.TargetChangeType getTargetChangeType()
The type of change that occurred.
.google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
getTargetChangeType
in interface TargetChangeOrBuilder
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 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 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 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 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 boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static TargetChange parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TargetChange parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TargetChange parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TargetChange parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TargetChange parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TargetChange parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static TargetChange parseFrom(InputStream input) throws IOException
IOException
public static TargetChange parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TargetChange parseDelimitedFrom(InputStream input) throws IOException
IOException
public static TargetChange parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static TargetChange parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static TargetChange parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public TargetChange.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static TargetChange.Builder newBuilder()
public static TargetChange.Builder newBuilder(TargetChange prototype)
public TargetChange.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected TargetChange.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static TargetChange getDefaultInstance()
public static com.google.protobuf.Parser<TargetChange> parser()
public com.google.protobuf.Parser<TargetChange> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public TargetChange getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2023 Google LLC. All rights reserved.