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
18namespace Google\Service\AdExchangeBuyer;
19
20class TargetingValue extends \Google\Model
21{
22  protected $creativeSizeValueType = TargetingValueCreativeSize::class;
23  protected $creativeSizeValueDataType = '';
24  protected $dayPartTargetingValueType = TargetingValueDayPartTargeting::class;
25  protected $dayPartTargetingValueDataType = '';
26  protected $demogAgeCriteriaValueType = TargetingValueDemogAgeCriteria::class;
27  protected $demogAgeCriteriaValueDataType = '';
28  protected $demogGenderCriteriaValueType = TargetingValueDemogGenderCriteria::class;
29  protected $demogGenderCriteriaValueDataType = '';
30  public $longValue;
31  protected $requestPlatformTargetingValueType = TargetingValueRequestPlatformTargeting::class;
32  protected $requestPlatformTargetingValueDataType = '';
33  public $stringValue;
34
35  /**
36   * @param TargetingValueCreativeSize
37   */
38  public function setCreativeSizeValue(TargetingValueCreativeSize $creativeSizeValue)
39  {
40    $this->creativeSizeValue = $creativeSizeValue;
41  }
42  /**
43   * @return TargetingValueCreativeSize
44   */
45  public function getCreativeSizeValue()
46  {
47    return $this->creativeSizeValue;
48  }
49  /**
50   * @param TargetingValueDayPartTargeting
51   */
52  public function setDayPartTargetingValue(TargetingValueDayPartTargeting $dayPartTargetingValue)
53  {
54    $this->dayPartTargetingValue = $dayPartTargetingValue;
55  }
56  /**
57   * @return TargetingValueDayPartTargeting
58   */
59  public function getDayPartTargetingValue()
60  {
61    return $this->dayPartTargetingValue;
62  }
63  /**
64   * @param TargetingValueDemogAgeCriteria
65   */
66  public function setDemogAgeCriteriaValue(TargetingValueDemogAgeCriteria $demogAgeCriteriaValue)
67  {
68    $this->demogAgeCriteriaValue = $demogAgeCriteriaValue;
69  }
70  /**
71   * @return TargetingValueDemogAgeCriteria
72   */
73  public function getDemogAgeCriteriaValue()
74  {
75    return $this->demogAgeCriteriaValue;
76  }
77  /**
78   * @param TargetingValueDemogGenderCriteria
79   */
80  public function setDemogGenderCriteriaValue(TargetingValueDemogGenderCriteria $demogGenderCriteriaValue)
81  {
82    $this->demogGenderCriteriaValue = $demogGenderCriteriaValue;
83  }
84  /**
85   * @return TargetingValueDemogGenderCriteria
86   */
87  public function getDemogGenderCriteriaValue()
88  {
89    return $this->demogGenderCriteriaValue;
90  }
91  public function setLongValue($longValue)
92  {
93    $this->longValue = $longValue;
94  }
95  public function getLongValue()
96  {
97    return $this->longValue;
98  }
99  /**
100   * @param TargetingValueRequestPlatformTargeting
101   */
102  public function setRequestPlatformTargetingValue(TargetingValueRequestPlatformTargeting $requestPlatformTargetingValue)
103  {
104    $this->requestPlatformTargetingValue = $requestPlatformTargetingValue;
105  }
106  /**
107   * @return TargetingValueRequestPlatformTargeting
108   */
109  public function getRequestPlatformTargetingValue()
110  {
111    return $this->requestPlatformTargetingValue;
112  }
113  public function setStringValue($stringValue)
114  {
115    $this->stringValue = $stringValue;
116  }
117  public function getStringValue()
118  {
119    return $this->stringValue;
120  }
121}
122
123// Adding a class alias for backwards compatibility with the previous class name.
124class_alias(TargetingValue::class, 'Google_Service_AdExchangeBuyer_TargetingValue');
125