NAME
Google::Cloud::Retail::V2alpha::Branch - Compiled Protocol Buffers messages for google/cloud/retail/v2alpha/branch.proto
SYNOPSIS
use Google::Cloud::Retail::V2alpha::Branch;
my $msg = Google::Cloud::Retail::V2alpha::Branch::Branch->new({
name => $name,
display_name => $display_name,
is_default => $is_default,
last_product_import_time => $last_product_import_time,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Retail::V2alpha::Branch::Branch->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/retail/v2alpha/branch.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Retail::V2alpha::Branch::Branch
A data branch that stores all instances of [Product][google.cloud.retail.v2alpha.Product]s.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringImmutable. Full resource name of the branch, such as `projects/*/locations/global/catalogs/default_catalog/branches/branch_id`.
$msg->display_name()/$msg->display_name($value)Type:
StringOutput only. Human readable name of the branch to display in the UI.
$msg->is_default()/$msg->is_default($value)Type:
BoolOutput only. Indicates whether this branch is set as the default branch of its parent catalog.
$msg->last_product_import_time()/$msg->last_product_import_time($value)Type:
Message(Google::Protobuf::Timestamp::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.
$msg->product_count_stats()/$msg->product_count_stats($value)Type:
Message(Google::Cloud::Retail::V2alpha::Branch::Branch::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.
$msg->quality_metrics()/$msg->quality_metrics($value)Type:
Message(Google::Cloud::Retail::V2alpha::Branch::Branch::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.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Retail::V2alpha::Branch::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.