<?php
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v24/resources/local_services_lead.proto

namespace Google\Ads\GoogleAds\V24\Resources;

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

/**
 * Fields containing consumer contact details.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.resources.ContactDetails</code>
 */
class ContactDetails extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Phone number of the consumer for the lead. This can be a real
     * phone number or a tracking number. The phone number is returned in E164
     * format. See https://support.google.com/google-ads/answer/16355235?hl=en to
     * learn more. Example: +16504519489.
     *
     * Generated from protobuf field <code>string phone_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $phone_number = '';
    /**
     * Output only. Consumer email address.
     *
     * Generated from protobuf field <code>string email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $email = '';
    /**
     * Output only. Consumer name if consumer provided name from Message or
     * Booking form on google.com
     *
     * Generated from protobuf field <code>string consumer_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $consumer_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type string $phone_number
     *           Output only. Phone number of the consumer for the lead. This can be a real
     *           phone number or a tracking number. The phone number is returned in E164
     *           format. See https://support.google.com/google-ads/answer/16355235?hl=en to
     *           learn more. Example: +16504519489.
     * @type string $email
     *           Output only. Consumer email address.
     * @type string $consumer_name
     *           Output only. Consumer name if consumer provided name from Message or
     *           Booking form on google.com
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Resources\LocalServicesLead::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Phone number of the consumer for the lead. This can be a real
     * phone number or a tracking number. The phone number is returned in E164
     * format. See https://support.google.com/google-ads/answer/16355235?hl=en to
     * learn more. Example: +16504519489.
     *
     * Generated from protobuf field <code>string phone_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return string
     */
    public function getPhoneNumber()
    {
        return $this->phone_number;
    }

    /**
     * Output only. Phone number of the consumer for the lead. This can be a real
     * phone number or a tracking number. The phone number is returned in E164
     * format. See https://support.google.com/google-ads/answer/16355235?hl=en to
     * learn more. Example: +16504519489.
     *
     * Generated from protobuf field <code>string phone_number = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setPhoneNumber($var)
    {
        GPBUtil::checkString($var, true);
        $this->phone_number = $var;

        return $this;
    }

    /**
     * Output only. Consumer email address.
     *
     * Generated from protobuf field <code>string email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return string
     */
    public function getEmail()
    {
        return $this->email;
    }

    /**
     * Output only. Consumer email address.
     *
     * Generated from protobuf field <code>string email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setEmail($var)
    {
        GPBUtil::checkString($var, true);
        $this->email = $var;

        return $this;
    }

    /**
     * Output only. Consumer name if consumer provided name from Message or
     * Booking form on google.com
     *
     * Generated from protobuf field <code>string consumer_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return string
     */
    public function getConsumerName()
    {
        return $this->consumer_name;
    }

    /**
     * Output only. Consumer name if consumer provided name from Message or
     * Booking form on google.com
     *
     * Generated from protobuf field <code>string consumer_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setConsumerName($var)
    {
        GPBUtil::checkString($var, true);
        $this->consumer_name = $var;

        return $this;
    }

}

