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

namespace Google\Ads\GoogleAds\V25\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.v25.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 E.164
     * format. See https://support.google.com/google-ads/answer/16355235 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 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 = '';
    /**
     * Output only. The extension number to be used with the phone number. This
     * field is populated only when the 'phone_number' is a tracking number. It is
     * typically 3 or 4 digits. Example: 013, 0129. When populated, this extension
     * number is required to reach out to the right consumer.
     *
     * Generated from protobuf field <code>string phone_number_extension = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $phone_number_extension = '';

    /**
     * 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 E.164
     *           format. See https://support.google.com/google-ads/answer/16355235 to learn
     *           more.
     *           Example: "+16504519489".
     *     @type string $consumer_name
     *           Output only. Consumer name if consumer provided name from Message or
     *           Booking form on google.com
     *     @type string $phone_number_extension
     *           Output only. The extension number to be used with the phone number. This
     *           field is populated only when the 'phone_number' is a tracking number. It is
     *           typically 3 or 4 digits. Example: 013, 0129. When populated, this extension
     *           number is required to reach out to the right consumer.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\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 E.164
     * format. See https://support.google.com/google-ads/answer/16355235 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 E.164
     * format. See https://support.google.com/google-ads/answer/16355235 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 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;
    }

    /**
     * Output only. The extension number to be used with the phone number. This
     * field is populated only when the 'phone_number' is a tracking number. It is
     * typically 3 or 4 digits. Example: 013, 0129. When populated, this extension
     * number is required to reach out to the right consumer.
     *
     * Generated from protobuf field <code>string phone_number_extension = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getPhoneNumberExtension()
    {
        return $this->phone_number_extension;
    }

    /**
     * Output only. The extension number to be used with the phone number. This
     * field is populated only when the 'phone_number' is a tracking number. It is
     * typically 3 or 4 digits. Example: 013, 0129. When populated, this extension
     * number is required to reach out to the right consumer.
     *
     * Generated from protobuf field <code>string phone_number_extension = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setPhoneNumberExtension($var)
    {
        GPBUtil::checkString($var, True);
        $this->phone_number_extension = $var;

        return $this;
    }

}

