{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String id = "id3355";
@@ -124,8 +127,11 @@
* To customize credentials:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* CloudBuildSettings cloudBuildSettings =
* CloudBuildSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -136,8 +142,11 @@
* To customize the endpoint:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* CloudBuildSettings cloudBuildSettings =
* CloudBuildSettings.newBuilder().setEndpoint(myEndpoint).build();
* CloudBuildClient cloudBuildClient = CloudBuildClient.create(cloudBuildSettings);
@@ -147,8 +156,11 @@
* the wire:
*
* {@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* CloudBuildSettings cloudBuildSettings =
* CloudBuildSettings.newBuilder()
* .setTransportChannelProvider(
@@ -242,8 +254,11 @@ public final OperationsClient getHttpJsonOperationsClient() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* Build build = Build.newBuilder().build();
@@ -272,8 +287,11 @@ public final OperationFuture createBuildAsync(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateBuildRequest request =
* CreateBuildRequest.newBuilder()
@@ -303,8 +321,11 @@ public final OperationFuture createBuildAsync(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateBuildRequest request =
* CreateBuildRequest.newBuilder()
@@ -334,8 +355,11 @@ public final OperationFuture createBuildAsync(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateBuildRequest request =
* CreateBuildRequest.newBuilder()
@@ -363,8 +387,11 @@ public final UnaryCallable createBuildCallable()
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String id = "id3355";
@@ -392,8 +419,11 @@ public final Build getBuild(String projectId, String id) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* GetBuildRequest request =
* GetBuildRequest.newBuilder()
@@ -422,8 +452,11 @@ public final Build getBuild(GetBuildRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* GetBuildRequest request =
* GetBuildRequest.newBuilder()
@@ -451,8 +484,11 @@ public final UnaryCallable getBuildCallable() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String filter = "filter-1274492040";
@@ -482,8 +518,11 @@ public final ListBuildsPagedResponse listBuilds(String projectId, String filter)
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListBuildsRequest request =
* ListBuildsRequest.newBuilder()
@@ -516,8 +555,11 @@ public final ListBuildsPagedResponse listBuilds(ListBuildsRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListBuildsRequest request =
* ListBuildsRequest.newBuilder()
@@ -549,8 +591,11 @@ public final UnaryCallable listBuild
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListBuildsRequest request =
* ListBuildsRequest.newBuilder()
@@ -586,8 +631,11 @@ public final UnaryCallable listBuildsCall
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String id = "id3355";
@@ -612,8 +660,11 @@ public final Build cancelBuild(String projectId, String id) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CancelBuildRequest request =
* CancelBuildRequest.newBuilder()
@@ -639,8 +690,11 @@ public final Build cancelBuild(CancelBuildRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CancelBuildRequest request =
* CancelBuildRequest.newBuilder()
@@ -695,8 +749,11 @@ public final UnaryCallable cancelBuildCallable() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String id = "id3355";
@@ -752,8 +809,11 @@ public final OperationFuture retryBuildAsync(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* RetryBuildRequest request =
* RetryBuildRequest.newBuilder()
@@ -810,8 +870,11 @@ public final OperationFuture retryBuildAsync(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* RetryBuildRequest request =
* RetryBuildRequest.newBuilder()
@@ -868,8 +931,11 @@ public final OperationFuture retryBuildAsync(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* RetryBuildRequest request =
* RetryBuildRequest.newBuilder()
@@ -898,8 +964,11 @@ public final UnaryCallable retryBuildCallable() {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String name = "name3373707";
* ApprovalResult approvalResult = ApprovalResult.newBuilder().build();
@@ -930,8 +999,11 @@ public final OperationFuture approveBuildAsync(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ApproveBuildRequest request =
* ApproveBuildRequest.newBuilder()
@@ -961,8 +1033,11 @@ public final OperationFuture approveBuildAsync(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ApproveBuildRequest request =
* ApproveBuildRequest.newBuilder()
@@ -992,8 +1067,11 @@ public final OperationFuture approveBuildAsync(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ApproveBuildRequest request =
* ApproveBuildRequest.newBuilder()
@@ -1019,8 +1097,11 @@ public final UnaryCallable approveBuildCallable(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* BuildTrigger trigger = BuildTrigger.newBuilder().build();
@@ -1047,8 +1128,11 @@ public final BuildTrigger createBuildTrigger(String projectId, BuildTrigger trig
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateBuildTriggerRequest request =
* CreateBuildTriggerRequest.newBuilder()
@@ -1076,8 +1160,11 @@ public final BuildTrigger createBuildTrigger(CreateBuildTriggerRequest request)
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateBuildTriggerRequest request =
* CreateBuildTriggerRequest.newBuilder()
@@ -1105,8 +1192,11 @@ public final UnaryCallable createBuildT
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String triggerId = "triggerId-648752909";
@@ -1133,8 +1223,11 @@ public final BuildTrigger getBuildTrigger(String projectId, String triggerId) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* GetBuildTriggerRequest request =
* GetBuildTriggerRequest.newBuilder()
@@ -1162,8 +1255,11 @@ public final BuildTrigger getBuildTrigger(GetBuildTriggerRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* GetBuildTriggerRequest request =
* GetBuildTriggerRequest.newBuilder()
@@ -1191,8 +1287,11 @@ public final UnaryCallable getBuildTrigger
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* for (BuildTrigger element : cloudBuildClient.listBuildTriggers(projectId).iterateAll()) {
@@ -1219,8 +1318,11 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(String projectId)
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListBuildTriggersRequest request =
* ListBuildTriggersRequest.newBuilder()
@@ -1251,8 +1353,11 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListBuildTriggersRequest request =
* ListBuildTriggersRequest.newBuilder()
@@ -1284,8 +1389,11 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListBuildTriggersRequest request =
* ListBuildTriggersRequest.newBuilder()
@@ -1324,8 +1432,11 @@ public final ListBuildTriggersPagedResponse listBuildTriggers(ListBuildTriggersR
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String triggerId = "triggerId-648752909";
@@ -1355,8 +1466,11 @@ public final void deleteBuildTrigger(String projectId, String triggerId) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* DeleteBuildTriggerRequest request =
* DeleteBuildTriggerRequest.newBuilder()
@@ -1384,8 +1498,11 @@ public final void deleteBuildTrigger(DeleteBuildTriggerRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* DeleteBuildTriggerRequest request =
* DeleteBuildTriggerRequest.newBuilder()
@@ -1412,8 +1529,11 @@ public final UnaryCallable deleteBuildTriggerC
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String triggerId = "triggerId-648752909";
@@ -1447,8 +1567,11 @@ public final BuildTrigger updateBuildTrigger(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* UpdateBuildTriggerRequest request =
* UpdateBuildTriggerRequest.newBuilder()
@@ -1476,8 +1599,11 @@ public final BuildTrigger updateBuildTrigger(UpdateBuildTriggerRequest request)
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* UpdateBuildTriggerRequest request =
* UpdateBuildTriggerRequest.newBuilder()
@@ -1503,8 +1629,11 @@ public final UnaryCallable updateBuildT
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String triggerId = "triggerId-648752909";
@@ -1536,8 +1665,11 @@ public final OperationFuture runBuildTriggerAsync
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* RunBuildTriggerRequest request =
* RunBuildTriggerRequest.newBuilder()
@@ -1565,8 +1697,11 @@ public final OperationFuture runBuildTriggerAsync
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* RunBuildTriggerRequest request =
* RunBuildTriggerRequest.newBuilder()
@@ -1594,8 +1729,11 @@ public final OperationFuture runBuildTriggerAsync
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* RunBuildTriggerRequest request =
* RunBuildTriggerRequest.newBuilder()
@@ -1622,8 +1760,11 @@ public final UnaryCallable runBuildTriggerCal
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ReceiveTriggerWebhookRequest request =
* ReceiveTriggerWebhookRequest.newBuilder()
@@ -1653,8 +1794,11 @@ public final ReceiveTriggerWebhookResponse receiveTriggerWebhook(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ReceiveTriggerWebhookRequest request =
* ReceiveTriggerWebhookRequest.newBuilder()
@@ -1683,8 +1827,11 @@ public final ReceiveTriggerWebhookResponse receiveTriggerWebhook(
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* WorkerPool workerPool = WorkerPool.newBuilder().build();
@@ -1720,8 +1867,11 @@ public final OperationFuture crea
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* WorkerPool workerPool = WorkerPool.newBuilder().build();
@@ -1757,8 +1907,11 @@ public final OperationFuture crea
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateWorkerPoolRequest request =
* CreateWorkerPoolRequest.newBuilder()
@@ -1786,8 +1939,11 @@ public final OperationFuture crea
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateWorkerPoolRequest request =
* CreateWorkerPoolRequest.newBuilder()
@@ -1816,8 +1972,11 @@ public final OperationFuture crea
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* CreateWorkerPoolRequest request =
* CreateWorkerPoolRequest.newBuilder()
@@ -1843,8 +2002,11 @@ public final UnaryCallable createWorkerPoolC
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* WorkerPoolName name = WorkerPoolName.of("[PROJECT]", "[LOCATION]", "[WORKER_POOL]");
* WorkerPool response = cloudBuildClient.getWorkerPool(name);
@@ -1868,8 +2030,11 @@ public final WorkerPool getWorkerPool(WorkerPoolName name) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String name = WorkerPoolName.of("[PROJECT]", "[LOCATION]", "[WORKER_POOL]").toString();
* WorkerPool response = cloudBuildClient.getWorkerPool(name);
@@ -1892,8 +2057,11 @@ public final WorkerPool getWorkerPool(String name) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* GetWorkerPoolRequest request =
* GetWorkerPoolRequest.newBuilder()
@@ -1917,8 +2085,11 @@ public final WorkerPool getWorkerPool(GetWorkerPoolRequest request) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* GetWorkerPoolRequest request =
* GetWorkerPoolRequest.newBuilder()
@@ -1941,8 +2112,11 @@ public final UnaryCallable getWorkerPoolCallab
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* WorkerPoolName name = WorkerPoolName.of("[PROJECT]", "[LOCATION]", "[WORKER_POOL]");
* cloudBuildClient.deleteWorkerPoolAsync(name).get();
@@ -1967,8 +2141,11 @@ public final OperationFuture deleteWor
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String name = WorkerPoolName.of("[PROJECT]", "[LOCATION]", "[WORKER_POOL]").toString();
* cloudBuildClient.deleteWorkerPoolAsync(name).get();
@@ -1992,8 +2169,11 @@ public final OperationFuture deleteWor
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* DeleteWorkerPoolRequest request =
* DeleteWorkerPoolRequest.newBuilder()
@@ -2021,8 +2201,11 @@ public final OperationFuture deleteWor
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* DeleteWorkerPoolRequest request =
* DeleteWorkerPoolRequest.newBuilder()
@@ -2050,8 +2233,11 @@ public final OperationFuture deleteWor
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* DeleteWorkerPoolRequest request =
* DeleteWorkerPoolRequest.newBuilder()
@@ -2077,8 +2263,11 @@ public final UnaryCallable deleteWorkerPoolC
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* WorkerPool workerPool = WorkerPool.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
@@ -2109,8 +2298,11 @@ public final OperationFuture upda
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* UpdateWorkerPoolRequest request =
* UpdateWorkerPoolRequest.newBuilder()
@@ -2137,8 +2329,11 @@ public final OperationFuture upda
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* UpdateWorkerPoolRequest request =
* UpdateWorkerPoolRequest.newBuilder()
@@ -2166,8 +2361,11 @@ public final OperationFuture upda
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* UpdateWorkerPoolRequest request =
* UpdateWorkerPoolRequest.newBuilder()
@@ -2192,8 +2390,11 @@ public final UnaryCallable updateWorkerPoolC
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* for (WorkerPool element : cloudBuildClient.listWorkerPools(parent).iterateAll()) {
@@ -2221,8 +2422,11 @@ public final ListWorkerPoolsPagedResponse listWorkerPools(LocationName parent) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* for (WorkerPool element : cloudBuildClient.listWorkerPools(parent).iterateAll()) {
@@ -2247,8 +2451,11 @@ public final ListWorkerPoolsPagedResponse listWorkerPools(String parent) {
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListWorkerPoolsRequest request =
* ListWorkerPoolsRequest.newBuilder()
@@ -2276,8 +2483,11 @@ public final ListWorkerPoolsPagedResponse listWorkerPools(ListWorkerPoolsRequest
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListWorkerPoolsRequest request =
* ListWorkerPoolsRequest.newBuilder()
@@ -2306,8 +2516,11 @@ public final ListWorkerPoolsPagedResponse listWorkerPools(ListWorkerPoolsRequest
* Sample code:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* ListWorkerPoolsRequest request =
* ListWorkerPoolsRequest.newBuilder()
diff --git a/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java b/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java
index b7e9d24e..ce32e376 100644
--- a/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java
+++ b/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/CloudBuildSettings.java
@@ -87,16 +87,16 @@
* For example, to set the total timeout of getBuild to 30 seconds:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* CloudBuildSettings.Builder cloudBuildSettingsBuilder = CloudBuildSettings.newBuilder();
* cloudBuildSettingsBuilder
* .getBuildSettings()
* .setRetrySettings(
- * cloudBuildSettingsBuilder
- * .getBuildSettings()
- * .getRetrySettings()
- * .toBuilder()
+ * cloudBuildSettingsBuilder.getBuildSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* CloudBuildSettings cloudBuildSettings = cloudBuildSettingsBuilder.build();
diff --git a/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java b/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java
index 12351c3f..6bb314aa 100644
--- a/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java
+++ b/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/package-info.java
@@ -30,8 +30,11 @@
* Sample for CloudBuildClient:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudBuildClient cloudBuildClient = CloudBuildClient.create()) {
* String projectId = "projectId-894832108";
* String id = "id3355";
diff --git a/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java b/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java
index d9d92243..7c7f1446 100644
--- a/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java
+++ b/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/CloudBuildStubSettings.java
@@ -107,16 +107,16 @@
* For example, to set the total timeout of getBuild to 30 seconds:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* CloudBuildStubSettings.Builder cloudBuildSettingsBuilder = CloudBuildStubSettings.newBuilder();
* cloudBuildSettingsBuilder
* .getBuildSettings()
* .setRetrySettings(
- * cloudBuildSettingsBuilder
- * .getBuildSettings()
- * .getRetrySettings()
- * .toBuilder()
+ * cloudBuildSettingsBuilder.getBuildSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* CloudBuildStubSettings cloudBuildSettings = cloudBuildSettingsBuilder.build();
diff --git a/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/HttpJsonCloudBuildStub.java b/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/HttpJsonCloudBuildStub.java
index 0fd6b501..9ecc4e78 100644
--- a/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/HttpJsonCloudBuildStub.java
+++ b/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/HttpJsonCloudBuildStub.java
@@ -123,7 +123,8 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
})
.setRequestBodyExtractor(
request ->
- ProtoRestSerializer.create().toBody("build", request.getBuild()))
+ ProtoRestSerializer.create()
+ .toBody("build", request.getBuild(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -244,7 +245,8 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
.clearId()
.clearName()
.clearProjectId()
- .build()))
+ .build(),
+ false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -290,7 +292,8 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
.clearId()
.clearName()
.clearProjectId()
- .build()))
+ .build(),
+ false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -330,7 +333,7 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("*", request.toBuilder().clearName().build()))
+ .toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -370,7 +373,8 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
})
.setRequestBodyExtractor(
request ->
- ProtoRestSerializer.create().toBody("trigger", request.getTrigger()))
+ ProtoRestSerializer.create()
+ .toBody("trigger", request.getTrigger(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -521,7 +525,8 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
})
.setRequestBodyExtractor(
request ->
- ProtoRestSerializer.create().toBody("trigger", request.getTrigger()))
+ ProtoRestSerializer.create()
+ .toBody("trigger", request.getTrigger(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -559,7 +564,8 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
})
.setRequestBodyExtractor(
request ->
- ProtoRestSerializer.create().toBody("source", request.getSource()))
+ ProtoRestSerializer.create()
+ .toBody("source", request.getSource(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -602,7 +608,8 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
return fields;
})
.setRequestBodyExtractor(
- request -> ProtoRestSerializer.create().toBody("body", request.getBody()))
+ request ->
+ ProtoRestSerializer.create().toBody("body", request.getBody(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -642,7 +649,7 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("workerPool", request.getWorkerPool()))
+ .toBody("workerPool", request.getWorkerPool(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -759,7 +766,7 @@ public class HttpJsonCloudBuildStub extends CloudBuildStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
- .toBody("workerPool", request.getWorkerPool()))
+ .toBody("workerPool", request.getWorkerPool(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
From ddba57bced69fe8a22bd1df9edb59a7467e19250 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Fri, 9 Sep 2022 17:54:14 +0200
Subject: [PATCH 3/6] chore(deps): update dependency
com.google.cloud:google-cloud-build to v3.5.3 (#790)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-build](https://togithub.com/googleapis/java-cloudbuild) | `3.5.2` -> `3.5.3` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
â™» **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.
🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.
---
- [ ] If you want to rebase/retry this PR, click this checkbox. âš **Warning**: custom changes will be lost.
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-cloudbuild).
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 46d67f2a..43c6d832 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -29,7 +29,7 @@
com.google.cloud
google-cloud-build
- 3.5.2
+ 3.5.3
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 2af1c66b..7db950f5 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-build
- 3.5.2
+ 3.5.3
From 6611778f3e081d0b300f308035d309e9390103f7 Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Sat, 10 Sep 2022 02:12:16 +0000
Subject: [PATCH 4/6] chore: Generated snippets should not be owned by samples
reviewers (#1575) (#791)
Source-Link: https://github.com/googleapis/synthtool/commit/2e9ac19d5b8181af77cdc5337cf922517813cc49
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93
---
.github/.OwlBot.lock.yaml | 3 +--
.github/CODEOWNERS | 3 +++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index f8b912ad..62592923 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,4 @@
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
- digest: sha256:b47e411068ffc6e6990cb4e0802fbac9a4488dec7f5f424553518ba21abea208
-# created: 2022-07-26T16:25:31.033836225Z
+ digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 1578dc2f..5232f38f 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -10,3 +10,6 @@
# The java-samples-reviewers team is the default owner for samples changes
samples/**/*.java @googleapis/java-samples-reviewers
+
+# Generated snippets should not be owned by samples reviewers
+samples/snippets/generated/ @googleapis/yoshi-java
From 31995f42ac9d4904a16f9660facf1ff82c7df2f6 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Thu, 15 Sep 2022 15:56:23 +0200
Subject: [PATCH 5/6] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v3.0.3 (#792)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.2` -> `3.0.3` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
googleapis/java-shared-dependencies
### [`v3.0.3`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#303-httpsgithubcomgoogleapisjava-shared-dependenciescomparev302v303-2022-09-14)
[Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.2...v3.0.3)
##### Dependencies
- Google-cloud-core 2.8.12 ([#799](https://togithub.com/googleapis/java-shared-dependencies/issues/799)) ([1b3db8d](https://togithub.com/googleapis/java-shared-dependencies/commit/1b3db8d1e17c49ebae79fc96164fa9058e1df6e3))
- Moving gson to first-party-dependencies ([#800](https://togithub.com/googleapis/java-shared-dependencies/issues/800)) ([a41fcc1](https://togithub.com/googleapis/java-shared-dependencies/commit/a41fcc11d32e02e5af2837561792e3919f6d4b3f))
- Update dependency com.google.protobuf:protobuf-bom to v3.21.6 ([#797](https://togithub.com/googleapis/java-shared-dependencies/issues/797)) ([bc5fdc9](https://togithub.com/googleapis/java-shared-dependencies/commit/bc5fdc9b3af7973c28f063a9ac156fe2af562814))
- Update gax.version to v2.19.1 ([#798](https://togithub.com/googleapis/java-shared-dependencies/issues/798)) ([84e5487](https://togithub.com/googleapis/java-shared-dependencies/commit/84e5487b2e3dce4bb60badecebde788c3cb702b8))
- Update google.core.version to v2.8.11 ([#793](https://togithub.com/googleapis/java-shared-dependencies/issues/793)) ([63c1297](https://togithub.com/googleapis/java-shared-dependencies/commit/63c129722aa0b821031ff5b4c11004adf7b12044))
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
â™» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, click this checkbox.
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-cloudbuild).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 415be23a..3f603486 100644
--- a/pom.xml
+++ b/pom.xml
@@ -78,7 +78,7 @@
com.google.cloud
google-cloud-shared-dependencies
- 3.0.2
+ 3.0.3
pom
import
From 92f4ad7c5a1ebdffa5984cd6f4b5361390f8e5de Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Thu, 15 Sep 2022 14:10:35 +0000
Subject: [PATCH 6/6] chore(main): release 3.5.4 (#793)
:robot: I have created a release *beep* *boop*
---
## [3.5.4](https://github.com/googleapis/java-cloudbuild/compare/v3.5.3...v3.5.4) (2022-09-15)
### Dependencies
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#792](https://github.com/googleapis/java-cloudbuild/issues/792)) ([31995f4](https://github.com/googleapis/java-cloudbuild/commit/31995f42ac9d4904a16f9660facf1ff82c7df2f6))
---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
---
CHANGELOG.md | 7 +++++++
google-cloud-build-bom/pom.xml | 8 ++++----
google-cloud-build/pom.xml | 4 ++--
grpc-google-cloud-build-v1/pom.xml | 4 ++--
pom.xml | 8 ++++----
proto-google-cloud-build-v1/pom.xml | 4 ++--
versions.txt | 6 +++---
7 files changed, 24 insertions(+), 17 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3660812a..df623804 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog
+## [3.5.4](https://github.com/googleapis/java-cloudbuild/compare/v3.5.3...v3.5.4) (2022-09-15)
+
+
+### Dependencies
+
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#792](https://github.com/googleapis/java-cloudbuild/issues/792)) ([31995f4](https://github.com/googleapis/java-cloudbuild/commit/31995f42ac9d4904a16f9660facf1ff82c7df2f6))
+
## [3.5.3](https://github.com/googleapis/java-cloudbuild/compare/v3.5.2...v3.5.3) (2022-09-09)
diff --git a/google-cloud-build-bom/pom.xml b/google-cloud-build-bom/pom.xml
index f2f01603..7beda4af 100644
--- a/google-cloud-build-bom/pom.xml
+++ b/google-cloud-build-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-build-bom
- 3.5.4-SNAPSHOT
+ 3.5.4
pom
com.google.cloud
@@ -52,17 +52,17 @@
com.google.cloud
google-cloud-build
- 3.5.4-SNAPSHOT
+ 3.5.4
com.google.api.grpc
grpc-google-cloud-build-v1
- 3.5.4-SNAPSHOT
+ 3.5.4
com.google.api.grpc
proto-google-cloud-build-v1
- 3.5.4-SNAPSHOT
+ 3.5.4