| 1 |
<?php |
| 2 |
|
| 3 |
# Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 |
# source: google/api/log.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 log type. Example in YAML format: |
| 12 |
* - name: library.googleapis.com/activity_history |
| 13 |
* description: The history of borrowing and returning library items. |
| 14 |
* display_name: Activity |
| 15 |
* labels: |
| 16 |
* - key: /customer_id |
| 17 |
* description: Identifier of a library customer |
| 18 |
* |
| 19 |
* Generated from protobuf message <code>google.api.LogDescriptor</code> |
| 20 |
*/ |
| 21 |
class LogDescriptor extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message |
| 22 |
{ |
| 23 |
/** |
| 24 |
* The name of the log. It must be less than 512 characters long and can |
| 25 |
* include the following characters: upper- and lower-case alphanumeric |
| 26 |
* characters [A-Za-z0-9], and punctuation characters including |
| 27 |
* slash, underscore, hyphen, period [/_-.]. |
| 28 |
* |
| 29 |
* Generated from protobuf field <code>string name = 1;</code> |
| 30 |
*/ |
| 31 |
protected $name = ''; |
| 32 |
/** |
| 33 |
* The set of labels that are available to describe a specific log entry. |
| 34 |
* Runtime requests that contain labels not specified here are |
| 35 |
* considered invalid. |
| 36 |
* |
| 37 |
* Generated from protobuf field <code>repeated .google.api.LabelDescriptor labels = 2;</code> |
| 38 |
*/ |
| 39 |
private $labels; |
| 40 |
/** |
| 41 |
* A human-readable description of this log. This information appears in |
| 42 |
* the documentation and can contain details. |
| 43 |
* |
| 44 |
* Generated from protobuf field <code>string description = 3;</code> |
| 45 |
*/ |
| 46 |
protected $description = ''; |
| 47 |
/** |
| 48 |
* The human-readable name for this log. This information appears on |
| 49 |
* the user interface and should be concise. |
| 50 |
* |
| 51 |
* Generated from protobuf field <code>string display_name = 4;</code> |
| 52 |
*/ |
| 53 |
protected $display_name = ''; |
| 54 |
/** |
| 55 |
* Constructor. |
| 56 |
* |
| 57 |
* @param array $data { |
| 58 |
* Optional. Data for populating the Message object. |
| 59 |
* |
| 60 |
* @type string $name |
| 61 |
* The name of the log. It must be less than 512 characters long and can |
| 62 |
* include the following characters: upper- and lower-case alphanumeric |
| 63 |
* characters [A-Za-z0-9], and punctuation characters including |
| 64 |
* slash, underscore, hyphen, period [/_-.]. |
| 65 |
* @type array<\Google\Api\LabelDescriptor>|\Google\Protobuf\Internal\RepeatedField $labels |
| 66 |
* The set of labels that are available to describe a specific log entry. |
| 67 |
* Runtime requests that contain labels not specified here are |
| 68 |
* considered invalid. |
| 69 |
* @type string $description |
| 70 |
* A human-readable description of this log. This information appears in |
| 71 |
* the documentation and can contain details. |
| 72 |
* @type string $display_name |
| 73 |
* The human-readable name for this log. This information appears on |
| 74 |
* the user interface and should be concise. |
| 75 |
* } |
| 76 |
*/ |
| 77 |
public function __construct($data = NULL) |
| 78 |
{ |
| 79 |
\Dudlewebs\WPMCS\GPBMetadata\Google\Api\Log::initOnce(); |
| 80 |
parent::__construct($data); |
| 81 |
} |
| 82 |
/** |
| 83 |
* The name of the log. It must be less than 512 characters long and can |
| 84 |
* include the following characters: upper- and lower-case alphanumeric |
| 85 |
* characters [A-Za-z0-9], and punctuation characters including |
| 86 |
* slash, underscore, hyphen, period [/_-.]. |
| 87 |
* |
| 88 |
* Generated from protobuf field <code>string name = 1;</code> |
| 89 |
* @return string |
| 90 |
*/ |
| 91 |
public function getName() |
| 92 |
{ |
| 93 |
return $this->name; |
| 94 |
} |
| 95 |
/** |
| 96 |
* The name of the log. It must be less than 512 characters long and can |
| 97 |
* include the following characters: upper- and lower-case alphanumeric |
| 98 |
* characters [A-Za-z0-9], and punctuation characters including |
| 99 |
* slash, underscore, hyphen, period [/_-.]. |
| 100 |
* |
| 101 |
* Generated from protobuf field <code>string name = 1;</code> |
| 102 |
* @param string $var |
| 103 |
* @return $this |
| 104 |
*/ |
| 105 |
public function setName($var) |
| 106 |
{ |
| 107 |
GPBUtil::checkString($var, True); |
| 108 |
$this->name = $var; |
| 109 |
return $this; |
| 110 |
} |
| 111 |
/** |
| 112 |
* The set of labels that are available to describe a specific log entry. |
| 113 |
* Runtime requests that contain labels not specified here are |
| 114 |
* considered invalid. |
| 115 |
* |
| 116 |
* Generated from protobuf field <code>repeated .google.api.LabelDescriptor labels = 2;</code> |
| 117 |
* @return \Google\Protobuf\Internal\RepeatedField |
| 118 |
*/ |
| 119 |
public function getLabels() |
| 120 |
{ |
| 121 |
return $this->labels; |
| 122 |
} |
| 123 |
/** |
| 124 |
* The set of labels that are available to describe a specific log entry. |
| 125 |
* Runtime requests that contain labels not specified here are |
| 126 |
* considered invalid. |
| 127 |
* |
| 128 |
* Generated from protobuf field <code>repeated .google.api.LabelDescriptor labels = 2;</code> |
| 129 |
* @param array<\Google\Api\LabelDescriptor>|\Google\Protobuf\Internal\RepeatedField $var |
| 130 |
* @return $this |
| 131 |
*/ |
| 132 |
public function setLabels($var) |
| 133 |
{ |
| 134 |
$arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\LabelDescriptor::class); |
| 135 |
$this->labels = $arr; |
| 136 |
return $this; |
| 137 |
} |
| 138 |
/** |
| 139 |
* A human-readable description of this log. This information appears in |
| 140 |
* the documentation and can contain details. |
| 141 |
* |
| 142 |
* Generated from protobuf field <code>string description = 3;</code> |
| 143 |
* @return string |
| 144 |
*/ |
| 145 |
public function getDescription() |
| 146 |
{ |
| 147 |
return $this->description; |
| 148 |
} |
| 149 |
/** |
| 150 |
* A human-readable description of this log. This information appears in |
| 151 |
* the documentation and can contain details. |
| 152 |
* |
| 153 |
* Generated from protobuf field <code>string description = 3;</code> |
| 154 |
* @param string $var |
| 155 |
* @return $this |
| 156 |
*/ |
| 157 |
public function setDescription($var) |
| 158 |
{ |
| 159 |
GPBUtil::checkString($var, True); |
| 160 |
$this->description = $var; |
| 161 |
return $this; |
| 162 |
} |
| 163 |
/** |
| 164 |
* The human-readable name for this log. This information appears on |
| 165 |
* the user interface and should be concise. |
| 166 |
* |
| 167 |
* Generated from protobuf field <code>string display_name = 4;</code> |
| 168 |
* @return string |
| 169 |
*/ |
| 170 |
public function getDisplayName() |
| 171 |
{ |
| 172 |
return $this->display_name; |
| 173 |
} |
| 174 |
/** |
| 175 |
* The human-readable name for this log. This information appears on |
| 176 |
* the user interface and should be concise. |
| 177 |
* |
| 178 |
* Generated from protobuf field <code>string display_name = 4;</code> |
| 179 |
* @param string $var |
| 180 |
* @return $this |
| 181 |
*/ |
| 182 |
public function setDisplayName($var) |
| 183 |
{ |
| 184 |
GPBUtil::checkString($var, True); |
| 185 |
$this->display_name = $var; |
| 186 |
return $this; |
| 187 |
} |
| 188 |
} |
| 189 |
|