<?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 display name of the Company.
     *
     * Generated from protobuf field <code>optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $company_display_name = null;

    /**
     * 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 string $company_display_name
     *           Output only. The display name of the Company.
     * }
     */
    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 display name of the Company.
     *
     * Generated from protobuf field <code>optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getCompanyDisplayName()
    {
        return isset($this->company_display_name) ? $this->company_display_name : '';
    }

    public function hasCompanyDisplayName()
    {
        return isset($this->company_display_name);
    }

    public function clearCompanyDisplayName()
    {
        unset($this->company_display_name);
    }

    /**
     * Output only. The display name of the Company.
     *
     * Generated from protobuf field <code>optional string company_display_name = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setCompanyDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->company_display_name = $var;

        return $this;
    }

}

