<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dialogflow/v2/conversation.proto

namespace Google\Cloud\Dialogflow\V2\Conversation\TelephonyConnectionInfo;

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

/**
 * The mime content from the initial SIP INVITE.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.Conversation.TelephonyConnectionInfo.MimeContent</code>
 */
class MimeContent extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The mime type of the content.
     *
     * Generated from protobuf field <code>string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $mime_type = '';
    /**
     * Optional. The content payload.
     *
     * Generated from protobuf field <code>bytes content = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $content = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $mime_type
     *           Optional. The mime type of the content.
     *     @type string $content
     *           Optional. The content payload.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\Conversation::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The mime type of the content.
     *
     * Generated from protobuf field <code>string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getMimeType()
    {
        return $this->mime_type;
    }

    /**
     * Optional. The mime type of the content.
     *
     * Generated from protobuf field <code>string mime_type = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setMimeType($var)
    {
        GPBUtil::checkString($var, True);
        $this->mime_type = $var;

        return $this;
    }

    /**
     * Optional. The content payload.
     *
     * Generated from protobuf field <code>bytes content = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getContent()
    {
        return $this->content;
    }

    /**
     * Optional. The content payload.
     *
     * Generated from protobuf field <code>bytes content = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setContent($var)
    {
        GPBUtil::checkString($var, False);
        $this->content = $var;

        return $this;
    }

}


