@@ -21,8 +21,7 @@ class EstimateABTestResponse extends AbstractModel implements ModelInterface, \A
2121 */
2222 protected static $ modelTypes = [
2323 'durationDays ' => 'int ' ,
24- 'controlSampleSize ' => 'int ' ,
25- 'experimentSampleSize ' => 'int ' ,
24+ 'sampleSizes ' => 'int[] ' ,
2625 ];
2726
2827 /**
@@ -32,8 +31,7 @@ class EstimateABTestResponse extends AbstractModel implements ModelInterface, \A
3231 */
3332 protected static $ modelFormats = [
3433 'durationDays ' => 'int64 ' ,
35- 'controlSampleSize ' => 'int64 ' ,
36- 'experimentSampleSize ' => 'int64 ' ,
34+ 'sampleSizes ' => 'int64 ' ,
3735 ];
3836
3937 /**
@@ -44,8 +42,7 @@ class EstimateABTestResponse extends AbstractModel implements ModelInterface, \A
4442 */
4543 protected static $ attributeMap = [
4644 'durationDays ' => 'durationDays ' ,
47- 'controlSampleSize ' => 'controlSampleSize ' ,
48- 'experimentSampleSize ' => 'experimentSampleSize ' ,
45+ 'sampleSizes ' => 'sampleSizes ' ,
4946 ];
5047
5148 /**
@@ -55,8 +52,7 @@ class EstimateABTestResponse extends AbstractModel implements ModelInterface, \A
5552 */
5653 protected static $ setters = [
5754 'durationDays ' => 'setDurationDays ' ,
58- 'controlSampleSize ' => 'setControlSampleSize ' ,
59- 'experimentSampleSize ' => 'setExperimentSampleSize ' ,
55+ 'sampleSizes ' => 'setSampleSizes ' ,
6056 ];
6157
6258 /**
@@ -66,8 +62,7 @@ class EstimateABTestResponse extends AbstractModel implements ModelInterface, \A
6662 */
6763 protected static $ getters = [
6864 'durationDays ' => 'getDurationDays ' ,
69- 'controlSampleSize ' => 'getControlSampleSize ' ,
70- 'experimentSampleSize ' => 'getExperimentSampleSize ' ,
65+ 'sampleSizes ' => 'getSampleSizes ' ,
7166 ];
7267
7368 /**
@@ -87,11 +82,8 @@ public function __construct(?array $data = null)
8782 if (isset ($ data ['durationDays ' ])) {
8883 $ this ->container ['durationDays ' ] = $ data ['durationDays ' ];
8984 }
90- if (isset ($ data ['controlSampleSize ' ])) {
91- $ this ->container ['controlSampleSize ' ] = $ data ['controlSampleSize ' ];
92- }
93- if (isset ($ data ['experimentSampleSize ' ])) {
94- $ this ->container ['experimentSampleSize ' ] = $ data ['experimentSampleSize ' ];
85+ if (isset ($ data ['sampleSizes ' ])) {
86+ $ this ->container ['sampleSizes ' ] = $ data ['sampleSizes ' ];
9587 }
9688 }
9789
@@ -192,49 +184,25 @@ public function setDurationDays($durationDays)
192184 }
193185
194186 /**
195- * Gets controlSampleSize.
196- *
197- * @return null|int
198- */
199- public function getControlSampleSize ()
200- {
201- return $ this ->container ['controlSampleSize ' ] ?? null ;
202- }
203-
204- /**
205- * Sets controlSampleSize.
187+ * Gets sampleSizes.
206188 *
207- * @param null|int $controlSampleSize number of tracked searches needed to be able to detect the configured effect for the control variant
208- *
209- * @return self
210- */
211- public function setControlSampleSize ($ controlSampleSize )
212- {
213- $ this ->container ['controlSampleSize ' ] = $ controlSampleSize ;
214-
215- return $ this ;
216- }
217-
218- /**
219- * Gets experimentSampleSize.
220- *
221- * @return null|int
189+ * @return null|int[]
222190 */
223- public function getExperimentSampleSize ()
191+ public function getSampleSizes ()
224192 {
225- return $ this ->container ['experimentSampleSize ' ] ?? null ;
193+ return $ this ->container ['sampleSizes ' ] ?? null ;
226194 }
227195
228196 /**
229- * Sets experimentSampleSize .
197+ * Sets sampleSizes .
230198 *
231- * @param null|int $experimentSampleSize number of tracked searches needed to be able to detect the configured effect for the experiment variant
199+ * @param null|int[] $sampleSizes Sample size estimates for each variant. The first element is the control variant. Each element is the estimated number of searches required to achieve the desired statistical significance.
232200 *
233201 * @return self
234202 */
235- public function setExperimentSampleSize ( $ experimentSampleSize )
203+ public function setSampleSizes ( $ sampleSizes )
236204 {
237- $ this ->container ['experimentSampleSize ' ] = $ experimentSampleSize ;
205+ $ this ->container ['sampleSizes ' ] = $ sampleSizes ;
238206
239207 return $ this ;
240208 }
0 commit comments