Google Cloud Talent Solution v4beta1 API - Class CompanyService.CompanyServiceClient (3.0.0-beta04)

public class CompanyService.CompanyServiceClient : ClientBase<CompanyService.CompanyServiceClient>

Reference documentation and code samples for the Google Cloud Talent Solution v4beta1 API class CompanyService.CompanyServiceClient.

Client for CompanyService

Inheritance

object > ClientBase > ClientBaseCompanyServiceCompanyServiceClient > CompanyService.CompanyServiceClient

Namespace

Google.Cloud.Talent.V4Beta1

Assembly

Google.Cloud.Talent.V4Beta1.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
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

CompanyServiceClient(ChannelBase)

public CompanyServiceClient(ChannelBase channel)

Creates a new client for CompanyService

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

CompanyServiceClient(ClientBaseConfiguration)

protected CompanyServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateCompany(CreateCompanyRequest, CallOptions)

public virtual Company CreateCompany(CreateCompanyRequest request, CallOptions options)

Creates a new company entity.

Parameters
Name Description
request CreateCompanyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Company

The response received from the server.

CreateCompany(CreateCompanyRequest, Metadata, DateTime?, CancellationToken)

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

Creates a new company entity.

Parameters
Name Description
request CreateCompanyRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
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
Name Description
request CreateCompanyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallCompany

The call object.

CreateCompanyAsync(CreateCompanyRequest, Metadata, DateTime?, CancellationToken)

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

Creates a new company entity.

Parameters
Name Description
request CreateCompanyRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallCompany

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
Name Description
request DeleteCompanyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Empty

The response received from the server.

DeleteCompany(DeleteCompanyRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
Name Description
request DeleteCompanyRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
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
Name Description
request DeleteCompanyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

DeleteCompanyAsync(DeleteCompanyRequest, Metadata, DateTime?, CancellationToken)

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

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

Parameters
Name Description
request DeleteCompanyRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallEmpty

The call object.

GetCompany(GetCompanyRequest, CallOptions)

public virtual Company GetCompany(GetCompanyRequest request, CallOptions options)

Retrieves specified company.

Parameters
Name Description
request GetCompanyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Company

The response received from the server.

GetCompany(GetCompanyRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves specified company.

Parameters
Name Description
request GetCompanyRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Company

The response received from the server.

GetCompanyAsync(GetCompanyRequest, CallOptions)

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

Retrieves specified company.

Parameters
Name Description
request GetCompanyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallCompany

The call object.

GetCompanyAsync(GetCompanyRequest, Metadata, DateTime?, CancellationToken)

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

Retrieves specified company.

Parameters
Name Description
request GetCompanyRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallCompany

The call object.

ListCompanies(ListCompaniesRequest, CallOptions)

public virtual ListCompaniesResponse ListCompanies(ListCompaniesRequest request, CallOptions options)

Lists all companies associated with the project.

Parameters
Name Description
request ListCompaniesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListCompaniesResponse

The response received from the server.

ListCompanies(ListCompaniesRequest, Metadata, DateTime?, CancellationToken)

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

Lists all companies associated with the project.

Parameters
Name Description
request ListCompaniesRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
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
Name Description
request ListCompaniesRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListCompaniesResponse

The call object.

ListCompaniesAsync(ListCompaniesRequest, Metadata, DateTime?, CancellationToken)

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

Lists all companies associated with the project.

Parameters
Name Description
request ListCompaniesRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListCompaniesResponse

The call object.

NewInstance(ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
CompanyServiceCompanyServiceClient
Overrides

UpdateCompany(UpdateCompanyRequest, CallOptions)

public virtual Company UpdateCompany(UpdateCompanyRequest request, CallOptions options)

Updates specified company.

Parameters
Name Description
request UpdateCompanyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Company

The response received from the server.

UpdateCompany(UpdateCompanyRequest, Metadata, DateTime?, CancellationToken)

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

Updates specified company.

Parameters
Name Description
request UpdateCompanyRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Company

The response received from the server.

UpdateCompanyAsync(UpdateCompanyRequest, CallOptions)

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

Updates specified company.

Parameters
Name Description
request UpdateCompanyRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallCompany

The call object.

UpdateCompanyAsync(UpdateCompanyRequest, Metadata, DateTime?, CancellationToken)

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

Updates specified company.

Parameters
Name Description
request UpdateCompanyRequest

The request to send to the server.

headers Metadata

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

deadline DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallCompany

The call object.