Class DocumentSchemaServiceGrpc.DocumentSchemaServiceStub (0.41.0)

public static final class DocumentSchemaServiceGrpc.DocumentSchemaServiceStub extends AbstractAsyncStub<DocumentSchemaServiceGrpc.DocumentSchemaServiceStub>

A stub to allow clients to do asynchronous rpc calls to service DocumentSchemaService.

This service lets you manage document schema.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > DocumentSchemaServiceGrpc.DocumentSchemaServiceStub

Methods

build(Channel channel, CallOptions callOptions)

protected DocumentSchemaServiceGrpc.DocumentSchemaServiceStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
DocumentSchemaServiceGrpc.DocumentSchemaServiceStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

createDocumentSchema(CreateDocumentSchemaRequest request, StreamObserver<DocumentSchema> responseObserver)

public void createDocumentSchema(CreateDocumentSchemaRequest request, StreamObserver<DocumentSchema> responseObserver)

Creates a document schema.

Parameters
Name Description
request CreateDocumentSchemaRequest
responseObserver io.grpc.stub.StreamObserver<DocumentSchema>

deleteDocumentSchema(DeleteDocumentSchemaRequest request, StreamObserver<Empty> responseObserver)

public void deleteDocumentSchema(DeleteDocumentSchemaRequest request, StreamObserver<Empty> responseObserver)

Deletes a document schema. Returns NOT_FOUND if the document schema does not exist. Returns BAD_REQUEST if the document schema has documents depending on it.

Parameters
Name Description
request DeleteDocumentSchemaRequest
responseObserver io.grpc.stub.StreamObserver<Empty>

getDocumentSchema(GetDocumentSchemaRequest request, StreamObserver<DocumentSchema> responseObserver)

public void getDocumentSchema(GetDocumentSchemaRequest request, StreamObserver<DocumentSchema> responseObserver)

Gets a document schema. Returns NOT_FOUND if the document schema does not exist.

Parameters
Name Description
request GetDocumentSchemaRequest
responseObserver io.grpc.stub.StreamObserver<DocumentSchema>

listDocumentSchemas(ListDocumentSchemasRequest request, StreamObserver<ListDocumentSchemasResponse> responseObserver)

public void listDocumentSchemas(ListDocumentSchemasRequest request, StreamObserver<ListDocumentSchemasResponse> responseObserver)

Lists document schemas.

Parameters
Name Description
request ListDocumentSchemasRequest
responseObserver io.grpc.stub.StreamObserver<ListDocumentSchemasResponse>

updateDocumentSchema(UpdateDocumentSchemaRequest request, StreamObserver<DocumentSchema> responseObserver)

public void updateDocumentSchema(UpdateDocumentSchemaRequest request, StreamObserver<DocumentSchema> responseObserver)

Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the Document Schema is non-empty and does not equal the existing name. Supports only appending new properties, adding new ENUM possible values, and updating the EnumTypeOptions.validation_check_disabled flag for ENUM possible values. Updating existing properties will result into INVALID_ARGUMENT.

Parameters
Name Description
request UpdateDocumentSchemaRequest
responseObserver io.grpc.stub.StreamObserver<DocumentSchema>