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

namespace Temporal\Api\Errordetails\V1;

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

/**
 * Generated from protobuf message <code>temporal.api.errordetails.v1.NewerBuildExistsFailure</code>
 */
class NewerBuildExistsFailure extends \Google\Protobuf\Internal\Message
{
    /**
     * The current default compatible build ID which will receive tasks
     *
     * Generated from protobuf field <code>string default_build_id = 1;</code>
     */
    protected $default_build_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $default_build_id
     *           The current default compatible build ID which will receive tasks
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Temporal\Api\Errordetails\V1\Message::initOnce();
        parent::__construct($data);
    }

    /**
     * The current default compatible build ID which will receive tasks
     *
     * Generated from protobuf field <code>string default_build_id = 1;</code>
     * @return string
     */
    public function getDefaultBuildId()
    {
        return $this->default_build_id;
    }

    /**
     * The current default compatible build ID which will receive tasks
     *
     * Generated from protobuf field <code>string default_build_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setDefaultBuildId($var)
    {
        GPBUtil::checkString($var, True);
        $this->default_build_id = $var;

        return $this;
    }

}

