This repository was archived by the owner on Sep 16, 2023. It is now read-only.

40 files changed

+4606
-4850
lines changed
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package com.google.cloud.tasks.v2;
1718

1819
import static com.google.cloud.tasks.v2.CloudTasksClient.ListQueuesPagedResponse;
@@ -40,7 +41,7 @@
4041
import java.util.List;
4142
import javax.annotation.Generated;
4243

43-
// AUTO-GENERATED DOCUMENTATION AND CLASS
44+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
4445
/**
4546
* Settings class to configure an instance of {@link CloudTasksClient}.
4647
*
@@ -57,23 +58,23 @@
5758
*
5859
* <p>For example, to set the total timeout of getQueue to 30 seconds:
5960
*
60-
* <pre>
61-
* <code>
62-
* CloudTasksSettings.Builder cloudTasksSettingsBuilder =
63-
* CloudTasksSettings.newBuilder();
61+
* <pre>{@code
62+
* CloudTasksSettings.Builder cloudTasksSettingsBuilder = CloudTasksSettings.newBuilder();
6463
* cloudTasksSettingsBuilder
6564
* .getQueueSettings()
6665
* .setRetrySettings(
67-
* cloudTasksSettingsBuilder.getQueueSettings().getRetrySettings().toBuilder()
66+
* cloudTasksSettingsBuilder
67+
* .getQueueSettings()
68+
* .getRetrySettings()
69+
* .toBuilder()
6870
* .setTotalTimeout(Duration.ofSeconds(30))
6971
* .build());
7072
* CloudTasksSettings cloudTasksSettings = cloudTasksSettingsBuilder.build();
71-
* </code>
72-
* </pre>
73+
* }</pre>
7374
*/
74-
@Generated("by gapic-generator")
75-
@BetaApi
75+
@Generated("by gapic-generator-java")
7676
public class CloudTasksSettings extends ClientSettings<CloudTasksSettings> {
77+
7778
/** Returns the object with the settings used for calls to listQueues. */
7879
public PagedCallSettings<ListQueuesRequest, ListQueuesResponse, ListQueuesPagedResponse>
7980
listQueuesSettings() {
@@ -216,18 +217,15 @@ protected CloudTasksSettings(Builder settingsBuilder) throws IOException {
216217

217218
/** Builder for CloudTasksSettings. */
218219
public static class Builder extends ClientSettings.Builder<CloudTasksSettings, Builder> {
220+
219221
protected Builder() throws IOException {
220-
this((ClientContext) null);
222+
this(((ClientContext) null));
221223
}
222224

223225
protected Builder(ClientContext clientContext) {
224226
super(CloudTasksStubSettings.newBuilder(clientContext));
225227
}
226228

227-
private static Builder createDefault() {
228-
return new Builder(CloudTasksStubSettings.newBuilder());
229-
}
230-
231229
protected Builder(CloudTasksSettings settings) {
232230
super(settings.getStubSettings().toBuilder());
233231
}
@@ -236,11 +234,15 @@ protected Builder(CloudTasksStubSettings.Builder stubSettings) {
236234
super(stubSettings);
237235
}
238236

237+
private static Builder createDefault() {
238+
return new Builder(CloudTasksStubSettings.newBuilder());
239+
}
240+
239241
public CloudTasksStubSettings.Builder getStubSettingsBuilder() {
240242
return ((CloudTasksStubSettings.Builder) getStubSettings());
241243
}
242244

243-
// NEXT_MAJOR_VER: remove 'throws Exception'
245+
// NEXT_MAJOR_VER: remove 'throws Exception'.
244246
/**
245247
* Applies the given settings updater function to all of the unary API methods in this service.
246248
*
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -15,27 +15,16 @@
1515
*/
1616

1717
/**
18-
* A client to Cloud Tasks API.
18+
* The interfaces provided are listed below, along with usage samples.
1919
*
20-
* <p>The interfaces provided are listed below, along with usage samples.
21-
*
22-
* <p>================ CloudTasksClient ================
20+
* <p>======================= CloudTasksClient =======================
2321
*
2422
* <p>Service Description: Cloud Tasks allows developers to manage the execution of background work
2523
* in their applications.
2624
*
2725
* <p>Sample for CloudTasksClient:
28-
*
29-
* <pre>
30-
* <code>
31-
* try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
32-
* QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
33-
* Queue response = cloudTasksClient.getQueue(name);
34-
* }
35-
* </code>
36-
* </pre>
3726
*/
38-
@Generated("by gapic-generator")
27+
@Generated("by gapic-generator-java")
3928
package com.google.cloud.tasks.v2;
4029

4130
import javax.annotation.Generated;
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* https://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
package com.google.cloud.tasks.v2.stub;
1718

1819
import static com.google.cloud.tasks.v2.CloudTasksClient.ListQueuesPagedResponse;
1920
import static com.google.cloud.tasks.v2.CloudTasksClient.ListTasksPagedResponse;
2021

21-
import com.google.api.core.BetaApi;
2222
import com.google.api.gax.core.BackgroundResource;
2323
import com.google.api.gax.rpc.UnaryCallable;
2424
import com.google.cloud.tasks.v2.CreateQueueRequest;
@@ -46,14 +46,13 @@
4646
import com.google.protobuf.Empty;
4747
import javax.annotation.Generated;
4848

49-
// AUTO-GENERATED DOCUMENTATION AND CLASS
49+
// AUTO-GENERATED DOCUMENTATION AND CLASS.
5050
/**
51-
* Base stub class for Cloud Tasks API.
51+
* Base stub class for the CloudTasks service API.
5252
*
5353
* <p>This class is for advanced usage and reflects the underlying API directly.
5454
*/
5555
@Generated("by gapic-generator")
56-
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
5756
public abstract class CloudTasksStub implements BackgroundResource {
5857

5958
public UnaryCallable<ListQueuesRequest, ListQueuesPagedResponse> listQueuesPagedCallable() {

0 commit comments

Comments
 (0)