Repository navigation
Expand file tree
/
Copy pathGetDefaultBranchRequest.php
More file actions
71 lines (62 loc) · 2.04 KB
/
Copy pathGetDefaultBranchRequest.php
File metadata and controls
71 lines (62 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/retail/v2/catalog_service.proto
namespace Google\Cloud\Retail\V2;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Request message to show which branch is currently the default branch.
*
* Generated from protobuf message <code>google.cloud.retail.v2.GetDefaultBranchRequest</code>
*/
class GetDefaultBranchRequest extends \Google\Protobuf\Internal\Message
{
/**
* The parent catalog resource name, such as
* `projects/*/locations/global/catalogs/default_catalog`.
*
* Generated from protobuf field <code>string catalog = 1 [(.google.api.resource_reference) = {</code>
*/
private $catalog = '';
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $catalog
* The parent catalog resource name, such as
* `projects/*/locations/global/catalogs/default_catalog`.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Retail\V2\CatalogService::initOnce();
parent::__construct($data);
}
/**
* The parent catalog resource name, such as
* `projects/*/locations/global/catalogs/default_catalog`.
*
* Generated from protobuf field <code>string catalog = 1 [(.google.api.resource_reference) = {</code>
* @return string
*/
public function getCatalog()
{
return $this->catalog;
}
/**
* The parent catalog resource name, such as
* `projects/*/locations/global/catalogs/default_catalog`.
*
* Generated from protobuf field <code>string catalog = 1 [(.google.api.resource_reference) = {</code>
* @param string $var
* @return $this
*/
public function setCatalog($var)
{
GPBUtil::checkString($var, True);
$this->catalog = $var;
return $this;
}
}