Class SchemaServiceGrpc.SchemaServiceStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractAsyncStub<SchemaServiceGrpc.SchemaServiceStub>
com.authzed.api.v1alpha1.SchemaServiceGrpc.SchemaServiceStub
Enclosing class:
SchemaServiceGrpc

public static final class SchemaServiceGrpc.SchemaServiceStub extends io.grpc.stub.AbstractAsyncStub<SchemaServiceGrpc.SchemaServiceStub>
A stub to allow clients to do asynchronous rpc calls to service SchemaService.
 SchemaService implements operations on a Permissions System's Schema.
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub

    io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>>
  • Method Summary

    Modifier and Type
    Method
    Description
    build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
     
    void
    readSchema(Schema.ReadSchemaRequest request, io.grpc.stub.StreamObserver<Schema.ReadSchemaResponse> responseObserver)
    Read returns the current Object Definitions for a Permissions System.
    void
    writeSchema(Schema.WriteSchemaRequest request, io.grpc.stub.StreamObserver<Schema.WriteSchemaResponse> responseObserver)
    Write overwrites the current Object Definitions for a Permissions System.

    Methods inherited from class io.grpc.stub.AbstractAsyncStub

    newStub, newStub

    Methods inherited from class io.grpc.stub.AbstractStub

    getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • build

      protected SchemaServiceGrpc.SchemaServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<SchemaServiceGrpc.SchemaServiceStub>
    • readSchema

      public void readSchema(Schema.ReadSchemaRequest request, io.grpc.stub.StreamObserver<Schema.ReadSchemaResponse> responseObserver)
       Read returns the current Object Definitions for a Permissions System.
       Errors include:
       - INVALID_ARGUMENT: a provided value has failed to semantically validate
       - NOT_FOUND: one of the Object Definitions being requested does not exist
       
    • writeSchema

      public void writeSchema(Schema.WriteSchemaRequest request, io.grpc.stub.StreamObserver<Schema.WriteSchemaResponse> responseObserver)
       Write overwrites the current Object Definitions for a Permissions System.
       Any Object Definitions that exist, but are not included will be deleted.