google-cloud-tasks-v2beta2 0.8.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_list_queues_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_queue_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_create_queue_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_update_queue_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_queue_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_purge_queue_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_pause_queue_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_resume_queue_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -363,7 +363,7 @@ module Google
363
363
 
364
364
  verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
367
367
  else
368
368
  {}
369
369
  end
@@ -401,7 +401,7 @@ module Google
401
401
 
402
402
  verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
403
403
  query_string_params = if query_string_params.any?
404
- query_string_params.to_h { |p| p.split("=", 2) }
404
+ query_string_params.to_h { |p| p.split "=", 2 }
405
405
  else
406
406
  {}
407
407
  end
@@ -439,7 +439,7 @@ module Google
439
439
 
440
440
  verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
441
441
  query_string_params = if query_string_params.any?
442
- query_string_params.to_h { |p| p.split("=", 2) }
442
+ query_string_params.to_h { |p| p.split "=", 2 }
443
443
  else
444
444
  {}
445
445
  end
@@ -477,7 +477,7 @@ module Google
477
477
 
478
478
  verb, uri, query_string_params, body = ServiceStub.transcode_list_tasks_request request_pb
479
479
  query_string_params = if query_string_params.any?
480
- query_string_params.to_h { |p| p.split("=", 2) }
480
+ query_string_params.to_h { |p| p.split "=", 2 }
481
481
  else
482
482
  {}
483
483
  end
@@ -515,7 +515,7 @@ module Google
515
515
 
516
516
  verb, uri, query_string_params, body = ServiceStub.transcode_get_task_request request_pb
517
517
  query_string_params = if query_string_params.any?
518
- query_string_params.to_h { |p| p.split("=", 2) }
518
+ query_string_params.to_h { |p| p.split "=", 2 }
519
519
  else
520
520
  {}
521
521
  end
@@ -553,7 +553,7 @@ module Google
553
553
 
554
554
  verb, uri, query_string_params, body = ServiceStub.transcode_create_task_request request_pb
555
555
  query_string_params = if query_string_params.any?
556
- query_string_params.to_h { |p| p.split("=", 2) }
556
+ query_string_params.to_h { |p| p.split "=", 2 }
557
557
  else
558
558
  {}
559
559
  end
@@ -591,7 +591,7 @@ module Google
591
591
 
592
592
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_task_request request_pb
593
593
  query_string_params = if query_string_params.any?
594
- query_string_params.to_h { |p| p.split("=", 2) }
594
+ query_string_params.to_h { |p| p.split "=", 2 }
595
595
  else
596
596
  {}
597
597
  end
@@ -629,7 +629,7 @@ module Google
629
629
 
630
630
  verb, uri, query_string_params, body = ServiceStub.transcode_lease_tasks_request request_pb
631
631
  query_string_params = if query_string_params.any?
632
- query_string_params.to_h { |p| p.split("=", 2) }
632
+ query_string_params.to_h { |p| p.split "=", 2 }
633
633
  else
634
634
  {}
635
635
  end
@@ -667,7 +667,7 @@ module Google
667
667
 
668
668
  verb, uri, query_string_params, body = ServiceStub.transcode_acknowledge_task_request request_pb
669
669
  query_string_params = if query_string_params.any?
670
- query_string_params.to_h { |p| p.split("=", 2) }
670
+ query_string_params.to_h { |p| p.split "=", 2 }
671
671
  else
672
672
  {}
673
673
  end
@@ -705,7 +705,7 @@ module Google
705
705
 
706
706
  verb, uri, query_string_params, body = ServiceStub.transcode_renew_lease_request request_pb
707
707
  query_string_params = if query_string_params.any?
708
- query_string_params.to_h { |p| p.split("=", 2) }
708
+ query_string_params.to_h { |p| p.split "=", 2 }
709
709
  else
710
710
  {}
711
711
  end
@@ -743,7 +743,7 @@ module Google
743
743
 
744
744
  verb, uri, query_string_params, body = ServiceStub.transcode_cancel_lease_request request_pb
745
745
  query_string_params = if query_string_params.any?
746
- query_string_params.to_h { |p| p.split("=", 2) }
746
+ query_string_params.to_h { |p| p.split "=", 2 }
747
747
  else
