Class WatchPermissionsRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WatchPermissionsRequest.Builder>
com.authzed.api.materialize.v0.WatchPermissionsRequest.Builder
All Implemented Interfaces:
WatchPermissionsRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
WatchPermissionsRequest

public static final class WatchPermissionsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<WatchPermissionsRequest.Builder> implements WatchPermissionsRequestOrBuilder
Protobuf type authzed.api.materialize.v0.WatchPermissionsRequest
  • 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<WatchPermissionsRequest.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<WatchPermissionsRequest.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<WatchPermissionsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public WatchPermissionsRequest.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<WatchPermissionsRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<WatchPermissionsRequest.Builder>
    • mergeFrom

      public WatchPermissionsRequest.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<WatchPermissionsRequest.Builder>
      Throws:
      IOException
    • getPermissionsList

      public List<WatchedPermission> getPermissionsList()
       permissions is a list of permissions to watch for changes. At least one permission must be specified, and it must
       be a subset or equal to the permissions that were enabled for the service.
       
      repeated .authzed.api.materialize.v0.WatchedPermission permissions = 1;
      Specified by:
      getPermissionsList in interface WatchPermissionsRequestOrBuilder
    • getPermissionsCount

      public int getPermissionsCount()
       permissions is a list of permissions to watch for changes. At least one permission must be specified, and it must
       be a subset or equal to the permissions that were enabled for the service.
       
      repeated .authzed.api.materialize.v0.WatchedPermission permissions = 1;
      Specified by:
      getPermissionsCount in interface WatchPermissionsRequestOrBuilder
    • getPermissions

      public WatchedPermission getPermissions(int index)
       permissions is a list of permissions to watch for changes. At least one permission must be specified, and it must
       be a subset or equal to the permissions that were enabled for the service.
       
      repeated .authzed.api.materialize.v0.WatchedPermission permissions = 1;
      Specified by:
      getPermissions in interface WatchPermissionsRequestOrBuilder
    • setPermissions

      public WatchPermissionsRequest.Builder setPermissions(int index, WatchedPermission value)
       permissions is a list of permissions to watch for changes. At least one permission must be specified, and it must
       be a subset or equal to the permissions that were enabled for the service.
       
      repeated .authzed.api.materialize.v0.WatchedPermission permissions = 1;
    • setPermissions

      public WatchPermissionsRequest.Builder setPermissions(int index, WatchedPermission.Builder builderForValue)
       permissions is a list of permissions to watch for changes. At least one permission must be specified, and it must
       be a subset or equal to the permissions that were enabled for the service.
       
      repeated .authzed.api.materialize.v0.WatchedPermission permissions = 1;
    • addPermissions

      public WatchPermissionsRequest.Builder addPermissions(WatchedPermission value)
       permissions is a list of permissions to watch for changes. At least one permission must be specified, and it must
       be a subset or equal to the permissions that were enabled for the service.
       
      repeated .authzed.api.materialize.v0.WatchedPermission permissions = 1;
    • addPermissions

      public WatchPermissionsRequest.Builder addPermissions(int index, WatchedPermission value)
       permissions is a list of permissions to watch for changes. At least one permission must be specified, and it must
       be a subset or equal to the permissions that were enabled for the service.
       
      repeated .authzed.api.materialize.v0.WatchedPermission permissions = 1;
    • addPermissions

      public WatchPermissionsRequest.Builder addPermissions(WatchedPermission.Builder builderForValue)
       permissions is a list of permissions to watch for changes. At least one permission must be specified, and it must
       be a subset or equal to the permissions that were enabled for the service.
       
      repeated .authzed.api.materialize.v0.WatchedPermission permissions = 1;
    • addPermissions

      public WatchPermissionsRequest.Builder addPermissions(int index, WatchedPermission.Builder builderForValue)
       permissions is a list of permissions to watch for changes. At least one permission must be specified, and it must
       be a subset or equal to the permissions that were enabled for the service.
       
      repeated .authzed.api.materialize.v0.WatchedPermission permissions = 1;
    • addAllPermissions

      public WatchPermissionsRequest.Builder addAllPermissions(Iterable<? extends WatchedPermission> values)
       permissions is a list of permissions to watch for changes. At least one permission must be specified, and it must
       be a subset or equal to the permissions that were enabled for the service.
       
      repeated .authzed.api.materialize.v0.WatchedPermission permissions = 1;
    • clearPermissions

      public WatchPermissionsRequest.Builder clearPermissions()
       permissions is a list of permissions to watch for changes. At least one permission must be specified, and it must
       be a subset or equal to the permissions that were enabled for the service.
       
      repeated .authzed.api.materialize.v0.WatchedPermission permissions = 1;
    • removePermissions

      public WatchPermissionsRequest.Builder removePermissions(int index)
       permissions is a list of permissions to watch for changes. At least one permission must be specified, and it must
       be a subset or equal to the permissions that were enabled for the service.
       
      repeated .authzed.api.materialize.v0.WatchedPermission permissions = 1;
    • getPermissionsBuilder

      public WatchedPermission.Builder getPermissionsBuilder(int index)
       permissions is a list of permissions to watch for changes. At least one permission must be specified, and it must
       be a subset or equal to the permissions that were enabled for the service.
       
      repeated .authzed.api.materialize.v0.WatchedPermission permissions = 1;
    • getPermissionsOrBuilder

      public WatchedPermissionOrBuilder getPermissionsOrBuilder(int index)
       permissions is a list of permissions to watch for changes. At least one permission must be specified, and it must
       be a subset or equal to the permissions that were enabled for the service.
       
      repeated .authzed.api.materialize.v0.WatchedPermission permissions = 1;
      Specified by:
      getPermissionsOrBuilder in interface WatchPermissionsRequestOrBuilder
    • getPermissionsOrBuilderList

      public List<? extends WatchedPermissionOrBuilder> getPermissionsOrBuilderList()
       permissions is a list of permissions to watch for changes. At least one permission must be specified, and it must
       be a subset or equal to the permissions that were enabled for the service.
       
      repeated .authzed.api.materialize.v0.WatchedPermission permissions = 1;
      Specified by:
      getPermissionsOrBuilderList in interface WatchPermissionsRequestOrBuilder
    • addPermissionsBuilder

      public WatchedPermission.Builder addPermissionsBuilder()
       permissions is a list of permissions to watch for changes. At least one permission must be specified, and it must
       be a subset or equal to the permissions that were enabled for the service.
       
      repeated .authzed.api.materialize.v0.WatchedPermission permissions = 1;
    • addPermissionsBuilder

      public WatchedPermission.Builder addPermissionsBuilder(int index)
       permissions is a list of permissions to watch for changes. At least one permission must be specified, and it must
       be a subset or equal to the permissions that were enabled for the service.
       
      repeated .authzed.api.materialize.v0.WatchedPermission permissions = 1;
    • getPermissionsBuilderList

      public List<WatchedPermission.Builder> getPermissionsBuilderList()
       permissions is a list of permissions to watch for changes. At least one permission must be specified, and it must
       be a subset or equal to the permissions that were enabled for the service.
       
      repeated .authzed.api.materialize.v0.WatchedPermission permissions = 1;
    • hasOptionalStartingAfter

      public boolean hasOptionalStartingAfter()
       optional_starting_after is the revision token to start watching from. If not provided, the stream
       will start from the current revision at the moment of the request.
       
      .authzed.api.v1.ZedToken optional_starting_after = 2;
      Specified by:
      hasOptionalStartingAfter in interface WatchPermissionsRequestOrBuilder
      Returns:
      Whether the optionalStartingAfter field is set.
    • getOptionalStartingAfter

      public ZedToken getOptionalStartingAfter()
       optional_starting_after is the revision token to start watching from. If not provided, the stream
       will start from the current revision at the moment of the request.
       
      .authzed.api.v1.ZedToken optional_starting_after = 2;
      Specified by:
      getOptionalStartingAfter in interface WatchPermissionsRequestOrBuilder
      Returns:
      The optionalStartingAfter.
    • setOptionalStartingAfter

      public WatchPermissionsRequest.Builder setOptionalStartingAfter(ZedToken value)
       optional_starting_after is the revision token to start watching from. If not provided, the stream
       will start from the current revision at the moment of the request.
       
      .authzed.api.v1.ZedToken optional_starting_after = 2;
    • setOptionalStartingAfter

      public WatchPermissionsRequest.Builder setOptionalStartingAfter(ZedToken.Builder builderForValue)
       optional_starting_after is the revision token to start watching from. If not provided, the stream
       will start from the current revision at the moment of the request.
       
      .authzed.api.v1.ZedToken optional_starting_after = 2;
    • mergeOptionalStartingAfter

      public WatchPermissionsRequest.Builder mergeOptionalStartingAfter(ZedToken value)
       optional_starting_after is the revision token to start watching from. If not provided, the stream
       will start from the current revision at the moment of the request.
       
      .authzed.api.v1.ZedToken optional_starting_after = 2;
    • clearOptionalStartingAfter

      public WatchPermissionsRequest.Builder clearOptionalStartingAfter()
       optional_starting_after is the revision token to start watching from. If not provided, the stream
       will start from the current revision at the moment of the request.
       
      .authzed.api.v1.ZedToken optional_starting_after = 2;
    • getOptionalStartingAfterBuilder

      public ZedToken.Builder getOptionalStartingAfterBuilder()
       optional_starting_after is the revision token to start watching from. If not provided, the stream
       will start from the current revision at the moment of the request.
       
      .authzed.api.v1.ZedToken optional_starting_after = 2;
    • getOptionalStartingAfterOrBuilder

      public ZedTokenOrBuilder getOptionalStartingAfterOrBuilder()
       optional_starting_after is the revision token to start watching from. If not provided, the stream
       will start from the current revision at the moment of the request.
       
      .authzed.api.v1.ZedToken optional_starting_after = 2;
      Specified by:
      getOptionalStartingAfterOrBuilder in interface WatchPermissionsRequestOrBuilder