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