Package com.authzed.api.v1
Interface WatchResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
WatchResponse
,WatchResponse.Builder
public interface WatchResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionchanges_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.com.google.protobuf.Struct
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.com.google.protobuf.StructOrBuilder
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.getUpdates
(int index) updates are the RelationshipUpdate events that have occurred since the last watch response.int
updates are the RelationshipUpdate events that have occurred since the last watch response.updates are the RelationshipUpdate events that have occurred since the last watch response.getUpdatesOrBuilder
(int index) updates are the RelationshipUpdate events that have occurred since the last watch response.List<? extends RelationshipUpdateOrBuilder>
updates are the RelationshipUpdate events that have occurred since the last watch response.boolean
changes_through is the ZedToken that represents the point in time that the watch response is current through.boolean
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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getUpdatesList
List<RelationshipUpdate> getUpdatesList()updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
-
getUpdates
updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
-
getUpdatesCount
int getUpdatesCount()updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
-
getUpdatesOrBuilderList
List<? extends RelationshipUpdateOrBuilder> getUpdatesOrBuilderList()updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
-
getUpdatesOrBuilder
updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
-
hasChangesThrough
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;
- Returns:
- Whether the changesThrough field is set.
-
getChangesThrough
ZedToken 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;
- Returns:
- The changesThrough.
-
getChangesThroughOrBuilder
ZedTokenOrBuilder 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;
-
hasOptionalTransactionMetadata
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.
.google.protobuf.Struct optional_transaction_metadata = 3;
- Returns:
- Whether the optionalTransactionMetadata field is set.
-
getOptionalTransactionMetadata
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.
.google.protobuf.Struct optional_transaction_metadata = 3;
- Returns:
- The optionalTransactionMetadata.
-
getOptionalTransactionMetadataOrBuilder
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.
.google.protobuf.Struct optional_transaction_metadata = 3;
-