Debian Codegraph @

cloudtasks/apiv2beta2/cloudtaskspb/task.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/tasks/v2beta2/task.proto
20
21 package cloudtaskspb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 status "google.golang.org/genproto/googleapis/rpc/status"
26 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
27 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
28 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
29 reflect "reflect"
30 sync "sync"
31 )
32
33 const (
34 // Verify that this generated code is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
36 // Verify that runtime/protoimpl is sufficiently up-to-date.
37 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
38 )
39
40 // The view specifies a subset of [Task][google.cloud.tasks.v2beta2.Task]
41 // data.
42 //
43 // When a task is returned in a response, not all
44 // information is retrieved by default because some data, such as
45 // payloads, might be desirable to return only when needed because
46 // of its large size or because of the sensitivity of data that it
47 // contains.
48 type Task_View int32
49
50 const (
51 // Unspecified. Defaults to BASIC.
52 Task_VIEW_UNSPECIFIED Task_View = 0
53 // The basic view omits fields which can be large or can contain
54 // sensitive data.
55 //
56 // This view does not include the
57 // ([payload in
58 // AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest]
59 // and [payload in
60 // PullMessage][google.cloud.tasks.v2beta2.PullMessage.payload]). These
61 // payloads are desirable to return only when needed, because they can be
62 // large and because of the sensitivity of the data that you choose to store
63 // in it.
64 Task_BASIC Task_View = 1
65 // All information is returned.
66 //
67 // Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL]
68 // requires `cloudtasks.tasks.fullView` [Google
69 // IAM](https://cloud.google.com/iam/) permission on the
70 // [Queue][google.cloud.tasks.v2beta2.Queue] resource.
71 Task_FULL Task_View = 2
72 )
73
74 // Enum value maps for Task_View.
75 var (
76 Task_View_name = map[int32]string{
77 0: "VIEW_UNSPECIFIED",
78 1: "BASIC",
79 2: "FULL",
80 }
81 Task_View_value = map[string]int32{
82 "VIEW_UNSPECIFIED": 0,
83 "BASIC": 1,
84 "FULL": 2,
85 }
86 )
87
88 func (x Task_View) Enum() *Task_View {
89 p := new(Task_View)
90 *p = x
91 return p
92 }
93
94 func (x Task_View) String() string {
95 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
96 }
97
98 func (Task_View) Descriptor() protoreflect.EnumDescriptor {
99 return file_google_cloud_tasks_v2beta2_task_proto_enumTypes[0].Descriptor()
100 }
101
102 func (Task_View) Type() protoreflect.EnumType {
103 return &file_google_cloud_tasks_v2beta2_task_proto_enumTypes[0]
104 }
105
106 func (x Task_View) Number() protoreflect.EnumNumber {
107 return protoreflect.EnumNumber(x)
108 }
109
110 // Deprecated: Use Task_View.Descriptor instead.
111 func (Task_View) EnumDescriptor() ([]byte, []int) {
112 return file_google_cloud_tasks_v2beta2_task_proto_rawDescGZIP(), []int{0, 0}
113 }
114
115 // A unit of scheduled work.
116 type Task struct {
117 state protoimpl.MessageState
118 sizeCache protoimpl.SizeCache
119 unknownFields protoimpl.UnknownFields
120
121 // Optionally caller-specified in
122 // [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
123 //
124 // The task name.
125 //
126 // The task name must have the following format:
127 // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
128 //
129 // - `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
130 // hyphens (-), colons (:), or periods (.).
131 // For more information, see
132 // [Identifying
133 // projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
134 // - `LOCATION_ID` is the canonical ID for the task's location.
135 // The list of available locations can be obtained by calling
136 // [ListLocations][google.cloud.location.Locations.ListLocations].
137 // For more information, see https://cloud.google.com/about/locations/.
138 // - `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
139 // hyphens (-). The maximum length is 100 characters.
140 // - `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
141 // hyphens (-), or underscores (_). The maximum length is 500 characters.
142 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
143 // Required.
144 //
145 // The task's payload is used by the task's target to process the task.
146 // A payload is valid only if it is compatible with the queue's target.
147 //
148 // Types that are assignable to PayloadType:
149 //
150 // *Task_AppEngineHttpRequest
151 // *Task_PullMessage
152 // *Task_HttpRequest
153 PayloadType isTask_PayloadType `protobuf_oneof:"payload_type"`
154 // The time when the task is scheduled to be attempted.
155 //
156 // For App Engine queues, this is when the task will be attempted or retried.
157 //
158 // For pull queues, this is the time when the task is available to
159 // be leased; if a task is currently leased, this is the time when
160 // the current lease expires, that is, the time that the task was
161 // leased plus the
162 // [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
163 //
164 // `schedule_time` will be truncated to the nearest microsecond.
165 ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"`
166 // Output only. The time that the task was created.
167 //
168 // `create_time` will be truncated to the nearest second.
169 CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
170 // Output only. The task status.
171 Status *TaskStatus `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"`
172 // Output only. The view specifies which subset of the
173 // [Task][google.cloud.tasks.v2beta2.Task] has been returned.
174 View Task_View `protobuf:"varint,8,opt,name=view,proto3,enum=google.cloud.tasks.v2beta2.Task_View" json:"view,omitempty"`
175 }
176
177 func (x *Task) Reset() {
178 *x = Task{}
179 mi := &file_google_cloud_tasks_v2beta2_task_proto_msgTypes[0]
180 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
181 ms.StoreMessageInfo(mi)
182 }
183
184 func (x *Task) String() string {
185 return protoimpl.X.MessageStringOf(x)
186 }
187
188 func (*Task) ProtoMessage() {}
189
190 func (x *Task) ProtoReflect() protoreflect.Message {
191 mi := &file_google_cloud_tasks_v2beta2_task_proto_msgTypes[0]
192 if x != nil {
193 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
194 if ms.LoadMessageInfo() == nil {
195 ms.StoreMessageInfo(mi)
196 }
197 return ms
198 }
199 return mi.MessageOf(x)
200 }
201
202 // Deprecated: Use Task.ProtoReflect.Descriptor instead.
203 func (*Task) Descriptor() ([]byte, []int) {
204 return file_google_cloud_tasks_v2beta2_task_proto_rawDescGZIP(), []int{0}
205 }
206
207 func (x *Task) GetName() string {
208 if x != nil {
209 return x.Name
210 }
211 return ""
212 }
213
214 func (m *Task) GetPayloadType() isTask_PayloadType {
215 if m != nil {
216 return m.PayloadType
217 }
218 return nil
219 }
220
221 func (x *Task) GetAppEngineHttpRequest() *AppEngineHttpRequest {
222 if x, ok := x.GetPayloadType().(*Task_AppEngineHttpRequest); ok {
223 return x.AppEngineHttpRequest
224 }
225 return nil
226 }
227
228 func (x *Task) GetPullMessage() *PullMessage {
229 if x, ok := x.GetPayloadType().(*Task_PullMessage); ok {
230 return x.PullMessage
231 }
232 return nil
233 }
234
235 func (x *Task) GetHttpRequest() *HttpRequest {
236 if x, ok := x.GetPayloadType().(*Task_HttpRequest); ok {
237 return x.HttpRequest
238 }
239 return nil
240 }
241
242 func (x *Task) GetScheduleTime() *timestamppb.Timestamp {
243 if x != nil {
244 return x.ScheduleTime
245 }
246 return nil
247 }
248
249 func (x *Task) GetCreateTime() *timestamppb.Timestamp {
250 if x != nil {
251 return x.CreateTime
252 }
253 return nil
254 }
255
256 func (x *Task) GetStatus() *TaskStatus {
257 if x != nil {
258 return x.Status
259 }
260 return nil
261 }
262
263 func (x *Task) GetView() Task_View {
264 if x != nil {
265 return x.View
266 }
267 return Task_VIEW_UNSPECIFIED
268 }
269
270 type isTask_PayloadType interface {
271 isTask_PayloadType()
272 }
273
274 type Task_AppEngineHttpRequest struct {
275 // App Engine HTTP request that is sent to the task's target. Can
276 // be set only if
277 // [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target]
278 // is set on the queue.
279 //
280 // An App Engine task is a task that has
281 // [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest]
282 // set.
283 AppEngineHttpRequest *AppEngineHttpRequest `protobuf:"bytes,3,opt,name=app_engine_http_request,json=appEngineHttpRequest,proto3,oneof"`
284 }
285
286 type Task_PullMessage struct {
287 // [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process
288 // the task. Can be set only if
289 // [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the
290 // queue.
291 //
292 // A pull task is a task that has
293 // [PullMessage][google.cloud.tasks.v2beta2.PullMessage] set.
294 PullMessage *PullMessage `protobuf:"bytes,4,opt,name=pull_message,json=pullMessage,proto3,oneof"`
295 }
296
297 type Task_HttpRequest struct {
298 // HTTP request that is sent to the task's target.
299 //
300 // An HTTP task is a task that has
301 // [HttpRequest][google.cloud.tasks.v2beta2.HttpRequest] set.
302 HttpRequest *HttpRequest `protobuf:"bytes,13,opt,name=http_request,json=httpRequest,proto3,oneof"`
303 }
304
305 func (*Task_AppEngineHttpRequest) isTask_PayloadType() {}
306
307 func (*Task_PullMessage) isTask_PayloadType() {}
308
309 func (*Task_HttpRequest) isTask_PayloadType() {}
310
311 // Status of the task.
312 type TaskStatus struct {
313 state protoimpl.MessageState
314 sizeCache protoimpl.SizeCache
315 unknownFields protoimpl.UnknownFields
316
317 // Output only. The number of attempts dispatched.
318 //
319 // This count includes attempts which have been dispatched but haven't
320 // received a response.
321 AttemptDispatchCount int32 `protobuf:"varint,1,opt,name=attempt_dispatch_count,json=attemptDispatchCount,proto3" json:"attempt_dispatch_count,omitempty"`
322 // Output only. The number of attempts which have received a response.
323 //
324 // This field is not calculated for [pull
325 // tasks][google.cloud.tasks.v2beta2.PullMessage].
326 AttemptResponseCount int32 `protobuf:"varint,2,opt,name=attempt_response_count,json=attemptResponseCount,proto3" json:"attempt_response_count,omitempty"`
327 // Output only. The status of the task's first attempt.
328 //
329 // Only
330 // [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time]
331 // will be set. The other
332 // [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is
333 // not retained by Cloud Tasks.
334 //
335 // This field is not calculated for [pull
336 // tasks][google.cloud.tasks.v2beta2.PullMessage].
337 FirstAttemptStatus *AttemptStatus `protobuf:"bytes,3,opt,name=first_attempt_status,json=firstAttemptStatus,proto3" json:"first_attempt_status,omitempty"`
338 // Output only. The status of the task's last attempt.
339 //
340 // This field is not calculated for [pull
341 // tasks][google.cloud.tasks.v2beta2.PullMessage].
342 LastAttemptStatus *AttemptStatus `protobuf:"bytes,4,opt,name=last_attempt_status,json=lastAttemptStatus,proto3" json:"last_attempt_status,omitempty"`
343 }
344
345 func (x *TaskStatus) Reset() {
346 *x = TaskStatus{}
347 mi := &file_google_cloud_tasks_v2beta2_task_proto_msgTypes[1]
348 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
349 ms.StoreMessageInfo(mi)
350 }
351
352 func (x *TaskStatus) String() string {
353 return protoimpl.X.MessageStringOf(x)
354 }
355
356 func (*TaskStatus) ProtoMessage() {}
357
358 func (x *TaskStatus) ProtoReflect() protoreflect.Message {
359 mi := &file_google_cloud_tasks_v2beta2_task_proto_msgTypes[1]
360 if x != nil {
361 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
362 if ms.LoadMessageInfo() == nil {
363 ms.StoreMessageInfo(mi)
364 }
365 return ms
366 }
367 return mi.MessageOf(x)
368 }
369
370 // Deprecated: Use TaskStatus.ProtoReflect.Descriptor instead.
371 func (*TaskStatus) Descriptor() ([]byte, []int) {
372 return file_google_cloud_tasks_v2beta2_task_proto_rawDescGZIP(), []int{1}
373 }
374
375 func (x *TaskStatus) GetAttemptDispatchCount() int32 {
376 if x != nil {
377 return x.AttemptDispatchCount
378 }
379 return 0
380 }
381
382 func (x *TaskStatus) GetAttemptResponseCount() int32 {
383 if x != nil {
384 return x.AttemptResponseCount
385 }
386 return 0
387 }
388
389 func (x *TaskStatus) GetFirstAttemptStatus() *AttemptStatus {
390 if x != nil {
391 return x.FirstAttemptStatus
392 }
393 return nil
394 }
395
396 func (x *TaskStatus) GetLastAttemptStatus() *AttemptStatus {
397 if x != nil {
398 return x.LastAttemptStatus
399 }
400 return nil
401 }
402
403 // The status of a task attempt.
404 type AttemptStatus struct {
405 state protoimpl.MessageState
406 sizeCache protoimpl.SizeCache
407 unknownFields protoimpl.UnknownFields
408
409 // Output only. The time that this attempt was scheduled.
410 //
411 // `schedule_time` will be truncated to the nearest microsecond.
412 ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"`
413 // Output only. The time that this attempt was dispatched.
414 //
415 // `dispatch_time` will be truncated to the nearest microsecond.
416 DispatchTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=dispatch_time,json=dispatchTime,proto3" json:"dispatch_time,omitempty"`
417 // Output only. The time that this attempt response was received.
418 //
419 // `response_time` will be truncated to the nearest microsecond.
420 ResponseTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=response_time,json=responseTime,proto3" json:"response_time,omitempty"`
421 // Output only. The response from the target for this attempt.
422 //
423 // If the task has not been attempted or the task is currently running
424 // then the response status is unset.
425 ResponseStatus *status.Status `protobuf:"bytes,4,opt,name=response_status,json=responseStatus,proto3" json:"response_status,omitempty"`
426 }
427
428 func (x *AttemptStatus) Reset() {
429 *x = AttemptStatus{}
430 mi := &file_google_cloud_tasks_v2beta2_task_proto_msgTypes[2]
431 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
432 ms.StoreMessageInfo(mi)
433 }
434
435 func (x *AttemptStatus) String() string {
436 return protoimpl.X.MessageStringOf(x)
437 }
438
439 func (*AttemptStatus) ProtoMessage() {}
440
441 func (x *AttemptStatus) ProtoReflect() protoreflect.Message {
442 mi := &file_google_cloud_tasks_v2beta2_task_proto_msgTypes[2]
443 if x != nil {
444 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
445 if ms.LoadMessageInfo() == nil {
446 ms.StoreMessageInfo(mi)
447 }
448 return ms
449 }
450 return mi.MessageOf(x)
451 }
452
453 // Deprecated: Use AttemptStatus.ProtoReflect.Descriptor instead.
454 func (*AttemptStatus) Descriptor() ([]byte, []int) {
455 return file_google_cloud_tasks_v2beta2_task_proto_rawDescGZIP(), []int{2}
456 }
457
458 func (x *AttemptStatus) GetScheduleTime() *timestamppb.Timestamp {
459 if x != nil {
460 return x.ScheduleTime
461 }
462 return nil
463 }
464
465 func (x *AttemptStatus) GetDispatchTime() *timestamppb.Timestamp {
466 if x != nil {
467 return x.DispatchTime
468 }
469 return nil
470 }
471
472 func (x *AttemptStatus) GetResponseTime() *timestamppb.Timestamp {
473 if x != nil {
474 return x.ResponseTime
475 }
476 return nil
477 }
478
479 func (x *AttemptStatus) GetResponseStatus() *status.Status {
480 if x != nil {
481 return x.ResponseStatus
482 }
483 return nil
484 }
485
486 var File_google_cloud_tasks_v2beta2_task_proto protoreflect.FileDescriptor
487
488 var file_google_cloud_tasks_v2beta2_task_proto_rawDesc = []byte{
489 0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74,
490 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x74, 0x61, 0x73,
491 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
492 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65,
493 0x74, 0x61, 0x32, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
494 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x27,
495 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74, 0x61, 0x73,
496 0x6b, 0x73, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x74, 0x61, 0x72, 0x67, 0x65,
497 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
498 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
499 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
500 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
501 0x6f, 0x22, 0xc7, 0x05, 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
502 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x69,
503 0x0a, 0x17, 0x61, 0x70, 0x70, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x68, 0x74, 0x74,
504 0x70, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
505 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74,
506 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x41, 0x70, 0x70,
507 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
508 0x74, 0x48, 0x00, 0x52, 0x14, 0x61, 0x70, 0x70, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x48, 0x74,
509 0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x0c, 0x70, 0x75, 0x6c,
510 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32,
511 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74,
512 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x50, 0x75, 0x6c,
513 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x70, 0x75, 0x6c, 0x6c,
514 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x4c, 0x0a, 0x0c, 0x68, 0x74, 0x74, 0x70, 0x5f,
515 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e,
516 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73,
517 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x52,
518 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x68, 0x74, 0x74, 0x70, 0x52, 0x65,
519 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c,
520 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
521 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
522 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75,
523 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
524 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f,
525 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69,
526 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54,
527 0x69, 0x6d, 0x65, 0x12, 0x3e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x07, 0x20,
528 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
529 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32,
530 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61,
531 0x74, 0x75, 0x73, 0x12, 0x39, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77, 0x18, 0x08, 0x20, 0x01, 0x28,
532 0x0e, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
533 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x54,
534 0x61, 0x73, 0x6b, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x22, 0x31,
535 0x0a, 0x04, 0x56, 0x69, 0x65, 0x77, 0x12, 0x14, 0x0a, 0x10, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55,
536 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05,
537 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x55, 0x4c, 0x4c, 0x10,
538 0x02, 0x3a, 0x68, 0xea, 0x41, 0x65, 0x0a, 0x1e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x61, 0x73,
539 0x6b, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f,
540 0x6d, 0x2f, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x43, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
541 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74,
542 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f,
543 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x2f, 0x7b, 0x71, 0x75, 0x65, 0x75, 0x65, 0x7d, 0x2f, 0x74,
544 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x7d, 0x42, 0x0e, 0x0a, 0x0c, 0x70,
545 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0xb0, 0x02, 0x0a, 0x0a,
546 0x54, 0x61, 0x73, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x61, 0x74,
547 0x74, 0x65, 0x6d, 0x70, 0x74, 0x5f, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x63,
548 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x14, 0x61, 0x74, 0x74, 0x65,
549 0x6d, 0x70, 0x74, 0x44, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74,
550 0x12, 0x34, 0x0a, 0x16, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x70,
551 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
552 0x52, 0x14, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
553 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x5b, 0x0a, 0x14, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f,
554 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03,
555 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
556 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61,
557 0x32, 0x2e, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
558 0x12, 0x66, 0x69, 0x72, 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x53, 0x74, 0x61,
559 0x74, 0x75, 0x73, 0x12, 0x59, 0x0a, 0x13, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x65,
560 0x6d, 0x70, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
561 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
562 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x41, 0x74,
563 0x74, 0x65, 0x6d, 0x70, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x11, 0x6c, 0x61, 0x73,
564 0x74, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x8f,
565 0x02, 0x0a, 0x0d, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
566 0x12, 0x3f, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d,
567 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
568 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
569 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x69, 0x6d,
570 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x74, 0x69,
571 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
572 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
573 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x54, 0x69,
574 0x6d, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x74,
575 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
576 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65,
577 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54,
578 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0f, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f,
579 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67,
580 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
581 0x52, 0x0e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
582 0x42, 0x72, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
583 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74,
584 0x61, 0x32, 0x42, 0x09, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
585 0x43, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f,
586 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2f,
587 0x61, 0x70, 0x69, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64,
588 0x74, 0x61, 0x73, 0x6b, 0x73, 0x70, 0x62, 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x61, 0x73,
589 0x6b, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
590 }
591
592 var (
593 file_google_cloud_tasks_v2beta2_task_proto_rawDescOnce sync.Once
594 file_google_cloud_tasks_v2beta2_task_proto_rawDescData = file_google_cloud_tasks_v2beta2_task_proto_rawDesc
595 )
596
597 func file_google_cloud_tasks_v2beta2_task_proto_rawDescGZIP() []byte {
598 file_google_cloud_tasks_v2beta2_task_proto_rawDescOnce.Do(func() {
599 file_google_cloud_tasks_v2beta2_task_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_tasks_v2beta2_task_proto_rawDescData)
600 })
601 return file_google_cloud_tasks_v2beta2_task_proto_rawDescData
602 }
603
604 var file_google_cloud_tasks_v2beta2_task_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
605 var file_google_cloud_tasks_v2beta2_task_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
606 var file_google_cloud_tasks_v2beta2_task_proto_goTypes = []any{
607 (Task_View)(0), // 0: google.cloud.tasks.v2beta2.Task.View
608 (*Task)(nil), // 1: google.cloud.tasks.v2beta2.Task
609 (*TaskStatus)(nil), // 2: google.cloud.tasks.v2beta2.TaskStatus
610 (*AttemptStatus)(nil), // 3: google.cloud.tasks.v2beta2.AttemptStatus
611 (*AppEngineHttpRequest)(nil), // 4: google.cloud.tasks.v2beta2.AppEngineHttpRequest
612 (*PullMessage)(nil), // 5: google.cloud.tasks.v2beta2.PullMessage
613 (*HttpRequest)(nil), // 6: google.cloud.tasks.v2beta2.HttpRequest
614 (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp
615 (*status.Status)(nil), // 8: google.rpc.Status
616 }
617 var file_google_cloud_tasks_v2beta2_task_proto_depIdxs = []int32{
618 4, // 0: google.cloud.tasks.v2beta2.Task.app_engine_http_request:type_name -> google.cloud.tasks.v2beta2.AppEngineHttpRequest
619 5, // 1: google.cloud.tasks.v2beta2.Task.pull_message:type_name -> google.cloud.tasks.v2beta2.PullMessage
620 6, // 2: google.cloud.tasks.v2beta2.Task.http_request:type_name -> google.cloud.tasks.v2beta2.HttpRequest
621 7, // 3: google.cloud.tasks.v2beta2.Task.schedule_time:type_name -> google.protobuf.Timestamp
622 7, // 4: google.cloud.tasks.v2beta2.Task.create_time:type_name -> google.protobuf.Timestamp
623 2, // 5: google.cloud.tasks.v2beta2.Task.status:type_name -> google.cloud.tasks.v2beta2.TaskStatus
624 0, // 6: google.cloud.tasks.v2beta2.Task.view:type_name -> google.cloud.tasks.v2beta2.Task.View
625 3, // 7: google.cloud.tasks.v2beta2.TaskStatus.first_attempt_status:type_name -> google.cloud.tasks.v2beta2.AttemptStatus
626 3, // 8: google.cloud.tasks.v2beta2.TaskStatus.last_attempt_status:type_name -> google.cloud.tasks.v2beta2.AttemptStatus
627 7, // 9: google.cloud.tasks.v2beta2.AttemptStatus.schedule_time:type_name -> google.protobuf.Timestamp
628 7, // 10: google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time:type_name -> google.protobuf.Timestamp
629 7, // 11: google.cloud.tasks.v2beta2.AttemptStatus.response_time:type_name -> google.protobuf.Timestamp
630 8, // 12: google.cloud.tasks.v2beta2.AttemptStatus.response_status:type_name -> google.rpc.Status
631 13, // [13:13] is the sub-list for method output_type
632 13, // [13:13] is the sub-list for method input_type
633 13, // [13:13] is the sub-list for extension type_name
634 13, // [13:13] is the sub-list for extension extendee
635 0, // [0:13] is the sub-list for field type_name
636 }
637
638 func init() { file_google_cloud_tasks_v2beta2_task_proto_init() }
639 func file_google_cloud_tasks_v2beta2_task_proto_init() {
640 if File_google_cloud_tasks_v2beta2_task_proto != nil {
641 return
642 }
643 file_google_cloud_tasks_v2beta2_target_proto_init()
644 file_google_cloud_tasks_v2beta2_task_proto_msgTypes[0].OneofWrappers = []any{
645 (*Task_AppEngineHttpRequest)(nil),
646 (*Task_PullMessage)(nil),
647 (*Task_HttpRequest)(nil),
648 }
649 type x struct{}
650 out := protoimpl.TypeBuilder{
651 File: protoimpl.DescBuilder{
652 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
653 RawDescriptor: file_google_cloud_tasks_v2beta2_task_proto_rawDesc,
654 NumEnums: 1,
655 NumMessages: 3,
656 NumExtensions: 0,
657 NumServices: 0,
658 },
659 GoTypes: file_google_cloud_tasks_v2beta2_task_proto_goTypes,
660 DependencyIndexes: file_google_cloud_tasks_v2beta2_task_proto_depIdxs,
661 EnumInfos: file_google_cloud_tasks_v2beta2_task_proto_enumTypes,
662 MessageInfos: file_google_cloud_tasks_v2beta2_task_proto_msgTypes,
663 }.Build()
664 File_google_cloud_tasks_v2beta2_task_proto = out.File
665 file_google_cloud_tasks_v2beta2_task_proto_rawDesc = nil
666 file_google_cloud_tasks_v2beta2_task_proto_goTypes = nil
667 file_google_cloud_tasks_v2beta2_task_proto_depIdxs = nil
668 }