Struct google_api_proto::google::cloud::retail::v2alpha::PurgeProductsRequest
source · pub struct PurgeProductsRequest {
pub parent: String,
pub filter: String,
pub force: bool,
}
Expand description
Request message for PurgeProducts method.
Fields§
§parent: String
Required. The resource name of the branch under which the products are
created. The format is
projects/${projectId}/locations/global/catalogs/${catalogId}/branches/${branchId}
filter: String
Required. The filter string to specify the products to be deleted with a length limit of 5,000 characters.
Empty string filter is not allowed. “*” implies delete all items in a branch.
The eligible fields for filtering are:
availability
: Double quoted [Product.availability][google.cloud.retail.v2alpha.Product.availability] string.create_time
: in ISO 8601 “zulu” format.
Supported syntax:
-
Comparators (“>”, “<”, “>=”, “<=”, “=”). Examples:
- create_time <= “2015-02-13T17:05:46Z”
- availability = “IN_STOCK”
-
Conjunctions (“AND”) Examples:
- create_time <= “2015-02-13T17:05:46Z” AND availability = “PREORDER”
-
Disjunctions (“OR”) Examples:
- create_time <= “2015-02-13T17:05:46Z” OR availability = “IN_STOCK”
-
Can support nested queries. Examples:
- (create_time <= “2015-02-13T17:05:46Z” AND availability = “PREORDER”) OR (create_time >= “2015-02-14T13:03:32Z” AND availability = “IN_STOCK”)
-
Filter Limits:
- Filter should not contain more than 6 conditions.
- Max nesting depth should not exceed 2 levels.
Examples queries:
- Delete back order products created before a timestamp. create_time <= “2015-02-13T17:05:46Z” OR availability = “BACKORDER”
force: bool
Actually perform the purge.
If force
is set to false, the method will return the expected purge count
without deleting any products.
Trait Implementations§
source§impl Clone for PurgeProductsRequest
impl Clone for PurgeProductsRequest
source§fn clone(&self) -> PurgeProductsRequest
fn clone(&self) -> PurgeProductsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PurgeProductsRequest
impl Debug for PurgeProductsRequest
source§impl Default for PurgeProductsRequest
impl Default for PurgeProductsRequest
source§impl Message for PurgeProductsRequest
impl Message for PurgeProductsRequest
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 PurgeProductsRequest
impl PartialEq for PurgeProductsRequest
source§fn eq(&self, other: &PurgeProductsRequest) -> bool
fn eq(&self, other: &PurgeProductsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PurgeProductsRequest
Auto Trait Implementations§
impl Freeze for PurgeProductsRequest
impl RefUnwindSafe for PurgeProductsRequest
impl Send for PurgeProductsRequest
impl Sync for PurgeProductsRequest
impl Unpin for PurgeProductsRequest
impl UnwindSafe for PurgeProductsRequest
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