1 | <?php
|
---|
2 | /*
|
---|
3 | * Copyright 2014 Google Inc.
|
---|
4 | *
|
---|
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
7 | * the License at
|
---|
8 | *
|
---|
9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 | *
|
---|
11 | * Unless required by applicable law or agreed to in writing, software
|
---|
12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
14 | * License for the specific language governing permissions and limitations under
|
---|
15 | * the License.
|
---|
16 | */
|
---|
17 |
|
---|
18 | namespace Google\Service\ServiceControl;
|
---|
19 |
|
---|
20 | class AttributeContext extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'extensions';
|
---|
23 | protected $apiType = Api::class;
|
---|
24 | protected $apiDataType = '';
|
---|
25 | protected $destinationType = Peer::class;
|
---|
26 | protected $destinationDataType = '';
|
---|
27 | /**
|
---|
28 | * @var array[]
|
---|
29 | */
|
---|
30 | public $extensions;
|
---|
31 | protected $originType = Peer::class;
|
---|
32 | protected $originDataType = '';
|
---|
33 | protected $requestType = Request::class;
|
---|
34 | protected $requestDataType = '';
|
---|
35 | protected $resourceType = ServicecontrolResource::class;
|
---|
36 | protected $resourceDataType = '';
|
---|
37 | protected $responseType = Response::class;
|
---|
38 | protected $responseDataType = '';
|
---|
39 | protected $sourceType = Peer::class;
|
---|
40 | protected $sourceDataType = '';
|
---|
41 |
|
---|
42 | /**
|
---|
43 | * @param Api
|
---|
44 | */
|
---|
45 | public function setApi(Api $api)
|
---|
46 | {
|
---|
47 | $this->api = $api;
|
---|
48 | }
|
---|
49 | /**
|
---|
50 | * @return Api
|
---|
51 | */
|
---|
52 | public function getApi()
|
---|
53 | {
|
---|
54 | return $this->api;
|
---|
55 | }
|
---|
56 | /**
|
---|
57 | * @param Peer
|
---|
58 | */
|
---|
59 | public function setDestination(Peer $destination)
|
---|
60 | {
|
---|
61 | $this->destination = $destination;
|
---|
62 | }
|
---|
63 | /**
|
---|
64 | * @return Peer
|
---|
65 | */
|
---|
66 | public function getDestination()
|
---|
67 | {
|
---|
68 | return $this->destination;
|
---|
69 | }
|
---|
70 | /**
|
---|
71 | * @param array[]
|
---|
72 | */
|
---|
73 | public function setExtensions($extensions)
|
---|
74 | {
|
---|
75 | $this->extensions = $extensions;
|
---|
76 | }
|
---|
77 | /**
|
---|
78 | * @return array[]
|
---|
79 | */
|
---|
80 | public function getExtensions()
|
---|
81 | {
|
---|
82 | return $this->extensions;
|
---|
83 | }
|
---|
84 | /**
|
---|
85 | * @param Peer
|
---|
86 | */
|
---|
87 | public function setOrigin(Peer $origin)
|
---|
88 | {
|
---|
89 | $this->origin = $origin;
|
---|
90 | }
|
---|
91 | /**
|
---|
92 | * @return Peer
|
---|
93 | */
|
---|
94 | public function getOrigin()
|
---|
95 | {
|
---|
96 | return $this->origin;
|
---|
97 | }
|
---|
98 | /**
|
---|
99 | * @param Request
|
---|
100 | */
|
---|
101 | public function setRequest(Request $request)
|
---|
102 | {
|
---|
103 | $this->request = $request;
|
---|
104 | }
|
---|
105 | /**
|
---|
106 | * @return Request
|
---|
107 | */
|
---|
108 | public function getRequest()
|
---|
109 | {
|
---|
110 | return $this->request;
|
---|
111 | }
|
---|
112 | /**
|
---|
113 | * @param ServicecontrolResource
|
---|
114 | */
|
---|
115 | public function setResource(ServicecontrolResource $resource)
|
---|
116 | {
|
---|
117 | $this->resource = $resource;
|
---|
118 | }
|
---|
119 | /**
|
---|
120 | * @return ServicecontrolResource
|
---|
121 | */
|
---|
122 | public function getResource()
|
---|
123 | {
|
---|
124 | return $this->resource;
|
---|
125 | }
|
---|
126 | /**
|
---|
127 | * @param Response
|
---|
128 | */
|
---|
129 | public function setResponse(Response $response)
|
---|
130 | {
|
---|
131 | $this->response = $response;
|
---|
132 | }
|
---|
133 | /**
|
---|
134 | * @return Response
|
---|
135 | */
|
---|
136 | public function getResponse()
|
---|
137 | {
|
---|
138 | return $this->response;
|
---|
139 | }
|
---|
140 | /**
|
---|
141 | * @param Peer
|
---|
142 | */
|
---|
143 | public function setSource(Peer $source)
|
---|
144 | {
|
---|
145 | $this->source = $source;
|
---|
146 | }
|
---|
147 | /**
|
---|
148 | * @return Peer
|
---|
149 | */
|
---|
150 | public function getSource()
|
---|
151 | {
|
---|
152 | return $this->source;
|
---|
153 | }
|
---|
154 | }
|
---|
155 |
|
---|
156 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
157 | class_alias(AttributeContext::class, 'Google_Service_ServiceControl_AttributeContext');
|
---|