Debian Codegraph @

cloudtasks/apiv2beta2/cloudtaskspb/queue.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/queue.proto
20
21 package cloudtaskspb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 durationpb "google.golang.org/protobuf/types/known/durationpb"
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 // State of the queue.
41 type Queue_State int32
42
43 const (
44 // Unspecified state.
45 Queue_STATE_UNSPECIFIED Queue_State = 0
46 // The queue is running. Tasks can be dispatched.
47 //
48 // If the queue was created using Cloud Tasks and the queue has
49 // had no activity (method calls or task dispatches) for 30 days,
50 // the queue may take a few minutes to re-activate. Some method
51 // calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and
52 // tasks may not be dispatched for a few minutes until the queue
53 // has been re-activated.
54 Queue_RUNNING Queue_State = 1
55 // Tasks are paused by the user. If the queue is paused then Cloud
56 // Tasks will stop delivering tasks from it, but more tasks can
57 // still be added to it by the user. When a pull queue is paused,
58 // all [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] calls
59 // will return a [FAILED_PRECONDITION][google.rpc.Code.FAILED_PRECONDITION].
60 Queue_PAUSED Queue_State = 2
61 // The queue is disabled.
62 //
63 // A queue becomes `DISABLED` when
64 // [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref)
65 // or
66 // [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref)
67 // is uploaded which does not contain the queue. You cannot directly disable
68 // a queue.
69 //
70 // When a queue is disabled, tasks can still be added to a queue
71 // but the tasks are not dispatched and
72 // [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] calls
73 // return a `FAILED_PRECONDITION` error.
74 //
75 // To permanently delete this queue and all of its tasks, call
76 // [DeleteQueue][google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue].
77 Queue_DISABLED Queue_State = 3
78 )
79
80 // Enum value maps for Queue_State.
81 var (
82 Queue_State_name = map[int32]string{
83 0: "STATE_UNSPECIFIED",
84 1: "RUNNING",
85 2: "PAUSED",
86 3: "DISABLED",
87 }
88 Queue_State_value = map[string]int32{
89 "STATE_UNSPECIFIED": 0,
90 "RUNNING": 1,
91 "PAUSED": 2,
92 "DISABLED": 3,
93 }
94 )
95
96 func (x Queue_State) Enum() *Queue_State {
97 p := new(Queue_State)
98 *p = x
99 return p
100 }
101
102 func (x Queue_State) String() string {
103 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
104 }
105
106 func (Queue_State) Descriptor() protoreflect.EnumDescriptor {
107 return file_google_cloud_tasks_v2beta2_queue_proto_enumTypes[0].Descriptor()
108 }
109
110 func (Queue_State) Type() protoreflect.EnumType {
111 return &file_google_cloud_tasks_v2beta2_queue_proto_enumTypes[0]
112 }
113
114 func (x Queue_State) Number() protoreflect.EnumNumber {
115 return protoreflect.EnumNumber(x)
116 }
117
118 // Deprecated: Use Queue_State.Descriptor instead.
119 func (Queue_State) EnumDescriptor() ([]byte, []int) {
120 return file_google_cloud_tasks_v2beta2_queue_proto_rawDescGZIP(), []int{0, 0}
121 }
122
123 // A queue is a container of related tasks. Queues are configured to manage
124 // how those tasks are dispatched. Configurable properties include rate limits,
125 // retry options, target types, and others.
126 type Queue struct {
127 state protoimpl.MessageState
128 sizeCache protoimpl.SizeCache
129 unknownFields protoimpl.UnknownFields
130
131 // Caller-specified and required in
132 // [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue], after
133 // which it becomes output only.
134 //
135 // The queue name.
136 //
137 // The queue name must have the following format:
138 // `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
139 //
140 // - `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]),
141 // hyphens (-), colons (:), or periods (.).
142 // For more information, see
143 // [Identifying
144 // projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects)
145 // - `LOCATION_ID` is the canonical ID for the queue's location.
146 // The list of available locations can be obtained by calling
147 // [ListLocations][google.cloud.location.Locations.ListLocations].
148 // For more information, see https://cloud.google.com/about/locations/.
149 // - `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or
150 // hyphens (-). The maximum length is 100 characters.
151 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
152 // Caller-specified and required in
153 // [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue][], after
154 // which the queue config type becomes output only, though fields within the
155 // config are mutable.
156 //
157 // The queue's target.
158 //
159 // The target applies to all tasks in the queue.
160 //
161 // Types that are assignable to TargetType:
162 //
163 // *Queue_AppEngineHttpTarget
164 // *Queue_PullTarget
165 // *Queue_HttpTarget
166 TargetType isQueue_TargetType `protobuf_oneof:"target_type"`
167 // Rate limits for task dispatches.
168 //
169 // [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] and
170 // [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] are related
171 // because they both control task attempts however they control how tasks are
172 // attempted in different ways:
173 //
174 // * [rate_limits][google.cloud.tasks.v2beta2.Queue.rate_limits] controls the
175 // total rate of
176 //
177 // dispatches from a queue (i.e. all traffic dispatched from the
178 // queue, regardless of whether the dispatch is from a first
179 // attempt or a retry).
180 //
181 // * [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls
182 // what happens to
183 //
184 // particular a task after its first attempt fails. That is,
185 // [retry_config][google.cloud.tasks.v2beta2.Queue.retry_config] controls
186 // task retries (the second attempt, third attempt, etc).
187 RateLimits *RateLimits `protobuf:"bytes,5,opt,name=rate_limits,json=rateLimits,proto3" json:"rate_limits,omitempty"`
188 // Settings that determine the retry behavior.
189 //
190 // - For tasks created using Cloud Tasks: the queue-level retry settings
191 // apply to all tasks in the queue that were created using Cloud Tasks.
192 // Retry settings cannot be set on individual tasks.
193 // - For tasks created using the App Engine SDK: the queue-level retry
194 // settings apply to all tasks in the queue which do not have retry settings
195 // explicitly set on the task and were created by the App Engine SDK. See
196 // [App Engine
197 // documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
198 RetryConfig *RetryConfig `protobuf:"bytes,6,opt,name=retry_config,json=retryConfig,proto3" json:"retry_config,omitempty"`
199 // Output only. The state of the queue.
200 //
201 // `state` can only be changed by called
202 // [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue],
203 // [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue], or
204 // uploading
205 // [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref).
206 // [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] cannot be
207 // used to change `state`.
208 State Queue_State `protobuf:"varint,7,opt,name=state,proto3,enum=google.cloud.tasks.v2beta2.Queue_State" json:"state,omitempty"`
209 // Output only. The last time this queue was purged.
210 //
211 // All tasks that were [created][google.cloud.tasks.v2beta2.Task.create_time]
212 // before this time were purged.
213 //
214 // A queue can be purged using
215 // [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue], the [App
216 // Engine Task Queue SDK, or the Cloud
217 // Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
218 //
219 // Purge time will be truncated to the nearest microsecond. Purge
220 // time will be unset if the queue has never been purged.
221 PurgeTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=purge_time,json=purgeTime,proto3" json:"purge_time,omitempty"`
222 // The maximum amount of time that a task will be retained in
223 // this queue.
224 //
225 // Queues created by Cloud Tasks have a default `task_ttl` of 31 days.
226 // After a task has lived for `task_ttl`, the task will be deleted
227 // regardless of whether it was dispatched or not.
228 //
229 // The `task_ttl` for queues created via queue.yaml/xml is equal to the
230 // maximum duration because there is a
231 // [storage quota](https://cloud.google.com/appengine/quotas#Task_Queue) for
232 // these queues. To view the maximum valid duration, see the documentation for
233 // [Duration][google.protobuf.Duration].
234 TaskTtl *durationpb.Duration `protobuf:"bytes,9,opt,name=task_ttl,json=taskTtl,proto3" json:"task_ttl,omitempty"`
235 // The task tombstone time to live (TTL).
236 //
237 // After a task is deleted or completed, the task's tombstone is
238 // retained for the length of time specified by `tombstone_ttl`.
239 // The tombstone is used by task de-duplication; another task with the same
240 // name can't be created until the tombstone has expired. For more information
241 // about task de-duplication, see the documentation for
242 // [CreateTaskRequest][google.cloud.tasks.v2beta2.CreateTaskRequest.task].
243 //
244 // Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
245 TombstoneTtl *durationpb.Duration `protobuf:"bytes,10,opt,name=tombstone_ttl,json=tombstoneTtl,proto3" json:"tombstone_ttl,omitempty"`
246 // Output only. The realtime, informational statistics for a queue. In order
247 // to receive the statistics the caller should include this field in the
248 // FieldMask.
249 Stats *QueueStats `protobuf:"bytes,16,opt,name=stats,proto3" json:"stats,omitempty"`
250 }
251
252 func (x *Queue) Reset() {
253 *x = Queue{}
254 mi := &file_google_cloud_tasks_v2beta2_queue_proto_msgTypes[0]
255 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
256 ms.StoreMessageInfo(mi)
257 }
258
259 func (x *Queue) String() string {
260 return protoimpl.X.MessageStringOf(x)
261 }
262
263 func (*Queue) ProtoMessage() {}
264
265 func (x *Queue) ProtoReflect() protoreflect.Message {
266 mi := &file_google_cloud_tasks_v2beta2_queue_proto_msgTypes[0]
267 if x != nil {
268 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
269 if ms.LoadMessageInfo() == nil {
270 ms.StoreMessageInfo(mi)
271 }
272 return ms
273 }
274 return mi.MessageOf(x)
275 }
276
277 // Deprecated: Use Queue.ProtoReflect.Descriptor instead.
278 func (*Queue) Descriptor() ([]byte, []int) {
279 return file_google_cloud_tasks_v2beta2_queue_proto_rawDescGZIP(), []int{0}
280 }
281
282 func (x *Queue) GetName() string {
283 if x != nil {
284 return x.Name
285 }
286 return ""
287 }
288
289 func (m *Queue) GetTargetType() isQueue_TargetType {
290 if m != nil {
291 return m.TargetType
292 }
293 return nil
294 }
295
296 func (x *Queue) GetAppEngineHttpTarget() *AppEngineHttpTarget {
297 if x, ok := x.GetTargetType().(*Queue_AppEngineHttpTarget); ok {
298 return x.AppEngineHttpTarget
299 }
300 return nil
301 }
302
303 func (x *Queue) GetPullTarget() *PullTarget {
304 if x, ok := x.GetTargetType().(*Queue_PullTarget); ok {
305 return x.PullTarget
306 }
307 return nil
308 }
309
310 func (x *Queue) GetHttpTarget() *HttpTarget {
311 if x, ok := x.GetTargetType().(*Queue_HttpTarget); ok {
312 return x.HttpTarget
313 }
314 return nil
315 }
316
317 func (x *Queue) GetRateLimits() *RateLimits {
318 if x != nil {
319 return x.RateLimits
320 }
321 return nil
322 }
323
324 func (x *Queue) GetRetryConfig() *RetryConfig {
325 if x != nil {
326 return x.RetryConfig
327 }
328 return nil
329 }
330
331 func (x *Queue) GetState() Queue_State {
332 if x != nil {
333 return x.State
334 }
335 return Queue_STATE_UNSPECIFIED
336 }
337
338 func (x *Queue) GetPurgeTime() *timestamppb.Timestamp {
339 if x != nil {
340 return x.PurgeTime
341 }
342 return nil
343 }
344
345 func (x *Queue) GetTaskTtl() *durationpb.Duration {
346 if x != nil {
347 return x.TaskTtl
348 }
349 return nil
350 }
351
352 func (x *Queue) GetTombstoneTtl() *durationpb.Duration {
353 if x != nil {
354 return x.TombstoneTtl
355 }
356 return nil
357 }
358
359 func (x *Queue) GetStats() *QueueStats {
360 if x != nil {
361 return x.Stats
362 }
363 return nil
364 }
365
366 type isQueue_TargetType interface {
367 isQueue_TargetType()
368 }
369
370 type Queue_AppEngineHttpTarget struct {
371 // App Engine HTTP target.
372 //
373 // An App Engine queue is a queue that has an
374 // [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget].
375 AppEngineHttpTarget *AppEngineHttpTarget `protobuf:"bytes,3,opt,name=app_engine_http_target,json=appEngineHttpTarget,proto3,oneof"`
376 }
377
378 type Queue_PullTarget struct {
379 // Pull target.
380 //
381 // A pull queue is a queue that has a
382 // [PullTarget][google.cloud.tasks.v2beta2.PullTarget].
383 PullTarget *PullTarget `protobuf:"bytes,4,opt,name=pull_target,json=pullTarget,proto3,oneof"`
384 }
385
386 type Queue_HttpTarget struct {
387 // An http_target is used to override the target values for HTTP tasks.
388 HttpTarget *HttpTarget `protobuf:"bytes,17,opt,name=http_target,json=httpTarget,proto3,oneof"`
389 }
390
391 func (*Queue_AppEngineHttpTarget) isQueue_TargetType() {}
392
393 func (*Queue_PullTarget) isQueue_TargetType() {}
394
395 func (*Queue_HttpTarget) isQueue_TargetType() {}
396
397 // Rate limits.
398 //
399 // This message determines the maximum rate that tasks can be dispatched by a
400 // queue, regardless of whether the dispatch is a first task attempt or a retry.
401 //
402 // Note: The debugging command,
403 // [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask], will run a task
404 // even if the queue has reached its
405 // [RateLimits][google.cloud.tasks.v2beta2.RateLimits].
406 type RateLimits struct {
407 state protoimpl.MessageState
408 sizeCache protoimpl.SizeCache
409 unknownFields protoimpl.UnknownFields
410
411 // The maximum rate at which tasks are dispatched from this queue.
412 //
413 // If unspecified when the queue is created, Cloud Tasks will pick the
414 // default.
415 //
416 // * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget],
417 // the maximum allowed value
418 //
419 // is 500.
420 //
421 // * This field is output only for [pull
422 // queues][google.cloud.tasks.v2beta2.PullTarget]. In addition to the
423 //
424 // `max_tasks_dispatched_per_second` limit, a maximum of 10 QPS of
425 // [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] requests
426 // are allowed per pull queue.
427 //
428 // This field has the same meaning as
429 // [rate in
430 // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
431 MaxTasksDispatchedPerSecond float64 `protobuf:"fixed64,1,opt,name=max_tasks_dispatched_per_second,json=maxTasksDispatchedPerSecond,proto3" json:"max_tasks_dispatched_per_second,omitempty"`
432 // The max burst size.
433 //
434 // Max burst size limits how fast tasks in queue are processed when
435 // many tasks are in the queue and the rate is high. This field
436 // allows the queue to have a high rate so processing starts shortly
437 // after a task is enqueued, but still limits resource usage when
438 // many tasks are enqueued in a short period of time.
439 //
440 // The [token bucket](https://wikipedia.org/wiki/Token_Bucket)
441 // algorithm is used to control the rate of task dispatches. Each
442 // queue has a token bucket that holds tokens, up to the maximum
443 // specified by `max_burst_size`. Each time a task is dispatched, a
444 // token is removed from the bucket. Tasks will be dispatched until
445 // the queue's bucket runs out of tokens. The bucket will be
446 // continuously refilled with new tokens based on
447 // [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
448 //
449 // The default value of `max_burst_size` is picked by Cloud Tasks
450 // based on the value of
451 // [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
452 //
453 // The maximum value of `max_burst_size` is 500.
454 //
455 // For App Engine queues that were created or updated using
456 // `queue.yaml/xml`, `max_burst_size` is equal to
457 // [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size).
458 // If
459 // [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] is called
460 // on a queue without explicitly setting a value for `max_burst_size`,
461 // `max_burst_size` value will get updated if
462 // [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue] is
463 // updating [max_dispatches_per_second][RateLimits.max_dispatches_per_second].
464 MaxBurstSize int32 `protobuf:"varint,2,opt,name=max_burst_size,json=maxBurstSize,proto3" json:"max_burst_size,omitempty"`
465 // The maximum number of concurrent tasks that Cloud Tasks allows
466 // to be dispatched for this queue. After this threshold has been
467 // reached, Cloud Tasks stops dispatching tasks until the number of
468 // concurrent requests decreases.
469 //
470 // If unspecified when the queue is created, Cloud Tasks will pick the
471 // default.
472 //
473 // The maximum allowed value is 5,000.
474 //
475 // This field is output only for
476 // [pull queues][google.cloud.tasks.v2beta2.PullTarget] and always -1, which
477 // indicates no limit. No other queue types can have `max_concurrent_tasks`
478 // set to -1.
479 //
480 // This field has the same meaning as
481 // [max_concurrent_requests in
482 // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests).
483 MaxConcurrentTasks int32 `protobuf:"varint,3,opt,name=max_concurrent_tasks,json=maxConcurrentTasks,proto3" json:"max_concurrent_tasks,omitempty"`
484 }
485
486 func (x *RateLimits) Reset() {
487 *x = RateLimits{}
488 mi := &file_google_cloud_tasks_v2beta2_queue_proto_msgTypes[1]
489 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
490 ms.StoreMessageInfo(mi)
491 }
492
493 func (x *RateLimits) String() string {
494 return protoimpl.X.MessageStringOf(x)
495 }
496
497 func (*RateLimits) ProtoMessage() {}
498
499 func (x *RateLimits) ProtoReflect() protoreflect.Message {
500 mi := &file_google_cloud_tasks_v2beta2_queue_proto_msgTypes[1]
501 if x != nil {
502 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
503 if ms.LoadMessageInfo() == nil {
504 ms.StoreMessageInfo(mi)
505 }
506 return ms
507 }
508 return mi.MessageOf(x)
509 }
510
511 // Deprecated: Use RateLimits.ProtoReflect.Descriptor instead.
512 func (*RateLimits) Descriptor() ([]byte, []int) {
513 return file_google_cloud_tasks_v2beta2_queue_proto_rawDescGZIP(), []int{1}
514 }
515
516 func (x *RateLimits) GetMaxTasksDispatchedPerSecond() float64 {
517 if x != nil {
518 return x.MaxTasksDispatchedPerSecond
519 }
520 return 0
521 }
522
523 func (x *RateLimits) GetMaxBurstSize() int32 {
524 if x != nil {
525 return x.MaxBurstSize
526 }
527 return 0
528 }
529
530 func (x *RateLimits) GetMaxConcurrentTasks() int32 {
531 if x != nil {
532 return x.MaxConcurrentTasks
533 }
534 return 0
535 }
536
537 // Retry config.
538 //
539 // These settings determine how a failed task attempt is retried.
540 type RetryConfig struct {
541 state protoimpl.MessageState
542 sizeCache protoimpl.SizeCache
543 unknownFields protoimpl.UnknownFields
544
545 // Number of attempts per task.
546 //
547 // If unspecified when the queue is created, Cloud Tasks will pick the
548 // default.
549 //
550 // This field has the same meaning as
551 // [task_retry_limit in
552 // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
553 //
554 // Types that are assignable to NumAttempts:
555 //
556 // *RetryConfig_MaxAttempts
557 // *RetryConfig_UnlimitedAttempts
558 NumAttempts isRetryConfig_NumAttempts `protobuf_oneof:"num_attempts"`
559 // If positive, `max_retry_duration` specifies the time limit for
560 // retrying a failed task, measured from when the task was first
561 // attempted. Once `max_retry_duration` time has passed *and* the
562 // task has been attempted
563 // [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times,
564 // no further attempts will be made and the task will be deleted.
565 //
566 // If zero, then the task age is unlimited.
567 //
568 // If unspecified when the queue is created, Cloud Tasks will pick the
569 // default.
570 //
571 // This field is output only for [pull
572 // queues][google.cloud.tasks.v2beta2.PullTarget].
573 //
574 // `max_retry_duration` will be truncated to the nearest second.
575 //
576 // This field has the same meaning as
577 // [task_age_limit in
578 // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
579 MaxRetryDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=max_retry_duration,json=maxRetryDuration,proto3" json:"max_retry_duration,omitempty"`
580 // A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
581 // for retry between
582 // [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
583 // [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
584 // after it fails, if the queue's
585 // [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
586 // task should be retried.
587 //
588 // If unspecified when the queue is created, Cloud Tasks will pick the
589 // default.
590 //
591 // This field is output only for [pull
592 // queues][google.cloud.tasks.v2beta2.PullTarget].
593 //
594 // `min_backoff` will be truncated to the nearest second.
595 //
596 // This field has the same meaning as
597 // [min_backoff_seconds in
598 // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
599 MinBackoff *durationpb.Duration `protobuf:"bytes,4,opt,name=min_backoff,json=minBackoff,proto3" json:"min_backoff,omitempty"`
600 // A task will be [scheduled][google.cloud.tasks.v2beta2.Task.schedule_time]
601 // for retry between
602 // [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] and
603 // [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] duration
604 // after it fails, if the queue's
605 // [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig] specifies that the
606 // task should be retried.
607 //
608 // If unspecified when the queue is created, Cloud Tasks will pick the
609 // default.
610 //
611 // This field is output only for [pull
612 // queues][google.cloud.tasks.v2beta2.PullTarget].
613 //
614 // `max_backoff` will be truncated to the nearest second.
615 //
616 // This field has the same meaning as
617 // [max_backoff_seconds in
618 // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
619 MaxBackoff *durationpb.Duration `protobuf:"bytes,5,opt,name=max_backoff,json=maxBackoff,proto3" json:"max_backoff,omitempty"`
620 // The time between retries will double `max_doublings` times.
621 //
622 // A task's retry interval starts at
623 // [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff], then
624 // doubles `max_doublings` times, then increases linearly, and finally retries
625 // at intervals of
626 // [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] up to
627 // [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
628 //
629 // For example, if
630 // [min_backoff][google.cloud.tasks.v2beta2.RetryConfig.min_backoff] is 10s,
631 // [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] is 300s,
632 // and `max_doublings` is 3, then the a task will first be retried in 10s. The
633 // retry interval will double three times, and then increase linearly by 2^3 *
634 // 10s. Finally, the task will retry at intervals of
635 // [max_backoff][google.cloud.tasks.v2beta2.RetryConfig.max_backoff] until the
636 // task has been attempted
637 // [max_attempts][google.cloud.tasks.v2beta2.RetryConfig.max_attempts] times.
638 // Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s,
639 // 300s, ....
640 //
641 // If unspecified when the queue is created, Cloud Tasks will pick the
642 // default.
643 //
644 // This field is output only for [pull
645 // queues][google.cloud.tasks.v2beta2.PullTarget].
646 //
647 // This field has the same meaning as
648 // [max_doublings in
649 // queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
650 MaxDoublings int32 `protobuf:"varint,6,opt,name=max_doublings,json=maxDoublings,proto3" json:"max_doublings,omitempty"`
651 }
652
653 func (x *RetryConfig) Reset() {
654 *x = RetryConfig{}
655 mi := &file_google_cloud_tasks_v2beta2_queue_proto_msgTypes[2]
656 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
657 ms.StoreMessageInfo(mi)
658 }
659
660 func (x *RetryConfig) String() string {
661 return protoimpl.X.MessageStringOf(x)
662 }
663
664 func (*RetryConfig) ProtoMessage() {}
665
666 func (x *RetryConfig) ProtoReflect() protoreflect.Message {
667 mi := &file_google_cloud_tasks_v2beta2_queue_proto_msgTypes[2]
668 if x != nil {
669 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
670 if ms.LoadMessageInfo() == nil {
671 ms.StoreMessageInfo(mi)
672 }
673 return ms
674 }
675 return mi.MessageOf(x)
676 }
677
678 // Deprecated: Use RetryConfig.ProtoReflect.Descriptor instead.
679 func (*RetryConfig) Descriptor() ([]byte, []int) {
680 return file_google_cloud_tasks_v2beta2_queue_proto_rawDescGZIP(), []int{2}
681 }
682
683 func (m *RetryConfig) GetNumAttempts() isRetryConfig_NumAttempts {
684 if m != nil {
685 return m.NumAttempts
686 }
687 return nil
688 }
689
690 func (x *RetryConfig) GetMaxAttempts() int32 {
691 if x, ok := x.GetNumAttempts().(*RetryConfig_MaxAttempts); ok {
692 return x.MaxAttempts
693 }
694 return 0
695 }
696
697 func (x *RetryConfig) GetUnlimitedAttempts() bool {
698 if x, ok := x.GetNumAttempts().(*RetryConfig_UnlimitedAttempts); ok {
699 return x.UnlimitedAttempts
700 }
701 return false
702 }
703
704 func (x *RetryConfig) GetMaxRetryDuration() *durationpb.Duration {
705 if x != nil {
706 return x.MaxRetryDuration
707 }
708 return nil
709 }
710
711 func (x *RetryConfig) GetMinBackoff() *durationpb.Duration {
712 if x != nil {
713 return x.MinBackoff
714 }
715 return nil
716 }
717
718 func (x *RetryConfig) GetMaxBackoff() *durationpb.Duration {
719 if x != nil {
720 return x.MaxBackoff
721 }
722 return nil
723 }
724
725 func (x *RetryConfig) GetMaxDoublings() int32 {
726 if x != nil {
727 return x.MaxDoublings
728 }
729 return 0
730 }
731
732 type isRetryConfig_NumAttempts interface {
733 isRetryConfig_NumAttempts()
734 }
735
736 type RetryConfig_MaxAttempts struct {
737 // The maximum number of attempts for a task.
738 //
739 // Cloud Tasks will attempt the task `max_attempts` times (that
740 // is, if the first attempt fails, then there will be
741 // `max_attempts - 1` retries). Must be > 0.
742 MaxAttempts int32 `protobuf:"varint,1,opt,name=max_attempts,json=maxAttempts,proto3,oneof"`
743 }
744
745 type RetryConfig_UnlimitedAttempts struct {
746 // If true, then the number of attempts is unlimited.
747 UnlimitedAttempts bool `protobuf:"varint,2,opt,name=unlimited_attempts,json=unlimitedAttempts,proto3,oneof"`
748 }
749
750 func (*RetryConfig_MaxAttempts) isRetryConfig_NumAttempts() {}
751
752 func (*RetryConfig_UnlimitedAttempts) isRetryConfig_NumAttempts() {}
753
754 // Statistics for a queue.
755 type QueueStats struct {
756 state protoimpl.MessageState
757 sizeCache protoimpl.SizeCache
758 unknownFields protoimpl.UnknownFields
759
760 // Output only. An estimation of the number of tasks in the queue, that is,
761 // the tasks in the queue that haven't been executed, the tasks in the queue
762 // which the queue has dispatched but has not yet received a reply for, and
763 // the failed tasks that the queue is retrying.
764 TasksCount int64 `protobuf:"varint,1,opt,name=tasks_count,json=tasksCount,proto3" json:"tasks_count,omitempty"`
765 // Output only. An estimation of the nearest time in the future where a task
766 // in the queue is scheduled to be executed.
767 OldestEstimatedArrivalTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=oldest_estimated_arrival_time,json=oldestEstimatedArrivalTime,proto3" json:"oldest_estimated_arrival_time,omitempty"`
768 // Output only. The number of tasks that the queue has dispatched and received
769 // a reply for during the last minute. This variable counts both successful
770 // and non-successful executions.
771 ExecutedLastMinuteCount int64 `protobuf:"varint,3,opt,name=executed_last_minute_count,json=executedLastMinuteCount,proto3" json:"executed_last_minute_count,omitempty"`
772 // Output only. The number of requests that the queue has dispatched but has
773 // not received a reply for yet.
774 ConcurrentDispatchesCount int64 `protobuf:"varint,4,opt,name=concurrent_dispatches_count,json=concurrentDispatchesCount,proto3" json:"concurrent_dispatches_count,omitempty"`
775 // Output only. The current maximum number of tasks per second executed by the
776 // queue. The maximum value of this variable is controlled by the RateLimits
777 // of the Queue. However, this value could be less to avoid overloading the
778 // endpoints tasks in the queue are targeting.
779 EffectiveExecutionRate float64 `protobuf:"fixed64,5,opt,name=effective_execution_rate,json=effectiveExecutionRate,proto3" json:"effective_execution_rate,omitempty"`
780 }
781
782 func (x *QueueStats) Reset() {
783 *x = QueueStats{}
784 mi := &file_google_cloud_tasks_v2beta2_queue_proto_msgTypes[3]
785 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
786 ms.StoreMessageInfo(mi)
787 }
788
789 func (x *QueueStats) String() string {
790 return protoimpl.X.MessageStringOf(x)
791 }
792
793 func (*QueueStats) ProtoMessage() {}
794
795 func (x *QueueStats) ProtoReflect() protoreflect.Message {
796 mi := &file_google_cloud_tasks_v2beta2_queue_proto_msgTypes[3]
797 if x != nil {
798 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
799 if ms.LoadMessageInfo() == nil {
800 ms.StoreMessageInfo(mi)
801 }
802 return ms
803 }
804 return mi.MessageOf(x)
805 }
806
807 // Deprecated: Use QueueStats.ProtoReflect.Descriptor instead.
808 func (*QueueStats) Descriptor() ([]byte, []int) {
809 return file_google_cloud_tasks_v2beta2_queue_proto_rawDescGZIP(), []int{3}
810 }
811
812 func (x *QueueStats) GetTasksCount() int64 {
813 if x != nil {
814 return x.TasksCount
815 }
816 return 0
817 }
818
819 func (x *QueueStats) GetOldestEstimatedArrivalTime() *timestamppb.Timestamp {
820 if x != nil {
821 return x.OldestEstimatedArrivalTime
822 }
823 return nil
824 }
825
826 func (x *QueueStats) GetExecutedLastMinuteCount() int64 {
827 if x != nil {
828 return x.ExecutedLastMinuteCount
829 }
830 return 0
831 }
832
833 func (x *QueueStats) GetConcurrentDispatchesCount() int64 {
834 if x != nil {
835 return x.ConcurrentDispatchesCount
836 }
837 return 0
838 }
839
840 func (x *QueueStats) GetEffectiveExecutionRate() float64 {
841 if x != nil {
842 return x.EffectiveExecutionRate
843 }
844 return 0
845 }
846
847 var File_google_cloud_tasks_v2beta2_queue_proto protoreflect.FileDescriptor
848
849 var file_google_cloud_tasks_v2beta2_queue_proto_rawDesc = []byte{
850 0x0a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74,
851 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x71, 0x75, 0x65,
852 0x75, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
853 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62,
854 0x65, 0x74, 0x61, 0x32, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
855 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e,
856 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
857 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
858 0x1a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x74,
859 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x74, 0x61, 0x72,
860 0x67, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
861 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74,
862 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
863 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
864 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x95, 0x07, 0x0a, 0x05, 0x51,
865 0x75, 0x65, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
866 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x66, 0x0a, 0x16, 0x61, 0x70, 0x70, 0x5f,
867 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x74, 0x61, 0x72, 0x67,
868 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
869 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32,
870 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x41, 0x70, 0x70, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x48,
871 0x74, 0x74, 0x70, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x00, 0x52, 0x13, 0x61, 0x70, 0x70,
872 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x48, 0x74, 0x74, 0x70, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74,
873 0x12, 0x49, 0x0a, 0x0b, 0x70, 0x75, 0x6c, 0x6c, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18,
874 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
875 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74,
876 0x61, 0x32, 0x2e, 0x50, 0x75, 0x6c, 0x6c, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x00, 0x52,
877 0x0a, 0x70, 0x75, 0x6c, 0x6c, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x49, 0x0a, 0x0b, 0x68,
878 0x74, 0x74, 0x70, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b,
879 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
880 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x48, 0x74,
881 0x74, 0x70, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x68, 0x74, 0x74, 0x70,
882 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x47, 0x0a, 0x0b, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x6c,
883 0x69, 0x6d, 0x69, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f,
884 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73,
885 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d,
886 0x69, 0x74, 0x73, 0x52, 0x0a, 0x72, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x73, 0x12,
887 0x4a, 0x0a, 0x0c, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18,
888 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
889 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74,
890 0x61, 0x32, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0b,
891 0x72, 0x65, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3d, 0x0a, 0x05, 0x73,
892 0x74, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f,
893 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e,
894 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x2e, 0x53, 0x74,
895 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x70, 0x75,
896 0x72, 0x67, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
897 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
898 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x70, 0x75, 0x72, 0x67,
899 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x74, 0x74,
900 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
901 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69,
902 0x6f, 0x6e, 0x52, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x54, 0x74, 0x6c, 0x12, 0x3e, 0x0a, 0x0d, 0x74,
903 0x6f, 0x6d, 0x62, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x5f, 0x74, 0x74, 0x6c, 0x18, 0x0a, 0x20, 0x01,
904 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
905 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x74,
906 0x6f, 0x6d, 0x62, 0x73, 0x74, 0x6f, 0x6e, 0x65, 0x54, 0x74, 0x6c, 0x12, 0x41, 0x0a, 0x05, 0x73,
907 0x74, 0x61, 0x74, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f,
908 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e,
909 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x75, 0x65, 0x53, 0x74, 0x61,
910 0x74, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x22, 0x45,
911 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45,
912 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b,
913 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x50,
914 0x41, 0x55, 0x53, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42,
915 0x4c, 0x45, 0x44, 0x10, 0x03, 0x3a, 0x5c, 0xea, 0x41, 0x59, 0x0a, 0x1f, 0x63, 0x6c, 0x6f, 0x75,
916 0x64, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
917 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x51, 0x75, 0x65, 0x75, 0x65, 0x12, 0x36, 0x70, 0x72, 0x6f,
918 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f,
919 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74,
920 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x71, 0x75, 0x65, 0x75, 0x65, 0x73, 0x2f, 0x7b, 0x71, 0x75, 0x65,
921 0x75, 0x65, 0x7d, 0x42, 0x0d, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79,
922 0x70, 0x65, 0x22, 0xaa, 0x01, 0x0a, 0x0a, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74,
923 0x73, 0x12, 0x44, 0x0a, 0x1f, 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x64,
924 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x73, 0x65,
925 0x63, 0x6f, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x1b, 0x6d, 0x61, 0x78, 0x54,
926 0x61, 0x73, 0x6b, 0x73, 0x44, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x50, 0x65,
927 0x72, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x61, 0x78, 0x5f, 0x62,
928 0x75, 0x72, 0x73, 0x74, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
929 0x0c, 0x6d, 0x61, 0x78, 0x42, 0x75, 0x72, 0x73, 0x74, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x30, 0x0a,
930 0x14, 0x6d, 0x61, 0x78, 0x5f, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f,
931 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x12, 0x6d, 0x61, 0x78,
932 0x43, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x22,
933 0xd9, 0x02, 0x0a, 0x0b, 0x52, 0x65, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
934 0x23, 0x0a, 0x0c, 0x6d, 0x61, 0x78, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x18,
935 0x01, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0b, 0x6d, 0x61, 0x78, 0x41, 0x74, 0x74, 0x65,
936 0x6d, 0x70, 0x74, 0x73, 0x12, 0x2f, 0x0a, 0x12, 0x75, 0x6e, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65,
937 0x64, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,
938 0x48, 0x00, 0x52, 0x11, 0x75, 0x6e, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x64, 0x41, 0x74, 0x74,
939 0x65, 0x6d, 0x70, 0x74, 0x73, 0x12, 0x47, 0x0a, 0x12, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x74,
940 0x72, 0x79, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,
941 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
942 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x6d, 0x61,
943 0x78, 0x52, 0x65, 0x74, 0x72, 0x79, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3a,
944 0x0a, 0x0b, 0x6d, 0x69, 0x6e, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x18, 0x04, 0x20,
945 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
946 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a,
947 0x6d, 0x69, 0x6e, 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x12, 0x3a, 0x0a, 0x0b, 0x6d, 0x61,
948 0x78, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,
949 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
950 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x6d, 0x61, 0x78, 0x42,
951 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x64, 0x6f,
952 0x75, 0x62, 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6d,
953 0x61, 0x78, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x42, 0x0e, 0x0a, 0x0c, 0x6e,
954 0x75, 0x6d, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x73, 0x22, 0xdc, 0x02, 0x0a, 0x0a,
955 0x51, 0x75, 0x65, 0x75, 0x65, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x24, 0x0a, 0x0b, 0x74, 0x61,
956 0x73, 0x6b, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x42,
957 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74,
958 0x12, 0x62, 0x0a, 0x1d, 0x6f, 0x6c, 0x64, 0x65, 0x73, 0x74, 0x5f, 0x65, 0x73, 0x74, 0x69, 0x6d,
959 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x72, 0x72, 0x69, 0x76, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x6d,
960 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
961 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74,
962 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x1a, 0x6f, 0x6c, 0x64, 0x65, 0x73, 0x74,
963 0x45, 0x73, 0x74, 0x69, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x41, 0x72, 0x72, 0x69, 0x76, 0x61, 0x6c,
964 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x1a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x64,
965 0x5f, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x6d, 0x69, 0x6e, 0x75, 0x74, 0x65, 0x5f, 0x63, 0x6f, 0x75,
966 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x17, 0x65,
967 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x64, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x69, 0x6e, 0x75, 0x74,
968 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x43, 0x0a, 0x1b, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72,
969 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x69, 0x73, 0x70, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x5f,
970 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x03,
971 0x52, 0x19, 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x44, 0x69, 0x73, 0x70,
972 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3d, 0x0a, 0x18, 0x65,
973 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69,
974 0x6f, 0x6e, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, 0x42, 0x03, 0xe0,
975 0x41, 0x03, 0x52, 0x16, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x69, 0x76, 0x65, 0x45, 0x78, 0x65,
976 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x61, 0x74, 0x65, 0x42, 0x73, 0x0a, 0x1e, 0x63, 0x6f,
977 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x74,
978 0x61, 0x73, 0x6b, 0x73, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x32, 0x42, 0x0a, 0x51, 0x75,
979 0x65, 0x75, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 0x63, 0x6c, 0x6f, 0x75,
980 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f,
981 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32,
982 0x62, 0x65, 0x74, 0x61, 0x32, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x73,
983 0x70, 0x62, 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x70, 0x62, 0x62,
984 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
985 }
986
987 var (
988 file_google_cloud_tasks_v2beta2_queue_proto_rawDescOnce sync.Once
989 file_google_cloud_tasks_v2beta2_queue_proto_rawDescData = file_google_cloud_tasks_v2beta2_queue_proto_rawDesc
990 )
991
992 func file_google_cloud_tasks_v2beta2_queue_proto_rawDescGZIP() []byte {
993 file_google_cloud_tasks_v2beta2_queue_proto_rawDescOnce.Do(func() {
994 file_google_cloud_tasks_v2beta2_queue_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_tasks_v2beta2_queue_proto_rawDescData)
995 })
996 return file_google_cloud_tasks_v2beta2_queue_proto_rawDescData
997 }
998
999 var file_google_cloud_tasks_v2beta2_queue_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
1000 var file_google_cloud_tasks_v2beta2_queue_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
1001 var file_google_cloud_tasks_v2beta2_queue_proto_goTypes = []any{
1002 (Queue_State)(0), // 0: google.cloud.tasks.v2beta2.Queue.State
1003 (*Queue)(nil), // 1: google.cloud.tasks.v2beta2.Queue
1004 (*RateLimits)(nil), // 2: google.cloud.tasks.v2beta2.RateLimits
1005 (*RetryConfig)(nil), // 3: google.cloud.tasks.v2beta2.RetryConfig
1006 (*QueueStats)(nil), // 4: google.cloud.tasks.v2beta2.QueueStats
1007 (*AppEngineHttpTarget)(nil), // 5: google.cloud.tasks.v2beta2.AppEngineHttpTarget
1008 (*PullTarget)(nil), // 6: google.cloud.tasks.v2beta2.PullTarget
1009 (*HttpTarget)(nil), // 7: google.cloud.tasks.v2beta2.HttpTarget
1010 (*timestamppb.Timestamp)(nil), // 8: google.protobuf.Timestamp
1011 (*durationpb.Duration)(nil), // 9: google.protobuf.Duration
1012 }
1013 var file_google_cloud_tasks_v2beta2_queue_proto_depIdxs = []int32{
1014 5, // 0: google.cloud.tasks.v2beta2.Queue.app_engine_http_target:type_name -> google.cloud.tasks.v2beta2.AppEngineHttpTarget
1015 6, // 1: google.cloud.tasks.v2beta2.Queue.pull_target:type_name -> google.cloud.tasks.v2beta2.PullTarget
1016 7, // 2: google.cloud.tasks.v2beta2.Queue.http_target:type_name -> google.cloud.tasks.v2beta2.HttpTarget
1017 2, // 3: google.cloud.tasks.v2beta2.Queue.rate_limits:type_name -> google.cloud.tasks.v2beta2.RateLimits
1018 3, // 4: google.cloud.tasks.v2beta2.Queue.retry_config:type_name -> google.cloud.tasks.v2beta2.RetryConfig
1019 0, // 5: google.cloud.tasks.v2beta2.Queue.state:type_name -> google.cloud.tasks.v2beta2.Queue.State
1020 8, // 6: google.cloud.tasks.v2beta2.Queue.purge_time:type_name -> google.protobuf.Timestamp
1021 9, // 7: google.cloud.tasks.v2beta2.Queue.task_ttl:type_name -> google.protobuf.Duration
1022 9, // 8: google.cloud.tasks.v2beta2.Queue.tombstone_ttl:type_name -> google.protobuf.Duration
1023 4, // 9: google.cloud.tasks.v2beta2.Queue.stats:type_name -> google.cloud.tasks.v2beta2.QueueStats
1024 9, // 10: google.cloud.tasks.v2beta2.RetryConfig.max_retry_duration:type_name -> google.protobuf.Duration
1025 9, // 11: google.cloud.tasks.v2beta2.RetryConfig.min_backoff:type_name -> google.protobuf.Duration
1026 9, // 12: google.cloud.tasks.v2beta2.RetryConfig.max_backoff:type_name -> google.protobuf.Duration
1027 8, // 13: google.cloud.tasks.v2beta2.QueueStats.oldest_estimated_arrival_time:type_name -> google.protobuf.Timestamp
1028 14, // [14:14] is the sub-list for method output_type
1029 14, // [14:14] is the sub-list for method input_type
1030 14, // [14:14] is the sub-list for extension type_name
1031 14, // [14:14] is the sub-list for extension extendee
1032 0, // [0:14] is the sub-list for field type_name
1033 }
1034
1035 func init() { file_google_cloud_tasks_v2beta2_queue_proto_init() }
1036 func file_google_cloud_tasks_v2beta2_queue_proto_init() {
1037 if File_google_cloud_tasks_v2beta2_queue_proto != nil {
1038 return
1039 }
1040 file_google_cloud_tasks_v2beta2_target_proto_init()
1041 file_google_cloud_tasks_v2beta2_queue_proto_msgTypes[0].OneofWrappers = []any{
1042 (*Queue_AppEngineHttpTarget)(nil),
1043 (*Queue_PullTarget)(nil),
1044 (*Queue_HttpTarget)(nil),
1045 }
1046 file_google_cloud_tasks_v2beta2_queue_proto_msgTypes[2].OneofWrappers = []any{
1047 (*RetryConfig_MaxAttempts)(nil),
1048 (*RetryConfig_UnlimitedAttempts)(nil),
1049 }
1050 type x struct{}
1051 out := protoimpl.TypeBuilder{
1052 File: protoimpl.DescBuilder{
1053 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1054 RawDescriptor: file_google_cloud_tasks_v2beta2_queue_proto_rawDesc,
1055 NumEnums: 1,
1056 NumMessages: 4,
1057 NumExtensions: 0,
1058 NumServices: 0,
1059 },
1060 GoTypes: file_google_cloud_tasks_v2beta2_queue_proto_goTypes,
1061 DependencyIndexes: file_google_cloud_tasks_v2beta2_queue_proto_depIdxs,
1062 EnumInfos: file_google_cloud_tasks_v2beta2_queue_proto_enumTypes,
1063 MessageInfos: file_google_cloud_tasks_v2beta2_queue_proto_msgTypes,
1064 }.Build()
1065 File_google_cloud_tasks_v2beta2_queue_proto = out.File
1066 file_google_cloud_tasks_v2beta2_queue_proto_rawDesc = nil
1067 file_google_cloud_tasks_v2beta2_queue_proto_goTypes = nil
1068 file_google_cloud_tasks_v2beta2_queue_proto_depIdxs = nil
1069 }