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 |
---|---|---|
Company |
grpcClient | The underlying gRPC client. |
Company |
settings | The base Company |
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 |
---|---|
Company |
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 |
---|---|---|
Get |
request | The request object containing all of the parameters for the API call. |
Call |
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 |
---|---|---|
Get |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
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 |
---|---|---|
List |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Paged |
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 |
---|---|---|
List |
request | The request object containing all of the parameters for the API call. |
Call |
callSettings | If not null, applies overrides to this RPC call. |
Returns
Type | Description |
---|---|
Paged |
A pageable asynchronous sequence of Company resources. |