Cloud Pub/Sub v1 API - Class SchemaServiceClientImpl (3.15.0)

public sealed class SchemaServiceClientImpl : SchemaServiceClient

Reference documentation and code samples for the Cloud Pub/Sub v1 API class SchemaServiceClientImpl.

SchemaService client wrapper implementation, for convenient use.

Inheritance

object > SchemaServiceClient > SchemaServiceClientImpl

Namespace

Google.Cloud.PubSub.V1

Assembly

Google.Cloud.PubSub.V1.dll

Remarks

Service for doing schema-related operations.

Constructors

SchemaServiceClientImpl(SchemaServiceClient, SchemaServiceSettings, ILogger)

public SchemaServiceClientImpl(SchemaService.SchemaServiceClient grpcClient, SchemaServiceSettings settings, ILogger logger)

Constructs a client wrapper for the SchemaService service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient SchemaServiceSchemaServiceClient

The underlying gRPC client.

settings SchemaServiceSettings

The base SchemaServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override SchemaService.SchemaServiceClient GrpcClient { get; }

The underlying gRPC SchemaService client

Property Value
Type Description
SchemaServiceSchemaServiceClient
Overrides

IAMPolicyClient

public override IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
Type Description
IAMPolicyClient
Overrides

Methods

CommitSchema(CommitSchemaRequest, CallSettings)

public override Schema CommitSchema(CommitSchemaRequest request, CallSettings callSettings = null)

Commits a new schema revision to an existing schema.

Parameters
Name Description
request CommitSchemaRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Schema

The RPC response.

Overrides

CommitSchemaAsync(CommitSchemaRequest, CallSettings)

public override Task<Schema> CommitSchemaAsync(CommitSchemaRequest request, CallSettings callSettings = null)

Commits a new schema revision to an existing schema.

Parameters
Name Description
request CommitSchemaRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSchema

A Task containing the RPC response.

Overrides

CreateSchema(CreateSchemaRequest, CallSettings)

public override Schema CreateSchema(CreateSchemaRequest request, CallSettings callSettings = null)

Creates a schema.

Parameters
Name Description
request CreateSchemaRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Schema

The RPC response.

Overrides

CreateSchemaAsync(CreateSchemaRequest, CallSettings)

public override Task<Schema> CreateSchemaAsync(CreateSchemaRequest request, CallSettings callSettings = null)

Creates a schema.

Parameters
Name Description
request CreateSchemaRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSchema

A Task containing the RPC response.

Overrides

DeleteSchema(DeleteSchemaRequest, CallSettings)

public override void DeleteSchema(DeleteSchemaRequest request, CallSettings callSettings = null)

Deletes a schema.

Parameters
Name Description
request DeleteSchemaRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteSchemaAsync(DeleteSchemaRequest, CallSettings)

public override Task DeleteSchemaAsync(DeleteSchemaRequest request, CallSettings callSettings = null)

Deletes a schema.

Parameters
Name Description
request DeleteSchemaRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Overrides

DeleteSchemaRevision(DeleteSchemaRevisionRequest, CallSettings)

public override Schema DeleteSchemaRevision(DeleteSchemaRevisionRequest request, CallSettings callSettings = null)

Deletes a specific schema revision.

Parameters
Name Description
request DeleteSchemaRevisionRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Schema

The RPC response.

Overrides

DeleteSchemaRevisionAsync(DeleteSchemaRevisionRequest, CallSettings)

public override Task<Schema> DeleteSchemaRevisionAsync(DeleteSchemaRevisionRequest request, CallSettings callSettings = null)

Deletes a specific schema revision.

Parameters
Name Description
request DeleteSchemaRevisionRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSchema

A Task containing the RPC response.

Overrides

GetSchema(GetSchemaRequest, CallSettings)

public override Schema GetSchema(GetSchemaRequest request, CallSettings callSettings = null)

Gets a schema.

Parameters
Name Description
request GetSchemaRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Schema

The RPC response.

Overrides

GetSchemaAsync(GetSchemaRequest, CallSettings)

public override Task<Schema> GetSchemaAsync(GetSchemaRequest request, CallSettings callSettings = null)

Gets a schema.

Parameters
Name Description
request GetSchemaRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSchema

A Task containing the RPC response.

Overrides

ListSchemaRevisions(ListSchemaRevisionsRequest, CallSettings)

public override PagedEnumerable<ListSchemaRevisionsResponse, Schema> ListSchemaRevisions(ListSchemaRevisionsRequest request, CallSettings callSettings = null)

Lists all schema revisions for the named schema.

Parameters
Name Description
request ListSchemaRevisionsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSchemaRevisionsResponseSchema

A pageable sequence of Schema resources.

Overrides

ListSchemaRevisionsAsync(ListSchemaRevisionsRequest, CallSettings)

public override PagedAsyncEnumerable<ListSchemaRevisionsResponse, Schema> ListSchemaRevisionsAsync(ListSchemaRevisionsRequest request, CallSettings callSettings = null)

Lists all schema revisions for the named schema.

Parameters
Name Description
request ListSchemaRevisionsRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSchemaRevisionsResponseSchema

A pageable asynchronous sequence of Schema resources.

Overrides

ListSchemas(ListSchemasRequest, CallSettings)

public override PagedEnumerable<ListSchemasResponse, Schema> ListSchemas(ListSchemasRequest request, CallSettings callSettings = null)

Lists schemas in a project.

Parameters
Name Description
request ListSchemasRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListSchemasResponseSchema

A pageable sequence of Schema resources.

Overrides

ListSchemasAsync(ListSchemasRequest, CallSettings)

public override PagedAsyncEnumerable<ListSchemasResponse, Schema> ListSchemasAsync(ListSchemasRequest request, CallSettings callSettings = null)

Lists schemas in a project.

Parameters
Name Description
request ListSchemasRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListSchemasResponseSchema

A pageable asynchronous sequence of Schema resources.

Overrides

RollbackSchema(RollbackSchemaRequest, CallSettings)

public override Schema RollbackSchema(RollbackSchemaRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request RollbackSchemaRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Schema

The RPC response.

Overrides

RollbackSchemaAsync(RollbackSchemaRequest, CallSettings)

public override Task<Schema> RollbackSchemaAsync(RollbackSchemaRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request RollbackSchemaRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskSchema

A Task containing the RPC response.

Overrides

ValidateMessage(ValidateMessageRequest, CallSettings)

public override ValidateMessageResponse ValidateMessage(ValidateMessageRequest request, CallSettings callSettings = null)

Validates a message against a schema.

Parameters
Name Description
request ValidateMessageRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ValidateMessageResponse

The RPC response.

Overrides

ValidateMessageAsync(ValidateMessageRequest, CallSettings)

public override Task<ValidateMessageResponse> ValidateMessageAsync(ValidateMessageRequest request, CallSettings callSettings = null)

Validates a message against a schema.

Parameters
Name Description
request ValidateMessageRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskValidateMessageResponse

A Task containing the RPC response.

Overrides

ValidateSchema(ValidateSchemaRequest, CallSettings)

public override ValidateSchemaResponse ValidateSchema(ValidateSchemaRequest request, CallSettings callSettings = null)

Validates a schema.

Parameters
Name Description
request ValidateSchemaRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
ValidateSchemaResponse

The RPC response.

Overrides

ValidateSchemaAsync(ValidateSchemaRequest, CallSettings)

public override Task<ValidateSchemaResponse> ValidateSchemaAsync(ValidateSchemaRequest request, CallSettings callSettings = null)

Validates a schema.

Parameters
Name Description
request ValidateSchemaRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskValidateSchemaResponse

A Task containing the RPC response.

Overrides