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\CloudRetail;
|
---|
19 |
|
---|
20 | class GoogleCloudRetailV2Rule extends \Google\Model
|
---|
21 | {
|
---|
22 | protected $boostActionType = GoogleCloudRetailV2RuleBoostAction::class;
|
---|
23 | protected $boostActionDataType = '';
|
---|
24 | protected $conditionType = GoogleCloudRetailV2Condition::class;
|
---|
25 | protected $conditionDataType = '';
|
---|
26 | protected $doNotAssociateActionType = GoogleCloudRetailV2RuleDoNotAssociateAction::class;
|
---|
27 | protected $doNotAssociateActionDataType = '';
|
---|
28 | protected $filterActionType = GoogleCloudRetailV2RuleFilterAction::class;
|
---|
29 | protected $filterActionDataType = '';
|
---|
30 | protected $forceReturnFacetActionType = GoogleCloudRetailV2RuleForceReturnFacetAction::class;
|
---|
31 | protected $forceReturnFacetActionDataType = '';
|
---|
32 | protected $ignoreActionType = GoogleCloudRetailV2RuleIgnoreAction::class;
|
---|
33 | protected $ignoreActionDataType = '';
|
---|
34 | protected $onewaySynonymsActionType = GoogleCloudRetailV2RuleOnewaySynonymsAction::class;
|
---|
35 | protected $onewaySynonymsActionDataType = '';
|
---|
36 | protected $redirectActionType = GoogleCloudRetailV2RuleRedirectAction::class;
|
---|
37 | protected $redirectActionDataType = '';
|
---|
38 | protected $removeFacetActionType = GoogleCloudRetailV2RuleRemoveFacetAction::class;
|
---|
39 | protected $removeFacetActionDataType = '';
|
---|
40 | protected $replacementActionType = GoogleCloudRetailV2RuleReplacementAction::class;
|
---|
41 | protected $replacementActionDataType = '';
|
---|
42 | protected $twowaySynonymsActionType = GoogleCloudRetailV2RuleTwowaySynonymsAction::class;
|
---|
43 | protected $twowaySynonymsActionDataType = '';
|
---|
44 |
|
---|
45 | /**
|
---|
46 | * @param GoogleCloudRetailV2RuleBoostAction
|
---|
47 | */
|
---|
48 | public function setBoostAction(GoogleCloudRetailV2RuleBoostAction $boostAction)
|
---|
49 | {
|
---|
50 | $this->boostAction = $boostAction;
|
---|
51 | }
|
---|
52 | /**
|
---|
53 | * @return GoogleCloudRetailV2RuleBoostAction
|
---|
54 | */
|
---|
55 | public function getBoostAction()
|
---|
56 | {
|
---|
57 | return $this->boostAction;
|
---|
58 | }
|
---|
59 | /**
|
---|
60 | * @param GoogleCloudRetailV2Condition
|
---|
61 | */
|
---|
62 | public function setCondition(GoogleCloudRetailV2Condition $condition)
|
---|
63 | {
|
---|
64 | $this->condition = $condition;
|
---|
65 | }
|
---|
66 | /**
|
---|
67 | * @return GoogleCloudRetailV2Condition
|
---|
68 | */
|
---|
69 | public function getCondition()
|
---|
70 | {
|
---|
71 | return $this->condition;
|
---|
72 | }
|
---|
73 | /**
|
---|
74 | * @param GoogleCloudRetailV2RuleDoNotAssociateAction
|
---|
75 | */
|
---|
76 | public function setDoNotAssociateAction(GoogleCloudRetailV2RuleDoNotAssociateAction $doNotAssociateAction)
|
---|
77 | {
|
---|
78 | $this->doNotAssociateAction = $doNotAssociateAction;
|
---|
79 | }
|
---|
80 | /**
|
---|
81 | * @return GoogleCloudRetailV2RuleDoNotAssociateAction
|
---|
82 | */
|
---|
83 | public function getDoNotAssociateAction()
|
---|
84 | {
|
---|
85 | return $this->doNotAssociateAction;
|
---|
86 | }
|
---|
87 | /**
|
---|
88 | * @param GoogleCloudRetailV2RuleFilterAction
|
---|
89 | */
|
---|
90 | public function setFilterAction(GoogleCloudRetailV2RuleFilterAction $filterAction)
|
---|
91 | {
|
---|
92 | $this->filterAction = $filterAction;
|
---|
93 | }
|
---|
94 | /**
|
---|
95 | * @return GoogleCloudRetailV2RuleFilterAction
|
---|
96 | */
|
---|
97 | public function getFilterAction()
|
---|
98 | {
|
---|
99 | return $this->filterAction;
|
---|
100 | }
|
---|
101 | /**
|
---|
102 | * @param GoogleCloudRetailV2RuleForceReturnFacetAction
|
---|
103 | */
|
---|
104 | public function setForceReturnFacetAction(GoogleCloudRetailV2RuleForceReturnFacetAction $forceReturnFacetAction)
|
---|
105 | {
|
---|
106 | $this->forceReturnFacetAction = $forceReturnFacetAction;
|
---|
107 | }
|
---|
108 | /**
|
---|
109 | * @return GoogleCloudRetailV2RuleForceReturnFacetAction
|
---|
110 | */
|
---|
111 | public function getForceReturnFacetAction()
|
---|
112 | {
|
---|
113 | return $this->forceReturnFacetAction;
|
---|
114 | }
|
---|
115 | /**
|
---|
116 | * @param GoogleCloudRetailV2RuleIgnoreAction
|
---|
117 | */
|
---|
118 | public function setIgnoreAction(GoogleCloudRetailV2RuleIgnoreAction $ignoreAction)
|
---|
119 | {
|
---|
120 | $this->ignoreAction = $ignoreAction;
|
---|
121 | }
|
---|
122 | /**
|
---|
123 | * @return GoogleCloudRetailV2RuleIgnoreAction
|
---|
124 | */
|
---|
125 | public function getIgnoreAction()
|
---|
126 | {
|
---|
127 | return $this->ignoreAction;
|
---|
128 | }
|
---|
129 | /**
|
---|
130 | * @param GoogleCloudRetailV2RuleOnewaySynonymsAction
|
---|
131 | */
|
---|
132 | public function setOnewaySynonymsAction(GoogleCloudRetailV2RuleOnewaySynonymsAction $onewaySynonymsAction)
|
---|
133 | {
|
---|
134 | $this->onewaySynonymsAction = $onewaySynonymsAction;
|
---|
135 | }
|
---|
136 | /**
|
---|
137 | * @return GoogleCloudRetailV2RuleOnewaySynonymsAction
|
---|
138 | */
|
---|
139 | public function getOnewaySynonymsAction()
|
---|
140 | {
|
---|
141 | return $this->onewaySynonymsAction;
|
---|
142 | }
|
---|
143 | /**
|
---|
144 | * @param GoogleCloudRetailV2RuleRedirectAction
|
---|
145 | */
|
---|
146 | public function setRedirectAction(GoogleCloudRetailV2RuleRedirectAction $redirectAction)
|
---|
147 | {
|
---|
148 | $this->redirectAction = $redirectAction;
|
---|
149 | }
|
---|
150 | /**
|
---|
151 | * @return GoogleCloudRetailV2RuleRedirectAction
|
---|
152 | */
|
---|
153 | public function getRedirectAction()
|
---|
154 | {
|
---|
155 | return $this->redirectAction;
|
---|
156 | }
|
---|
157 | /**
|
---|
158 | * @param GoogleCloudRetailV2RuleRemoveFacetAction
|
---|
159 | */
|
---|
160 | public function setRemoveFacetAction(GoogleCloudRetailV2RuleRemoveFacetAction $removeFacetAction)
|
---|
161 | {
|
---|
162 | $this->removeFacetAction = $removeFacetAction;
|
---|
163 | }
|
---|
164 | /**
|
---|
165 | * @return GoogleCloudRetailV2RuleRemoveFacetAction
|
---|
166 | */
|
---|
167 | public function getRemoveFacetAction()
|
---|
168 | {
|
---|
169 | return $this->removeFacetAction;
|
---|
170 | }
|
---|
171 | /**
|
---|
172 | * @param GoogleCloudRetailV2RuleReplacementAction
|
---|
173 | */
|
---|
174 | public function setReplacementAction(GoogleCloudRetailV2RuleReplacementAction $replacementAction)
|
---|
175 | {
|
---|
176 | $this->replacementAction = $replacementAction;
|
---|
177 | }
|
---|
178 | /**
|
---|
179 | * @return GoogleCloudRetailV2RuleReplacementAction
|
---|
180 | */
|
---|
181 | public function getReplacementAction()
|
---|
182 | {
|
---|
183 | return $this->replacementAction;
|
---|
184 | }
|
---|
185 | /**
|
---|
186 | * @param GoogleCloudRetailV2RuleTwowaySynonymsAction
|
---|
187 | */
|
---|
188 | public function setTwowaySynonymsAction(GoogleCloudRetailV2RuleTwowaySynonymsAction $twowaySynonymsAction)
|
---|
189 | {
|
---|
190 | $this->twowaySynonymsAction = $twowaySynonymsAction;
|
---|
191 | }
|
---|
192 | /**
|
---|
193 | * @return GoogleCloudRetailV2RuleTwowaySynonymsAction
|
---|
194 | */
|
---|
195 | public function getTwowaySynonymsAction()
|
---|
196 | {
|
---|
197 | return $this->twowaySynonymsAction;
|
---|
198 | }
|
---|
199 | }
|
---|
200 |
|
---|
201 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
202 | class_alias(GoogleCloudRetailV2Rule::class, 'Google_Service_CloudRetail_GoogleCloudRetailV2Rule');
|
---|