748
748
  {}
749
749
  end
@@ -781,7 +781,7 @@ module Google
781
781
 
782
782
  verb, uri, query_string_params, body = ServiceStub.transcode_run_task_request request_pb
783
783
  query_string_params = if query_string_params.any?
784
- query_string_params.to_h { |p| p.split("=", 2) }
784
+ query_string_params.to_h { |p| p.split "=", 2 }
785
785
  else
786
786
  {}
787
787
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/tasks/v2beta2/cloudtasks.proto
3
4
 
@@ -16,95 +17,36 @@ require 'google/protobuf/empty_pb'
16
17
  require 'google/protobuf/field_mask_pb'
17
18
  require 'google/protobuf/timestamp_pb'
18
19
 
19
- Google::Protobuf::DescriptorPool.generated_pool.build do
20
- add_file("google/cloud/tasks/v2beta2/cloudtasks.proto", :syntax => :proto3) do
21
- add_message "google.cloud.tasks.v2beta2.ListQueuesRequest" do
22
- optional :parent, :string, 1
23
- optional :filter, :string, 2
24
- optional :page_size, :int32, 3
25
- optional :page_token, :string, 4
26
- optional :read_mask, :message, 5, "google.protobuf.FieldMask"
27
- end
28
- add_message "google.cloud.tasks.v2beta2.ListQueuesResponse" do
29
- repeated :queues, :message, 1, "google.cloud.tasks.v2beta2.Queue"
30
- optional :next_page_token, :string, 2
31
- end
32
- add_message "google.cloud.tasks.v2beta2.GetQueueRequest" do
33
- optional :name, :string, 1
34
- optional :read_mask, :message, 2, "google.protobuf.FieldMask"
35
- end
36
- add_message "google.cloud.tasks.v2beta2.CreateQueueRequest" do
37
- optional :parent, :string, 1
38
- optional :queue, :message, 2, "google.cloud.tasks.v2beta2.Queue"
39
- end
40
- add_message "google.cloud.tasks.v2beta2.UpdateQueueRequest" do
41
- optional :queue, :message, 1, "google.cloud.tasks.v2beta2.Queue"
42
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
43
- end
44
- add_message "google.cloud.tasks.v2beta2.DeleteQueueRequest" do
45
- optional :name, :string, 1
46
- end
47
- add_message "google.cloud.tasks.v2beta2.PurgeQueueRequest" do
48
- optional :name, :string, 1
49
- end
50
- add_message "google.cloud.tasks.v2beta2.PauseQueueRequest" do
51
- optional :name, :string, 1
52
- end
53
- add_message "google.cloud.tasks.v2beta2.ResumeQueueRequest" do
54
- optional :name, :string, 1
55
- end
56
- add_message "google.cloud.tasks.v2beta2.ListTasksRequest" do
57
- optional :parent, :string, 1
58
- optional :response_view, :enum, 2, "google.cloud.tasks.v2beta2.Task.View"
59
- optional :page_size, :int32, 4
60
- optional :page_token, :string, 5
61
- end
62
- add_message "google.cloud.tasks.v2beta2.ListTasksResponse" do
63
- repeated :tasks, :message, 1, "google.cloud.tasks.v2beta2.Task"
64
- optional :next_page_token, :string, 2
65
- end
66
- add_message "google.cloud.tasks.v2beta2.GetTaskRequest" do
67
- optional :name, :string, 1
68
- optional :response_view, :enum, 2, "google.cloud.tasks.v2beta2.Task.View"
69
- end
70
- add_message "google.cloud.tasks.v2beta2.CreateTaskRequest" do
71
- optional :parent, :string, 1
72
- optional :task, :message, 2, "google.cloud.tasks.v2beta2.Task"
73
- optional :response_view, :enum, 3, "google.cloud.tasks.v2beta2.Task.View"
74
- end
75
- add_message "google.cloud.tasks.v2beta2.DeleteTaskRequest" do
76
- optional :name, :string, 1
77
- end
78
- add_message "google.cloud.tasks.v2beta2.LeaseTasksRequest" do
79
- optional :parent, :string, 1
80
- optional :max_tasks, :int32, 2
81
- optional :lease_duration, :message, 3, "google.protobuf.Duration"
82
- optional :response_view, :enum, 4, "google.cloud.tasks.v2beta2.Task.View"
83
- optional :filter, :string, 5
84
- end
85
- add_message "google.cloud.tasks.v2beta2.LeaseTasksResponse" do
86
- repeated :tasks, :message, 1, "google.cloud.tasks.v2beta2.Task"
87
- end
88
- add_message "google.cloud.tasks.v2beta2.AcknowledgeTaskRequest" do
89
- optional :name, :string, 1
90
- optional :schedule_time, :message, 2, "google.protobuf.Timestamp"
91
- end
92
- add_message "google.cloud.tasks.v2beta2.RenewLeaseRequest" do
93
- optional :name, :string, 1
94
- optional :schedule_time, :message, 2, "google.protobuf.Timestamp"
95
- optional :lease_duration, :message, 3, "google.protobuf.Duration"
96
- optional :response_view, :enum, 4, "google.cloud.tasks.v2beta2.Task.View"
97
- end
98
- add_message "google.cloud.tasks.v2beta2.CancelLeaseRequest" do
99
- optional :name, :string, 1
100
- optional :schedule_time, :message, 2, "google.protobuf.Timestamp"
101
- optional :response_view, :enum, 3, "google.cloud.tasks.v2beta2.Task.View"
102
- end
103
- add_message "google.cloud.tasks.v2beta2.RunTaskRequest" do
104
- optional :name, :string, 1
105
- optional :response_view, :enum, 2, "google.cloud.tasks.v2beta2.Task.View"
20
+
21
+ descriptor_data = "\n+google/cloud/tasks/v2beta2/cloudtasks.proto\x12\x1agoogle.cloud.tasks.v2beta2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a&google/cloud/tasks/v2beta2/queue.proto\x1a%google/cloud/tasks/v2beta2/task.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb7\x01\n\x11ListQueuesRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63loudtasks.googleapis.com/Queue\x12\x0e\n\x06\x66ilter\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\x12\x32\n\tread_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"`\n\x12ListQueuesResponse\x12\x31\n\x06queues\x18\x01 \x03(\x0b\x32!.google.cloud.tasks.v2beta2.Queue\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"|\n\x0fGetQueueRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\x12\x32\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"\x84\x01\n\x12\x43reateQueueRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x63loudtasks.googleapis.com/Queue\x12\x35\n\x05queue\x18\x02 \x01(\x0b\x32!.google.cloud.tasks.v2beta2.QueueB\x03\xe0\x41\x02\"|\n\x12UpdateQueueRequest\x12\x35\n\x05queue\x18\x01 \x01(\x0b\x32!.google.cloud.tasks.v2beta2.QueueB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"K\n\x12\x44\x65leteQueueRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"J\n\x11PurgeQueueRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"J\n\x11PauseQueueRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"K\n\x12ResumeQueueRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x63loudtasks.googleapis.com/Queue\"\xaf\x01\n\x10ListTasksRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x63loudtasks.googleapis.com/Task\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x12\n\npage_token\x18\x05 \x01(\t\"]\n\x11ListTasksResponse\x12/\n\x05tasks\x18\x01 \x03(\x0b\x32 .google.cloud.tasks.v2beta2.Task\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x84\x01\n\x0eGetTaskRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\"\xbe\x01\n\x11\x43reateTaskRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x63loudtasks.googleapis.com/Task\x12\x33\n\x04task\x18\x02 \x01(\x0b\x32 .google.cloud.tasks.v2beta2.TaskB\x03\xe0\x41\x02\x12<\n\rresponse_view\x18\x03 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\"I\n\x11\x44\x65leteTaskRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\"\xe4\x01\n\x11LeaseTasksRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x63loudtasks.googleapis.com/Task\x12\x11\n\tmax_tasks\x18\x02 \x01(\x05\x12\x36\n\x0elease_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12<\n\rresponse_view\x18\x04 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\x12\x0e\n\x06\x66ilter\x18\x05 \x01(\t\"E\n\x12LeaseTasksResponse\x12/\n\x05tasks\x18\x01 \x03(\x0b\x32 .google.cloud.tasks.v2beta2.Task\"\x86\x01\n\x16\x41\x63knowledgeTaskRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\x12\x36\n\rschedule_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\"\xf7\x01\n\x11RenewLeaseRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\x12\x36\n\rschedule_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12\x36\n\x0elease_duration\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x02\x12<\n\rresponse_view\x18\x04 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\"\xc0\x01\n\x12\x43\x61ncelLeaseRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\x12\x36\n\rschedule_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x02\x12<\n\rresponse_view\x18\x03 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View\"\x84\x01\n\x0eRunTaskRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x63loudtasks.googleapis.com/Task\x12<\n\rresponse_view\x18\x02 \x01(\x0e\x32%.google.cloud.tasks.v2beta2.Task.View2\xd4\x1c\n\nCloudTasks\x12\xad\x01\n\nListQueues\x12-.google.cloud.tasks.v2beta2.ListQueuesRequest\x1a..google.cloud.tasks.v2beta2.ListQueuesResponse\"@\x82\xd3\xe4\x93\x02\x31\x12//v2beta2/{parent=projects/*/locations/*}/queues\xda\x41\x06parent\x12\x9a\x01\n\x08GetQueue\x12+.google.cloud.tasks.v2beta2.GetQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue\">\x82\xd3\xe4\x93\x02\x31\x12//v2beta2/{name=projects/*/locations/*/queues/*}\xda\x41\x04name\x12\xaf\x01\n\x0b\x43reateQueue\x12..google.cloud.tasks.v2beta2.CreateQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue\"M\x82\xd3\xe4\x93\x02\x38\"//v2beta2/{parent=projects/*/locations/*}/queues:\x05queue\xda\x41\x0cparent,queue\x12\xba\x01\n\x0bUpdateQueue\x12..google.cloud.tasks.v2beta2.UpdateQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue\"X\x82\xd3\xe4\x93\x02>25/v2beta2/{queue.name=projects/*/locations/*/queues/*}:\x05queue\xda\x41\x11queue,update_mask\x12\x95\x01\n\x0b\x44\x65leteQueue\x12..google.cloud.tasks.v2beta2.DeleteQueueRequest\x1a\x16.google.protobuf.Empty\">\x82\xd3\xe4\x93\x02\x31*//v2beta2/{name=projects/*/locations/*/queues/*}\xda\x41\x04name\x12\xa7\x01\n\nPurgeQueue\x12-.google.cloud.tasks.v2beta2.PurgeQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue\"G\x82\xd3\xe4\x93\x02:\"5/v2beta2/{name=projects/*/locations/*/queues/*}:purge:\x01*\xda\x41\x04name\x12\xa7\x01\n\nPauseQueue\x12-.google.cloud.tasks.v2beta2.PauseQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue\"G\x82\xd3\xe4\x93\x02:\"5/v2beta2/{name=projects/*/locations/*/queues/*}:pause:\x01*\xda\x41\x04name\x12\xaa\x01\n\x0bResumeQueue\x12..google.cloud.tasks.v2beta2.ResumeQueueRequest\x1a!.google.cloud.tasks.v2beta2.Queue\"H\x82\xd3\xe4\x93\x02;\"6/v2beta2/{name=projects/*/locations/*/queues/*}:resume:\x01*\xda\x41\x04name\x12\xa1\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"V\x82\xd3\xe4\x93\x02\x45\"@/v2beta2/{resource=projects/*/locations/*/queues/*}:getIamPolicy:\x01*\xda\x41\x08resource\x12\xa8\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"]\x82\xd3\xe4\x93\x02\x45\"@/v2beta2/{resource=projects/*/locations/*/queues/*}:setIamPolicy:\x01*\xda\x41\x0fresource,policy\x12\xd3\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"h\x82\xd3\xe4\x93\x02K\"F/v2beta2/{resource=projects/*/locations/*/queues/*}:testIamPermissions:\x01*\xda\x41\x14resource,permissions\x12\xb2\x01\n\tListTasks\x12,.google.cloud.tasks.v2beta2.ListTasksRequest\x1a-.google.cloud.tasks.v2beta2.ListTasksResponse\"H\x82\xd3\xe4\x93\x02\x39\x12\x37/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks\xda\x41\x06parent\x12\x9f\x01\n\x07GetTask\x12*.google.cloud.tasks.v2beta2.GetTaskRequest\x1a .google.cloud.tasks.v2beta2.Task\"F\x82\xd3\xe4\x93\x02\x39\x12\x37/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}\xda\x41\x04name\x12\xaf\x01\n\nCreateTask\x12-.google.cloud.tasks.v2beta2.CreateTaskRequest\x1a .google.cloud.tasks.v2beta2.Task\"P\x82\xd3\xe4\x93\x02<\"7/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks:\x01*\xda\x41\x0bparent,task\x12\x9b\x01\n\nDeleteTask\x12-.google.cloud.tasks.v2beta2.DeleteTaskRequest\x1a\x16.google.protobuf.Empty\"F\x82\xd3\xe4\x93\x02\x39*7/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}\xda\x41\x04name\x12\xcd\x01\n\nLeaseTasks\x12-.google.cloud.tasks.v2beta2.LeaseTasksRequest\x1a..google.cloud.tasks.v2beta2.LeaseTasksResponse\"`\x82\xd3\xe4\x93\x02\x42\"=/v2beta2/{parent=projects/*/locations/*/queues/*}/tasks:lease:\x01*\xda\x41\x15parent,lease_duration\x12\xc2\x01\n\x0f\x41\x63knowledgeTask\x12\x32.google.cloud.tasks.v2beta2.AcknowledgeTaskRequest\x1a\x16.google.protobuf.Empty\"c\x82\xd3\xe4\x93\x02H\"C/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:acknowledge:\x01*\xda\x41\x12name,schedule_time\x12\xd0\x01\n\nRenewLease\x12-.google.cloud.tasks.v2beta2.RenewLeaseRequest\x1a .google.cloud.tasks.v2beta2.Task\"q\x82\xd3\xe4\x93\x02G\"B/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:renewLease:\x01*\xda\x41!name,schedule_time,lease_duration\x12\xc4\x01\n\x0b\x43\x61ncelLease\x12..google.cloud.tasks.v2beta2.CancelLeaseRequest\x1a .google.cloud.tasks.v2beta2.Task\"c\x82\xd3\xe4\x93\x02H\"C/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:cancelLease:\x01*\xda\x41\x12name,schedule_time\x12\xa6\x01\n\x07RunTask\x12*.google.cloud.tasks.v2beta2.RunTaskRequest\x1a .google.cloud.tasks.v2beta2.Task\"M\x82\xd3\xe4\x93\x02@\";/v2beta2/{name=projects/*/locations/*/queues/*/tasks/*}:run:\x01*\xda\x41\x04name\x1aM\xca\x41\x19\x63loudtasks.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x80\x01\n\x1e\x63om.google.cloud.tasks.v2beta2B\x0f\x43loudTasksProtoP\x01ZCcloud.google.com/go/cloudtasks/apiv2beta2/cloudtaskspb;cloudtaskspb\xa2\x02\x05TASKSb\x06proto3"
22
+
23
+ pool = Google::Protobuf::DescriptorPool.generated_pool
24
+
25
+ begin
26
+ pool.add_serialized_file(descriptor_data)
27
+ rescue TypeError => e
28
+ # Compatibility code: will be removed in the next major version.
29
+ require 'google/protobuf/descriptor_pb'
30
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
31
+ parsed.clear_dependency
32
+ serialized = parsed.class.encode(parsed)
33
+ file = pool.add_serialized_file(serialized)
34
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
35
+ imports = [
36
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
37
+ ["google.cloud.tasks.v2beta2.Queue", "google/cloud/tasks/v2beta2/queue.proto"],
38
+ ["google.cloud.tasks.v2beta2.Task", "google/cloud/tasks/v2beta2/task.proto"],
39
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
40
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
41
+ ]
42
+ imports.each do |type_name, expected_filename|
43
+ import_file = pool.lookup(type_name).file_descriptor
44
+ if import_file.name != expected_filename
45
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
106
46
  end
