Class NetworkServiceClientImpl
NetworkService client wrapper implementation, for convenient use.
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public sealed class NetworkServiceClientImpl : NetworkServiceClient
Remarks
Provides methods for handling Network objects.
Constructors
NetworkServiceClientImpl(NetworkServiceClient, NetworkServiceSettings, ILogger)
Constructs a client wrapper for the NetworkService service, with the specified gRPC client and settings.
Declaration
public NetworkServiceClientImpl(NetworkService.NetworkServiceClient grpcClient, NetworkServiceSettings settings, ILogger logger)
Parameters
| Type | Name | Description |
|---|---|---|
| NetworkService.NetworkServiceClient | grpcClient | The underlying gRPC client. |
| NetworkServiceSettings | settings | The base NetworkServiceSettings used within this client. |
| ILogger | logger | Optional ILogger to use within this client. |
Properties
GrpcClient
The underlying gRPC NetworkService client
Declaration
public override NetworkService.NetworkServiceClient GrpcClient { get; }
Property Value
| Type | Description |
|---|---|
| NetworkService.NetworkServiceClient |
Overrides
Methods
GetNetwork(GetNetworkRequest, CallSettings)
API to retrieve a Network object.
Declaration
public override Network GetNetwork(GetNetworkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetNetworkRequest | 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 |
|---|---|
| Network | The RPC response. |
Overrides
GetNetworkAsync(GetNetworkRequest, CallSettings)
API to retrieve a Network object.
Declaration
public override Task<Network> GetNetworkAsync(GetNetworkRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetNetworkRequest | 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<Network> | A Task containing the RPC response. |
Overrides
ListNetworks(ListNetworksRequest, CallSettings)
API to retrieve all the networks the current user has access to.
Declaration
public override ListNetworksResponse ListNetworks(ListNetworksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListNetworksRequest | 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 |
|---|---|
| ListNetworksResponse | The RPC response. |
Overrides
ListNetworksAsync(ListNetworksRequest, CallSettings)
API to retrieve all the networks the current user has access to.
Declaration
public override Task<ListNetworksResponse> ListNetworksAsync(ListNetworksRequest request, CallSettings callSettings = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ListNetworksRequest | 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<ListNetworksResponse> | A Task containing the RPC response. |