public sealed class SchemaServiceClientImpl : SchemaServiceClient
SchemaService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.PubSub.V1Assembly
Google.Cloud.PubSub.V1.dll
Remarks
Service for doing schema-related operations.
Constructors
SchemaServiceClientImpl(SchemaService.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 | SchemaService.SchemaServiceClient 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 |
SchemaService.SchemaServiceClient |
IAMPolicyClient
public override IAMPolicyClient IAMPolicyClient { get; }
The IAMPolicyClient associated with this client.
Property Value | |
---|---|
Type | Description |
IAMPolicyClient |
Methods
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. |
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 |
Task<Schema> | A Task containing the RPC response. |
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. |
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. |
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. |
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 |
Task<Schema> | A Task containing the RPC response. |
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 |
PagedEnumerable<ListSchemasResponse, Schema> | A pageable sequence of Schema resources. |
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 |
PagedAsyncEnumerable<ListSchemasResponse, Schema> | A pageable asynchronous sequence of Schema resources. |
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. |
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 |
Task<ValidateMessageResponse> | A Task containing the RPC response. |
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. |
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 |
Task<ValidateSchemaResponse> | A Task containing the RPC response. |