107
47
  end
48
+ warn "Each proto file must use a consistent fully-qualified name."
49
+ warn "This will become an error in the next major version."
108
50
  end
109
51
 
110
52
  module Google
@@ -43,8 +43,8 @@ module Google
43
43
  # Creates a queue.
44
44
  #
45
45
  # Queues created with this method allow tasks to live for a maximum of 31
46
- # days. After a task is 31 days old, the task will be deleted regardless of whether
47
- # it was dispatched or not.
46
+ # days. After a task is 31 days old, the task will be deleted regardless of
47
+ # whether it was dispatched or not.
48
48
  #
49
49
  # WARNING: Using this method may have unintended side effects if you are
50
50
  # using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
@@ -59,8 +59,8 @@ module Google
59
59
  # the queue if it does exist.
60
60
  #
61
61
  # Queues created with this method allow tasks to live for a maximum of 31
62
- # days. After a task is 31 days old, the task will be deleted regardless of whether
63
- # it was dispatched or not.
62
+ # days. After a task is 31 days old, the task will be deleted regardless of
63
+ # whether it was dispatched or not.
64
64
  #
65
65
  # WARNING: Using this method may have unintended side effects if you are
66
66
  # using an App Engine `queue.yaml` or `queue.xml` file to manage your queues.
@@ -94,17 +94,20 @@ module Google
94
94
  #
