Class CompanyService.CompanyServiceClient
Client for CompanyService
Inheritance
Inherited Members
Namespace: Google.Ads.AdManager .V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public class CompanyService.CompanyServiceClient : ClientBase<CompanyService.CompanyServiceClient>
Constructors
CompanyServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected CompanyServiceClient()
CompanyServiceClient(CallInvoker)
Creates a new client for CompanyService that uses a custom CallInvoker
.
Declaration
public CompanyServiceClient(CallInvoker callInvoker)
Parameters
Type | Name | Description |
---|---|---|
Call |
callInvoker | The callInvoker to use to make remote calls. |
CompanyServiceClient(ChannelBase)
Creates a new client for CompanyService
Declaration
public CompanyServiceClient(ChannelBase channel)
Parameters
Type | Name | Description |
---|---|---|
Channel |
channel | The channel to use to make remote calls. |
CompanyServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected CompanyServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
Client |
configuration | The client configuration. |
Methods
GetCompany(GetCompanyRequest, CallOptions)
API to retrieve a Company
object.
Declaration
public virtual Company GetCompany(GetCompanyRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
Get |
request | The request to send to the server. |
Call |
options | The options for the call. |
Returns
Type | Description |
---|---|
Company | The response received from the server. |
GetCompany(GetCompanyRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a Company
object.
Declaration
public virtual Company GetCompany(GetCompanyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
Get |
request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
Date |
deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
Cancellation |
cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
Company | The response received from the server. |
GetCompanyAsync(GetCompanyRequest, CallOptions)
API to retrieve a Company
object.
Declaration
public virtual AsyncUnaryCall<Company> GetCompanyAsync(GetCompanyRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
Get |
request | The request to send to the server. |
Call |
options | The options for the call. |
Returns
Type | Description |
---|---|
Async |
The call object. |
GetCompanyAsync(GetCompanyRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a Company
object.
Declaration
public virtual AsyncUnaryCall<Company> GetCompanyAsync(GetCompanyRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
Get |
request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
Date |
deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
Cancellation |
cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
Async |
The call object. |
ListCompanies(ListCompaniesRequest, CallOptions)
API to retrieve a list of Company
objects.
Declaration
public virtual ListCompaniesResponse ListCompanies(ListCompaniesRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
List |
request | The request to send to the server. |
Call |
options | The options for the call. |
Returns
Type | Description |
---|---|
List |
The response received from the server. |
ListCompanies(ListCompaniesRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a list of Company
objects.
Declaration
public virtual ListCompaniesResponse ListCompanies(ListCompaniesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
List |
request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
Date |
deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
Cancellation |
cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
List |
The response received from the server. |
ListCompaniesAsync(ListCompaniesRequest, CallOptions)
API to retrieve a list of Company
objects.
Declaration
public virtual AsyncUnaryCall<ListCompaniesResponse> ListCompaniesAsync(ListCompaniesRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
List |
request | The request to send to the server. |
Call |
options | The options for the call. |
Returns
Type | Description |
---|---|
Async |
The call object. |
ListCompaniesAsync(ListCompaniesRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a list of Company
objects.
Declaration
public virtual AsyncUnaryCall<ListCompaniesResponse> ListCompaniesAsync(ListCompaniesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
List |
request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
Date |
deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
Cancellation |
cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
Async |
The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration
.
Declaration
protected override CompanyService.CompanyServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
Client |
configuration |
Returns
Type | Description |
---|---|
Company |