Cloud Pub/Sub v1 API - Class SchemaService.SchemaServiceBase (3.10.0-beta01)

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

Reference documentation and code samples for the Cloud Pub/Sub v1 API class SchemaService.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

CommitSchema(CommitSchemaRequest, ServerCallContext)

public virtual Task<Schema> CommitSchema(CommitSchemaRequest request, ServerCallContext context)

Commits a new schema revision to an existing schema.

Parameters
NameDescription
requestCommitSchemaRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskSchema

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

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
TaskSchema

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
TaskEmpty

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

DeleteSchemaRevision(DeleteSchemaRevisionRequest, ServerCallContext)

public virtual Task<Schema> DeleteSchemaRevision(DeleteSchemaRevisionRequest request, ServerCallContext context)

Deletes a specific schema revision.

Parameters
NameDescription
requestDeleteSchemaRevisionRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskSchema

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
TaskSchema

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

ListSchemaRevisions(ListSchemaRevisionsRequest, ServerCallContext)

public virtual Task<ListSchemaRevisionsResponse> ListSchemaRevisions(ListSchemaRevisionsRequest request, ServerCallContext context)

Lists all schema revisions for the named schema.

Parameters
NameDescription
requestListSchemaRevisionsRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskListSchemaRevisionsResponse

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
TaskListSchemasResponse

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

RollbackSchema(RollbackSchemaRequest, ServerCallContext)

public virtual Task<Schema> RollbackSchema(RollbackSchemaRequest request, ServerCallContext context)

Creates a new schema revision that is a copy of the provided revision_id.

Parameters
NameDescription
requestRollbackSchemaRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
TaskSchema

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
TaskValidateMessageResponse

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
TaskValidateSchemaResponse

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