Class SchemaService.SchemaServiceClient (2.3.0)

public class SchemaServiceClient : ClientBase<SchemaService.SchemaServiceClient>

Client for SchemaService

Inheritance

System.Object > Grpc.Core.ClientBase > Grpc.Core.ClientBase<SchemaService.SchemaServiceClient> > SchemaService.SchemaServiceClient

Namespace

Google.Cloud.PubSub.V1

Assembly

Google.Cloud.PubSub.V1.dll

Constructors

SchemaServiceClient()

protected SchemaServiceClient()

Protected parameterless constructor to allow creation of test doubles.

SchemaServiceClient(CallInvoker)

public SchemaServiceClient(CallInvoker callInvoker)

Creates a new client for SchemaService that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerGrpc.Core.CallInvoker

The callInvoker to use to make remote calls.

SchemaServiceClient(ChannelBase)

public SchemaServiceClient(ChannelBase channel)

Creates a new client for SchemaService

Parameter
NameDescription
channelGrpc.Core.ChannelBase

The channel to use to make remote calls.

SchemaServiceClient(ClientBase.ClientBaseConfiguration)

protected SchemaServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationGrpc.Core.ClientBase.ClientBaseConfiguration

The client configuration.

Methods

CreateSchema(CreateSchemaRequest, CallOptions)

public virtual Schema CreateSchema(CreateSchemaRequest request, CallOptions options)

Creates a schema.

Parameters
NameDescription
requestCreateSchemaRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
Schema

The response received from the server.

