media-cloud-sync
/
includes
/
sdk
/
google
/
google
/
common-protos
/
src
/
Api
/
LabelDescriptor.php
LabelDescriptor.php in Media Cloud Sync 1.2.0, at includes/sdk/google/google/common-protos/src/Api/LabelDescriptor.php
| 1 | <?php |
| 2 | |
| 3 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 | # source: google/api/label.proto |
| 5 | namespace Dudlewebs\WPMCS\Google\Api; |
| 6 | |
| 7 | use Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType; |
| 8 | use Dudlewebs\WPMCS\Google\Protobuf\Internal\RepeatedField; |
| 9 | use Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBUtil; |
| 10 | /** |
| 11 | * A description of a label. |
| 12 | * |
| 13 | * Generated from protobuf message <code>google.api.LabelDescriptor</code> |
| 14 | */ |
| 15 | class LabelDescriptor extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message |
| 16 | { |
| 17 | /** |
| 18 | * The label key. |
| 19 | * |
| 20 | * Generated from protobuf field <code>string key = 1;</code> |
| 21 | */ |
| 22 | protected $key = ''; |
| 23 | /** |
| 24 | * The type of data that can be assigned to the label. |
| 25 | * |
| 26 | * Generated from protobuf field <code>.google.api.LabelDescriptor.ValueType value_type = 2;</code> |
| 27 | */ |
| 28 | protected $value_type = 0; |
| 29 | /** |
| 30 | * A human-readable description for the label. |
| 31 | * |
| 32 | * Generated from protobuf field <code>string description = 3;</code> |
| 33 | */ |
| 34 | protected $description = ''; |
| 35 | /** |
| 36 | * Constructor. |
| 37 | * |
| 38 | * @param array $data { |
| 39 | * Optional. Data for populating the Message object. |
| 40 | * |
| 41 | * @type string $key |
| 42 | * The label key. |
| 43 | * @type int $value_type |
| 44 | * The type of data that can be assigned to the label. |
| 45 | * @type string $description |
| 46 | * A human-readable description for the label. |
| 47 | * } |
| 48 | */ |
| 49 | public function __construct($data = NULL) |
| 50 | { |
| 51 | \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Label::initOnce(); |
| 52 | parent::__construct($data); |
| 53 | } |
| 54 | /** |
| 55 | * The label key. |
| 56 | * |
| 57 | * Generated from protobuf field <code>string key = 1;</code> |
| 58 | * @return string |
| 59 | */ |
| 60 | public function getKey() |
| 61 | { |
| 62 | return $this->key; |
| 63 | } |
| 64 | /** |
| 65 | * The label key. |
| 66 | * |
| 67 | * Generated from protobuf field <code>string key = 1;</code> |
| 68 | * @param string $var |
| 69 | * @return $this |
| 70 | */ |
| 71 | public function setKey($var) |
| 72 | { |
| 73 | GPBUtil::checkString($var, True); |
| 74 | $this->key = $var; |
| 75 | return $this; |
| 76 | } |
| 77 | /** |
| 78 | * The type of data that can be assigned to the label. |
| 79 | * |
| 80 | * Generated from protobuf field <code>.google.api.LabelDescriptor.ValueType value_type = 2;</code> |
| 81 | * @return int |
| 82 | */ |
| 83 | public function getValueType() |
| 84 | { |
| 85 | return $this->value_type; |
| 86 | } |
| 87 | /** |
| 88 | * The type of data that can be assigned to the label. |
| 89 | * |
| 90 | * Generated from protobuf field <code>.google.api.LabelDescriptor.ValueType value_type = 2;</code> |
| 91 | * @param int $var |
| 92 | * @return $this |
| 93 | */ |
| 94 | public function setValueType($var) |
| 95 | { |
| 96 | GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\Google\Api\LabelDescriptor\ValueType::class); |
| 97 | $this->value_type = $var; |
| 98 | return $this; |
| 99 | } |
| 100 | /** |
| 101 | * A human-readable description for the label. |
| 102 | * |
| 103 | * Generated from protobuf field <code>string description = 3;</code> |
| 104 | * @return string |
| 105 | */ |
| 106 | public function getDescription() |
| 107 | { |
| 108 | return $this->description; |
| 109 | } |
| 110 | /** |
| 111 | * A human-readable description for the label. |
| 112 | * |
| 113 | * Generated from protobuf field <code>string description = 3;</code> |
| 114 | * @param string $var |
| 115 | * @return $this |
| 116 | */ |
| 117 | public function setDescription($var) |
| 118 | { |
| 119 | GPBUtil::checkString($var, True); |
| 120 | $this->description = $var; |
| 121 | return $this; |
| 122 | } |
| 123 | } |
| 124 |