Retail v2 API - Class ImportProductsRequest (2.5.0)

public sealed class ImportProductsRequest : IMessage<ImportProductsRequest>, IEquatable<ImportProductsRequest>, IDeepCloneable<ImportProductsRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Retail v2 API class ImportProductsRequest.

Request message for Import methods.

Inheritance

object > ImportProductsRequest

Namespace

GoogleCloudGoogle.Cloud.RetailV2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

ImportProductsRequest()

public ImportProductsRequest()

ImportProductsRequest(ImportProductsRequest)

public ImportProductsRequest(ImportProductsRequest other)
Parameter
NameDescription
otherImportProductsRequest

Properties

ErrorsConfig

public ImportErrorsConfig ErrorsConfig { get; set; }

The desired location of errors incurred during the Import.

Property Value
TypeDescription
ImportErrorsConfig

InputConfig

public ProductInputConfig InputConfig { get; set; }

Required. The desired input location of the data.

Property Value
TypeDescription
ProductInputConfig

NotificationPubsubTopic

public string NotificationPubsubTopic { get; set; }

Full Pub/Sub topic name for receiving notification. If this field is set, when the import is finished, a notification is sent to specified Pub/Sub topic. The message data is JSON string of a [Operation][google.longrunning.Operation].

Format of the Pub/Sub topic is projects/{project}/topics/{topic}. It has to be within the same project as [ImportProductsRequest.parent][google.cloud.retail.v2.ImportProductsRequest.parent]. Make sure that service-&lt;project number&gt;@gcp-sa-retail.iam.gserviceaccount.com has the pubsub.topics.publish IAM permission on the topic.

Property Value
TypeDescription
string

Parent

public string Parent { get; set; }

Required. projects/1234/locations/global/catalogs/default_catalog/branches/default_branch

If no updateMask is specified, requires products.create permission. If updateMask is specified, requires products.update permission.

Property Value
TypeDescription
string

ParentAsBranchName

public BranchName ParentAsBranchName { get; set; }

BranchName-typed view over the Parent resource name property.

Property Value
TypeDescription
BranchName

ReconciliationMode

public ImportProductsRequest.Types.ReconciliationMode ReconciliationMode { get; set; }

The mode of reconciliation between existing products and the products to be imported. Defaults to [ReconciliationMode.INCREMENTAL][google.cloud.retail.v2.ImportProductsRequest.ReconciliationMode.INCREMENTAL].

Property Value
TypeDescription
ImportProductsRequestTypesReconciliationMode

RequestId

[Obsolete]
public string RequestId { get; set; }

Deprecated. This field has no effect.

Property Value
TypeDescription
string

UpdateMask

public FieldMask UpdateMask { get; set; }

Indicates which fields in the provided imported products to update. If not set, all fields are updated.

Property Value
TypeDescription
FieldMask