2.8.0 (latest) 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

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

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

Client for CompanyService

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt) \> [ClientBase](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt)[CompanyService](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.CompanyService.md.txt)[CompanyServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.CompanyService.CompanyServiceClient.md.txt) \> CompanyService.CompanyServiceClient

## Inherited Members

[ClientBase\<CompanyService.CompanyServiceClient\>.WithHost(string)](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase-1.md.txt#Grpc_Core_ClientBase_1_WithHost_System_String_) [ClientBase.CallInvoker](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ClientBase.md.txt#Grpc_Core_ClientBase_CallInvoker) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Talent.V4](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Talent.V4/latest/Google.Cloud.Talent.V4.md.txt)

## 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** ||
|---|---|
| **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` | `System.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` | `System.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` | `System.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` | `System.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` | `System.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` | `System.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` | `System.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` | `System.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** 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** ||
|---|---|
| **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` | `System.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` | `System.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. |