Class NetworkService.NetworkServiceClient
Client for NetworkService
Inheritance
Inherited Members
Namespace: Google.Ads.AdManager.V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public class NetworkService.NetworkServiceClient : ClientBase<NetworkService.NetworkServiceClient>
Constructors
NetworkServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected NetworkServiceClient()
NetworkServiceClient(CallInvoker)
Creates a new client for NetworkService that uses a custom CallInvoker
.
Declaration
public NetworkServiceClient(CallInvoker callInvoker)
Parameters
Type | Name | Description |
---|---|---|
CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
NetworkServiceClient(ChannelBase)
Creates a new client for NetworkService
Declaration
public NetworkServiceClient(ChannelBase channel)
Parameters
Type | Name | Description |
---|---|---|
ChannelBase | channel | The channel to use to make remote calls. |
NetworkServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected NetworkServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
GetNetwork(GetNetworkRequest, CallOptions)
API to retrieve a Network object.
Declaration
public virtual Network GetNetwork(GetNetworkRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
GetNetworkRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
Network | The response received from the server. |
GetNetwork(GetNetworkRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a Network object.
Declaration
public virtual Network GetNetwork(GetNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
GetNetworkRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | 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 |
---|---|
Network | The response received from the server. |
GetNetworkAsync(GetNetworkRequest, CallOptions)
API to retrieve a Network object.
Declaration
public virtual AsyncUnaryCall<Network> GetNetworkAsync(GetNetworkRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
GetNetworkRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Network> | The call object. |
GetNetworkAsync(GetNetworkRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a Network object.
Declaration
public virtual AsyncUnaryCall<Network> GetNetworkAsync(GetNetworkRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
GetNetworkRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | 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<Network> | The call object. |
ListNetworks(ListNetworksRequest, CallOptions)
API to retrieve all the networks the current user has access to.
Declaration
public virtual ListNetworksResponse ListNetworks(ListNetworksRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ListNetworksRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
ListNetworksResponse | The response received from the server. |
ListNetworks(ListNetworksRequest, Metadata, DateTime?, CancellationToken)
API to retrieve all the networks the current user has access to.
Declaration
public virtual ListNetworksResponse ListNetworks(ListNetworksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ListNetworksRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | 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 |
---|---|
ListNetworksResponse | The response received from the server. |
ListNetworksAsync(ListNetworksRequest, CallOptions)
API to retrieve all the networks the current user has access to.
Declaration
public virtual AsyncUnaryCall<ListNetworksResponse> ListNetworksAsync(ListNetworksRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ListNetworksRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<ListNetworksResponse> | The call object. |
ListNetworksAsync(ListNetworksRequest, Metadata, DateTime?, CancellationToken)
API to retrieve all the networks the current user has access to.
Declaration
public virtual AsyncUnaryCall<ListNetworksResponse> ListNetworksAsync(ListNetworksRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
ListNetworksRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
DateTime? | deadline | 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<ListNetworksResponse> | The call object. |
NewInstance(ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration
.
Declaration
protected override NetworkService.NetworkServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration |
Returns
Type | Description |
---|---|
NetworkService.NetworkServiceClient |