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

namespace Google\Cloud\Dataflow\V1beta3;

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

/**
 * Response to a request to list job messages.
 *
 * Generated from protobuf message <code>google.dataflow.v1beta3.ListJobMessagesResponse</code>
 */
class ListJobMessagesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Messages in ascending timestamp order.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.JobMessage job_messages = 1;</code>
     */
    private $job_messages;
    /**
     * The token to obtain the next page of results if there are more.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     */
    private $next_page_token = '';
    /**
     * Autoscaling events in ascending timestamp order.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.AutoscalingEvent autoscaling_events = 3;</code>
     */
    private $autoscaling_events;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Dataflow\V1beta3\JobMessage>|\Google\Protobuf\Internal\RepeatedField $job_messages
     *           Messages in ascending timestamp order.
     *     @type string $next_page_token
     *           The token to obtain the next page of results if there are more.
     *     @type array<\Google\Cloud\Dataflow\V1beta3\AutoscalingEvent>|\Google\Protobuf\Internal\RepeatedField $autoscaling_events
     *           Autoscaling events in ascending timestamp order.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Dataflow\V1Beta3\Messages::initOnce();
        parent::__construct($data);
    }

    /**
     * Messages in ascending timestamp order.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.JobMessage job_messages = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getJobMessages()
    {
        return $this->job_messages;
    }

    /**
     * Messages in ascending timestamp order.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.JobMessage job_messages = 1;</code>
     * @param array<\Google\Cloud\Dataflow\V1beta3\JobMessage>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setJobMessages($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\JobMessage::class);
        $this->job_messages = $arr;

        return $this;
    }

    /**
     * The token to obtain the next page of results if there are more.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * The token to obtain the next page of results if there are more.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setNextPageToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->next_page_token = $var;

        return $this;
    }

    /**
     * Autoscaling events in ascending timestamp order.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.AutoscalingEvent autoscaling_events = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getAutoscalingEvents()
    {
        return $this->autoscaling_events;
    }

    /**
     * Autoscaling events in ascending timestamp order.
     *
     * Generated from protobuf field <code>repeated .google.dataflow.v1beta3.AutoscalingEvent autoscaling_events = 3;</code>
     * @param array<\Google\Cloud\Dataflow\V1beta3\AutoscalingEvent>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setAutoscalingEvents($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\AutoscalingEvent::class);
        $this->autoscaling_events = $arr;

        return $this;
    }

}