95
95
  # If a queue is paused then the system will stop dispatching tasks
96
96
  # until the queue is resumed via
97
- # [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. Tasks can still be added
98
- # when the queue is paused. A queue is paused if its
99
- # [state][google.cloud.tasks.v2beta2.Queue.state] is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED].
97
+ # [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue]. Tasks can
98
+ # still be added when the queue is paused. A queue is paused if its
99
+ # [state][google.cloud.tasks.v2beta2.Queue.state] is
100
+ # [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED].
100
101
  rpc :PauseQueue, ::Google::Cloud::Tasks::V2beta2::PauseQueueRequest, ::Google::Cloud::Tasks::V2beta2::Queue
101
102
  # Resume a queue.
102
103
  #
103
104
  # This method resumes a queue after it has been
104
105
  # [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED] or
105
- # [DISABLED][google.cloud.tasks.v2beta2.Queue.State.DISABLED]. The state of a queue is stored
106
- # in the queue's [state][google.cloud.tasks.v2beta2.Queue.state]; after calling this method it
107
- # will be set to [RUNNING][google.cloud.tasks.v2beta2.Queue.State.RUNNING].
106
+ # [DISABLED][google.cloud.tasks.v2beta2.Queue.State.DISABLED]. The state of a
107
+ # queue is stored in the queue's
108
+ # [state][google.cloud.tasks.v2beta2.Queue.state]; after calling this method
109
+ # it will be set to
110
+ # [RUNNING][google.cloud.tasks.v2beta2.Queue.State.RUNNING].
108
111
  #
