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 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
  • Method Summary

    Modifier and Type
    Method
    Description
    addAllFullRevisionMetadata(Iterable<? extends com.google.protobuf.Struct> values)
    full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response.
    updates are the RelationshipUpdate events that have occurred since the call was made, or since the point in time specified by changes_through.
    addFullRevisionMetadata(int index, com.google.protobuf.Struct value)
    full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response.
    addFullRevisionMetadata(int index, com.google.protobuf.Struct.Builder builderForValue)
    full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response.
    addFullRevisionMetadata(com.google.protobuf.Struct value)
    full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response.
    addFullRevisionMetadata(com.google.protobuf.Struct.Builder builderForValue)
    full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response.
    com.google.protobuf.Struct.Builder
    full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response.
    com.google.protobuf.Struct.Builder
    full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response.
    addUpdates(int index, RelationshipUpdate value)
    updates are the RelationshipUpdate events that have occurred since the call was made, or since the point in time specified by changes_through.
    addUpdates(int index, RelationshipUpdate.Builder builderForValue)
    updates 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.
    updates 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.
    addUpdatesBuilder(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.
     
     
     
    changes_through is the ZedToken that represents the point in time that the watch response is current through.
    full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response.
    is_checkpoint, if true, indicates that a checkpoint was reached.
    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.
    schema_updated, if true, indicates that the schema was changed in this revision.
    updates are the RelationshipUpdate events that have occurred since the call was made, or since the point in time specified by changes_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.
    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
    full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response.
    com.google.protobuf.Struct.Builder
    full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response.
    List<com.google.protobuf.Struct.Builder>
    full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response.
    int
    full_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.StructOrBuilder
    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.
    boolean
    is_checkpoint, if true, indicates that a checkpoint was reached.
    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.
    boolean
    schema_updated, if true, indicates that the schema was changed in this revision.
    getUpdates(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.
    getUpdatesBuilder(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.
    updates are the RelationshipUpdate events that have occurred since the call was made, or since the point in time specified by changes_through.
    int
    updates 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.
    updates 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.
    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
     
    changes_through is the ZedToken that represents the point in time that the watch response is current through.
     
    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.
    full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response.
    removeUpdates(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.
    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.
    setFullRevisionMetadata(int index, com.google.protobuf.Struct value)
    full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response.
    setFullRevisionMetadata(int index, com.google.protobuf.Struct.Builder builderForValue)
    full_revision_metadata contains all transaction metadata given to SpiceDB during the revision that produced the changes in this response.
    setIsCheckpoint(boolean value)
    is_checkpoint, if true, indicates that a checkpoint was reached.
    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.
    setSchemaUpdated(boolean value)
    schema_updated, if true, indicates that the schema was changed in this revision.
    setUpdates(int index, RelationshipUpdate value)
    updates are the RelationshipUpdate events that have occurred since the call was made, or since the point in time specified by changes_through.
    setUpdates(int index, RelationshipUpdate.Builder builderForValue)
    updates are the RelationshipUpdate events that have occurred since the call was made, or since the point in time specified by changes_through.

    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 class com.google.protobuf.GeneratedMessage.Builder<WatchResponse.Builder>
    • clear

      public WatchResponse.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<WatchResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<WatchResponse.Builder>
    • getDefaultInstanceForType

      public WatchResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public WatchResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public WatchResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public WatchResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WatchResponse.Builder>
    • mergeFrom

      public WatchResponse.Builder mergeFrom(WatchResponse other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<WatchResponse.Builder>
      Throws:
      IOException
    • getUpdatesList

      public List<RelationshipUpdate> 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:
      getUpdatesList in interface WatchResponseOrBuilder
    • 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:
      getUpdatesCount in interface WatchResponseOrBuilder
    • getUpdates

      public RelationshipUpdate getUpdates(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.
       
      repeated .authzed.api.v1.RelationshipUpdate updates = 1;
      Specified by:
      getUpdates in interface WatchResponseOrBuilder
    • setUpdates

      public WatchResponse.Builder setUpdates(int index, RelationshipUpdate value)
       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;
    • setUpdates

      public WatchResponse.Builder setUpdates(int index, RelationshipUpdate.Builder builderForValue)
       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;
    • addUpdates

      public WatchResponse.Builder addUpdates(RelationshipUpdate value)
       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;
    • addUpdates

      public WatchResponse.Builder addUpdates(int index, RelationshipUpdate value)
       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;
    • addUpdates

      public WatchResponse.Builder addUpdates(RelationshipUpdate.Builder builderForValue)
       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;
    • addUpdates

      public WatchResponse.Builder addUpdates(int index, RelationshipUpdate.Builder builderForValue)
       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;
    • addAllUpdates

      public WatchResponse.Builder addAllUpdates(Iterable<? extends RelationshipUpdate> values)
       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;
    • clearUpdates

      public WatchResponse.Builder clearUpdates()
       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;
    • removeUpdates

      public WatchResponse.Builder removeUpdates(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.
       
      repeated .authzed.api.v1.RelationshipUpdate updates = 1;
    • getUpdatesBuilder

      public RelationshipUpdate.Builder getUpdatesBuilder(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.
       
      repeated .authzed.api.v1.RelationshipUpdate updates = 1;
    • getUpdatesOrBuilder

      public RelationshipUpdateOrBuilder 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.
       
      repeated .authzed.api.v1.RelationshipUpdate updates = 1;
      Specified by:
      getUpdatesOrBuilder in interface WatchResponseOrBuilder
    • getUpdatesOrBuilderList

      public List<? extends RelationshipUpdateOrBuilder> 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:
      getUpdatesOrBuilderList in interface WatchResponseOrBuilder
    • addUpdatesBuilder

      public RelationshipUpdate.Builder addUpdatesBuilder()
       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;
    • addUpdatesBuilder

      public RelationshipUpdate.Builder addUpdatesBuilder(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.
       
      repeated .authzed.api.v1.RelationshipUpdate updates = 1;
    • getUpdatesBuilderList

      public List<RelationshipUpdate.Builder> getUpdatesBuilderList()
       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;
    • 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 interface WatchResponseOrBuilder
      Returns:
      Whether the changesThrough field is set.
    • getChangesThrough

      public 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;
      Specified by:
      getChangesThrough in interface WatchResponseOrBuilder
      Returns:
      The changesThrough.
    • setChangesThrough

      public WatchResponse.Builder setChangesThrough(ZedToken value)
       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

      public WatchResponse.Builder setChangesThrough(ZedToken.Builder builderForValue)
       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

      public WatchResponse.Builder mergeChangesThrough(ZedToken value)
       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

      public WatchResponse.Builder 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

      public ZedToken.Builder 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

      public 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;
      Specified by:
      getChangesThroughOrBuilder in interface WatchResponseOrBuilder
    • 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:
      hasOptionalTransactionMetadata in interface WatchResponseOrBuilder
      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:
      getOptionalTransactionMetadata in interface WatchResponseOrBuilder
      Returns:
      The optionalTransactionMetadata.
    • setOptionalTransactionMetadata

      public WatchResponse.Builder 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.
       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;
    • 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, 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;
    • mergeOptionalTransactionMetadata

      public WatchResponse.Builder 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.
       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;
    • clearOptionalTransactionMetadata

      public WatchResponse.Builder 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, 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;
    • 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, 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;
    • 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:
      getOptionalTransactionMetadataOrBuilder in interface WatchResponseOrBuilder
    • getSchemaUpdated

      public boolean getSchemaUpdated()
       schema_updated, if true, indicates that the schema was changed in this revision.
       
      bool schema_updated = 4;
      Specified by:
      getSchemaUpdated in interface WatchResponseOrBuilder
      Returns:
      The schemaUpdated.
    • setSchemaUpdated

      public WatchResponse.Builder setSchemaUpdated(boolean value)
       schema_updated, if true, indicates that the schema was changed in this revision.
       
      bool schema_updated = 4;
      Parameters:
      value - The schemaUpdated to set.
      Returns:
      This builder for chaining.
    • clearSchemaUpdated

      public WatchResponse.Builder clearSchemaUpdated()
       schema_updated, if true, indicates that the schema was changed in this revision.
       
      bool schema_updated = 4;
      Returns:
      This builder for chaining.
    • 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:
      getIsCheckpoint in interface WatchResponseOrBuilder
      Returns:
      The isCheckpoint.
    • setIsCheckpoint

      public WatchResponse.Builder setIsCheckpoint(boolean value)
       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;
      Parameters:
      value - The isCheckpoint to set.
      Returns:
      This builder for chaining.
    • clearIsCheckpoint

      public WatchResponse.Builder clearIsCheckpoint()
       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;
      Returns:
      This builder for chaining.
    • getFullRevisionMetadataList

      public List<com.google.protobuf.Struct> 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:
      getFullRevisionMetadataList in interface WatchResponseOrBuilder
    • 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:
      getFullRevisionMetadataCount in interface WatchResponseOrBuilder
    • 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:
      getFullRevisionMetadata in interface WatchResponseOrBuilder
    • setFullRevisionMetadata

      public WatchResponse.Builder setFullRevisionMetadata(int index, com.google.protobuf.Struct value)
       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;
    • setFullRevisionMetadata

      public WatchResponse.Builder setFullRevisionMetadata(int index, com.google.protobuf.Struct.Builder builderForValue)
       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;
    • addFullRevisionMetadata

      public WatchResponse.Builder addFullRevisionMetadata(com.google.protobuf.Struct value)
       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;
    • addFullRevisionMetadata

      public WatchResponse.Builder addFullRevisionMetadata(int index, com.google.protobuf.Struct value)
       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;
    • addFullRevisionMetadata

      public WatchResponse.Builder addFullRevisionMetadata(com.google.protobuf.Struct.Builder builderForValue)
       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;
    • addFullRevisionMetadata

      public WatchResponse.Builder addFullRevisionMetadata(int index, com.google.protobuf.Struct.Builder builderForValue)
       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;
    • addAllFullRevisionMetadata

      public WatchResponse.Builder addAllFullRevisionMetadata(Iterable<? extends com.google.protobuf.Struct> values)
       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;
    • clearFullRevisionMetadata

      public WatchResponse.Builder clearFullRevisionMetadata()
       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;
    • removeFullRevisionMetadata

      public WatchResponse.Builder removeFullRevisionMetadata(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;
    • getFullRevisionMetadataBuilder

      public com.google.protobuf.Struct.Builder getFullRevisionMetadataBuilder(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;
    • 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:
      getFullRevisionMetadataOrBuilder in interface WatchResponseOrBuilder
    • getFullRevisionMetadataOrBuilderList

      public List<? extends com.google.protobuf.StructOrBuilder> 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:
      getFullRevisionMetadataOrBuilderList in interface WatchResponseOrBuilder
    • addFullRevisionMetadataBuilder

      public com.google.protobuf.Struct.Builder addFullRevisionMetadataBuilder()
       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;
    • addFullRevisionMetadataBuilder

      public com.google.protobuf.Struct.Builder addFullRevisionMetadataBuilder(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;
    • getFullRevisionMetadataBuilderList

      public List<com.google.protobuf.Struct.Builder> getFullRevisionMetadataBuilderList()
       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;