Service Client: Google::Cloud::Retail::V2alpha::BranchService::BranchServiceClient
Client stub representing the remote BranchService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to retail.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Retail::V2alpha::BranchService - Compiled Protocol Buffers messages for google/cloud/retail/v2alpha/branch_service.proto
SYNOPSIS
use Google::Cloud::Retail::V2alpha::BranchService;
my $msg = Google::Cloud::Retail::V2alpha::BranchService::ListBranchesRequest->new({
parent => $parent,
view => $view,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Retail::V2alpha::BranchService::ListBranchesRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/retail/v2alpha/branch_service.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::BranchService::ListBranchesRequest
Request for [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches] method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent catalog resource name.
$msg->view()/$msg->view($value)Type:
Enum(Google::Cloud::Retail::V2alpha::BranchView)The view to apply to the returned [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to [Branch.BranchView.BASIC] if unspecified. See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch] to find what fields are excluded from BASIC view.
Google::Cloud::Retail::V2alpha::BranchService::ListBranchesResponse
Response for [BranchService.ListBranches][google.cloud.retail.v2alpha.BranchService.ListBranches] method.
Inherits from Protobuf::Message.
Accessors
$msg->branches()/$msg->branches($value)Type:
Message(Google::Cloud::Retail::V2alpha::Branch::Branch)The Branches.
Google::Cloud::Retail::V2alpha::BranchService::GetBranchRequest
Request for [BranchService.GetBranch][google.cloud.retail.v2alpha.BranchService.GetBranch] method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the branch to retrieve. Format: `projects/*/locations/global/catalogs/default_catalog/branches/some_branch_id`.
"default_branch" can be used as a special branch_id, it returns the default branch that has been set for the catalog.
$msg->view()/$msg->view($value)Type:
Enum(Google::Cloud::Retail::V2alpha::BranchView)The view to apply to the returned [Branch][google.cloud.retail.v2alpha.Branch]. Defaults to [Branch.BranchView.BASIC] if unspecified. See documentation of fields of [Branch][google.cloud.retail.v2alpha.Branch] to find what fields are excluded from BASIC view.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Retail::V2alpha::BranchService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.