109
112
  # WARNING: Resuming many high-QPS queues at the same time can
110
113
  # lead to target overloading. If you are resuming high-QPS
@@ -112,9 +115,9 @@ module Google
112
115
  # [Managing Cloud Tasks Scaling
113
116
  # Risks](https://cloud.google.com/tasks/docs/manage-cloud-task-scaling).
114
117
  rpc :ResumeQueue, ::Google::Cloud::Tasks::V2beta2::ResumeQueueRequest, ::Google::Cloud::Tasks::V2beta2::Queue
115
- # Gets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue].
116
- # Returns an empty policy if the resource exists and does not have a policy
117
- # set.
118
+ # Gets the access control policy for a
119
+ # [Queue][google.cloud.tasks.v2beta2.Queue]. Returns an empty policy if the
120
+ # resource exists and does not have a policy set.
118
121
  #
119
122
  # Authorization requires the following
120
123
  # [Google IAM](https://cloud.google.com/iam) permission on the specified
@@ -122,8 +125,8 @@ module Google
122
125
  #
123
126
  # * `cloudtasks.queues.getIamPolicy`
124
127
  rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
125
- # Sets the access control policy for a [Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any existing
126
- # policy.
128
+ # Sets the access control policy for a
129
+ # [Queue][google.cloud.tasks.v2beta2.Queue]. Replaces any existing policy.
127
130
  #
