// Copyright 2016 Google Inc. All Rights Reserved.
//
// 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.
package com.google.api.ads.dfp.jaxws.v201605;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
/**
*
* A {@code Company} represents an agency, a single advertiser or an entire
* advertising network.
*
*
* <p>Java class for Company complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="Company">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="type" type="{https://www.google.com/apis/ads/publisher/v201605}Company.Type" minOccurs="0"/>
* <element name="address" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="email" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="faxPhone" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="primaryPhone" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="externalId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="creditStatus" type="{https://www.google.com/apis/ads/publisher/v201605}Company.CreditStatus" minOccurs="0"/>
* <element name="settings" type="{https://www.google.com/apis/ads/publisher/v201605}CompanySettings" minOccurs="0"/>
* <element name="appliedLabels" type="{https://www.google.com/apis/ads/publisher/v201605}AppliedLabel" maxOccurs="unbounded" minOccurs="0"/>
* <element name="primaryContactId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
* <element name="appliedTeamIds" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded" minOccurs="0"/>
* <element name="thirdPartyCompanyId" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* <element name="lastModifiedDateTime" type="{https://www.google.com/apis/ads/publisher/v201605}DateTime" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Company", propOrder = {
"id",
"name",
"type",
"address",
"email",
"faxPhone",
"primaryPhone",
"externalId",
"comment",
"creditStatus",
"settings",
"appliedLabels",
"primaryContactId",
"appliedTeamIds",
"thirdPartyCompanyId",
"lastModifiedDateTime"
})
public class Company {
protected Long id;
protected String name;
@XmlSchemaType(name = "string")
protected CompanyType type;
protected String address;
protected String email;
protected String faxPhone;
protected String primaryPhone;
protected String externalId;
protected String comment;
@XmlSchemaType(name = "string")
protected CompanyCreditStatus creditStatus;
protected CompanySettings settings;
protected List<AppliedLabel> appliedLabels;
protected Long primaryContactId;
@XmlElement(type = Long.class)
protected List<Long> appliedTeamIds;
protected Integer thirdPartyCompanyId;
protected DateTime lastModifiedDateTime;
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setId(Long value) {
this.id = value;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link CompanyType }
*
*/
public CompanyType getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link CompanyType }
*
*/
public void setType(CompanyType value) {
this.type = value;
}
/**
* Gets the value of the address property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getAddress() {
return address;
}
/**
* Sets the value of the address property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setAddress(String value) {
this.address = value;
}
/**
* Gets the value of the email property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEmail() {
return email;
}
/**
* Sets the value of the email property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEmail(String value) {
this.email = value;
}
/**
* Gets the value of the faxPhone property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFaxPhone() {
return faxPhone;
}
/**
* Sets the value of the faxPhone property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFaxPhone(String value) {
this.faxPhone = value;
}
/**
* Gets the value of the primaryPhone property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPrimaryPhone() {
return primaryPhone;
}
/**
* Sets the value of the primaryPhone property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setPrimaryPhone(String value) {
this.primaryPhone = value;
}
/**
* Gets the value of the externalId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getExternalId() {
return externalId;
}
/**
* Sets the value of the externalId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setExternalId(String value) {
this.externalId = value;
}
/**
* Gets the value of the comment property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getComment() {
return comment;
}
/**
* Sets the value of the comment property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setComment(String value) {
this.comment = value;
}
/**
* Gets the value of the creditStatus property.
*
* @return
* possible object is
* {@link CompanyCreditStatus }
*
*/
public CompanyCreditStatus getCreditStatus() {
return creditStatus;
}
/**
* Sets the value of the creditStatus property.
*
* @param value
* allowed object is
* {@link CompanyCreditStatus }
*
*/
public void setCreditStatus(CompanyCreditStatus value) {
this.creditStatus = value;
}
/**
* Gets the value of the settings property.
*
* @return
* possible object is
* {@link CompanySettings }
*
*/
public CompanySettings getSettings() {
return settings;
}
/**
* Sets the value of the settings property.
*
* @param value
* allowed object is
* {@link CompanySettings }
*
*/
public void setSettings(CompanySettings value) {
this.settings = value;
}
/**
* Gets the value of the appliedLabels property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the appliedLabels property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAppliedLabels().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link AppliedLabel }
*
*
*/
public List<AppliedLabel> getAppliedLabels() {
if (appliedLabels == null) {
appliedLabels = new ArrayList<AppliedLabel>();
}
return this.appliedLabels;
}
/**
* Gets the value of the primaryContactId property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getPrimaryContactId() {
return primaryContactId;
}
/**
* Sets the value of the primaryContactId property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setPrimaryContactId(Long value) {
this.primaryContactId = value;
}
/**
* Gets the value of the appliedTeamIds property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the appliedTeamIds property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAppliedTeamIds().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Long }
*
*
*/
public List<Long> getAppliedTeamIds() {
if (appliedTeamIds == null) {
appliedTeamIds = new ArrayList<Long>();
}
return this.appliedTeamIds;
}
/**
* Gets the value of the thirdPartyCompanyId property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getThirdPartyCompanyId() {
return thirdPartyCompanyId;
}
/**
* Sets the value of the thirdPartyCompanyId property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setThirdPartyCompanyId(Integer value) {
this.thirdPartyCompanyId = value;
}
/**
* Gets the value of the lastModifiedDateTime property.
*
* @return
* possible object is
* {@link DateTime }
*
*/
public DateTime getLastModifiedDateTime() {
return lastModifiedDateTime;
}
/**
* Sets the value of the lastModifiedDateTime property.
*
* @param value
* allowed object is
* {@link DateTime }
*
*/
public void setLastModifiedDateTime(DateTime value) {
this.lastModifiedDateTime = value;
}
}