[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
Namespace
Google.Cloud.PubSub.V1Assembly
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 | |
---|---|
Name | Description |
request | CommitSchemaRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
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 |
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 | |
---|---|
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 |
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 | |
---|---|
Name | Description |
request | DeleteSchemaRevisionRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
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 |
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 | |
---|---|
Name | Description |
request | ListSchemaRevisionsRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
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 |
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 | |
---|---|
Name | Description |
request | RollbackSchemaRequest The request received from the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
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 |
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 | |
---|---|
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 |
TaskValidateSchemaResponse | The response to send back to the client (wrapped by a task). |