com.google.api.ads.admanager.axis.v202311.CreativeSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dfp-axis Show documentation
Show all versions of dfp-axis Show documentation
Ad Manager specific Axis components.
// 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.
/**
* CreativeSet.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;
/**
* A creative set is comprised of a master creative and its companion
* creatives.
*/
public class CreativeSet implements java.io.Serializable {
/* Uniquely identifies the {@code CreativeSet}. This attribute
* is read-only and is assigned by
* Google when a creative set is created. */
private java.lang.Long id;
/* The name of the creative set. This attribute is required and
* has a maximum length of 255
* characters. */
private java.lang.String name;
/* The ID of the master creative associated with this creative
* set. This attribute is required. */
private java.lang.Long masterCreativeId;
/* The IDs of the companion creatives associated with this creative
* set. This attribute is
* required. */
private long[] companionCreativeIds;
/* The date and time this creative set was last modified. */
private com.google.api.ads.admanager.axis.v202311.DateTime lastModifiedDateTime;
public CreativeSet() {
}
public CreativeSet(
java.lang.Long id,
java.lang.String name,
java.lang.Long masterCreativeId,
long[] companionCreativeIds,
com.google.api.ads.admanager.axis.v202311.DateTime lastModifiedDateTime) {
this.id = id;
this.name = name;
this.masterCreativeId = masterCreativeId;
this.companionCreativeIds = companionCreativeIds;
this.lastModifiedDateTime = lastModifiedDateTime;
}
@Override
public String toString() {
return com.google.common.base.MoreObjects.toStringHelper(this.getClass())
.omitNullValues()
.add("companionCreativeIds", getCompanionCreativeIds())
.add("id", getId())
.add("lastModifiedDateTime", getLastModifiedDateTime())
.add("masterCreativeId", getMasterCreativeId())
.add("name", getName())
.toString();
}
/**
* Gets the id value for this CreativeSet.
*
* @return id * Uniquely identifies the {@code CreativeSet}. This attribute
* is read-only and is assigned by
* Google when a creative set is created.
*/
public java.lang.Long getId() {
return id;
}
/**
* Sets the id value for this CreativeSet.
*
* @param id * Uniquely identifies the {@code CreativeSet}. This attribute
* is read-only and is assigned by
* Google when a creative set is created.
*/
public void setId(java.lang.Long id) {
this.id = id;
}
/**
* Gets the name value for this CreativeSet.
*
* @return name * The name of the creative set. This attribute is required and
* has a maximum length of 255
* characters.
*/
public java.lang.String getName() {
return name;
}
/**
* Sets the name value for this CreativeSet.
*
* @param name * The name of the creative set. This attribute is required and
* has a maximum length of 255
* characters.
*/
public void setName(java.lang.String name) {
this.name = name;
}
/**
* Gets the masterCreativeId value for this CreativeSet.
*
* @return masterCreativeId * The ID of the master creative associated with this creative
* set. This attribute is required.
*/
public java.lang.Long getMasterCreativeId() {
return masterCreativeId;
}
/**
* Sets the masterCreativeId value for this CreativeSet.
*
* @param masterCreativeId * The ID of the master creative associated with this creative
* set. This attribute is required.
*/
public void setMasterCreativeId(java.lang.Long masterCreativeId) {
this.masterCreativeId = masterCreativeId;
}
/**
* Gets the companionCreativeIds value for this CreativeSet.
*
* @return companionCreativeIds * The IDs of the companion creatives associated with this creative
* set. This attribute is
* required.
*/
public long[] getCompanionCreativeIds() {
return companionCreativeIds;
}
/**
* Sets the companionCreativeIds value for this CreativeSet.
*
* @param companionCreativeIds * The IDs of the companion creatives associated with this creative
* set. This attribute is
* required.
*/
public void setCompanionCreativeIds(long[] companionCreativeIds) {
this.companionCreativeIds = companionCreativeIds;
}
public long getCompanionCreativeIds(int i) {
return this.companionCreativeIds[i];
}
public void setCompanionCreativeIds(int i, long _value) {
this.companionCreativeIds[i] = _value;
}
/**
* Gets the lastModifiedDateTime value for this CreativeSet.
*
* @return lastModifiedDateTime * The date and time this creative set was last modified.
*/
public com.google.api.ads.admanager.axis.v202311.DateTime getLastModifiedDateTime() {
return lastModifiedDateTime;
}
/**
* Sets the lastModifiedDateTime value for this CreativeSet.
*
* @param lastModifiedDateTime * The date and time this creative set was last modified.
*/
public void setLastModifiedDateTime(com.google.api.ads.admanager.axis.v202311.DateTime lastModifiedDateTime) {
this.lastModifiedDateTime = lastModifiedDateTime;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof CreativeSet)) return false;
CreativeSet other = (CreativeSet) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.id==null && other.getId()==null) ||
(this.id!=null &&
this.id.equals(other.getId()))) &&
((this.name==null && other.getName()==null) ||
(this.name!=null &&
this.name.equals(other.getName()))) &&
((this.masterCreativeId==null && other.getMasterCreativeId()==null) ||
(this.masterCreativeId!=null &&
this.masterCreativeId.equals(other.getMasterCreativeId()))) &&
((this.companionCreativeIds==null && other.getCompanionCreativeIds()==null) ||
(this.companionCreativeIds!=null &&
java.util.Arrays.equals(this.companionCreativeIds, other.getCompanionCreativeIds()))) &&
((this.lastModifiedDateTime==null && other.getLastModifiedDateTime()==null) ||
(this.lastModifiedDateTime!=null &&
this.lastModifiedDateTime.equals(other.getLastModifiedDateTime())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getId() != null) {
_hashCode += getId().hashCode();
}
if (getName() != null) {
_hashCode += getName().hashCode();
}
if (getMasterCreativeId() != null) {
_hashCode += getMasterCreativeId().hashCode();
}
if (getCompanionCreativeIds() != null) {
for (int i=0;
i