Class SchemaService.SchemaServiceBase (2.8.0)

[BindServiceMethod(typeof(SchemaService), "BindService")]
public abstract class SchemaServiceBase

Base class for server-side implementations of SchemaService

Inheritance

Object > SchemaService.SchemaServiceBase

Namespace

Google.Cloud.PubSub.V1

Assembly

Google.Cloud.PubSub.V1.dll

Methods

CreateSchema(CreateSchemaRequest, ServerCallContext)

public virtual Task<Schema> CreateSchema(CreateSchemaRequest request, ServerCallContext context)

Creates a schema.

Parameters
NameDescription
requestCreateSchemaRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Schema>

The response to send back to the client (wrapped by a task).

DeleteSchema(DeleteSchemaRequest, ServerCallContext)

public virtual Task<Empty> DeleteSchema(DeleteSchemaRequest request, ServerCallContext context)

Deletes a schema.

Parameters
NameDescription
requestDeleteSchemaRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

The response to send back to the client (wrapped by a task).

GetSchema(GetSchemaRequest, ServerCallContext)

public virtual Task<Schema> GetSchema(GetSchemaRequest request, ServerCallContext context)

Gets a schema.

Parameters
NameDescription
requestGetSchemaRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Schema>

The response to send back to the client (wrapped by a task).

ListSchemas(ListSchemasRequest, ServerCallContext)

public virtual Task<ListSchemasResponse> ListSchemas(ListSchemasRequest request, ServerCallContext context)

Lists schemas in a project.

Parameters
NameDescription
requestListSchemasRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListSchemasResponse>

The response to send back to the client (wrapped by a task).

ValidateMessage(ValidateMessageRequest, ServerCallContext)

public virtual Task<ValidateMessageResponse> ValidateMessage(ValidateMessageRequest request, ServerCallContext context)

Validates a message against a schema.

Parameters
NameDescription
requestValidateMessageRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ValidateMessageResponse>

The response to send back to the client (wrapped by a task).

ValidateSchema(ValidateSchemaRequest, ServerCallContext)

public virtual Task<ValidateSchemaResponse> ValidateSchema(ValidateSchemaRequest request, ServerCallContext context)

Validates a schema.

Parameters
NameDescription
requestValidateSchemaRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ValidateSchemaResponse>

The response to send back to the client (wrapped by a task).