128
131
  # Note: The Cloud Console does not check queue-level IAM permissions yet.
129
132
  # Project-level permissions are required to use the Cloud Console.
@@ -134,9 +137,10 @@ module Google
134
137
  #
135
138
  # * `cloudtasks.queues.setIamPolicy`
136
139
  rpc :SetIamPolicy, ::Google::Iam::V1::SetIamPolicyRequest, ::Google::Iam::V1::Policy
137
- # Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2beta2.Queue].
138
- # If the resource does not exist, this will return an empty set of
139
- # permissions, not a [NOT_FOUND][google.rpc.Code.NOT_FOUND] error.
140
+ # Returns permissions that a caller has on a
141
+ # [Queue][google.cloud.tasks.v2beta2.Queue]. If the resource does not exist,
142
+ # this will return an empty set of permissions, not a
143
+ # [NOT_FOUND][google.rpc.Code.NOT_FOUND] error.
140
144
  #
141
145
  # Note: This operation is designed to be used for building permission-aware
142
146
  # UIs and command-line tools, not for authorization checking. This operation
@@ -144,10 +148,10 @@ module Google
144
148
  rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
145
149
  # Lists the tasks in a queue.
146
150
  #
147
- # By default, only the [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC] view is retrieved
148
- # due to performance considerations;
149
- # [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view] controls the
150
- # subset of information which is returned.
151
+ # By default, only the [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]
152
+ # view is retrieved due to performance considerations;
153
+ # [response_view][google.cloud.tasks.v2beta2.ListTasksRequest.response_view]
154
+ # controls the subset of information which is returned.
151
155
  #
