Package com.authzed.api.v1
Class WatchResponse
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.authzed.api.v1.WatchResponse
- All Implemented Interfaces:
WatchResponseOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class WatchResponse
extends com.google.protobuf.GeneratedMessage
implements WatchResponseOrBuilder
WatchResponse contains all mutation events in ascending timestamp order. This excludes relationships that were deleted because they expired. The response includes a field that can be used to resume watching from that point.Protobuf type
authzed.api.v1.WatchResponse- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classWatchResponse contains all mutation events in ascending timestamp order.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanchanges_through is the ZedToken that represents the point in time that the watch response is current through.changes_through is the ZedToken that represents the point in time that the watch response is current through.static WatchResponsestatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.StructgetFullRevisionMetadata(int index) full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response.intfull_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response.List<com.google.protobuf.Struct>full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response.com.google.protobuf.StructOrBuildergetFullRevisionMetadataOrBuilder(int index) full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response.List<? extends com.google.protobuf.StructOrBuilder>full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response.booleanis_checkpoint, if true, indicates that a checkpoint was reached.com.google.protobuf.Structoptional_transaction_metadata is an optional field that returns the transaction metadata given to SpiceDB during the transaction that produced the changes in this response.com.google.protobuf.StructOrBuilderoptional_transaction_metadata is an optional field that returns the transaction metadata given to SpiceDB during the transaction that produced the changes in this response.com.google.protobuf.Parser<WatchResponse>booleanschema_updated, if true, indicates that the schema was changed in this revision.intgetUpdates(int index) updates are the RelationshipUpdate events that have occurred since the call was made, or since the point in time specified by changes_through.intupdates are the RelationshipUpdate events that have occurred since the call was made, or since the point in time specified by changes_through.updates are the RelationshipUpdate events that have occurred since the call was made, or since the point in time specified by changes_through.getUpdatesOrBuilder(int index) updates are the RelationshipUpdate events that have occurred since the call was made, or since the point in time specified by changes_through.List<? extends RelationshipUpdateOrBuilder>updates are the RelationshipUpdate events that have occurred since the call was made, or since the point in time specified by changes_through.booleanchanges_through is the ZedToken that represents the point in time that the watch response is current through.inthashCode()booleanoptional_transaction_metadata is an optional field that returns the transaction metadata given to SpiceDB during the transaction that produced the changes in this response.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic WatchResponse.Builderstatic WatchResponse.BuildernewBuilder(WatchResponse prototype) protected WatchResponse.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static WatchResponseparseDelimitedFrom(InputStream input) static WatchResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WatchResponseparseFrom(byte[] data) static WatchResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WatchResponseparseFrom(com.google.protobuf.ByteString data) static WatchResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WatchResponseparseFrom(com.google.protobuf.CodedInputStream input) static WatchResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WatchResponseparseFrom(InputStream input) static WatchResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WatchResponseparseFrom(ByteBuffer data) static WatchResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<WatchResponse>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
UPDATES_FIELD_NUMBER
public static final int UPDATES_FIELD_NUMBER- See Also:
-
CHANGES_THROUGH_FIELD_NUMBER
public static final int CHANGES_THROUGH_FIELD_NUMBER- See Also:
-
OPTIONAL_TRANSACTION_METADATA_FIELD_NUMBER
public static final int OPTIONAL_TRANSACTION_METADATA_FIELD_NUMBER- See Also:
-
SCHEMA_UPDATED_FIELD_NUMBER
public static final int SCHEMA_UPDATED_FIELD_NUMBER- See Also:
-
IS_CHECKPOINT_FIELD_NUMBER
public static final int IS_CHECKPOINT_FIELD_NUMBER- See Also:
-
FULL_REVISION_METADATA_FIELD_NUMBER
public static final int FULL_REVISION_METADATA_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getUpdatesList
updates are the RelationshipUpdate events that have occurred since the call was made, or since the point in time specified by changes_through.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;- Specified by:
getUpdatesListin interfaceWatchResponseOrBuilder
-
getUpdatesOrBuilderList
updates are the RelationshipUpdate events that have occurred since the call was made, or since the point in time specified by changes_through.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;- Specified by:
getUpdatesOrBuilderListin interfaceWatchResponseOrBuilder
-
getUpdatesCount
public int getUpdatesCount()updates are the RelationshipUpdate events that have occurred since the call was made, or since the point in time specified by changes_through.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;- Specified by:
getUpdatesCountin interfaceWatchResponseOrBuilder
-
getUpdates
updates are the RelationshipUpdate events that have occurred since the call was made, or since the point in time specified by changes_through.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;- Specified by:
getUpdatesin interfaceWatchResponseOrBuilder
-
getUpdatesOrBuilder
updates are the RelationshipUpdate events that have occurred since the call was made, or since the point in time specified by changes_through.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;- Specified by:
getUpdatesOrBuilderin interfaceWatchResponseOrBuilder
-
hasChangesThrough
public boolean hasChangesThrough()changes_through is the ZedToken that represents the point in time that the watch response is current through. This token can be used in a subsequent WatchRequest to resume watching from this point.
.authzed.api.v1.ZedToken changes_through = 2;- Specified by:
hasChangesThroughin interfaceWatchResponseOrBuilder- Returns:
- Whether the changesThrough field is set.
-
getChangesThrough
changes_through is the ZedToken that represents the point in time that the watch response is current through. This token can be used in a subsequent WatchRequest to resume watching from this point.
.authzed.api.v1.ZedToken changes_through = 2;- Specified by:
getChangesThroughin interfaceWatchResponseOrBuilder- Returns:
- The changesThrough.
-
getChangesThroughOrBuilder
changes_through is the ZedToken that represents the point in time that the watch response is current through. This token can be used in a subsequent WatchRequest to resume watching from this point.
.authzed.api.v1.ZedToken changes_through = 2;- Specified by:
getChangesThroughOrBuilderin interfaceWatchResponseOrBuilder
-
hasOptionalTransactionMetadata
public boolean hasOptionalTransactionMetadata()optional_transaction_metadata is an optional field that returns the transaction metadata given to SpiceDB during the transaction that produced the changes in this response. This field may not exist if no transaction metadata was provided, or if multiple pieces of metadata were found during the transaction (in which case it is ambiguous which to return).
.google.protobuf.Struct optional_transaction_metadata = 3;- Specified by:
hasOptionalTransactionMetadatain interfaceWatchResponseOrBuilder- Returns:
- Whether the optionalTransactionMetadata field is set.
-
getOptionalTransactionMetadata
public com.google.protobuf.Struct getOptionalTransactionMetadata()optional_transaction_metadata is an optional field that returns the transaction metadata given to SpiceDB during the transaction that produced the changes in this response. This field may not exist if no transaction metadata was provided, or if multiple pieces of metadata were found during the transaction (in which case it is ambiguous which to return).
.google.protobuf.Struct optional_transaction_metadata = 3;- Specified by:
getOptionalTransactionMetadatain interfaceWatchResponseOrBuilder- Returns:
- The optionalTransactionMetadata.
-
getOptionalTransactionMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getOptionalTransactionMetadataOrBuilder()optional_transaction_metadata is an optional field that returns the transaction metadata given to SpiceDB during the transaction that produced the changes in this response. This field may not exist if no transaction metadata was provided, or if multiple pieces of metadata were found during the transaction (in which case it is ambiguous which to return).
.google.protobuf.Struct optional_transaction_metadata = 3;- Specified by:
getOptionalTransactionMetadataOrBuilderin interfaceWatchResponseOrBuilder
-
getSchemaUpdated
public boolean getSchemaUpdated()schema_updated, if true, indicates that the schema was changed in this revision.
bool schema_updated = 4;- Specified by:
getSchemaUpdatedin interfaceWatchResponseOrBuilder- Returns:
- The schemaUpdated.
-
getIsCheckpoint
public boolean getIsCheckpoint()is_checkpoint, if true, indicates that a checkpoint was reached. A checkpoint indicates that the server guarantees that the client will not observe any changes at a revision below or equal to the revision in this response.
bool is_checkpoint = 5;- Specified by:
getIsCheckpointin interfaceWatchResponseOrBuilder- Returns:
- The isCheckpoint.
-
getFullRevisionMetadataList
full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response. Some datastores (such as CockroachDB) can "merge" multiple transactions into a single revision (if the changes occurred concurrently), so this field is a list of all transaction metadata seen during the revision.
repeated .google.protobuf.Struct full_revision_metadata = 6;- Specified by:
getFullRevisionMetadataListin interfaceWatchResponseOrBuilder
-
getFullRevisionMetadataOrBuilderList
full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response. Some datastores (such as CockroachDB) can "merge" multiple transactions into a single revision (if the changes occurred concurrently), so this field is a list of all transaction metadata seen during the revision.
repeated .google.protobuf.Struct full_revision_metadata = 6;- Specified by:
getFullRevisionMetadataOrBuilderListin interfaceWatchResponseOrBuilder
-
getFullRevisionMetadataCount
public int getFullRevisionMetadataCount()full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response. Some datastores (such as CockroachDB) can "merge" multiple transactions into a single revision (if the changes occurred concurrently), so this field is a list of all transaction metadata seen during the revision.
repeated .google.protobuf.Struct full_revision_metadata = 6;- Specified by:
getFullRevisionMetadataCountin interfaceWatchResponseOrBuilder
-
getFullRevisionMetadata
public com.google.protobuf.Struct getFullRevisionMetadata(int index) full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response. Some datastores (such as CockroachDB) can "merge" multiple transactions into a single revision (if the changes occurred concurrently), so this field is a list of all transaction metadata seen during the revision.
repeated .google.protobuf.Struct full_revision_metadata = 6;- Specified by:
getFullRevisionMetadatain interfaceWatchResponseOrBuilder
-
getFullRevisionMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getFullRevisionMetadataOrBuilder(int index) full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response. Some datastores (such as CockroachDB) can "merge" multiple transactions into a single revision (if the changes occurred concurrently), so this field is a list of all transaction metadata seen during the revision.
repeated .google.protobuf.Struct full_revision_metadata = 6;- Specified by:
getFullRevisionMetadataOrBuilderin interfaceWatchResponseOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static WatchResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WatchResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WatchResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WatchResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WatchResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WatchResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static WatchResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static WatchResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static WatchResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static WatchResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected WatchResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-