Cloud Pub/Sub v1 API - Class SchemaServiceClientImpl (3.11.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
NameDescription
grpcClientSchemaServiceSchemaServiceClient

The underlying gRPC client.

settingsSchemaServiceSettings

The base SchemaServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override SchemaService.SchemaServiceClient GrpcClient { get; }

The underlying gRPC SchemaService client

Property Value
TypeDescription
SchemaServiceSchemaServiceClient
Overrides

IAMPolicyClient

public override IAMPolicyClient IAMPolicyClient { get; }

The IAMPolicyClient associated with this client.

Property Value
TypeDescription
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
NameDescription
requestCommitSchemaRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestCommitSchemaRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSchema

A Task containing the RPC response.

Overrides

CreateSchema(CreateSchemaRequest, CallSettings)

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

Creates a schema.

Parameters
NameDescription
requestCreateSchemaRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Schema

The RPC response.

Overrides

CreateSchemaAsync(CreateSchemaRequest, CallSettings)

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

Creates a schema.

Parameters
NameDescription
requestCreateSchemaRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSchema

A Task containing the RPC response.

Overrides

DeleteSchema(DeleteSchemaRequest, CallSettings)

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

Deletes a schema.

Parameters
NameDescription
requestDeleteSchemaRequest

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

callSettingsCallSettings

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
NameDescription
requestDeleteSchemaRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestDeleteSchemaRevisionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Schema

The RPC response.

Overrides

DeleteSchemaRevisionAsync(DeleteSchemaRevisionRequest, CallSettings)

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

Deletes a specific schema revision.

Parameters
NameDescription
requestDeleteSchemaRevisionRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskSchema

A Task containing the RPC response.

Overrides

GetSchema(GetSchemaRequest, CallSettings)

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

Gets a schema.

Parameters
NameDescription
requestGetSchemaRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Schema

The RPC response.

Overrides

GetSchemaAsync(GetSchemaRequest, CallSettings)

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

Gets a schema.

Parameters
NameDescription
requestGetSchemaRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListSchemaRevisionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListSchemaRevisionsRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListSchemasRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestListSchemasRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestRollbackSchemaRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestRollbackSchemaRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestValidateMessageRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestValidateMessageRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskValidateMessageResponse

A Task containing the RPC response.

Overrides

ValidateSchema(ValidateSchemaRequest, CallSettings)

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

Validates a schema.

Parameters
NameDescription
requestValidateSchemaRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ValidateSchemaResponse

The RPC response.

Overrides

ValidateSchemaAsync(ValidateSchemaRequest, CallSettings)

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

Validates a schema.

Parameters
NameDescription
requestValidateSchemaRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskValidateSchemaResponse

A Task containing the RPC response.

Overrides