Skip to content

Commit 1654062

Browse files
Google APIscopybara-github
Google APIs
authored andcommitted
fix!: remove BufferTask method which cannot be called from client libraries
PiperOrigin-RevId: 599211253
1 parent 57b28e8 commit 1654062

File tree

2 files changed

+0
-104
lines changed

2 files changed

+0
-104
lines changed

google/cloud/tasks/v2beta2/cloudtasks.proto

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -414,25 +414,6 @@ service CloudTasks {
414414
};
415415
option (google.api.method_signature) = "name";
416416
}
417-
418-
// Creates and buffers a new task without the need to explicitly define a Task
419-
// message. The queue must have [HTTP
420-
// target][google.cloud.tasks.v2beta2.HttpTarget]. To create the task with a
421-
// custom ID, use the following format and set TASK_ID to your desired ID:
422-
// projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer
423-
// To create the task with an automatically generated ID, use the following
424-
// format:
425-
// projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer.
426-
// Note: This feature is in its experimental stage. You must request access to
427-
// the API through the [Cloud Tasks BufferTask Experiment Signup
428-
// form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
429-
rpc BufferTask(BufferTaskRequest) returns (BufferTaskResponse) {
430-
option (google.api.http) = {
431-
post: "/v2beta2/{queue=projects/*/locations/*/queues/*}/tasks/{task_id}:buffer"
432-
body: "*"
433-
};
434-
option (google.api.method_signature) = "queue,task_id,body";
435-
}
436417
}
437418

438419
// Request message for
@@ -1028,36 +1009,3 @@ message RunTaskRequest {
10281009
// [Task][google.cloud.tasks.v2beta2.Task] resource.
10291010
Task.View response_view = 2;
10301011
}
1031-
1032-
// LINT.IfChange
1033-
// Request message for
1034-
// [BufferTask][google.cloud.tasks.v2beta2.CloudTasks.BufferTask].
1035-
message BufferTaskRequest {
1036-
// Required. The parent queue name. For example:
1037-
// projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
1038-
//
1039-
// The queue must already exist.
1040-
string queue = 1 [
1041-
(google.api.field_behavior) = REQUIRED,
1042-
(google.api.resource_reference) = {
1043-
child_type: "cloudtasks.googleapis.com/Task"
1044-
}
1045-
];
1046-
1047-
// Optional. Task ID for the task being created. If not provided, a random
1048-
// task ID is assigned to the task.
1049-
string task_id = 2 [(google.api.field_behavior) = OPTIONAL];
1050-
1051-
// Optional. Body of the HTTP request.
1052-
//
1053-
// The body can take any generic value. The value is written to the
1054-
// [HttpRequest][payload] of the [Task].
1055-
google.api.HttpBody body = 3 [(google.api.field_behavior) = OPTIONAL];
1056-
}
1057-
1058-
// Response message for
1059-
// [BufferTask][google.cloud.tasks.v2beta2.CloudTasks.BufferTask].
1060-
message BufferTaskResponse {
1061-
// The created task.
1062-
Task task = 1;
1063-
}

google/cloud/tasks/v2beta3/cloudtasks.proto

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package google.cloud.tasks.v2beta3;
1919
import "google/api/annotations.proto";
2020
import "google/api/client.proto";
2121
import "google/api/field_behavior.proto";
22-
import "google/api/httpbody.proto";
2322
import "google/api/resource.proto";
2423
import "google/cloud/tasks/v2beta3/queue.proto";
2524
import "google/cloud/tasks/v2beta3/task.proto";
@@ -313,25 +312,6 @@ service CloudTasks {
313312
};
314313
option (google.api.method_signature) = "name";
315314
}
316-
317-
// Creates and buffers a new task without the need to explicitly define a Task
318-
// message. The queue must have [HTTP
319-
// target][google.cloud.tasks.v2beta3.HttpTarget]. To create the task with a
320-
// custom ID, use the following format and set TASK_ID to your desired ID:
321-
// projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID:buffer
322-
// To create the task with an automatically generated ID, use the following
323-
// format:
324-
// projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks:buffer.
325-
// Note: This feature is in its experimental stage. You must request access to
326-
// the API through the [Cloud Tasks BufferTask Experiment Signup
327-
// form](https://forms.gle/X8Zr5hiXH5tTGFqh8).
328-
rpc BufferTask(BufferTaskRequest) returns (BufferTaskResponse) {
329-
option (google.api.http) = {
330-
post: "/v2beta3/{queue=projects/*/locations/*/queues/*}/tasks/{task_id}:buffer"
331-
body: "*"
332-
};
333-
option (google.api.method_signature) = "queue,task_id,body";
334-
}
335315
}
336316

337317
// Request message for
@@ -714,35 +694,3 @@ message RunTaskRequest {
714694
// [Task][google.cloud.tasks.v2beta3.Task] resource.
715695
Task.View response_view = 2;
716696
}
717-
718-
// Request message for
719-
// [BufferTask][google.cloud.tasks.v2beta3.CloudTasks.BufferTask].
720-
message BufferTaskRequest {
721-
// Required. The parent queue name. For example:
722-
// projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
723-
//
724-
// The queue must already exist.
725-
string queue = 1 [
726-
(google.api.field_behavior) = REQUIRED,
727-
(google.api.resource_reference) = {
728-
child_type: "cloudtasks.googleapis.com/Task"
729-
}
730-
];
731-
732-
// Optional. Task ID for the task being created. If not provided, a random
733-
// task ID is assigned to the task.
734-
string task_id = 2 [(google.api.field_behavior) = OPTIONAL];
735-
736-
// Optional. Body of the HTTP request.
737-
//
738-
// The body can take any generic value. The value is written to the
739-
// [HttpRequest][payload] of the [Task].
740-
google.api.HttpBody body = 3 [(google.api.field_behavior) = OPTIONAL];
741-
}
742-
743-
// Response message for
744-
// [BufferTask][google.cloud.tasks.v2beta3.CloudTasks.BufferTask].
745-
message BufferTaskResponse {
746-
// The created task.
747-
Task task = 1;
748-
}

0 commit comments

Comments
 (0)