<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: temporal/api/workflowservice/v1/request_response.proto

namespace Temporal\Api\Workflowservice\V1;

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

/**
 * Generated from protobuf message <code>temporal.api.workflowservice.v1.RespondActivityTaskFailedResponse</code>
 */
class RespondActivityTaskFailedResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Server validation failures could include
     * last_heartbeat_details payload is too large, request failure is too large
     *
     * Generated from protobuf field <code>repeated .temporal.api.failure.v1.Failure failures = 1;</code>
     */
    private $failures;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Temporal\Api\Failure\V1\Failure[] $failures
     *           Server validation failures could include
     *           last_heartbeat_details payload is too large, request failure is too large
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
        parent::__construct($data);
    }

    /**
     * Server validation failures could include
     * last_heartbeat_details payload is too large, request failure is too large
     *
     * Generated from protobuf field <code>repeated .temporal.api.failure.v1.Failure failures = 1;</code>
     * @return RepeatedField<\Temporal\Api\Failure\V1\Failure>
     */
    public function getFailures()
    {
        return $this->failures;
    }

    /**
     * Server validation failures could include
     * last_heartbeat_details payload is too large, request failure is too large
     *
     * Generated from protobuf field <code>repeated .temporal.api.failure.v1.Failure failures = 1;</code>
     * @param \Temporal\Api\Failure\V1\Failure[] $var
     * @return $this
     */
    public function setFailures($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Failure\V1\Failure::class);
        $this->failures = $arr;

        return $this;
    }

}

