<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/ces/v1/agent_transfers.proto

namespace Google\Cloud\Ces\V1;

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

/**
 * Python code block to evaluate the condition.
 *
 * Generated from protobuf message <code>google.cloud.ces.v1.PythonCodeCondition</code>
 */
class PythonCodeCondition extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The python code to execute.
     *
     * Generated from protobuf field <code>string python_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $python_code = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $python_code
     *           Required. The python code to execute.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Ces\V1\AgentTransfers::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The python code to execute.
     *
     * Generated from protobuf field <code>string python_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getPythonCode()
    {
        return $this->python_code;
    }

    /**
     * Required. The python code to execute.
     *
     * Generated from protobuf field <code>string python_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setPythonCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->python_code = $var;

        return $this;
    }

}

