Class CustomFieldService.CustomFieldServiceClient
Client for CustomFieldService
Inheritance
Inherited Members
Namespace: Google.Ads.AdManager .V1
Assembly: Google.Ads.AdManager.V1.dll
Syntax
public class CustomFieldService.CustomFieldServiceClient : ClientBase<CustomFieldService.CustomFieldServiceClient>
Constructors
CustomFieldServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected CustomFieldServiceClient()
CustomFieldServiceClient(CallInvoker)
Creates a new client for CustomFieldService that uses a custom CallInvoker
.
Declaration
public CustomFieldServiceClient(CallInvoker callInvoker)
Parameters
Type | Name | Description |
---|---|---|
Call |
callInvoker | The callInvoker to use to make remote calls. |
CustomFieldServiceClient(ChannelBase)
Creates a new client for CustomFieldService
Declaration
public CustomFieldServiceClient(ChannelBase channel)
Parameters
Type | Name | Description |
---|---|---|
Channel |
channel | The channel to use to make remote calls. |
CustomFieldServiceClient(ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected CustomFieldServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
Client |
configuration | The client configuration. |
Methods
GetCustomField(GetCustomFieldRequest, CallOptions)
API to retrieve a CustomField
object.
Declaration
public virtual CustomField GetCustomField(GetCustomFieldRequest 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 |
---|---|
Custom |
The response received from the server. |
GetCustomField(GetCustomFieldRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a CustomField
object.
Declaration
public virtual CustomField GetCustomField(GetCustomFieldRequest 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 |
---|---|
Custom |
The response received from the server. |
GetCustomFieldAsync(GetCustomFieldRequest, CallOptions)
API to retrieve a CustomField
object.
Declaration
public virtual AsyncUnaryCall<CustomField> GetCustomFieldAsync(GetCustomFieldRequest 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. |
GetCustomFieldAsync(GetCustomFieldRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a CustomField
object.
Declaration
public virtual AsyncUnaryCall<CustomField> GetCustomFieldAsync(GetCustomFieldRequest 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. |
ListCustomFields(ListCustomFieldsRequest, CallOptions)
API to retrieve a list of CustomField
objects.
Declaration
public virtual ListCustomFieldsResponse ListCustomFields(ListCustomFieldsRequest 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. |
ListCustomFields(ListCustomFieldsRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a list of CustomField
objects.
Declaration
public virtual ListCustomFieldsResponse ListCustomFields(ListCustomFieldsRequest 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. |
ListCustomFieldsAsync(ListCustomFieldsRequest, CallOptions)
API to retrieve a list of CustomField
objects.
Declaration
public virtual AsyncUnaryCall<ListCustomFieldsResponse> ListCustomFieldsAsync(ListCustomFieldsRequest 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. |
ListCustomFieldsAsync(ListCustomFieldsRequest, Metadata, DateTime?, CancellationToken)
API to retrieve a list of CustomField
objects.
Declaration
public virtual AsyncUnaryCall<ListCustomFieldsResponse> ListCustomFieldsAsync(ListCustomFieldsRequest 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 CustomFieldService.CustomFieldServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
Client |
configuration |
Returns
Type | Description |
---|---|
Custom |