152
156
  # The tasks may be returned in any order. The ordering may change at any
153
157
  # time.
@@ -158,9 +162,11 @@ module Google
158
162
  #
159
163
  # Tasks cannot be updated after creation; there is no UpdateTask command.
160
164
  #
161
- # * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget], the maximum task size is
165
+ # * For [App Engine queues][google.cloud.tasks.v2beta2.AppEngineHttpTarget],
166
+ # the maximum task size is
162
167
  # 100KB.
163
- # * For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum task size is 1MB.
168
+ # * For [pull queues][google.cloud.tasks.v2beta2.PullTarget], the maximum
169
+ # task size is 1MB.
164
170
  rpc :CreateTask, ::Google::Cloud::Tasks::V2beta2::CreateTaskRequest, ::Google::Cloud::Tasks::V2beta2::Task
165
171
  # Deletes a task.
166
172
  #
@@ -173,18 +179,19 @@ module Google
173
179
  #
174
180
  # This method is invoked by the worker to obtain a lease. The
175
181
  # worker must acknowledge the task via
176
- # [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] after they have
177
- # performed the work associated with the task.
178
- #
179
- # The [payload][google.cloud.tasks.v2beta2.PullMessage.payload] is intended to store data that
180
- # the worker needs to perform the work associated with the task. To
181
- # return the payloads in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse], set
182
- # [response_view][google.cloud.tasks.v2beta2.LeaseTasksRequest.response_view] to
183
- # [FULL][google.cloud.tasks.v2beta2.Task.View.FULL].
184
- #
185
- # A maximum of 10 qps of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks]
186
- # requests are allowed per
187
- # queue. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]
182
+ # [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask]
183
+ # after they have performed the work associated with the task.
184
+ #
185
+ # The [payload][google.cloud.tasks.v2beta2.PullMessage.payload] is intended
186
+ # to store data that the worker needs to perform the work associated with the
187
+ # task. To return the payloads in the
188
+ # [response][google.cloud.tasks.v2beta2.LeaseTasksResponse], set
189
+ # [response_view][google.cloud.tasks.v2beta2.LeaseTasksRequest.response_view]
190
+ # to [FULL][google.cloud.tasks.v2beta2.Task.View.FULL].
191
+ #
192
+ # A maximum of 10 qps of
193
+ # [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] requests are
194
+ # allowed per queue. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]
188
195
  # is returned when this limit is
189
196
  # exceeded. [RESOURCE_EXHAUSTED][google.rpc.Code.RESOURCE_EXHAUSTED]
