Class CatalogService.CatalogServiceClient
Client for CatalogService
Inheritance
Inherited Members
Namespace: Google.Cloud.Retail.V2
Assembly: Google.Cloud.Retail.V2.dll
Syntax
public class CatalogServiceClient : ClientBase<CatalogService.CatalogServiceClient>
Constructors
CatalogServiceClient()
Protected parameterless constructor to allow creation of test doubles.
Declaration
protected CatalogServiceClient()
CatalogServiceClient(CallInvoker)
Creates a new client for CatalogService that uses a custom CallInvoker
.
Declaration
public CatalogServiceClient(CallInvoker callInvoker)
Parameters
Type | Name | Description |
---|---|---|
CallInvoker | callInvoker | The callInvoker to use to make remote calls. |
CatalogServiceClient(ChannelBase)
Creates a new client for CatalogService
Declaration
public CatalogServiceClient(ChannelBase channel)
Parameters
Type | Name | Description |
---|---|---|
ChannelBase | channel | The channel to use to make remote calls. |
CatalogServiceClient(ClientBase.ClientBaseConfiguration)
Protected constructor to allow creation of configured clients.
Declaration
protected CatalogServiceClient(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration | The client configuration. |
Methods
ListCatalogs(ListCatalogsRequest, CallOptions)
Lists all the [Catalog][google.cloud.retail.v2.Catalog]s associated with the project.
Declaration
public virtual ListCatalogsResponse ListCatalogs(ListCatalogsRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ListCatalogsRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
ListCatalogsResponse | The response received from the server. |
ListCatalogs(ListCatalogsRequest, Metadata, Nullable<DateTime>, CancellationToken)
Lists all the [Catalog][google.cloud.retail.v2.Catalog]s associated with the project.
Declaration
public virtual ListCatalogsResponse ListCatalogs(ListCatalogsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
ListCatalogsRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
System.Nullable<System.DateTime> | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
System.Threading.CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
ListCatalogsResponse | The response received from the server. |
ListCatalogsAsync(ListCatalogsRequest, CallOptions)
Lists all the [Catalog][google.cloud.retail.v2.Catalog]s associated with the project.
Declaration
public virtual AsyncUnaryCall<ListCatalogsResponse> ListCatalogsAsync(ListCatalogsRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
ListCatalogsRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<ListCatalogsResponse> | The call object. |
ListCatalogsAsync(ListCatalogsRequest, Metadata, Nullable<DateTime>, CancellationToken)
Lists all the [Catalog][google.cloud.retail.v2.Catalog]s associated with the project.
Declaration
public virtual AsyncUnaryCall<ListCatalogsResponse> ListCatalogsAsync(ListCatalogsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
ListCatalogsRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
System.Nullable<System.DateTime> | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
System.Threading.CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<ListCatalogsResponse> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
Creates a new instance of client from given ClientBaseConfiguration
.
Declaration
protected override CatalogService.CatalogServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
ClientBase.ClientBaseConfiguration | configuration |
Returns
Type | Description |
---|---|
CatalogService.CatalogServiceClient |
Overrides
UpdateCatalog(UpdateCatalogRequest, CallOptions)
Updates the [Catalog][google.cloud.retail.v2.Catalog]s.
Declaration
public virtual Catalog UpdateCatalog(UpdateCatalogRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
UpdateCatalogRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
Catalog | The response received from the server. |
UpdateCatalog(UpdateCatalogRequest, Metadata, Nullable<DateTime>, CancellationToken)
Updates the [Catalog][google.cloud.retail.v2.Catalog]s.
Declaration
public virtual Catalog UpdateCatalog(UpdateCatalogRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
UpdateCatalogRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
System.Nullable<System.DateTime> | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
System.Threading.CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
Catalog | The response received from the server. |
UpdateCatalogAsync(UpdateCatalogRequest, CallOptions)
Updates the [Catalog][google.cloud.retail.v2.Catalog]s.
Declaration
public virtual AsyncUnaryCall<Catalog> UpdateCatalogAsync(UpdateCatalogRequest request, CallOptions options)
Parameters
Type | Name | Description |
---|---|---|
UpdateCatalogRequest | request | The request to send to the server. |
CallOptions | options | The options for the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Catalog> | The call object. |
UpdateCatalogAsync(UpdateCatalogRequest, Metadata, Nullable<DateTime>, CancellationToken)
Updates the [Catalog][google.cloud.retail.v2.Catalog]s.
Declaration
public virtual AsyncUnaryCall<Catalog> UpdateCatalogAsync(UpdateCatalogRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
UpdateCatalogRequest | request | The request to send to the server. |
Metadata | headers | The initial metadata to send with the call. This parameter is optional. |
System.Nullable<System.DateTime> | deadline | An optional deadline for the call. The call will be cancelled if deadline is hit. |
System.Threading.CancellationToken | cancellationToken | An optional token for canceling the call. |
Returns
Type | Description |
---|---|
AsyncUnaryCall<Catalog> | The call object. |