pub struct Branch {
pub name: String,
pub display_name: String,
pub is_default: bool,
pub last_product_import_time: Option<Timestamp>,
pub product_count_stats: Vec<ProductCountStatistic>,
pub quality_metrics: Vec<QualityMetric>,
}
Expand description
A data branch that stores [Product][google.cloud.retail.v2alpha.Product]s.
Fields§
§name: String
Immutable. Full resource name of the branch, such as
projects/*/locations/global/catalogs/default_catalog/branches/branch_id
.
display_name: String
Output only. Human readable name of the branch to display in the UI.
is_default: bool
Output only. Indicates whether this branch is set as the default branch of its parent catalog.
last_product_import_time: Option<Timestamp>
Output only. Timestamp of last import through [ProductService.ImportProducts][google.cloud.retail.v2alpha.ProductService.ImportProducts]. Empty value means no import has been made to this branch.
product_count_stats: Vec<ProductCountStatistic>
Output only. Statistics for number of products in the branch, provided for different [scopes][google.cloud.retail.v2alpha.Branch.ProductCountStatistic.ProductCountScope].
This field is not populated in [BranchView.BASIC][] view.
quality_metrics: Vec<QualityMetric>
Output only. The quality metrics measured among products of this branch.
See [QualityMetric.requirement_key][google.cloud.retail.v2alpha.Branch.QualityMetric.requirement_key] for supported metrics. Metrics could be missing if failed to retrieve.
This field is not populated in [BranchView.BASIC][] view.
Trait Implementations§
source§impl Message for Branch
impl Message for Branch
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 Branch
impl PartialEq for Branch
impl StructuralPartialEq for Branch
Auto Trait Implementations§
impl Freeze for Branch
impl RefUnwindSafe for Branch
impl Send for Branch
impl Sync for Branch
impl Unpin for Branch
impl UnwindSafe for Branch
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