-
Notifications
You must be signed in to change notification settings - Fork 460
Expand file tree
/
Copy pathListJobsResponse.php
More file actions
147 lines (132 loc) · 4.79 KB
/
ListJobsResponse.php
File metadata and controls
147 lines (132 loc) · 4.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?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;
/**
* Response to a request to list Cloud Dataflow jobs in a project. This might
* be a partial response, depending on the page size in the ListJobsRequest.
* However, if the project does not have any jobs, an instance of
* ListJobsResponse is not returned and the requests's response
* body is empty {}.
*
* Generated from protobuf message <code>google.dataflow.v1beta3.ListJobsResponse</code>
*/
class ListJobsResponse extends \Google\Protobuf\Internal\Message
{
/**
* A subset of the requested job information.
*
* Generated from protobuf field <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
*/
private $jobs;
/**
* Set if there may be more results than fit in this response.
*
* Generated from protobuf field <code>string next_page_token = 2;</code>
*/
protected $next_page_token = '';
/**
* Zero or more messages describing the [regional endpoints]
* (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
* failed to respond.
*
* Generated from protobuf field <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
*/
private $failed_location;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Google\Cloud\Dataflow\V1beta3\Job[] $jobs
* A subset of the requested job information.
* @type string $next_page_token
* Set if there may be more results than fit in this response.
* @type \Google\Cloud\Dataflow\V1beta3\FailedLocation[] $failed_location
* Zero or more messages describing the [regional endpoints]
* (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
* failed to respond.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce();
parent::__construct($data);
}
/**
* A subset of the requested job information.
*
* Generated from protobuf field <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
* @return RepeatedField<\Google\Cloud\Dataflow\V1beta3\Job>
*/
public function getJobs()
{
return $this->jobs;
}
/**
* A subset of the requested job information.
*
* Generated from protobuf field <code>repeated .google.dataflow.v1beta3.Job jobs = 1;</code>
* @param \Google\Cloud\Dataflow\V1beta3\Job[] $var
* @return $this
*/
public function setJobs($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\Job::class);
$this->jobs = $arr;
return $this;
}
/**
* Set if there may be more results than fit in this response.
*
* Generated from protobuf field <code>string next_page_token = 2;</code>
* @return string
*/
public function getNextPageToken()
{
return $this->next_page_token;
}
/**
* Set if there may be more results than fit in this response.
*
* 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;
}
/**
* Zero or more messages describing the [regional endpoints]
* (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
* failed to respond.
*
* Generated from protobuf field <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
* @return RepeatedField<\Google\Cloud\Dataflow\V1beta3\FailedLocation>
*/
public function getFailedLocation()
{
return $this->failed_location;
}
/**
* Zero or more messages describing the [regional endpoints]
* (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
* failed to respond.
*
* Generated from protobuf field <code>repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3;</code>
* @param \Google\Cloud\Dataflow\V1beta3\FailedLocation[] $var
* @return $this
*/
public function setFailedLocation($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\FailedLocation::class);
$this->failed_location = $arr;
return $this;
}
}