Struct google_api_proto::google::cloud::retail::v2alpha::model::PageOptimizationConfig
source · pub struct PageOptimizationConfig {
pub page_optimization_event_type: String,
pub panels: Vec<Panel>,
pub restriction: i32,
}
Expand description
The PageOptimizationConfig for model training.
This determines how many panels to optimize for, and which serving configs to consider for each panel. The purpose of this model is to optimize which [ServingConfig][google.cloud.retail.v2alpha.ServingConfig] to show on which panels in way that optimizes the visitors shopping journey.
Fields§
§page_optimization_event_type: String
Required. The type of [UserEvent][google.cloud.retail.v2alpha.UserEvent] this page optimization is shown for.
Each page has an associated event type - this will be the corresponding event type for the page that the page optimization model is used on.
Supported types:
add-to-cart
: Products being added to cart.detail-page-view
: Products detail page viewed.home-page-view
: Homepage viewedcategory-page-view
: Homepage viewedshopping-cart-page-view
: User viewing a shopping cart.
home-page-view
only allows models with type recommended-for-you
.
All other page_optimization_event_type allow all
[Model.types][google.cloud.retail.v2alpha.Model.type].
panels: Vec<Panel>
Required. A list of panel configurations.
Limit = 5.
restriction: i32
Optional. How to restrict results across panels e.g. can the same [ServingConfig][google.cloud.retail.v2alpha.ServingConfig] be shown on multiple panels at once.
If unspecified, default to UNIQUE_MODEL_RESTRICTION
.
Implementations§
source§impl PageOptimizationConfig
impl PageOptimizationConfig
sourcepub fn restriction(&self) -> Restriction
pub fn restriction(&self) -> Restriction
Returns the enum value of restriction
, or the default if the field is set to an invalid enum value.
sourcepub fn set_restriction(&mut self, value: Restriction)
pub fn set_restriction(&mut self, value: Restriction)
Sets restriction
to the provided enum value.
Trait Implementations§
source§impl Clone for PageOptimizationConfig
impl Clone for PageOptimizationConfig
source§fn clone(&self) -> PageOptimizationConfig
fn clone(&self) -> PageOptimizationConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PageOptimizationConfig
impl Debug for PageOptimizationConfig
source§impl Default for PageOptimizationConfig
impl Default for PageOptimizationConfig
source§impl Message for PageOptimizationConfig
impl Message for PageOptimizationConfig
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 PageOptimizationConfig
impl PartialEq for PageOptimizationConfig
source§fn eq(&self, other: &PageOptimizationConfig) -> bool
fn eq(&self, other: &PageOptimizationConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PageOptimizationConfig
Auto Trait Implementations§
impl Freeze for PageOptimizationConfig
impl RefUnwindSafe for PageOptimizationConfig
impl Send for PageOptimizationConfig
impl Sync for PageOptimizationConfig
impl Unpin for PageOptimizationConfig
impl UnwindSafe for PageOptimizationConfig
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