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

namespace Google\Ads\GoogleAds\V21\Resources;

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

/**
 * Represents details of a phone call conversation.
 *
 * Generated from protobuf message <code>google.ads.googleads.v21.resources.PhoneCallDetails</code>
 */
class PhoneCallDetails extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The duration (in milliseconds) of the phone call (end to end).
     *
     * Generated from protobuf field <code>int64 call_duration_millis = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $call_duration_millis = 0;
    /**
     * Output only. URL to the call recording audio file.
     *
     * Generated from protobuf field <code>string call_recording_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $call_recording_url = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $call_duration_millis
     *           Output only. The duration (in milliseconds) of the phone call (end to end).
     *     @type string $call_recording_url
     *           Output only. URL to the call recording audio file.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V21\Resources\LocalServicesLeadConversation::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The duration (in milliseconds) of the phone call (end to end).
     *
     * Generated from protobuf field <code>int64 call_duration_millis = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int|string
     */
    public function getCallDurationMillis()
    {
        return $this->call_duration_millis;
    }

    /**
     * Output only. The duration (in milliseconds) of the phone call (end to end).
     *
     * Generated from protobuf field <code>int64 call_duration_millis = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int|string $var
     * @return $this
     */
    public function setCallDurationMillis($var)
    {
        GPBUtil::checkInt64($var);
        $this->call_duration_millis = $var;

        return $this;
    }

    /**
     * Output only. URL to the call recording audio file.
     *
     * Generated from protobuf field <code>string call_recording_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getCallRecordingUrl()
    {
        return $this->call_recording_url;
    }

    /**
     * Output only. URL to the call recording audio file.
     *
     * Generated from protobuf field <code>string call_recording_url = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setCallRecordingUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->call_recording_url = $var;

        return $this;
    }

}

