[BindServiceMethod(typeof(SchemaService), "BindService")]
public abstract class SchemaServiceBase
Base class for server-side implementations of SchemaService
Namespace
Google.Cloud.PubSub.V1Assembly
Google.Cloud.PubSub.V1.dll
Methods
CreateSchema(CreateSchemaRequest, ServerCallContext)
public virtual Task<Schema> CreateSchema(CreateSchemaRequest request, ServerCallContext context)
Creates a schema.
Parameters | |
---|---|
Name | Description |
request |
CreateSchemaRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
DeleteSchemaRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
GetSchemaRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
ListSchemasRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
ValidateMessageRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
ValidateSchemaRequest The request received from the client. |
context |
ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task<ValidateSchemaResponse> |
The response to send back to the client (wrapped by a task). |