This repository was archived by the owner on Sep 16, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Failed to load files.
PrevPrevious commit
🦉 Updates from OwlBot
  • Loading branch information
@gcf-owl-bot
gcf-owl-bot[bot] committedNov 19, 2021
commit 66eb8e7a583ebe5cc1cf4022c625ea28ed029b8b
Original file line numberDiff line numberDiff line change
Expand Up@@ -63,13 +63,13 @@
* methods:
*
* <ol>
* <li> A "flattened" method. With this type of method, the fields of the request type have been
* <li>A "flattened" method. With this type of method, the fields of the request type have been
* converted into function parameters. It may be the case that not all fields are available as
* parameters, and not every API method will have a flattened method entry point.
* <li> A "request object" method. This type of method only takes one parameter, a request object,
* <li>A "request object" method. This type of method only takes one parameter, a request object,
* which must be constructed before the call. Not every API method will have a request object
* method.
* <li> A "callable" method. This type of method takes no parameters and returns an immutable API
* <li>A "callable" method. This type of method takes no parameters and returns an immutable API
* callable object, which can be used to initiate calls to the service.
* </ol>
*
Expand DownExpand Up@@ -1111,7 +1111,7 @@ public final UnaryCallable<ResumeQueueRequest, Queue> resumeQueueCallable() {
* on the specified resource parent:
*
* <ul>
* <li> `cloudtasks.queues.getIamPolicy`
* <li>`cloudtasks.queues.getIamPolicy`
* </ul>
*
* <p>Sample code:
Expand DownExpand Up@@ -1144,7 +1144,7 @@ public final Policy getIamPolicy(ResourceName resource) {
* on the specified resource parent:
*
* <ul>
* <li> `cloudtasks.queues.getIamPolicy`
* <li>`cloudtasks.queues.getIamPolicy`
* </ul>
*
* <p>Sample code:
Expand DownExpand Up@@ -1174,7 +1174,7 @@ public final Policy getIamPolicy(String resource) {
* on the specified resource parent:
*
* <ul>
* <li> `cloudtasks.queues.getIamPolicy`
* <li>`cloudtasks.queues.getIamPolicy`
* </ul>
*
* <p>Sample code:
Expand All@@ -1197,6 +1197,10 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
return getIamPolicyCallable().call(request);
}

public final Policy getIamPolicy(QueueName queueName) {
return getIamPolicy((ResourceName) queueName);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Returns an empty
Expand All@@ -1206,7 +1210,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* on the specified resource parent:
*
* <ul>
* <li> `cloudtasks.queues.getIamPolicy`
* <li>`cloudtasks.queues.getIamPolicy`
* </ul>
*
* <p>Sample code:
Expand DownExpand Up@@ -1240,7 +1244,7 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
* on the specified resource parent:
*
* <ul>
* <li> `cloudtasks.queues.setIamPolicy`
* <li>`cloudtasks.queues.setIamPolicy`
* </ul>
*
* <p>Sample code:
Expand DownExpand Up@@ -1281,7 +1285,7 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
* on the specified resource parent:
*
* <ul>
* <li> `cloudtasks.queues.setIamPolicy`
* <li>`cloudtasks.queues.setIamPolicy`
* </ul>
*
* <p>Sample code:
Expand DownExpand Up@@ -1319,7 +1323,7 @@ public final Policy setIamPolicy(String resource, Policy policy) {
* on the specified resource parent:
*
* <ul>
* <li> `cloudtasks.queues.setIamPolicy`
* <li>`cloudtasks.queues.setIamPolicy`
* </ul>
*
* <p>Sample code:
Expand All@@ -1342,6 +1346,10 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
return setIamPolicyCallable().call(request);
}

public final Policy setIamPolicy(QueueName queue, Policy policy) {
return setIamPolicy((ResourceName) queue, policy);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Sets the access control policy for a [Queue][google.cloud.tasks.v2.Queue]. Replaces any
Expand All@@ -1354,7 +1362,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* on the specified resource parent:
*
* <ul>
* <li> `cloudtasks.queues.setIamPolicy`
* <li>`cloudtasks.queues.setIamPolicy`
* </ul>
*
* <p>Sample code:
Expand DownExpand Up@@ -1482,6 +1490,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
return testIamPermissionsCallable().call(request);
}

public final TestIamPermissionsResponse testIamPermissions(
QueueName queue, List<String> permissions) {
return testIamPermissions((ResourceName) queue, permissions);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns permissions that a caller has on a [Queue][google.cloud.tasks.v2.Queue]. If the
Expand DownExpand Up@@ -1780,7 +1793,7 @@ public final UnaryCallable<GetTaskRequest, Task> getTaskCallable() {
* <p>Tasks cannot be updated after creation; there is no UpdateTask command.
*
* <ul>
* <li> The maximum task size is 100KB.
* <li>The maximum task size is 100KB.
* </ul>
*
* <p>Sample code:
Expand DownExpand Up@@ -1837,7 +1850,7 @@ public final Task createTask(QueueName parent, Task task) {
* <p>Tasks cannot be updated after creation; there is no UpdateTask command.
*
* <ul>
* <li> The maximum task size is 100KB.
* <li>The maximum task size is 100KB.
* </ul>
*
* <p>Sample code:
Expand DownExpand Up@@ -1891,7 +1904,7 @@ public final Task createTask(String parent, Task task) {
* <p>Tasks cannot be updated after creation; there is no UpdateTask command.
*
* <ul>
* <li> The maximum task size is 100KB.
* <li>The maximum task size is 100KB.
* </ul>
*
* <p>Sample code:
Expand DownExpand Up@@ -1921,7 +1934,7 @@ public final Task createTask(CreateTaskRequest request) {
* <p>Tasks cannot be updated after creation; there is no UpdateTask command.
*
* <ul>
* <li> The maximum task size is 100KB.
* <li>The maximum task size is 100KB.
* </ul>
*
* <p>Sample code:
Expand DownExpand Up@@ -2251,7 +2264,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted

public static class ListQueuesPagedResponse
extends AbstractPagedListResponse<
ListQueuesRequest, ListQueuesResponse, Queue, ListQueuesPage,
ListQueuesRequest,
ListQueuesResponse,
Queue,
ListQueuesPage,
ListQueuesFixedSizeCollection> {

public static ApiFuture<ListQueuesPagedResponse> createAsync(
Expand DownExpand Up@@ -2298,7 +2314,10 @@ public ApiFuture<ListQueuesPage> createPageAsync(

public static class ListQueuesFixedSizeCollection
extends AbstractFixedSizeCollection<
ListQueuesRequest, ListQueuesResponse, Queue, ListQueuesPage,
ListQueuesRequest,
ListQueuesResponse,
Queue,
ListQueuesPage,
ListQueuesFixedSizeCollection> {

private ListQueuesFixedSizeCollection(List<ListQueuesPage> pages, int collectionSize) {
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -28,7 +28,6 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.tasks.v2.stub.CloudTasksStubSettings;
Expand All@@ -49,9 +48,9 @@
* <p>The default instance has everything set to sensible defaults:
*
* <ul>
* <li> The default service address (cloudtasks.googleapis.com) and default port (443) are used.
* <li> Credentials are acquired automatically through Application Default Credentials.
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
* <li>The default service address (cloudtasks.googleapis.com) and default port (443) are used.
* <li>Credentials are acquired automatically through Application Default Credentials.
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
* </ul>
*
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
Expand Up@@ -53,7 +53,6 @@
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

Expand Down
Loading