public sealed class CompanyServiceClientImpl : CompanyServiceClient
Reference documentation and code samples for the Google Cloud Talent Solution v4beta1 API class CompanyServiceClientImpl.
CompanyService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Talent.V4Beta1Assembly
Google.Cloud.Talent.V4Beta1.dll
Remarks
A service that handles company management, including CRUD and enumeration.
Constructors
CompanyServiceClientImpl(CompanyService.CompanyServiceClient, CompanyServiceSettings, ILogger)
public CompanyServiceClientImpl(CompanyService.CompanyServiceClient grpcClient, CompanyServiceSettings settings, ILogger logger)
Constructs a client wrapper for the CompanyService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | CompanyService.CompanyServiceClient The underlying gRPC client. |
settings | CompanyServiceSettings The base CompanyServiceSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override CompanyService.CompanyServiceClient GrpcClient { get; }
The underlying gRPC CompanyService client
Property Value | |
---|---|
Type | Description |
CompanyService.CompanyServiceClient |
Methods
CreateCompany(CreateCompanyRequest, CallSettings)
public override Company CreateCompany(CreateCompanyRequest request, CallSettings callSettings = null)
Creates a new company entity.
Parameters | |
---|---|
Name | Description |
request | CreateCompanyRequest 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 |
Company | The RPC response. |
CreateCompanyAsync(CreateCompanyRequest, CallSettings)
public override Task<Company> CreateCompanyAsync(CreateCompanyRequest request, CallSettings callSettings = null)
Creates a new company entity.
Parameters | |
---|---|
Name | Description |
request | CreateCompanyRequest 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<Company> | A Task containing the RPC response. |
DeleteCompany(DeleteCompanyRequest, CallSettings)
public override void DeleteCompany(DeleteCompanyRequest request, CallSettings callSettings = null)
Deletes specified company. Prerequisite: The company has no jobs associated with it.
Parameters | |
---|---|
Name | Description |
request | DeleteCompanyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
DeleteCompanyAsync(DeleteCompanyRequest, CallSettings)
public override Task DeleteCompanyAsync(DeleteCompanyRequest request, CallSettings callSettings = null)
Deletes specified company. Prerequisite: The company has no jobs associated with it.
Parameters | |
---|---|
Name | Description |
request | DeleteCompanyRequest 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. |
GetCompany(GetCompanyRequest, CallSettings)
public override Company GetCompany(GetCompanyRequest request, CallSettings callSettings = null)
Retrieves specified company.
Parameters | |
---|---|
Name | Description |
request | GetCompanyRequest 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 |
Company | The RPC response. |
GetCompanyAsync(GetCompanyRequest, CallSettings)
public override Task<Company> GetCompanyAsync(GetCompanyRequest request, CallSettings callSettings = null)
Retrieves specified company.
Parameters | |
---|---|
Name | Description |
request | GetCompanyRequest 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<Company> | A Task containing the RPC response. |
ListCompanies(ListCompaniesRequest, CallSettings)
public override PagedEnumerable<ListCompaniesResponse, Company> ListCompanies(ListCompaniesRequest request, CallSettings callSettings = null)
Lists all companies associated with the project.
Parameters | |
---|---|
Name | Description |
request | ListCompaniesRequest 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<ListCompaniesResponse, Company> | A pageable sequence of Company resources. |
ListCompaniesAsync(ListCompaniesRequest, CallSettings)
public override PagedAsyncEnumerable<ListCompaniesResponse, Company> ListCompaniesAsync(ListCompaniesRequest request, CallSettings callSettings = null)
Lists all companies associated with the project.
Parameters | |
---|---|
Name | Description |
request | ListCompaniesRequest 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<ListCompaniesResponse, Company> | A pageable asynchronous sequence of Company resources. |
UpdateCompany(UpdateCompanyRequest, CallSettings)
public override Company UpdateCompany(UpdateCompanyRequest request, CallSettings callSettings = null)
Updates specified company.
Parameters | |
---|---|
Name | Description |
request | UpdateCompanyRequest 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 |
Company | The RPC response. |
UpdateCompanyAsync(UpdateCompanyRequest, CallSettings)
public override Task<Company> UpdateCompanyAsync(UpdateCompanyRequest request, CallSettings callSettings = null)
Updates specified company.
Parameters | |
---|---|
Name | Description |
request | UpdateCompanyRequest 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<Company> | A Task containing the RPC response. |