com.google.api.ads.admanager.axis.v202311.DailyVolumeSettings Maven / Gradle / Ivy
Show all versions of dfp-axis Show documentation
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/**
* DailyVolumeSettings.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.admanager.axis.v202311;
/**
* Settings to specify daily ad opportunity counts that will be used
* as the expected future traffic
* volume for a forecast adjustment.
*
* For example: [10000, 20000, 5000] indicates expected
* traffic for the targeting specified on
* the parent traffic forecast segment of 10,000 ad opportunities
* for the first day, 20,000 ad
* opportunities for the second, and 5,000 for the third.
*/
public class DailyVolumeSettings implements java.io.Serializable {
/* The list of ad opportunity counts. Each value in this list
* represents the expected number of ad
* opportunities on the corresponding day of the adjustment
* date range.
*
*
The number of values provided must match the number
* of days in the adjustment date range,
* inclusive. For example, an adjustment date range of
* June 5-June 7 would need 3 values in this
* list, one for June 5, one for June 6, and one for
* June 7.
* This attribute is
* required. */
private long[] adOpportunityCounts;
public DailyVolumeSettings() {
}
public DailyVolumeSettings(
long[] adOpportunityCounts) {
this.adOpportunityCounts = adOpportunityCounts;
}
@Override
public String toString() {
return com.google.common.base.MoreObjects.toStringHelper(this.getClass())
.omitNullValues()
.add("adOpportunityCounts", getAdOpportunityCounts())
.toString();
}
/**
* Gets the adOpportunityCounts value for this DailyVolumeSettings.
*
* @return adOpportunityCounts * The list of ad opportunity counts. Each value in this list
* represents the expected number of ad
* opportunities on the corresponding day of the adjustment
* date range.
*
*
The number of values provided must match the number
* of days in the adjustment date range,
* inclusive. For example, an adjustment date range of
* June 5-June 7 would need 3 values in this
* list, one for June 5, one for June 6, and one for
* June 7.
* This attribute is
* required.
*/
public long[] getAdOpportunityCounts() {
return adOpportunityCounts;
}
/**
* Sets the adOpportunityCounts value for this DailyVolumeSettings.
*
* @param adOpportunityCounts * The list of ad opportunity counts. Each value in this list
* represents the expected number of ad
* opportunities on the corresponding day of the adjustment
* date range.
*
*
The number of values provided must match the number
* of days in the adjustment date range,
* inclusive. For example, an adjustment date range of
* June 5-June 7 would need 3 values in this
* list, one for June 5, one for June 6, and one for
* June 7.
* This attribute is
* required.
*/
public void setAdOpportunityCounts(long[] adOpportunityCounts) {
this.adOpportunityCounts = adOpportunityCounts;
}
public long getAdOpportunityCounts(int i) {
return this.adOpportunityCounts[i];
}
public void setAdOpportunityCounts(int i, long _value) {
this.adOpportunityCounts[i] = _value;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof DailyVolumeSettings)) return false;
DailyVolumeSettings other = (DailyVolumeSettings) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.adOpportunityCounts==null && other.getAdOpportunityCounts()==null) ||
(this.adOpportunityCounts!=null &&
java.util.Arrays.equals(this.adOpportunityCounts, other.getAdOpportunityCounts())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getAdOpportunityCounts() != null) {
for (int i=0;
i