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