public class CompanyServiceClient : ClientBase<CompanyService.CompanyServiceClient>
Client for CompanyService
Inheritance
Object > ClientBase > ClientBase<CompanyService.CompanyServiceClient> > CompanyService.CompanyServiceClientNamespace
Google.Cloud.Talent.V4Assembly
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(ClientBase.ClientBaseConfiguration)
protected CompanyServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration 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, 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 | |
---|---|
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 | Nullable<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 |
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 | |
---|---|
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 | Nullable<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 |
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 | |
---|---|
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, 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 | |
---|---|
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 | Nullable<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 |
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 | |
---|---|
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 | Nullable<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 |
AsyncUnaryCall<Empty> | 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, Nullable<DateTime>, CancellationToken)
public virtual Company GetCompany(GetCompanyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
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 | |
---|---|
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 | Nullable<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 |
AsyncUnaryCall<Company> | 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, 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 | |
---|---|
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 | Nullable<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 |
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 | |
---|---|
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 | Nullable<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 |
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 | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
CompanyService.CompanyServiceClient |
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, Nullable<DateTime>, CancellationToken)
public virtual Company UpdateCompany(UpdateCompanyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))
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 | Nullable<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 |
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 | |
---|---|
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 | Nullable<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 |
AsyncUnaryCall<Company> | The call object. |