
com.google.api.ads.dfp.axis.v201508.ProposalCompanyAssociation 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.
/**
* ProposalCompanyAssociation.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.dfp.axis.v201508;
/**
* A {@code ProposalCompanyAssociation} represents a {@link Company}
* associated with the
* {@link Proposal} and a set of {@link Contact} objects
* belonging to the company.
*/
public class ProposalCompanyAssociation implements java.io.Serializable {
/* The unique ID of the {@link Company} associated with the {@link
* Proposal}.
* This attribute is required. */
private java.lang.Long companyId;
/* The association type of the {@link Company} and {@link Proposal}.
* This attribute is required. */
private com.google.api.ads.dfp.axis.v201508.ProposalCompanyAssociationType type;
/* List of unique IDs for {@link Contact} objects of the {@link
* Company}.
* This attribute is optional. */
private long[] contactIds;
public ProposalCompanyAssociation() {
}
public ProposalCompanyAssociation(
java.lang.Long companyId,
com.google.api.ads.dfp.axis.v201508.ProposalCompanyAssociationType type,
long[] contactIds) {
this.companyId = companyId;
this.type = type;
this.contactIds = contactIds;
}
/**
* Gets the companyId value for this ProposalCompanyAssociation.
*
* @return companyId * The unique ID of the {@link Company} associated with the {@link
* Proposal}.
* This attribute is required.
*/
public java.lang.Long getCompanyId() {
return companyId;
}
/**
* Sets the companyId value for this ProposalCompanyAssociation.
*
* @param companyId * The unique ID of the {@link Company} associated with the {@link
* Proposal}.
* This attribute is required.
*/
public void setCompanyId(java.lang.Long companyId) {
this.companyId = companyId;
}
/**
* Gets the type value for this ProposalCompanyAssociation.
*
* @return type * The association type of the {@link Company} and {@link Proposal}.
* This attribute is required.
*/
public com.google.api.ads.dfp.axis.v201508.ProposalCompanyAssociationType getType() {
return type;
}
/**
* Sets the type value for this ProposalCompanyAssociation.
*
* @param type * The association type of the {@link Company} and {@link Proposal}.
* This attribute is required.
*/
public void setType(com.google.api.ads.dfp.axis.v201508.ProposalCompanyAssociationType type) {
this.type = type;
}
/**
* Gets the contactIds value for this ProposalCompanyAssociation.
*
* @return contactIds * List of unique IDs for {@link Contact} objects of the {@link
* Company}.
* This attribute is optional.
*/
public long[] getContactIds() {
return contactIds;
}
/**
* Sets the contactIds value for this ProposalCompanyAssociation.
*
* @param contactIds * List of unique IDs for {@link Contact} objects of the {@link
* Company}.
* This attribute is optional.
*/
public void setContactIds(long[] contactIds) {
this.contactIds = contactIds;
}
public long getContactIds(int i) {
return this.contactIds[i];
}
public void setContactIds(int i, long _value) {
this.contactIds[i] = _value;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof ProposalCompanyAssociation)) return false;
ProposalCompanyAssociation other = (ProposalCompanyAssociation) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.companyId==null && other.getCompanyId()==null) ||
(this.companyId!=null &&
this.companyId.equals(other.getCompanyId()))) &&
((this.type==null && other.getType()==null) ||
(this.type!=null &&
this.type.equals(other.getType()))) &&
((this.contactIds==null && other.getContactIds()==null) ||
(this.contactIds!=null &&
java.util.Arrays.equals(this.contactIds, other.getContactIds())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getCompanyId() != null) {
_hashCode += getCompanyId().hashCode();
}
if (getType() != null) {
_hashCode += getType().hashCode();
}
if (getContactIds() != null) {
for (int i=0;
i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy