Interface WatchPermissionsResponseOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
WatchPermissionsResponse, WatchPermissionsResponse.Builder

public interface WatchPermissionsResponseOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    change is the computed permission delta that has occurred as result of a mutation in origin SpiceDB.
    change is the computed permission delta that has occurred as result of a mutation in origin SpiceDB.
    completed_revision is the revision token that indicates all changes originating from a revision have been streamed and thus the revision should be considered completed.
    completed_revision is the revision token that indicates all changes originating from a revision have been streamed and thus the revision should be considered completed.
     
    boolean
    change is the computed permission delta that has occurred as result of a mutation in origin SpiceDB.
    boolean
    completed_revision is the revision token that indicates all changes originating from a revision have been streamed and thus the revision should be considered completed.

    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

    • hasChange

      boolean hasChange()
       change is the computed permission delta that has occurred as result of a mutation in origin SpiceDB.
       The consumer should apply this change to the current state of the computed permissions in their target system.
       Once an event arrives with completed_revision instead, the consumer shall consider there are not more changes
       originating from that revision.
      
       The consumer should keep track of the revision in order to resume streaming in the event of consumer restarts.
       
      .authzed.api.materialize.v0.PermissionChange change = 1;
      Returns:
      Whether the change field is set.
    • getChange

      PermissionChange getChange()
       change is the computed permission delta that has occurred as result of a mutation in origin SpiceDB.
       The consumer should apply this change to the current state of the computed permissions in their target system.
       Once an event arrives with completed_revision instead, the consumer shall consider there are not more changes
       originating from that revision.
      
       The consumer should keep track of the revision in order to resume streaming in the event of consumer restarts.
       
      .authzed.api.materialize.v0.PermissionChange change = 1;
      Returns:
      The change.
    • getChangeOrBuilder

      PermissionChangeOrBuilder getChangeOrBuilder()
       change is the computed permission delta that has occurred as result of a mutation in origin SpiceDB.
       The consumer should apply this change to the current state of the computed permissions in their target system.
       Once an event arrives with completed_revision instead, the consumer shall consider there are not more changes
       originating from that revision.
      
       The consumer should keep track of the revision in order to resume streaming in the event of consumer restarts.
       
      .authzed.api.materialize.v0.PermissionChange change = 1;
    • hasCompletedRevision

      boolean hasCompletedRevision()
       completed_revision is the revision token that indicates all changes originating from a revision have been
       streamed and thus the revision should be considered completed. It may also be
       received without accompanying set of changes, indicating that a mutation in the origin SpiceDB cluster did
       not yield any effective changes in the computed permissions
       
      .authzed.api.v1.ZedToken completed_revision = 2;
      Returns:
      Whether the completedRevision field is set.
    • getCompletedRevision

      ZedToken getCompletedRevision()
       completed_revision is the revision token that indicates all changes originating from a revision have been
       streamed and thus the revision should be considered completed. It may also be
       received without accompanying set of changes, indicating that a mutation in the origin SpiceDB cluster did
       not yield any effective changes in the computed permissions
       
      .authzed.api.v1.ZedToken completed_revision = 2;
      Returns:
      The completedRevision.
    • getCompletedRevisionOrBuilder

      ZedTokenOrBuilder getCompletedRevisionOrBuilder()
       completed_revision is the revision token that indicates all changes originating from a revision have been
       streamed and thus the revision should be considered completed. It may also be
       received without accompanying set of changes, indicating that a mutation in the origin SpiceDB cluster did
       not yield any effective changes in the computed permissions
       
      .authzed.api.v1.ZedToken completed_revision = 2;
    • getResponseCase