Package com.authzed.api.v1
Class WatchResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WatchResponse.Builder>
com.authzed.api.v1.WatchResponse.Builder
- All Implemented Interfaces:
WatchResponseOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- WatchResponse
public static final class WatchResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<WatchResponse.Builder>
implements WatchResponseOrBuilder
WatchResponse contains all tuple modification events in ascending timestamp order, from the requested start snapshot to a snapshot encoded in the watch response. The client can use the snapshot to resume watching where the previous watch response left off.Protobuf type
authzed.api.v1.WatchResponse
-
Method Summary
Modifier and TypeMethodDescriptionaddAllUpdates
(Iterable<? extends RelationshipUpdate> values) updates are the RelationshipUpdate events that have occurred since the last watch response.addUpdates
(int index, RelationshipUpdate value) updates are the RelationshipUpdate events that have occurred since the last watch response.addUpdates
(int index, RelationshipUpdate.Builder builderForValue) updates are the RelationshipUpdate events that have occurred since the last watch response.addUpdates
(RelationshipUpdate value) updates are the RelationshipUpdate events that have occurred since the last watch response.addUpdates
(RelationshipUpdate.Builder builderForValue) 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.addUpdatesBuilder
(int index) updates are the RelationshipUpdate events that have occurred since the last watch response.build()
clear()
changes_through is the ZedToken that represents the point in time that the watch response is current through.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.updates are the RelationshipUpdate events that have occurred since the last watch response.changes_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.changes_through is the ZedToken that represents the point in time that the watch response is current through.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
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.Struct.Builder
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.getUpdatesBuilder
(int index) 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.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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeChangesThrough
(ZedToken value) changes_through is the ZedToken that represents the point in time that the watch response is current through.mergeFrom
(WatchResponse other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeOptionalTransactionMetadata
(com.google.protobuf.Struct value) 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.removeUpdates
(int index) updates are the RelationshipUpdate events that have occurred since the last watch response.setChangesThrough
(ZedToken value) changes_through is the ZedToken that represents the point in time that the watch response is current through.setChangesThrough
(ZedToken.Builder builderForValue) changes_through is the ZedToken that represents the point in time that the watch response is current through.setOptionalTransactionMetadata
(com.google.protobuf.Struct value) 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.setOptionalTransactionMetadata
(com.google.protobuf.Struct.Builder builderForValue) 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.setUpdates
(int index, RelationshipUpdate value) updates are the RelationshipUpdate events that have occurred since the last watch response.setUpdates
(int index, RelationshipUpdate.Builder builderForValue) updates are the RelationshipUpdate events that have occurred since the last watch response.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<WatchResponse.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<WatchResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<WatchResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<WatchResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<WatchResponse.Builder>
-
mergeFrom
public WatchResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<WatchResponse.Builder>
- Throws:
IOException
-
getUpdatesList
updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
- Specified by:
getUpdatesList
in interfaceWatchResponseOrBuilder
-
getUpdatesCount
public int getUpdatesCount()updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
- Specified by:
getUpdatesCount
in interfaceWatchResponseOrBuilder
-
getUpdates
updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
- Specified by:
getUpdates
in interfaceWatchResponseOrBuilder
-
setUpdates
updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
-
setUpdates
updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
-
addUpdates
updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
-
addUpdates
updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
-
addUpdates
updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
-
addUpdates
updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
-
addAllUpdates
updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
-
clearUpdates
updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
-
removeUpdates
updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
-
getUpdatesBuilder
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;
- Specified by:
getUpdatesOrBuilder
in interfaceWatchResponseOrBuilder
-
getUpdatesOrBuilderList
updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
- Specified by:
getUpdatesOrBuilderList
in interfaceWatchResponseOrBuilder
-
addUpdatesBuilder
updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
-
addUpdatesBuilder
updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
-
getUpdatesBuilderList
updates are the RelationshipUpdate events that have occurred since the last watch response.
repeated .authzed.api.v1.RelationshipUpdate updates = 1;
-
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:
hasChangesThrough
in 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:
getChangesThrough
in interfaceWatchResponseOrBuilder
- Returns:
- The changesThrough.
-
setChangesThrough
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;
-
setChangesThrough
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;
-
mergeChangesThrough
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;
-
clearChangesThrough
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;
-
getChangesThroughBuilder
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;
-
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:
getChangesThroughOrBuilder
in 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.
.google.protobuf.Struct optional_transaction_metadata = 3;
- Specified by:
hasOptionalTransactionMetadata
in 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.
.google.protobuf.Struct optional_transaction_metadata = 3;
- Specified by:
getOptionalTransactionMetadata
in interfaceWatchResponseOrBuilder
- Returns:
- The optionalTransactionMetadata.
-
setOptionalTransactionMetadata
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;
-
setOptionalTransactionMetadata
public WatchResponse.Builder setOptionalTransactionMetadata(com.google.protobuf.Struct.Builder builderForValue) 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;
-
mergeOptionalTransactionMetadata
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;
-
clearOptionalTransactionMetadata
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;
-
getOptionalTransactionMetadataBuilder
public com.google.protobuf.Struct.Builder getOptionalTransactionMetadataBuilder()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;
-
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.
.google.protobuf.Struct optional_transaction_metadata = 3;
- Specified by:
getOptionalTransactionMetadataOrBuilder
in interfaceWatchResponseOrBuilder
-