CreateSchema(CreateSchemaRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Schema CreateSchema(CreateSchemaRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Creates a schema.

Parameters
NameDescription
requestCreateSchemaRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Schema

The response received from the server.

CreateSchemaAsync(CreateSchemaRequest, CallOptions)

public virtual AsyncUnaryCall<Schema> CreateSchemaAsync(CreateSchemaRequest request, CallOptions options)

Creates a schema.

Parameters
NameDescription
requestCreateSchemaRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<Schema>

The call object.

CreateSchemaAsync(CreateSchemaRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Schema> CreateSchemaAsync(CreateSchemaRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Creates a schema.

Parameters
NameDescription
requestCreateSchemaRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<Schema>

The call object.

DeleteSchema(DeleteSchemaRequest, CallOptions)

public virtual Empty DeleteSchema(DeleteSchemaRequest request, CallOptions options)

Deletes a schema.

Parameters
NameDescription
requestDeleteSchemaRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
Google.Protobuf.WellKnownTypes.Empty

The response received from the server.

DeleteSchema(DeleteSchemaRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Empty DeleteSchema(DeleteSchemaRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Deletes a schema.

Parameters
NameDescription
requestDeleteSchemaRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Google.Protobuf.WellKnownTypes.Empty

The response received from the server.

DeleteSchemaAsync(DeleteSchemaRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteSchemaAsync(DeleteSchemaRequest request, CallOptions options)

Deletes a schema.

Parameters
NameDescription
requestDeleteSchemaRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<Google.Protobuf.WellKnownTypes.Empty>

The call object.

DeleteSchemaAsync(DeleteSchemaRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteSchemaAsync(DeleteSchemaRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Deletes a schema.

Parameters
NameDescription
requestDeleteSchemaRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<Google.Protobuf.WellKnownTypes.Empty>

The call object.

GetSchema(GetSchemaRequest, CallOptions)

public virtual Schema GetSchema(GetSchemaRequest request, CallOptions options)

Gets a schema.

Parameters
NameDescription
requestGetSchemaRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
Schema

The response received from the server.

GetSchema(GetSchemaRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Schema GetSchema(GetSchemaRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Gets a schema.

Parameters
NameDescription
requestGetSchemaRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Schema

The response received from the server.

GetSchemaAsync(GetSchemaRequest, CallOptions)

public virtual AsyncUnaryCall<Schema> GetSchemaAsync(GetSchemaRequest request, CallOptions options)

Gets a schema.

Parameters
NameDescription
requestGetSchemaRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<Schema>

The call object.

GetSchemaAsync(GetSchemaRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Schema> GetSchemaAsync(GetSchemaRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Gets a schema.

Parameters
NameDescription
requestGetSchemaRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<Schema>

The call object.

ListSchemas(ListSchemasRequest, CallOptions)

public virtual ListSchemasResponse ListSchemas(ListSchemasRequest request, CallOptions options)

Lists schemas in a project.

Parameters
NameDescription
requestListSchemasRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
ListSchemasResponse

The response received from the server.

ListSchemas(ListSchemasRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ListSchemasResponse ListSchemas(ListSchemasRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Lists schemas in a project.

Parameters
NameDescription
requestListSchemasRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListSchemasResponse

The response received from the server.

ListSchemasAsync(ListSchemasRequest, CallOptions)

public virtual AsyncUnaryCall<ListSchemasResponse> ListSchemasAsync(ListSchemasRequest request, CallOptions options)

Lists schemas in a project.

Parameters
NameDescription
requestListSchemasRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<ListSchemasResponse>

The call object.

ListSchemasAsync(ListSchemasRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ListSchemasResponse> ListSchemasAsync(ListSchemasRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Lists schemas in a project.

Parameters
NameDescription
requestListSchemasRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<ListSchemasResponse>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override SchemaService.SchemaServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationGrpc.Core.ClientBase.ClientBaseConfiguration
Returns
TypeDescription
SchemaService.SchemaServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.PubSub.V1.SchemaService.SchemaServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

ValidateMessage(ValidateMessageRequest, CallOptions)

public virtual ValidateMessageResponse ValidateMessage(ValidateMessageRequest request, CallOptions options)

Validates a message against a schema.

Parameters
NameDescription
requestValidateMessageRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
ValidateMessageResponse

The response received from the server.

ValidateMessage(ValidateMessageRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ValidateMessageResponse ValidateMessage(ValidateMessageRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Validates a message against a schema.

Parameters
NameDescription
requestValidateMessageRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ValidateMessageResponse

The response received from the server.

ValidateMessageAsync(ValidateMessageRequest, CallOptions)

public virtual AsyncUnaryCall<ValidateMessageResponse> ValidateMessageAsync(ValidateMessageRequest request, CallOptions options)

Validates a message against a schema.

Parameters
NameDescription
requestValidateMessageRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<ValidateMessageResponse>

The call object.

ValidateMessageAsync(ValidateMessageRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ValidateMessageResponse> ValidateMessageAsync(ValidateMessageRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Validates a message against a schema.

Parameters
NameDescription
requestValidateMessageRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<ValidateMessageResponse>

The call object.

ValidateSchema(ValidateSchemaRequest, CallOptions)

public virtual ValidateSchemaResponse ValidateSchema(ValidateSchemaRequest request, CallOptions options)

Validates a schema.

Parameters
NameDescription
requestValidateSchemaRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
ValidateSchemaResponse

The response received from the server.

ValidateSchema(ValidateSchemaRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ValidateSchemaResponse ValidateSchema(ValidateSchemaRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Validates a schema.

Parameters
NameDescription
requestValidateSchemaRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ValidateSchemaResponse

The response received from the server.

ValidateSchemaAsync(ValidateSchemaRequest, CallOptions)

public virtual AsyncUnaryCall<ValidateSchemaResponse> ValidateSchemaAsync(ValidateSchemaRequest request, CallOptions options)

Validates a schema.

Parameters
NameDescription
requestValidateSchemaRequest

The request to send to the server.

optionsGrpc.Core.CallOptions

The options for the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<ValidateSchemaResponse>

The call object.

ValidateSchemaAsync(ValidateSchemaRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ValidateSchemaResponse> ValidateSchemaAsync(ValidateSchemaRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Validates a schema.

Parameters
NameDescription
requestValidateSchemaRequest

The request to send to the server.

headersGrpc.Core.Metadata

The initial metadata to send with the call. This parameter is optional.

deadlineSystem.Nullable<System.DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenSystem.Threading.CancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Grpc.Core.AsyncUnaryCall<ValidateSchemaResponse>

The call object.