190
197
  # is also returned when
@@ -194,12 +201,13 @@ module Google
194
201
  # Acknowledges a pull task.
195
202
  #
196
203
  # The worker, that is, the entity that
197
- # [leased][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] this task must call this method
198
- # to indicate that the work associated with the task has finished.
204
+ # [leased][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] this task must
205
+ # call this method to indicate that the work associated with the task has
206
+ # finished.
199
207
  #
200
208
  # The worker must acknowledge a task within the
201
- # [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration] or the lease
202
- # will expire and the task will become available to be leased
209
+ # [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration]
210
+ # or the lease will expire and the task will become available to be leased
203
211
  # again. After the task is acknowledged, it will not be returned
204
212
  # by a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks],
205
213
  # [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask], or
@@ -209,42 +217,46 @@ module Google
209
217
  #
210
218
  # The worker can use this method to extend the lease by a new
211
219
  # duration, starting from now. The new task lease will be
212
- # returned in the task's [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
220
+ # returned in the task's
221
+ # [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].
213
222
  rpc :RenewLease, ::Google::Cloud::Tasks::V2beta2::RenewLeaseRequest, ::Google::Cloud::Tasks::V2beta2::Task
214
223
  # Cancel a pull task's lease.
215
224
  #
216
225
  # The worker can use this method to cancel a task's lease by
217
- # setting its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] to now. This will
218
- # make the task available to be leased to the next caller of
219
- # [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks].
226
+ # setting its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]
227
+ # to now. This will make the task available to be leased to the next caller
228
+ # of [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks].
220
229
  rpc :CancelLease, ::Google::Cloud::Tasks::V2beta2::CancelLeaseRequest, ::Google::Cloud::Tasks::V2beta2::Task
221
230
  # Forces a task to run now.
222
231
  #
223
232
  # When this method is called, Cloud Tasks will dispatch the task, even if
224
- # the task is already running, the queue has reached its [RateLimits][google.cloud.tasks.v2beta2.RateLimits] or
225
- # is [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED].
233
+ # the task is already running, the queue has reached its
234
+ # [RateLimits][google.cloud.tasks.v2beta2.RateLimits] or is
235
+ # [PAUSED][google.cloud.tasks.v2beta2.Queue.State.PAUSED].
226
236
  #
227
237
  # This command is meant to be used for manual debugging. For
228
- # example, [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] can be used to retry a failed
229
- # task after a fix has been made or to manually force a task to be
230
- # dispatched now.
238
+ # example, [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] can be
239
+ # used to retry a failed task after a fix has been made or to manually force
240
+ # a task to be dispatched now.
231
241
  #
232
242
  # The dispatched task is returned. That is, the task that is returned
233
- # contains the [status][google.cloud.tasks.v2beta2.Task.status] after the task is dispatched but
234
- # before the task is received by its target.
243
+ # contains the [status][google.cloud.tasks.v2beta2.Task.status] after the
244
+ # task is dispatched but before the task is received by its target.
235
245
  #
236
246
  # If Cloud Tasks receives a successful response from the task's
237
247
  # target, then the task will be deleted; otherwise the task's
238
- # [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be reset to the time that
239
- # [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] was called plus the retry delay specified
240
- # in the queue's [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig].
248
+ # [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be
249
+ # reset to the time that
250
+ # [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] was called plus
251
+ # the retry delay specified in the queue's
252
+ # [RetryConfig][google.cloud.tasks.v2beta2.RetryConfig].
241
253
  #
242
254
  # [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] returns
243
255
  # [NOT_FOUND][google.rpc.Code.NOT_FOUND] when it is called on a
244
256
  # task that has already succeeded or permanently failed.
245
257
  #
246
- # [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] cannot be called on a
247
- # [pull task][google.cloud.tasks.v2beta2.PullMessage].
258
+ # [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask] cannot be called
259
+ # on a [pull task][google.cloud.tasks.v2beta2.PullMessage].
248
260
  rpc :RunTask, ::Google::Cloud::Tasks::V2beta2::RunTaskRequest, ::Google::Cloud::Tasks::V2beta2::Task
249
261
  end
250
262