All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.ads.admanager.axis.v202408.ProposalCompanyAssociation Maven / Gradle / Ivy

// Copyright 2024 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.

/**
 * ProposalCompanyAssociation.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4.1-SNAPSHOT Mar 20, 2024 (11:59:10 PDT) WSDL2Java emitter.
 */

package com.google.api.ads.admanager.axis.v202408;


/**
 * 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.admanager.axis.v202408.ProposalCompanyAssociationType type;

    /* List of unique IDs for {@link Contact} objects of the {@link
     * Company}. */
    private long[] contactIds;

    public ProposalCompanyAssociation() {
    }

    public ProposalCompanyAssociation(
           java.lang.Long companyId,
           com.google.api.ads.admanager.axis.v202408.ProposalCompanyAssociationType type,
           long[] contactIds) {
           this.companyId = companyId;
           this.type = type;
           this.contactIds = contactIds;
    }

    @Override
    public String toString() {
        return com.google.common.base.MoreObjects.toStringHelper(this.getClass())
            .omitNullValues()
            .add("companyId", getCompanyId())
            .add("contactIds", getContactIds())
            .add("type", getType())
            .toString();
    }

    /**
     * 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.admanager.axis.v202408.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.admanager.axis.v202408.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}.
     */
    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}.
     */
    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 (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