1// Copyright 2019 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
16// Code generated by protoc-gen-go. DO NOT EDIT.
17// versions:
18// 	protoc-gen-go v1.25.0
19// 	protoc        v3.13.0
20// source: google/cloud/tasks/v2/task.proto
21
22package tasks
23
24import (
25	reflect "reflect"
26	sync "sync"
27
28	proto "github.com/golang/protobuf/proto"
29	_ "google.golang.org/genproto/googleapis/api/annotations"
30	status "google.golang.org/genproto/googleapis/rpc/status"
31	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
32	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
33	durationpb "google.golang.org/protobuf/types/known/durationpb"
34	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
35)
36
37const (
38	// Verify that this generated code is sufficiently up-to-date.
39	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40	// Verify that runtime/protoimpl is sufficiently up-to-date.
41	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42)
43
44// This is a compile-time assertion that a sufficiently up-to-date version
45// of the legacy proto package is being used.
46const _ = proto.ProtoPackageIsVersion4
47
48// The view specifies a subset of [Task][google.cloud.tasks.v2.Task] data.
49//
50// When a task is returned in a response, not all
51// information is retrieved by default because some data, such as
52// payloads, might be desirable to return only when needed because
53// of its large size or because of the sensitivity of data that it
54// contains.
55type Task_View int32
56
57const (
58	// Unspecified. Defaults to BASIC.
59	Task_VIEW_UNSPECIFIED Task_View = 0
60	// The basic view omits fields which can be large or can contain
61	// sensitive data.
62	//
63	// This view does not include the
64	// [body in AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest.body].
65	// Bodies are desirable to return only when needed, because they
66	// can be large and because of the sensitivity of the data that you
67	// choose to store in it.
68	Task_BASIC Task_View = 1
69	// All information is returned.
70	//
71	// Authorization for [FULL][google.cloud.tasks.v2.Task.View.FULL] requires
72	// `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/)
73	// permission on the [Queue][google.cloud.tasks.v2.Queue] resource.
74	Task_FULL Task_View = 2
75)
76
77// Enum value maps for Task_View.
78var (
79	Task_View_name = map[int32]string{
80		0: "VIEW_UNSPECIFIED",
81		1: "BASIC",
82		2: "FULL",
83	}
84	Task_View_value = map[string]int32{
85		"VIEW_UNSPECIFIED": 0,
86		"BASIC":            1,
87		"FULL":             2,
88	}
89)
90
91func (x Task_View) Enum() *Task_View {
92	p := new(Task_View)
93	*p = x
94	return p
95}
96
97func (x Task_View) String() string {
98	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
99}
100
101func (Task_View) Descriptor() protoreflect.EnumDescriptor {
102	return file_google_cloud_tasks_v2_task_proto_enumTypes[0].Descriptor()
103}
104
105func (Task_View) Type() protoreflect.EnumType {
106	return &file_google_cloud_tasks_v2_task_proto_enumTypes[0]
107}
108
109func (x Task_View) Number() protoreflect.EnumNumber {
110	return protoreflect.EnumNumber(x)
111}
112
113// Deprecated: Use Task_View.Descriptor instead.
114func (Task_View) EnumDescriptor() ([]byte, []int) {
115	return file_google_cloud_tasks_v2_task_proto_rawDescGZIP(), []int{0, 0}
116}
117
118// A unit of scheduled work.
119type Task struct {
120	state         protoimpl.MessageState
121	sizeCache     protoimpl.SizeCache
122	unknownFields protoimpl.UnknownFields
123
124	// Optionally caller-specified in [CreateTask][google.cloud.tasks.v2.CloudTasks.CreateTask].
125	//
126	// The task name.
127	//
128	// The task name must have the following format:
129	// `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`
130	//
131	// * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
132	//    hyphens (-), colons (:), or periods (.).
133	//    For more information, see
134	//    [Identifying
135	//    projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
136	// * `LOCATION_ID` is the canonical ID for the task's location.
137	//    The list of available locations can be obtained by calling
138	//    [ListLocations][google.cloud.location.Locations.ListLocations].
139	//    For more information, see https://cloud.google.com/about/locations/.
140	// * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
141	//   hyphens (-). The maximum length is 100 characters.
142	// * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]),
143	//   hyphens (-), or underscores (_). The maximum length is 500 characters.
144	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
145	// Required. The message to send to the worker.
146	//
147	// Types that are assignable to MessageType:
148	//	*Task_AppEngineHttpRequest
149	//	*Task_HttpRequest
150	MessageType isTask_MessageType `protobuf_oneof:"message_type"`
151	// The time when the task is scheduled to be attempted or retried.
152	//
153	// `schedule_time` will be truncated to the nearest microsecond.
154	ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"`
155	// Output only. The time that the task was created.
156	//
157	// `create_time` will be truncated to the nearest second.
158	CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
159	// The deadline for requests sent to the worker. If the worker does not
160	// respond by this deadline then the request is cancelled and the attempt
161	// is marked as a `DEADLINE_EXCEEDED` failure. Cloud Tasks will retry the
162	// task according to the [RetryConfig][google.cloud.tasks.v2.RetryConfig].
163	//
164	// Note that when the request is cancelled, Cloud Tasks will stop listing for
165	// the response, but whether the worker stops processing depends on the
166	// worker. For example, if the worker is stuck, it may not react to cancelled
167	// requests.
168	//
169	// The default and maximum values depend on the type of request:
170	//
171	// * For [HTTP tasks][google.cloud.tasks.v2.HttpRequest], the default is 10 minutes. The deadline
172	//   must be in the interval [15 seconds, 30 minutes].
173	//
174	// * For [App Engine tasks][google.cloud.tasks.v2.AppEngineHttpRequest], 0 indicates that the
175	//   request has the default deadline. The default deadline depends on the
176	//   [scaling
177	//   type](https://cloud.google.com/appengine/docs/standard/go/how-instances-are-managed#instance_scaling)
178	//   of the service: 10 minutes for standard apps with automatic scaling, 24
179	//   hours for standard apps with manual and basic scaling, and 60 minutes for
180	//   flex apps. If the request deadline is set, it must be in the interval [15
181	//   seconds, 24 hours 15 seconds]. Regardless of the task's
182	//   `dispatch_deadline`, the app handler will not run for longer than than
183	//   the service's timeout. We recommend setting the `dispatch_deadline` to
184	//   at most a few seconds more than the app handler's timeout. For more
185	//   information see
186	//   [Timeouts](https://cloud.google.com/tasks/docs/creating-appengine-handlers#timeouts).
187	//
188	// `dispatch_deadline` will be truncated to the nearest millisecond. The
189	// deadline is an approximate deadline.
190	DispatchDeadline *durationpb.Duration `protobuf:"bytes,6,opt,name=dispatch_deadline,json=dispatchDeadline,proto3" json:"dispatch_deadline,omitempty"`
191	// Output only. The number of attempts dispatched.
192	//
193	// This count includes attempts which have been dispatched but haven't
194	// received a response.
195	DispatchCount int32 `protobuf:"varint,7,opt,name=dispatch_count,json=dispatchCount,proto3" json:"dispatch_count,omitempty"`
196	// Output only. The number of attempts which have received a response.
197	ResponseCount int32 `protobuf:"varint,8,opt,name=response_count,json=responseCount,proto3" json:"response_count,omitempty"`
198	// Output only. The status of the task's first attempt.
199	//
200	// Only [dispatch_time][google.cloud.tasks.v2.Attempt.dispatch_time] will be set.
201	// The other [Attempt][google.cloud.tasks.v2.Attempt] information is not retained by Cloud Tasks.
202	FirstAttempt *Attempt `protobuf:"bytes,9,opt,name=first_attempt,json=firstAttempt,proto3" json:"first_attempt,omitempty"`
203	// Output only. The status of the task's last attempt.
204	LastAttempt *Attempt `protobuf:"bytes,10,opt,name=last_attempt,json=lastAttempt,proto3" json:"last_attempt,omitempty"`
205	// Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2.Task] has
206	// been returned.
207	View Task_View `protobuf:"varint,11,opt,name=view,proto3,enum=google.cloud.tasks.v2.Task_View" json:"view,omitempty"`
208}
209
210func (x *Task) Reset() {
211	*x = Task{}
212	if protoimpl.UnsafeEnabled {
213		mi := &file_google_cloud_tasks_v2_task_proto_msgTypes[0]
214		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
215		ms.StoreMessageInfo(mi)
216	}
217}
218
219func (x *Task) String() string {
220	return protoimpl.X.MessageStringOf(x)
221}
222
223func (*Task) ProtoMessage() {}
224
225func (x *Task) ProtoReflect() protoreflect.Message {
226	mi := &file_google_cloud_tasks_v2_task_proto_msgTypes[0]
227	if protoimpl.UnsafeEnabled && x != nil {
228		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
229		if ms.LoadMessageInfo() == nil {
230			ms.StoreMessageInfo(mi)
231		}
232		return ms
233	}
234	return mi.MessageOf(x)
235}
236
237// Deprecated: Use Task.ProtoReflect.Descriptor instead.
238func (*Task) Descriptor() ([]byte, []int) {
239	return file_google_cloud_tasks_v2_task_proto_rawDescGZIP(), []int{0}
240}
241
242func (x *Task) GetName() string {
243	if x != nil {
244		return x.Name
245	}
246	return ""
247}
248
249func (m *Task) GetMessageType() isTask_MessageType {
250	if m != nil {
251		return m.MessageType
252	}
253	return nil
254}
255
256func (x *Task) GetAppEngineHttpRequest() *AppEngineHttpRequest {
257	if x, ok := x.GetMessageType().(*Task_AppEngineHttpRequest); ok {
258		return x.AppEngineHttpRequest
259	}
260	return nil
261}
262
263func (x *Task) GetHttpRequest() *HttpRequest {
264	if x, ok := x.GetMessageType().(*Task_HttpRequest); ok {
265		return x.HttpRequest
266	}
267	return nil
268}
269
270func (x *Task) GetScheduleTime() *timestamppb.Timestamp {
271	if x != nil {
272		return x.ScheduleTime
273	}
274	return nil
275}
276
277func (x *Task) GetCreateTime() *timestamppb.Timestamp {
278	if x != nil {
279		return x.CreateTime
280	}
281	return nil
282}
283
284func (x *Task) GetDispatchDeadline() *durationpb.Duration {
285	if x != nil {
286		return x.DispatchDeadline
287	}
288	return nil
289}
290
291func (x *Task) GetDispatchCount() int32 {
292	if x != nil {
293		return x.DispatchCount
294	}
295	return 0
296}
297
298func (x *Task) GetResponseCount() int32 {
299	if x != nil {
300		return x.ResponseCount
301	}
302	return 0
303}
304
305func (x *Task) GetFirstAttempt() *Attempt {
306	if x != nil {
307		return x.FirstAttempt
308	}
309	return nil
310}
311
312func (x *Task) GetLastAttempt() *Attempt {
313	if x != nil {
314		return x.LastAttempt
315	}
316	return nil
317}
318
319func (x *Task) GetView() Task_View {
320	if x != nil {
321		return x.View
322	}
323	return Task_VIEW_UNSPECIFIED
324}
325
326type isTask_MessageType interface {
327	isTask_MessageType()
328}
329
330type Task_AppEngineHttpRequest struct {
331	// HTTP request that is sent to the App Engine app handler.
332	//
333	// An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2.AppEngineHttpRequest] set.
334	AppEngineHttpRequest *AppEngineHttpRequest `protobuf:"bytes,2,opt,name=app_engine_http_request,json=appEngineHttpRequest,proto3,oneof"`
335}
336
337type Task_HttpRequest struct {
338	// HTTP request that is sent to the worker.
339	//
340	// An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2.HttpRequest] set.
341	HttpRequest *HttpRequest `protobuf:"bytes,3,opt,name=http_request,json=httpRequest,proto3,oneof"`
342}
343
344func (*Task_AppEngineHttpRequest) isTask_MessageType() {}
345
346func (*Task_HttpRequest) isTask_MessageType() {}
347
348// The status of a task attempt.
349type Attempt struct {
350	state         protoimpl.MessageState
351	sizeCache     protoimpl.SizeCache
352	unknownFields protoimpl.UnknownFields
353
354	// Output only. The time that this attempt was scheduled.
355	//
356	// `schedule_time` will be truncated to the nearest microsecond.
357	ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"`
358	// Output only. The time that this attempt was dispatched.
359	//
360	// `dispatch_time` will be truncated to the nearest microsecond.
361	DispatchTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=dispatch_time,json=dispatchTime,proto3" json:"dispatch_time,omitempty"`
362	// Output only. The time that this attempt response was received.
363	//
364	// `response_time` will be truncated to the nearest microsecond.
365	ResponseTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=response_time,json=responseTime,proto3" json:"response_time,omitempty"`
366	// Output only. The response from the worker for this attempt.
367	//
368	// If `response_time` is unset, then the task has not been attempted or is
369	// currently running and the `response_status` field is meaningless.
370	ResponseStatus *status.Status `protobuf:"bytes,4,opt,name=response_status,json=responseStatus,proto3" json:"response_status,omitempty"`
371}
372
373func (x *Attempt) Reset() {
374	*x = Attempt{}
375	if protoimpl.UnsafeEnabled {
376		mi := &file_google_cloud_tasks_v2_task_proto_msgTypes[1]
377		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
378		ms.StoreMessageInfo(mi)
379	}
380}
381
382func (x *Attempt) String() string {
383	return protoimpl.X.MessageStringOf(x)
384}
385
386func (*Attempt) ProtoMessage() {}
387
388func (x *Attempt) ProtoReflect() protoreflect.Message {
389	mi := &file_google_cloud_tasks_v2_task_proto_msgTypes[1]
390	if protoimpl.UnsafeEnabled && x != nil {
391		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
392		if ms.LoadMessageInfo() == nil {
393			ms.StoreMessageInfo(mi)
394		}
395		return ms
396	}
397	return mi.MessageOf(x)
398}
399
400// Deprecated: Use Attempt.ProtoReflect.Descriptor instead.
401func (*Attempt) Descriptor() ([]byte, []int) {
402	return file_google_cloud_tasks_v2_task_proto_rawDescGZIP(), []int{1}
403}
404
405func (x *Attempt) GetScheduleTime() *timestamppb.Timestamp {
406	if x != nil {
407		return x.ScheduleTime
408	}
409	return nil
410}
411
412func (x *Attempt) GetDispatchTime() *timestamppb.Timestamp {
413	if x != nil {
414		return x.DispatchTime
415	}
416	return nil
417}
418
419func (x *Attempt) GetResponseTime() *timestamppb.Timestamp {
420	if x != nil {
421		return x.ResponseTime
422	}
423	return nil
424}
425
426func (x *Attempt) GetResponseStatus() *status.Status {
427	if x != nil {
428		return x.ResponseStatus
429	}
430	return nil
431}
432
433var File_google_cloud_tasks_v2_task_proto protoreflect.FileDescriptor
434
435var file_google_cloud_tasks_v2_task_proto_rawDesc = []byte{
436	0x0a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74,
437	0x61, 0x73, 0x6b, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f,
438	0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
439	0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
440	0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70,
441	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f,
442	0x75, 0x64, 0x2f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x61, 0x72, 0x67,
443	0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
444	0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69,
445	0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
446	0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
447	0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
448	0x65, 0x2f, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f,
449	0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61,
450	0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
451	0x22, 0xc8, 0x06, 0x0a, 0x04, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
452	0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x64, 0x0a,
453	0x17, 0x61, 0x70, 0x70, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x68, 0x74, 0x74, 0x70,
454	0x5f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b,
455	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61,
456	0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x70, 0x70, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65,
457	0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x14, 0x61,
458	0x70, 0x70, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x71, 0x75,
459	0x65, 0x73, 0x74, 0x12, 0x47, 0x0a, 0x0c, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x72, 0x65, 0x71, 0x75,
460	0x65, 0x73, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
461	0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76,
462	0x32, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52,
463	0x0b, 0x68, 0x74, 0x74, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x0d,
464	0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20,
465	0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
466	0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52,
467	0x0c, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a,
468	0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01,
469	0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
470	0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a,
471	0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x46, 0x0a, 0x11, 0x64, 0x69,
472	0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x18,
473	0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
474	0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
475	0x52, 0x10, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x44, 0x65, 0x61, 0x64, 0x6c, 0x69,
476	0x6e, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x63,
477	0x6f, 0x75, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x64, 0x69, 0x73, 0x70,
478	0x61, 0x74, 0x63, 0x68, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x73,
479	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28,
480	0x05, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74,
481	0x12, 0x43, 0x0a, 0x0d, 0x66, 0x69, 0x72, 0x73, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70,
482	0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
483	0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x2e,
484	0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x52, 0x0c, 0x66, 0x69, 0x72, 0x73, 0x74, 0x41, 0x74,
485	0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x41, 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x61, 0x74,
486	0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f,
487	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73,
488	0x2e, 0x76, 0x32, 0x2e, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x52, 0x0b, 0x6c, 0x61, 0x73,
489	0x74, 0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x34, 0x0a, 0x04, 0x76, 0x69, 0x65, 0x77,
490	0x18, 0x0b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
491	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x2e, 0x54,
492	0x61, 0x73, 0x6b, 0x2e, 0x56, 0x69, 0x65, 0x77, 0x52, 0x04, 0x76, 0x69, 0x65, 0x77, 0x22, 0x31,
493	0x0a, 0x04, 0x56, 0x69, 0x65, 0x77, 0x12, 0x14, 0x0a, 0x10, 0x56, 0x49, 0x45, 0x57, 0x5f, 0x55,
494	0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05,
495	0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x46, 0x55, 0x4c, 0x4c, 0x10,
496	0x02, 0x3a, 0x68, 0xea, 0x41, 0x65, 0x0a, 0x1e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x61, 0x73,
497	0x6b, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f,
498	0x6d, 0x2f, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x43, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
499	0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74,
500	0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f,
501	0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x2f, 0x7b, 0x71, 0x75, 0x65, 0x75, 0x65, 0x7d, 0x2f, 0x74,
502	0x61, 0x73, 0x6b, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x73, 0x6b, 0x7d, 0x42, 0x0e, 0x0a, 0x0c, 0x6d,
503	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x89, 0x02, 0x0a, 0x07,
504	0x41, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x3f, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x64,
505	0x75, 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
506	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
507	0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x73, 0x63, 0x68, 0x65,
508	0x64, 0x75, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x64, 0x69, 0x73, 0x70,
509	0x61, 0x74, 0x63, 0x68, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
510	0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
511	0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x64, 0x69, 0x73,
512	0x70, 0x61, 0x74, 0x63, 0x68, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3f, 0x0a, 0x0d, 0x72, 0x65, 0x73,
513	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b,
514	0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
515	0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x72, 0x65,
516	0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0f, 0x72, 0x65,
517	0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20,
518	0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63,
519	0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x0e, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
520	0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x64, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
521	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b,
522	0x73, 0x2e, 0x76, 0x32, 0x42, 0x09, 0x54, 0x61, 0x73, 0x6b, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
523	0x01, 0x5a, 0x3a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67,
524	0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f,
525	0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74,
526	0x61, 0x73, 0x6b, 0x73, 0x2f, 0x76, 0x32, 0x3b, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x62, 0x06, 0x70,
527	0x72, 0x6f, 0x74, 0x6f, 0x33,
528}
529
530var (
531	file_google_cloud_tasks_v2_task_proto_rawDescOnce sync.Once
532	file_google_cloud_tasks_v2_task_proto_rawDescData = file_google_cloud_tasks_v2_task_proto_rawDesc
533)
534
535func file_google_cloud_tasks_v2_task_proto_rawDescGZIP() []byte {
536	file_google_cloud_tasks_v2_task_proto_rawDescOnce.Do(func() {
537		file_google_cloud_tasks_v2_task_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_tasks_v2_task_proto_rawDescData)
538	})
539	return file_google_cloud_tasks_v2_task_proto_rawDescData
540}
541
542var file_google_cloud_tasks_v2_task_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
543var file_google_cloud_tasks_v2_task_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
544var file_google_cloud_tasks_v2_task_proto_goTypes = []interface{}{
545	(Task_View)(0),                // 0: google.cloud.tasks.v2.Task.View
546	(*Task)(nil),                  // 1: google.cloud.tasks.v2.Task
547	(*Attempt)(nil),               // 2: google.cloud.tasks.v2.Attempt
548	(*AppEngineHttpRequest)(nil),  // 3: google.cloud.tasks.v2.AppEngineHttpRequest
549	(*HttpRequest)(nil),           // 4: google.cloud.tasks.v2.HttpRequest
550	(*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
551	(*durationpb.Duration)(nil),   // 6: google.protobuf.Duration
552	(*status.Status)(nil),         // 7: google.rpc.Status
553}
554var file_google_cloud_tasks_v2_task_proto_depIdxs = []int32{
555	3,  // 0: google.cloud.tasks.v2.Task.app_engine_http_request:type_name -> google.cloud.tasks.v2.AppEngineHttpRequest
556	4,  // 1: google.cloud.tasks.v2.Task.http_request:type_name -> google.cloud.tasks.v2.HttpRequest
557	5,  // 2: google.cloud.tasks.v2.Task.schedule_time:type_name -> google.protobuf.Timestamp
558	5,  // 3: google.cloud.tasks.v2.Task.create_time:type_name -> google.protobuf.Timestamp
559	6,  // 4: google.cloud.tasks.v2.Task.dispatch_deadline:type_name -> google.protobuf.Duration
560	2,  // 5: google.cloud.tasks.v2.Task.first_attempt:type_name -> google.cloud.tasks.v2.Attempt
561	2,  // 6: google.cloud.tasks.v2.Task.last_attempt:type_name -> google.cloud.tasks.v2.Attempt
562	0,  // 7: google.cloud.tasks.v2.Task.view:type_name -> google.cloud.tasks.v2.Task.View
563	5,  // 8: google.cloud.tasks.v2.Attempt.schedule_time:type_name -> google.protobuf.Timestamp
564	5,  // 9: google.cloud.tasks.v2.Attempt.dispatch_time:type_name -> google.protobuf.Timestamp
565	5,  // 10: google.cloud.tasks.v2.Attempt.response_time:type_name -> google.protobuf.Timestamp
566	7,  // 11: google.cloud.tasks.v2.Attempt.response_status:type_name -> google.rpc.Status
567	12, // [12:12] is the sub-list for method output_type
568	12, // [12:12] is the sub-list for method input_type
569	12, // [12:12] is the sub-list for extension type_name
570	12, // [12:12] is the sub-list for extension extendee
571	0,  // [0:12] is the sub-list for field type_name
572}
573
574func init() { file_google_cloud_tasks_v2_task_proto_init() }
575func file_google_cloud_tasks_v2_task_proto_init() {
576	if File_google_cloud_tasks_v2_task_proto != nil {
577		return
578	}
579	file_google_cloud_tasks_v2_target_proto_init()
580	if !protoimpl.UnsafeEnabled {
581		file_google_cloud_tasks_v2_task_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
582			switch v := v.(*Task); i {
583			case 0:
584				return &v.state
585			case 1:
586				return &v.sizeCache
587			case 2:
588				return &v.unknownFields
589			default:
590				return nil
591			}
592		}
593		file_google_cloud_tasks_v2_task_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
594			switch v := v.(*Attempt); i {
595			case 0:
596				return &v.state
597			case 1:
598				return &v.sizeCache
599			case 2:
600				return &v.unknownFields
601			default:
602				return nil
603			}
604		}
605	}
606	file_google_cloud_tasks_v2_task_proto_msgTypes[0].OneofWrappers = []interface{}{
607		(*Task_AppEngineHttpRequest)(nil),
608		(*Task_HttpRequest)(nil),
609	}
610	type x struct{}
611	out := protoimpl.TypeBuilder{
612		File: protoimpl.DescBuilder{
613			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
614			RawDescriptor: file_google_cloud_tasks_v2_task_proto_rawDesc,
615			NumEnums:      1,
616			NumMessages:   2,
617			NumExtensions: 0,
618			NumServices:   0,
619		},
620		GoTypes:           file_google_cloud_tasks_v2_task_proto_goTypes,
621		DependencyIndexes: file_google_cloud_tasks_v2_task_proto_depIdxs,
622		EnumInfos:         file_google_cloud_tasks_v2_task_proto_enumTypes,
623		MessageInfos:      file_google_cloud_tasks_v2_task_proto_msgTypes,
624	}.Build()
625	File_google_cloud_tasks_v2_task_proto = out.File
626	file_google_cloud_tasks_v2_task_proto_rawDesc = nil
627	file_google_cloud_tasks_v2_task_proto_goTypes = nil
628	file_google_cloud_tasks_v2_task_proto_depIdxs = nil
629}
630