| 1 |
<?php |
| 2 |
|
| 3 |
# Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 |
# source: google/api/http.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 |
* Defines the HTTP configuration for an API service. It contains a list of |
| 12 |
* [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method |
| 13 |
* to one or more HTTP REST API methods. |
| 14 |
* |
| 15 |
* Generated from protobuf message <code>google.api.Http</code> |
| 16 |
*/ |
| 17 |
class Http extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message |
| 18 |
{ |
| 19 |
/** |
| 20 |
* A list of HTTP configuration rules that apply to individual API methods. |
| 21 |
* **NOTE:** All service configuration rules follow "last one wins" order. |
| 22 |
* |
| 23 |
* Generated from protobuf field <code>repeated .google.api.HttpRule rules = 1;</code> |
| 24 |
*/ |
| 25 |
private $rules; |
| 26 |
/** |
| 27 |
* When set to true, URL path parameters will be fully URI-decoded except in |
| 28 |
* cases of single segment matches in reserved expansion, where "%2F" will be |
| 29 |
* left encoded. |
| 30 |
* The default behavior is to not decode RFC 6570 reserved characters in multi |
| 31 |
* segment matches. |
| 32 |
* |
| 33 |
* Generated from protobuf field <code>bool fully_decode_reserved_expansion = 2;</code> |
| 34 |
*/ |
| 35 |
protected $fully_decode_reserved_expansion = \false; |
| 36 |
/** |
| 37 |
* Constructor. |
| 38 |
* |
| 39 |
* @param array $data { |
| 40 |
* Optional. Data for populating the Message object. |
| 41 |
* |
| 42 |
* @type array<\Google\Api\HttpRule>|\Google\Protobuf\Internal\RepeatedField $rules |
| 43 |
* A list of HTTP configuration rules that apply to individual API methods. |
| 44 |
* **NOTE:** All service configuration rules follow "last one wins" order. |
| 45 |
* @type bool $fully_decode_reserved_expansion |
| 46 |
* When set to true, URL path parameters will be fully URI-decoded except in |
| 47 |
* cases of single segment matches in reserved expansion, where "%2F" will be |
| 48 |
* left encoded. |
| 49 |
* The default behavior is to not decode RFC 6570 reserved characters in multi |
| 50 |
* segment matches. |
| 51 |
* } |
| 52 |
*/ |
| 53 |
public function __construct($data = NULL) |
| 54 |
{ |
| 55 |
\Dudlewebs\WPMCS\GPBMetadata\Google\Api\Http::initOnce(); |
| 56 |
parent::__construct($data); |
| 57 |
} |
| 58 |
/** |
| 59 |
* A list of HTTP configuration rules that apply to individual API methods. |
| 60 |
* **NOTE:** All service configuration rules follow "last one wins" order. |
| 61 |
* |
| 62 |
* Generated from protobuf field <code>repeated .google.api.HttpRule rules = 1;</code> |
| 63 |
* @return \Google\Protobuf\Internal\RepeatedField |
| 64 |
*/ |
| 65 |
public function getRules() |
| 66 |
{ |
| 67 |
return $this->rules; |
| 68 |
} |
| 69 |
/** |
| 70 |
* A list of HTTP configuration rules that apply to individual API methods. |
| 71 |
* **NOTE:** All service configuration rules follow "last one wins" order. |
| 72 |
* |
| 73 |
* Generated from protobuf field <code>repeated .google.api.HttpRule rules = 1;</code> |
| 74 |
* @param array<\Google\Api\HttpRule>|\Google\Protobuf\Internal\RepeatedField $var |
| 75 |
* @return $this |
| 76 |
*/ |
| 77 |
public function setRules($var) |
| 78 |
{ |
| 79 |
$arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\HttpRule::class); |
| 80 |
$this->rules = $arr; |
| 81 |
return $this; |
| 82 |
} |
| 83 |
/** |
| 84 |
* When set to true, URL path parameters will be fully URI-decoded except in |
| 85 |
* cases of single segment matches in reserved expansion, where "%2F" will be |
| 86 |
* left encoded. |
| 87 |
* The default behavior is to not decode RFC 6570 reserved characters in multi |
| 88 |
* segment matches. |
| 89 |
* |
| 90 |
* Generated from protobuf field <code>bool fully_decode_reserved_expansion = 2;</code> |
| 91 |
* @return bool |
| 92 |
*/ |
| 93 |
public function getFullyDecodeReservedExpansion() |
| 94 |
{ |
| 95 |
return $this->fully_decode_reserved_expansion; |
| 96 |
} |
| 97 |
/** |
| 98 |
* When set to true, URL path parameters will be fully URI-decoded except in |
| 99 |
* cases of single segment matches in reserved expansion, where "%2F" will be |
| 100 |
* left encoded. |
| 101 |
* The default behavior is to not decode RFC 6570 reserved characters in multi |
| 102 |
* segment matches. |
| 103 |
* |
| 104 |
* Generated from protobuf field <code>bool fully_decode_reserved_expansion = 2;</code> |
| 105 |
* @param bool $var |
| 106 |
* @return $this |
| 107 |
*/ |
| 108 |
public function setFullyDecodeReservedExpansion($var) |
| 109 |
{ |
| 110 |
GPBUtil::checkBool($var); |
| 111 |
$this->fully_decode_reserved_expansion = $var; |
| 112 |
return $this; |
| 113 |
} |
| 114 |
} |
| 115 |
|