<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/dataflow/v1beta3/jobs.proto

namespace Google\Cloud\Dataflow\V1beta3;

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

/**
 * A bug found in the Dataflow SDK.
 *
 * Generated from protobuf message <code>google.dataflow.v1beta3.SdkBug</code>
 */
class SdkBug extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Describes the impact of this SDK bug.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.SdkBug.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $type = 0;
    /**
     * Output only. How severe the SDK bug is.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.SdkBug.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $severity = 0;
    /**
     * Output only. Link to more information on the bug.
     *
     * Generated from protobuf field <code>string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $uri = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $type
     *           Output only. Describes the impact of this SDK bug.
     *     @type int $severity
     *           Output only. How severe the SDK bug is.
     *     @type string $uri
     *           Output only. Link to more information on the bug.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Describes the impact of this SDK bug.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.SdkBug.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Output only. Describes the impact of this SDK bug.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.SdkBug.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\SdkBug\Type::class);
        $this->type = $var;

        return $this;
    }

    /**
     * Output only. How severe the SDK bug is.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.SdkBug.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getSeverity()
    {
        return $this->severity;
    }

    /**
     * Output only. How severe the SDK bug is.
     *
     * Generated from protobuf field <code>.google.dataflow.v1beta3.SdkBug.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setSeverity($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\SdkBug\Severity::class);
        $this->severity = $var;

        return $this;
    }

    /**
     * Output only. Link to more information on the bug.
     *
     * Generated from protobuf field <code>string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getUri()
    {
        return $this->uri;
    }

    /**
     * Output only. Link to more information on the bug.
     *
     * Generated from protobuf field <code>string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->uri = $var;

        return $this;
    }

}

