Class SchemaService.SchemaServiceBase (2.3.0)

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

Base class for server-side implementations of SchemaService

Inheritance

System.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.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.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.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<Google.Protobuf.WellKnownTypes.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.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.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.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.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.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.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.

contextGrpc.Core.ServerCallContext

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

Returns
TypeDescription
System.Threading.Tasks.Task<ValidateSchemaResponse>

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