
com.google.api.ads.admanager.axis.v202105.ChildPublisher Maven / Gradle / Ivy
// Copyright 2021 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.
/**
* ChildPublisher.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.v202105;
/**
* A {@code ChildPublisher} represents a network being managed as
* part of Multiple Customer
* Management.
*/
public class ChildPublisher implements java.io.Serializable {
/* Type of delegation the parent has been approved to have over
* the child. This field is
* read-only, and set to the proposed delegation type
* value {@code proposedDelegationType} upon
* approval by the child network. The value remains null
* if the parent network has not been
* approved. */
private com.google.api.ads.admanager.axis.v202105.DelegationType approvedDelegationType;
/* Type of delegation the parent has proposed to have over the
* child, pending approval of the
* child network. Set the value of this field to the
* delegation type you intend this network to
* have over the child network. Upon approval by the
* child network, its value is copied to {@code
* approvedDelegationType}, and {@code proposedDelegationType}
* is set to null. */
private com.google.api.ads.admanager.axis.v202105.DelegationType proposedDelegationType;
/* Status of the delegation relationship between parent and child. */
private com.google.api.ads.admanager.axis.v202105.DelegationStatus status;
/* Status of the child publisher's Ad Manager account based on
* {@code ChildPublisher#status} as
* well as Google's policy verification results. This
* field is read-only. */
private com.google.api.ads.admanager.axis.v202105.AccountStatus accountStatus;
/* Network code of child network. */
private java.lang.String childNetworkCode;
/* The proposed revenue share that the parent publisher will receive
* in millipercentage (values 0
* to 100000) for Manage Account proposals. For example,
* 15% is 15000 millipercent.
*
* For updates, this field is read-only. Use company
* actions to propose new revenue share
* agreements for existing MCM children. This field is
* ignored for Manage Inventory proposals. */
private java.lang.Long proposedRevenueShareMillipercent;
public ChildPublisher() {
}
public ChildPublisher(
com.google.api.ads.admanager.axis.v202105.DelegationType approvedDelegationType,
com.google.api.ads.admanager.axis.v202105.DelegationType proposedDelegationType,
com.google.api.ads.admanager.axis.v202105.DelegationStatus status,
com.google.api.ads.admanager.axis.v202105.AccountStatus accountStatus,
java.lang.String childNetworkCode,
java.lang.Long proposedRevenueShareMillipercent) {
this.approvedDelegationType = approvedDelegationType;
this.proposedDelegationType = proposedDelegationType;
this.status = status;
this.accountStatus = accountStatus;
this.childNetworkCode = childNetworkCode;
this.proposedRevenueShareMillipercent = proposedRevenueShareMillipercent;
}
@Override
public String toString() {
return com.google.common.base.MoreObjects.toStringHelper(this.getClass())
.omitNullValues()
.add("accountStatus", getAccountStatus())
.add("approvedDelegationType", getApprovedDelegationType())
.add("childNetworkCode", getChildNetworkCode())
.add("proposedDelegationType", getProposedDelegationType())
.add("proposedRevenueShareMillipercent", getProposedRevenueShareMillipercent())
.add("status", getStatus())
.toString();
}
/**
* Gets the approvedDelegationType value for this ChildPublisher.
*
* @return approvedDelegationType * Type of delegation the parent has been approved to have over
* the child. This field is
* read-only, and set to the proposed delegation type
* value {@code proposedDelegationType} upon
* approval by the child network. The value remains null
* if the parent network has not been
* approved.
*/
public com.google.api.ads.admanager.axis.v202105.DelegationType getApprovedDelegationType() {
return approvedDelegationType;
}
/**
* Sets the approvedDelegationType value for this ChildPublisher.
*
* @param approvedDelegationType * Type of delegation the parent has been approved to have over
* the child. This field is
* read-only, and set to the proposed delegation type
* value {@code proposedDelegationType} upon
* approval by the child network. The value remains null
* if the parent network has not been
* approved.
*/
public void setApprovedDelegationType(com.google.api.ads.admanager.axis.v202105.DelegationType approvedDelegationType) {
this.approvedDelegationType = approvedDelegationType;
}
/**
* Gets the proposedDelegationType value for this ChildPublisher.
*
* @return proposedDelegationType * Type of delegation the parent has proposed to have over the
* child, pending approval of the
* child network. Set the value of this field to the
* delegation type you intend this network to
* have over the child network. Upon approval by the
* child network, its value is copied to {@code
* approvedDelegationType}, and {@code proposedDelegationType}
* is set to null.
*/
public com.google.api.ads.admanager.axis.v202105.DelegationType getProposedDelegationType() {
return proposedDelegationType;
}
/**
* Sets the proposedDelegationType value for this ChildPublisher.
*
* @param proposedDelegationType * Type of delegation the parent has proposed to have over the
* child, pending approval of the
* child network. Set the value of this field to the
* delegation type you intend this network to
* have over the child network. Upon approval by the
* child network, its value is copied to {@code
* approvedDelegationType}, and {@code proposedDelegationType}
* is set to null.
*/
public void setProposedDelegationType(com.google.api.ads.admanager.axis.v202105.DelegationType proposedDelegationType) {
this.proposedDelegationType = proposedDelegationType;
}
/**
* Gets the status value for this ChildPublisher.
*
* @return status * Status of the delegation relationship between parent and child.
*/
public com.google.api.ads.admanager.axis.v202105.DelegationStatus getStatus() {
return status;
}
/**
* Sets the status value for this ChildPublisher.
*
* @param status * Status of the delegation relationship between parent and child.
*/
public void setStatus(com.google.api.ads.admanager.axis.v202105.DelegationStatus status) {
this.status = status;
}
/**
* Gets the accountStatus value for this ChildPublisher.
*
* @return accountStatus * Status of the child publisher's Ad Manager account based on
* {@code ChildPublisher#status} as
* well as Google's policy verification results. This
* field is read-only.
*/
public com.google.api.ads.admanager.axis.v202105.AccountStatus getAccountStatus() {
return accountStatus;
}
/**
* Sets the accountStatus value for this ChildPublisher.
*
* @param accountStatus * Status of the child publisher's Ad Manager account based on
* {@code ChildPublisher#status} as
* well as Google's policy verification results. This
* field is read-only.
*/
public void setAccountStatus(com.google.api.ads.admanager.axis.v202105.AccountStatus accountStatus) {
this.accountStatus = accountStatus;
}
/**
* Gets the childNetworkCode value for this ChildPublisher.
*
* @return childNetworkCode * Network code of child network.
*/
public java.lang.String getChildNetworkCode() {
return childNetworkCode;
}
/**
* Sets the childNetworkCode value for this ChildPublisher.
*
* @param childNetworkCode * Network code of child network.
*/
public void setChildNetworkCode(java.lang.String childNetworkCode) {
this.childNetworkCode = childNetworkCode;
}
/**
* Gets the proposedRevenueShareMillipercent value for this ChildPublisher.
*
* @return proposedRevenueShareMillipercent * The proposed revenue share that the parent publisher will receive
* in millipercentage (values 0
* to 100000) for Manage Account proposals. For example,
* 15% is 15000 millipercent.
*
*
For updates, this field is read-only. Use company
* actions to propose new revenue share
* agreements for existing MCM children. This field is
* ignored for Manage Inventory proposals.
*/
public java.lang.Long getProposedRevenueShareMillipercent() {
return proposedRevenueShareMillipercent;
}
/**
* Sets the proposedRevenueShareMillipercent value for this ChildPublisher.
*
* @param proposedRevenueShareMillipercent * The proposed revenue share that the parent publisher will receive
* in millipercentage (values 0
* to 100000) for Manage Account proposals. For example,
* 15% is 15000 millipercent.
*
*
For updates, this field is read-only. Use company
* actions to propose new revenue share
* agreements for existing MCM children. This field is
* ignored for Manage Inventory proposals.
*/
public void setProposedRevenueShareMillipercent(java.lang.Long proposedRevenueShareMillipercent) {
this.proposedRevenueShareMillipercent = proposedRevenueShareMillipercent;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof ChildPublisher)) return false;
ChildPublisher other = (ChildPublisher) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.approvedDelegationType==null && other.getApprovedDelegationType()==null) ||
(this.approvedDelegationType!=null &&
this.approvedDelegationType.equals(other.getApprovedDelegationType()))) &&
((this.proposedDelegationType==null && other.getProposedDelegationType()==null) ||
(this.proposedDelegationType!=null &&
this.proposedDelegationType.equals(other.getProposedDelegationType()))) &&
((this.status==null && other.getStatus()==null) ||
(this.status!=null &&
this.status.equals(other.getStatus()))) &&
((this.accountStatus==null && other.getAccountStatus()==null) ||
(this.accountStatus!=null &&
this.accountStatus.equals(other.getAccountStatus()))) &&
((this.childNetworkCode==null && other.getChildNetworkCode()==null) ||
(this.childNetworkCode!=null &&
this.childNetworkCode.equals(other.getChildNetworkCode()))) &&
((this.proposedRevenueShareMillipercent==null && other.getProposedRevenueShareMillipercent()==null) ||
(this.proposedRevenueShareMillipercent!=null &&
this.proposedRevenueShareMillipercent.equals(other.getProposedRevenueShareMillipercent())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getApprovedDelegationType() != null) {
_hashCode += getApprovedDelegationType().hashCode();
}
if (getProposedDelegationType() != null) {
_hashCode += getProposedDelegationType().hashCode();
}
if (getStatus() != null) {
_hashCode += getStatus().hashCode();
}
if (getAccountStatus() != null) {
_hashCode += getAccountStatus().hashCode();
}
if (getChildNetworkCode() != null) {
_hashCode += getChildNetworkCode().hashCode();
}
if (getProposedRevenueShareMillipercent() != null) {
_hashCode += getProposedRevenueShareMillipercent().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(ChildPublisher.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202105", "ChildPublisher"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("approvedDelegationType");
elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202105", "approvedDelegationType"));
elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202105", "DelegationType"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("proposedDelegationType");
elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202105", "proposedDelegationType"));
elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202105", "DelegationType"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("status");
elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202105", "status"));
elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202105", "DelegationStatus"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("accountStatus");
elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202105", "accountStatus"));
elemField.setXmlType(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202105", "AccountStatus"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("childNetworkCode");
elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202105", "childNetworkCode"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("proposedRevenueShareMillipercent");
elemField.setXmlName(new javax.xml.namespace.QName("https://www.google.com/apis/ads/publisher/v202105", "proposedRevenueShareMillipercent"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}