Class CompanyServiceClientImpl
CompanyService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class CompanyServiceClientImpl : CompanyServiceClient
Remarks
Provides methods for handling Company objects.
Constructors
CompanyServiceClientImpl(CompanyServiceClient, CompanyServiceSettings, ILogger)
Constructs a client wrapper for the CompanyService service, with the specified gRPC client and settings.
Declaration
public CompanyServiceClientImpl(CompanyService.CompanyServiceClient grpcClient, CompanyServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| CompanyService.CompanyServiceClient | grpcClient | The underlying gRPC client. |
| CompanyServiceSettings | settings | The base CompanyServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC CompanyService client
Declaration
public override CompanyService.CompanyServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| CompanyService.CompanyServiceClient |
Overrides
Methods
GetCompany(GetCompanyRequest, CallSettings)
API to retrieve a Company object.
Declaration
public override Company GetCompany(GetCompanyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetCompanyRequest | request | 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. |
Overrides
GetCompanyAsync(GetCompanyRequest, CallSettings)
API to retrieve a Company object.
Declaration
public override Task<Company> GetCompanyAsync(GetCompanyRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetCompanyRequest | request | 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. |
Overrides
ListCompanies(ListCompaniesRequest, CallSettings)
API to retrieve a list of Company objects.
Declaration
public override PagedEnumerable<ListCompaniesResponse, Company> ListCompanies(ListCompaniesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListCompaniesRequest | request | 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. |
Overrides
ListCompaniesAsync(ListCompaniesRequest, CallSettings)
API to retrieve a list of Company objects.
Declaration
public override PagedAsyncEnumerable<ListCompaniesResponse, Company> ListCompaniesAsync(ListCompaniesRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListCompaniesRequest | request | 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. |