<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/admanager/v1/contact_messages.proto

namespace Google\Ads\AdManager\V1;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * A contact represents a person who is affiliated with a single company. A
 * contact can have a variety of contact information associated to it, and can
 * be invited to view their company's orders, line items, creatives, and
 * reports.
 *
 * Generated from protobuf message <code>google.ads.admanager.v1.Contact</code>
 */
class Contact extends \Google\Protobuf\Internal\Message
{
    /**
     * Identifier. The resource name of the `Contact`.
     * Format: `networks/{network_code}/contacts/{contact_id}`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     */
    protected $name = '';
    /**
     * Output only. The unique ID of the contact. This value is readonly and is
     * assigned by Google.
     *
     * Generated from protobuf field <code>int64 contact_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $contact_id = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Identifier. The resource name of the `Contact`.
     *           Format: `networks/{network_code}/contacts/{contact_id}`
     *     @type int|string $contact_id
     *           Output only. The unique ID of the contact. This value is readonly and is
     *           assigned by Google.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\Admanager\V1\ContactMessages::initOnce();
        parent::__construct($data);
    }

    /**
     * Identifier. The resource name of the `Contact`.
     * Format: `networks/{network_code}/contacts/{contact_id}`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Identifier. The resource name of the `Contact`.
     * Format: `networks/{network_code}/contacts/{contact_id}`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Output only. The unique ID of the contact. This value is readonly and is
     * assigned by Google.
     *
     * Generated from protobuf field <code>int64 contact_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int|string
     */
    public function getContactId()
    {
        return $this->contact_id;
    }

    /**
     * Output only. The unique ID of the contact. This value is readonly and is
     * assigned by Google.
     *
     * Generated from protobuf field <code>int64 contact_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int|string $var
     * @return $this
     */
    public function setContactId($var)
    {
        GPBUtil::checkInt64($var);
        $this->contact_id = $var;

        return $this;
    }

}

