Struct google_api_proto::google::cloud::retail::v2alpha::ImportProductsRequest
source · pub struct ImportProductsRequest {
pub parent: String,
pub request_id: String,
pub input_config: Option<ProductInputConfig>,
pub errors_config: Option<ImportErrorsConfig>,
pub update_mask: Option<FieldMask>,
pub reconciliation_mode: i32,
pub notification_pubsub_topic: String,
pub skip_default_branch_protection: bool,
}
Expand description
Request message for Import methods.
Fields§
§parent: 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.
request_id: String
Deprecated. This field has no effect.
input_config: Option<ProductInputConfig>
Required. The desired input location of the data.
errors_config: Option<ImportErrorsConfig>
The desired location of errors incurred during the Import.
update_mask: Option<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.
reconciliation_mode: i32
The mode of reconciliation between existing products and the products to be imported. Defaults to [ReconciliationMode.INCREMENTAL][google.cloud.retail.v2alpha.ImportProductsRequest.ReconciliationMode.INCREMENTAL].
notification_pubsub_topic: 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][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.v2alpha.ImportProductsRequest.parent].
Make sure that both
cloud-retail-customer-data-access@system.gserviceaccount.com
and
service-<project number>@gcp-sa-retail.iam.gserviceaccount.com
have the pubsub.topics.publish
IAM permission on the topic.
Only supported when
[ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode]
is set to FULL
.
skip_default_branch_protection: bool
If true, this performs the FULL import even if it would delete a large proportion of the products in the default branch, which could potentially cause outages if you have live predict/search traffic.
Only supported when
[ImportProductsRequest.reconciliation_mode][google.cloud.retail.v2alpha.ImportProductsRequest.reconciliation_mode]
is set to FULL
.
Implementations§
source§impl ImportProductsRequest
impl ImportProductsRequest
sourcepub fn reconciliation_mode(&self) -> ReconciliationMode
pub fn reconciliation_mode(&self) -> ReconciliationMode
Returns the enum value of reconciliation_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_reconciliation_mode(&mut self, value: ReconciliationMode)
pub fn set_reconciliation_mode(&mut self, value: ReconciliationMode)
Sets reconciliation_mode
to the provided enum value.
Trait Implementations§
source§impl Clone for ImportProductsRequest
impl Clone for ImportProductsRequest
source§fn clone(&self) -> ImportProductsRequest
fn clone(&self) -> ImportProductsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImportProductsRequest
impl Debug for ImportProductsRequest
source§impl Default for ImportProductsRequest
impl Default for ImportProductsRequest
source§impl Message for ImportProductsRequest
impl Message for ImportProductsRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ImportProductsRequest
impl PartialEq for ImportProductsRequest
source§fn eq(&self, other: &ImportProductsRequest) -> bool
fn eq(&self, other: &ImportProductsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ImportProductsRequest
Auto Trait Implementations§
impl Freeze for ImportProductsRequest
impl RefUnwindSafe for ImportProductsRequest
impl Send for ImportProductsRequest
impl Sync for ImportProductsRequest
impl Unpin for ImportProductsRequest
impl UnwindSafe for ImportProductsRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request