Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::ImportProductsRequest.
Request message for Import methods.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#errors_config
def errors_config() -> ::Google::Cloud::Retail::V2::ImportErrorsConfig
- (::Google::Cloud::Retail::V2::ImportErrorsConfig) — The desired location of errors incurred during the Import.
#errors_config=
def errors_config=(value) -> ::Google::Cloud::Retail::V2::ImportErrorsConfig
- value (::Google::Cloud::Retail::V2::ImportErrorsConfig) — The desired location of errors incurred during the Import.
- (::Google::Cloud::Retail::V2::ImportErrorsConfig) — The desired location of errors incurred during the Import.
#input_config
def input_config() -> ::Google::Cloud::Retail::V2::ProductInputConfig
- (::Google::Cloud::Retail::V2::ProductInputConfig) — Required. The desired input location of the data.
#input_config=
def input_config=(value) -> ::Google::Cloud::Retail::V2::ProductInputConfig
- value (::Google::Cloud::Retail::V2::ProductInputConfig) — Required. The desired input location of the data.
- (::Google::Cloud::Retail::V2::ProductInputConfig) — Required. The desired input location of the data.
#notification_pubsub_topic
def notification_pubsub_topic() -> ::String
-
(::String) — 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.
Format of the Pub/Sub topic is
projects/{project}/topics/{topic}
. It has to be within the same project as ImportProductsRequest.parent. Make sure that bothcloud-retail-customer-data-access@system.gserviceaccount.com
andservice-<project number>@gcp-sa-retail.iam.gserviceaccount.com
have thepubsub.topics.publish
IAM permission on the topic.Only supported when ImportProductsRequest.reconciliation_mode is set to
FULL
.
#notification_pubsub_topic=
def notification_pubsub_topic=(value) -> ::String
-
value (::String) — 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.
Format of the Pub/Sub topic is
projects/{project}/topics/{topic}
. It has to be within the same project as ImportProductsRequest.parent. Make sure that bothcloud-retail-customer-data-access@system.gserviceaccount.com
andservice-<project number>@gcp-sa-retail.iam.gserviceaccount.com
have thepubsub.topics.publish
IAM permission on the topic.Only supported when ImportProductsRequest.reconciliation_mode is set to
FULL
.
-
(::String) — 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.
Format of the Pub/Sub topic is
projects/{project}/topics/{topic}
. It has to be within the same project as ImportProductsRequest.parent. Make sure that bothcloud-retail-customer-data-access@system.gserviceaccount.com
andservice-<project number>@gcp-sa-retail.iam.gserviceaccount.com
have thepubsub.topics.publish
IAM permission on the topic.Only supported when ImportProductsRequest.reconciliation_mode is set to
FULL
.
#parent
def parent() -> ::String
-
(::String) — 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.
#parent=
def parent=(value) -> ::String
-
value (::String) — 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.
-
(::String) — 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.
#reconciliation_mode
def reconciliation_mode() -> ::Google::Cloud::Retail::V2::ImportProductsRequest::ReconciliationMode
- (::Google::Cloud::Retail::V2::ImportProductsRequest::ReconciliationMode) — The mode of reconciliation between existing products and the products to be imported. Defaults to ReconciliationMode.INCREMENTAL.
#reconciliation_mode=
def reconciliation_mode=(value) -> ::Google::Cloud::Retail::V2::ImportProductsRequest::ReconciliationMode
- value (::Google::Cloud::Retail::V2::ImportProductsRequest::ReconciliationMode) — The mode of reconciliation between existing products and the products to be imported. Defaults to ReconciliationMode.INCREMENTAL.
- (::Google::Cloud::Retail::V2::ImportProductsRequest::ReconciliationMode) — The mode of reconciliation between existing products and the products to be imported. Defaults to ReconciliationMode.INCREMENTAL.
#request_id
def request_id() -> ::String
- (::String) — Deprecated. This field has no effect.
#request_id=
def request_id=(value) -> ::String
- value (::String) — Deprecated. This field has no effect.
- (::String) — Deprecated. This field has no effect.
#update_mask
def update_mask() -> ::Google::Protobuf::FieldMask
-
(::Google::Protobuf::FieldMask) — Indicates which fields in the provided imported
products
to update. If not set, all fields are updated. If provided, only the existing product fields are updated. Missing products will not be created.
#update_mask=
def update_mask=(value) -> ::Google::Protobuf::FieldMask
-
value (::Google::Protobuf::FieldMask) — Indicates which fields in the provided imported
products
to update. If not set, all fields are updated. If provided, only the existing product fields are updated. Missing products will not be created.
-
(::Google::Protobuf::FieldMask) — Indicates which fields in the provided imported
products
to update. If not set, all fields are updated. If provided, only the existing product fields are updated. Missing products will not be created.