Class CompanyService.CompanyServiceClient (2.0.0)

public class CompanyServiceClient : ClientBase<CompanyService.CompanyServiceClient>

Client for CompanyService

Inheritance

Object > ClientBase > ClientBase<CompanyService.CompanyServiceClient> > CompanyService.CompanyServiceClient

Namespace

Google.Cloud.Talent.V4

Assembly

Google.Cloud.Talent.V4.dll

Constructors

CompanyServiceClient()

protected CompanyServiceClient()

Protected parameterless constructor to allow creation of test doubles.

CompanyServiceClient(CallInvoker)

public CompanyServiceClient(CallInvoker callInvoker)

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

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

CompanyServiceClient(ChannelBase)

public CompanyServiceClient(ChannelBase channel)

Creates a new client for CompanyService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

CompanyServiceClient(ClientBase.ClientBaseConfiguration)

protected CompanyServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

CreateCompany(CreateCompanyRequest, CallOptions)

public virtual Company CreateCompany(CreateCompanyRequest request, CallOptions options)

Creates a new company entity.

Parameters
NameDescription
requestCreateCompanyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Company

The response received from the server.

CreateCompany(CreateCompanyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Company CreateCompany(CreateCompanyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Creates a new company entity.

Parameters
NameDescription
requestCreateCompanyRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Company

The response received from the server.

CreateCompanyAsync(CreateCompanyRequest, CallOptions)

public virtual AsyncUnaryCall<Company> CreateCompanyAsync(CreateCompanyRequest request, CallOptions options)

Creates a new company entity.

Parameters
NameDescription
requestCreateCompanyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Company>

The call object.

CreateCompanyAsync(CreateCompanyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Company> CreateCompanyAsync(CreateCompanyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Creates a new company entity.

Parameters
NameDescription
requestCreateCompanyRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Company>

The call object.

DeleteCompany(DeleteCompanyRequest, CallOptions)

public virtual Empty DeleteCompany(DeleteCompanyRequest request, CallOptions options)

Deletes specified company. Prerequisite: The company has no jobs associated with it.

Parameters
NameDescription
requestDeleteCompanyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteCompany(DeleteCompanyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Deletes specified company. Prerequisite: The company has no jobs associated with it.

Parameters
NameDescription
requestDeleteCompanyRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteCompanyAsync(DeleteCompanyRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteCompanyAsync(DeleteCompanyRequest request, CallOptions options)

Deletes specified company. Prerequisite: The company has no jobs associated with it.

Parameters
NameDescription
requestDeleteCompanyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

DeleteCompanyAsync(DeleteCompanyRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Deletes specified company. Prerequisite: The company has no jobs associated with it.

Parameters
NameDescription
requestDeleteCompanyRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

GetCompany(GetCompanyRequest, CallOptions)

public virtual Company GetCompany(GetCompanyRequest request, CallOptions options)

Retrieves specified company.

Parameters
NameDescription
requestGetCompanyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Company

The response received from the server.

GetCompany(GetCompanyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Company GetCompany(GetCompanyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Retrieves specified company.

Parameters
NameDescription
requestGetCompanyRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Company

The response received from the server.

GetCompanyAsync(GetCompanyRequest, CallOptions)

public virtual AsyncUnaryCall<Company> GetCompanyAsync(GetCompanyRequest request, CallOptions options)

Retrieves specified company.

Parameters
NameDescription
requestGetCompanyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Company>

The call object.

GetCompanyAsync(GetCompanyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Company> GetCompanyAsync(GetCompanyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Retrieves specified company.

Parameters
NameDescription
requestGetCompanyRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Company>

The call object.

ListCompanies(ListCompaniesRequest, CallOptions)

public virtual ListCompaniesResponse ListCompanies(ListCompaniesRequest request, CallOptions options)

Lists all companies associated with the project.

Parameters
NameDescription
requestListCompaniesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListCompaniesResponse

The response received from the server.

ListCompanies(ListCompaniesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ListCompaniesResponse ListCompanies(ListCompaniesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Lists all companies associated with the project.

Parameters
NameDescription
requestListCompaniesRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListCompaniesResponse

The response received from the server.

ListCompaniesAsync(ListCompaniesRequest, CallOptions)

public virtual AsyncUnaryCall<ListCompaniesResponse> ListCompaniesAsync(ListCompaniesRequest request, CallOptions options)

Lists all companies associated with the project.

Parameters
NameDescription
requestListCompaniesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ListCompaniesResponse>

The call object.

ListCompaniesAsync(ListCompaniesRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ListCompaniesResponse> ListCompaniesAsync(ListCompaniesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Lists all companies associated with the project.

Parameters
NameDescription
requestListCompaniesRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<ListCompaniesResponse>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override CompanyService.CompanyServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
CompanyService.CompanyServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Talent.V4.CompanyService.CompanyServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateCompany(UpdateCompanyRequest, CallOptions)

public virtual Company UpdateCompany(UpdateCompanyRequest request, CallOptions options)

Updates specified company.

Parameters
NameDescription
requestUpdateCompanyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Company

The response received from the server.

UpdateCompany(UpdateCompanyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Company UpdateCompany(UpdateCompanyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Updates specified company.

Parameters
NameDescription
requestUpdateCompanyRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Company

The response received from the server.

UpdateCompanyAsync(UpdateCompanyRequest, CallOptions)

public virtual AsyncUnaryCall<Company> UpdateCompanyAsync(UpdateCompanyRequest request, CallOptions options)

Updates specified company.

Parameters
NameDescription
requestUpdateCompanyRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Company>

The call object.

UpdateCompanyAsync(UpdateCompanyRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Company> UpdateCompanyAsync(UpdateCompanyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

Updates specified company.

Parameters
NameDescription
requestUpdateCompanyRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Company>

The call object.