diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java index 497c1e25ac51..d0070ece542b 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java @@ -1877,6 +1877,785 @@ public final UnaryCallable deleteTargetCallable( return stub.deleteTargetCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CustomTargetTypes in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (CustomTargetType element :
+   *       cloudDeployClient.listCustomTargetTypes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent that owns this collection of custom target types. Format + * must be `projects/{project_id}/locations/{location_name}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCustomTargetTypesPagedResponse listCustomTargetTypes(LocationName parent) { + ListCustomTargetTypesRequest request = + ListCustomTargetTypesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCustomTargetTypes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CustomTargetTypes in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (CustomTargetType element :
+   *       cloudDeployClient.listCustomTargetTypes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent that owns this collection of custom target types. Format + * must be `projects/{project_id}/locations/{location_name}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCustomTargetTypesPagedResponse listCustomTargetTypes(String parent) { + ListCustomTargetTypesRequest request = + ListCustomTargetTypesRequest.newBuilder().setParent(parent).build(); + return listCustomTargetTypes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CustomTargetTypes in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   ListCustomTargetTypesRequest request =
+   *       ListCustomTargetTypesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (CustomTargetType element :
+   *       cloudDeployClient.listCustomTargetTypes(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCustomTargetTypesPagedResponse listCustomTargetTypes( + ListCustomTargetTypesRequest request) { + return listCustomTargetTypesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CustomTargetTypes in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   ListCustomTargetTypesRequest request =
+   *       ListCustomTargetTypesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       cloudDeployClient.listCustomTargetTypesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (CustomTargetType element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listCustomTargetTypesPagedCallable() { + return stub.listCustomTargetTypesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CustomTargetTypes in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   ListCustomTargetTypesRequest request =
+   *       ListCustomTargetTypesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListCustomTargetTypesResponse response =
+   *         cloudDeployClient.listCustomTargetTypesCallable().call(request);
+   *     for (CustomTargetType element : response.getCustomTargetTypesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listCustomTargetTypesCallable() { + return stub.listCustomTargetTypesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single CustomTargetType. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   CustomTargetTypeName name =
+   *       CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]");
+   *   CustomTargetType response = cloudDeployClient.getCustomTargetType(name);
+   * }
+   * }
+ * + * @param name Required. Name of the `CustomTargetType`. Format must be + * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CustomTargetType getCustomTargetType(CustomTargetTypeName name) { + GetCustomTargetTypeRequest request = + GetCustomTargetTypeRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getCustomTargetType(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single CustomTargetType. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   String name =
+   *       CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]").toString();
+   *   CustomTargetType response = cloudDeployClient.getCustomTargetType(name);
+   * }
+   * }
+ * + * @param name Required. Name of the `CustomTargetType`. Format must be + * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CustomTargetType getCustomTargetType(String name) { + GetCustomTargetTypeRequest request = + GetCustomTargetTypeRequest.newBuilder().setName(name).build(); + return getCustomTargetType(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single CustomTargetType. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   GetCustomTargetTypeRequest request =
+   *       GetCustomTargetTypeRequest.newBuilder()
+   *           .setName(
+   *               CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]")
+   *                   .toString())
+   *           .build();
+   *   CustomTargetType response = cloudDeployClient.getCustomTargetType(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CustomTargetType getCustomTargetType(GetCustomTargetTypeRequest request) { + return getCustomTargetTypeCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single CustomTargetType. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   GetCustomTargetTypeRequest request =
+   *       GetCustomTargetTypeRequest.newBuilder()
+   *           .setName(
+   *               CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       cloudDeployClient.getCustomTargetTypeCallable().futureCall(request);
+   *   // Do something.
+   *   CustomTargetType response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getCustomTargetTypeCallable() { + return stub.getCustomTargetTypeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CustomTargetType in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   CustomTargetType customTargetType = CustomTargetType.newBuilder().build();
+   *   String customTargetTypeId = "customTargetTypeId1451302135";
+   *   CustomTargetType response =
+   *       cloudDeployClient
+   *           .createCustomTargetTypeAsync(parent, customTargetType, customTargetTypeId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent collection in which the `CustomTargetType` should be created + * in. Format should be `projects/{project_id}/locations/{location_name}`. + * @param customTargetType Required. The `CustomTargetType` to create. + * @param customTargetTypeId Required. ID of the `CustomTargetType`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createCustomTargetTypeAsync( + LocationName parent, CustomTargetType customTargetType, String customTargetTypeId) { + CreateCustomTargetTypeRequest request = + CreateCustomTargetTypeRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCustomTargetType(customTargetType) + .setCustomTargetTypeId(customTargetTypeId) + .build(); + return createCustomTargetTypeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CustomTargetType in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   CustomTargetType customTargetType = CustomTargetType.newBuilder().build();
+   *   String customTargetTypeId = "customTargetTypeId1451302135";
+   *   CustomTargetType response =
+   *       cloudDeployClient
+   *           .createCustomTargetTypeAsync(parent, customTargetType, customTargetTypeId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent collection in which the `CustomTargetType` should be created + * in. Format should be `projects/{project_id}/locations/{location_name}`. + * @param customTargetType Required. The `CustomTargetType` to create. + * @param customTargetTypeId Required. ID of the `CustomTargetType`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createCustomTargetTypeAsync( + String parent, CustomTargetType customTargetType, String customTargetTypeId) { + CreateCustomTargetTypeRequest request = + CreateCustomTargetTypeRequest.newBuilder() + .setParent(parent) + .setCustomTargetType(customTargetType) + .setCustomTargetTypeId(customTargetTypeId) + .build(); + return createCustomTargetTypeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CustomTargetType in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   CreateCustomTargetTypeRequest request =
+   *       CreateCustomTargetTypeRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCustomTargetTypeId("customTargetTypeId1451302135")
+   *           .setCustomTargetType(CustomTargetType.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   CustomTargetType response = cloudDeployClient.createCustomTargetTypeAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createCustomTargetTypeAsync( + CreateCustomTargetTypeRequest request) { + return createCustomTargetTypeOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CustomTargetType in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   CreateCustomTargetTypeRequest request =
+   *       CreateCustomTargetTypeRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCustomTargetTypeId("customTargetTypeId1451302135")
+   *           .setCustomTargetType(CustomTargetType.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   OperationFuture future =
+   *       cloudDeployClient.createCustomTargetTypeOperationCallable().futureCall(request);
+   *   // Do something.
+   *   CustomTargetType response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createCustomTargetTypeOperationCallable() { + return stub.createCustomTargetTypeOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new CustomTargetType in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   CreateCustomTargetTypeRequest request =
+   *       CreateCustomTargetTypeRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setCustomTargetTypeId("customTargetTypeId1451302135")
+   *           .setCustomTargetType(CustomTargetType.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future =
+   *       cloudDeployClient.createCustomTargetTypeCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createCustomTargetTypeCallable() { + return stub.createCustomTargetTypeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single CustomTargetType. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   CustomTargetType customTargetType = CustomTargetType.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   CustomTargetType response =
+   *       cloudDeployClient.updateCustomTargetTypeAsync(customTargetType, updateMask).get();
+   * }
+   * }
+ * + * @param customTargetType Required. The `CustomTargetType` to update. + * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the + * `CustomTargetType` resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in the + * mask. If the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateCustomTargetTypeAsync( + CustomTargetType customTargetType, FieldMask updateMask) { + UpdateCustomTargetTypeRequest request = + UpdateCustomTargetTypeRequest.newBuilder() + .setCustomTargetType(customTargetType) + .setUpdateMask(updateMask) + .build(); + return updateCustomTargetTypeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single CustomTargetType. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   UpdateCustomTargetTypeRequest request =
+   *       UpdateCustomTargetTypeRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setCustomTargetType(CustomTargetType.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setAllowMissing(true)
+   *           .setValidateOnly(true)
+   *           .build();
+   *   CustomTargetType response = cloudDeployClient.updateCustomTargetTypeAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateCustomTargetTypeAsync( + UpdateCustomTargetTypeRequest request) { + return updateCustomTargetTypeOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single CustomTargetType. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   UpdateCustomTargetTypeRequest request =
+   *       UpdateCustomTargetTypeRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setCustomTargetType(CustomTargetType.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setAllowMissing(true)
+   *           .setValidateOnly(true)
+   *           .build();
+   *   OperationFuture future =
+   *       cloudDeployClient.updateCustomTargetTypeOperationCallable().futureCall(request);
+   *   // Do something.
+   *   CustomTargetType response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateCustomTargetTypeOperationCallable() { + return stub.updateCustomTargetTypeOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a single CustomTargetType. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   UpdateCustomTargetTypeRequest request =
+   *       UpdateCustomTargetTypeRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setCustomTargetType(CustomTargetType.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setAllowMissing(true)
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future =
+   *       cloudDeployClient.updateCustomTargetTypeCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateCustomTargetTypeCallable() { + return stub.updateCustomTargetTypeCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single CustomTargetType. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   CustomTargetTypeName name =
+   *       CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]");
+   *   cloudDeployClient.deleteCustomTargetTypeAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the `CustomTargetType` to delete. Format must be + * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCustomTargetTypeAsync( + CustomTargetTypeName name) { + DeleteCustomTargetTypeRequest request = + DeleteCustomTargetTypeRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteCustomTargetTypeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single CustomTargetType. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   String name =
+   *       CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]").toString();
+   *   cloudDeployClient.deleteCustomTargetTypeAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the `CustomTargetType` to delete. Format must be + * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCustomTargetTypeAsync(String name) { + DeleteCustomTargetTypeRequest request = + DeleteCustomTargetTypeRequest.newBuilder().setName(name).build(); + return deleteCustomTargetTypeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single CustomTargetType. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   DeleteCustomTargetTypeRequest request =
+   *       DeleteCustomTargetTypeRequest.newBuilder()
+   *           .setName(
+   *               CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .setAllowMissing(true)
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   cloudDeployClient.deleteCustomTargetTypeAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCustomTargetTypeAsync( + DeleteCustomTargetTypeRequest request) { + return deleteCustomTargetTypeOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single CustomTargetType. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   DeleteCustomTargetTypeRequest request =
+   *       DeleteCustomTargetTypeRequest.newBuilder()
+   *           .setName(
+   *               CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .setAllowMissing(true)
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   OperationFuture future =
+   *       cloudDeployClient.deleteCustomTargetTypeOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteCustomTargetTypeOperationCallable() { + return stub.deleteCustomTargetTypeOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single CustomTargetType. + * + *

Sample code: + * + *

{@code
+   * // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   DeleteCustomTargetTypeRequest request =
+   *       DeleteCustomTargetTypeRequest.newBuilder()
+   *           .setName(
+   *               CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .setAllowMissing(true)
+   *           .setValidateOnly(true)
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   ApiFuture future =
+   *       cloudDeployClient.deleteCustomTargetTypeCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteCustomTargetTypeCallable() { + return stub.deleteCustomTargetTypeCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists Releases in a given project and location. @@ -4862,7 +5641,8 @@ public final UnaryCallable getAutomationCallab * } * } * - * @param parent Required. The parent, which owns this collection of automations. Format must be + * @param parent Required. The parent `Delivery Pipeline`, which owns this collection of + * automations. Format must be * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -4895,7 +5675,8 @@ public final ListAutomationsPagedResponse listAutomations(DeliveryPipelineName p * } * } * - * @param parent Required. The parent, which owns this collection of automations. Format must be + * @param parent Required. The parent `Delivery Pipeline`, which owns this collection of + * automations. Format must be * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -5163,8 +5944,9 @@ public final UnaryCallable getAutomation * } * } * - * @param parent Required. The parent, which owns this collection of automationRuns. Format must - * be `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`. + * @param parent Required. The parent `Delivery Pipeline`, which owns this collection of + * automationRuns. Format must be + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAutomationRunsPagedResponse listAutomationRuns(DeliveryPipelineName parent) { @@ -5196,8 +5978,9 @@ public final ListAutomationRunsPagedResponse listAutomationRuns(DeliveryPipeline * } * } * - * @param parent Required. The parent, which owns this collection of automationRuns. Format must - * be `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`. + * @param parent Required. The parent `Delivery Pipeline`, which owns this collection of + * automationRuns. Format must be + * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListAutomationRunsPagedResponse listAutomationRuns(String parent) { @@ -6002,6 +6785,90 @@ protected ListTargetsFixedSizeCollection createCollection( } } + public static class ListCustomTargetTypesPagedResponse + extends AbstractPagedListResponse< + ListCustomTargetTypesRequest, + ListCustomTargetTypesResponse, + CustomTargetType, + ListCustomTargetTypesPage, + ListCustomTargetTypesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCustomTargetTypesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListCustomTargetTypesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListCustomTargetTypesPagedResponse(ListCustomTargetTypesPage page) { + super(page, ListCustomTargetTypesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCustomTargetTypesPage + extends AbstractPage< + ListCustomTargetTypesRequest, + ListCustomTargetTypesResponse, + CustomTargetType, + ListCustomTargetTypesPage> { + + private ListCustomTargetTypesPage( + PageContext + context, + ListCustomTargetTypesResponse response) { + super(context, response); + } + + private static ListCustomTargetTypesPage createEmptyPage() { + return new ListCustomTargetTypesPage(null, null); + } + + @Override + protected ListCustomTargetTypesPage createPage( + PageContext + context, + ListCustomTargetTypesResponse response) { + return new ListCustomTargetTypesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListCustomTargetTypesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListCustomTargetTypesRequest, + ListCustomTargetTypesResponse, + CustomTargetType, + ListCustomTargetTypesPage, + ListCustomTargetTypesFixedSizeCollection> { + + private ListCustomTargetTypesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListCustomTargetTypesFixedSizeCollection createEmptyCollection() { + return new ListCustomTargetTypesFixedSizeCollection(null, 0); + } + + @Override + protected ListCustomTargetTypesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListCustomTargetTypesFixedSizeCollection(pages, collectionSize); + } + } + public static class ListReleasesPagedResponse extends AbstractPagedListResponse< ListReleasesRequest, diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java index 5d7cd4158900..3b10f2abd69a 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationRunsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationsPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListCustomTargetTypesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; @@ -193,6 +194,57 @@ public UnaryCallSettings deleteTargetSettings() return ((CloudDeployStubSettings) getStubSettings()).deleteTargetOperationSettings(); } + /** Returns the object with the settings used for calls to listCustomTargetTypes. */ + public PagedCallSettings< + ListCustomTargetTypesRequest, + ListCustomTargetTypesResponse, + ListCustomTargetTypesPagedResponse> + listCustomTargetTypesSettings() { + return ((CloudDeployStubSettings) getStubSettings()).listCustomTargetTypesSettings(); + } + + /** Returns the object with the settings used for calls to getCustomTargetType. */ + public UnaryCallSettings + getCustomTargetTypeSettings() { + return ((CloudDeployStubSettings) getStubSettings()).getCustomTargetTypeSettings(); + } + + /** Returns the object with the settings used for calls to createCustomTargetType. */ + public UnaryCallSettings + createCustomTargetTypeSettings() { + return ((CloudDeployStubSettings) getStubSettings()).createCustomTargetTypeSettings(); + } + + /** Returns the object with the settings used for calls to createCustomTargetType. */ + public OperationCallSettings + createCustomTargetTypeOperationSettings() { + return ((CloudDeployStubSettings) getStubSettings()).createCustomTargetTypeOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateCustomTargetType. */ + public UnaryCallSettings + updateCustomTargetTypeSettings() { + return ((CloudDeployStubSettings) getStubSettings()).updateCustomTargetTypeSettings(); + } + + /** Returns the object with the settings used for calls to updateCustomTargetType. */ + public OperationCallSettings + updateCustomTargetTypeOperationSettings() { + return ((CloudDeployStubSettings) getStubSettings()).updateCustomTargetTypeOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteCustomTargetType. */ + public UnaryCallSettings + deleteCustomTargetTypeSettings() { + return ((CloudDeployStubSettings) getStubSettings()).deleteCustomTargetTypeSettings(); + } + + /** Returns the object with the settings used for calls to deleteCustomTargetType. */ + public OperationCallSettings + deleteCustomTargetTypeOperationSettings() { + return ((CloudDeployStubSettings) getStubSettings()).deleteCustomTargetTypeOperationSettings(); + } + /** Returns the object with the settings used for calls to listReleases. */ public PagedCallSettings listReleasesSettings() { @@ -597,6 +649,59 @@ public UnaryCallSettings.Builder deleteTargetSet return getStubSettingsBuilder().deleteTargetOperationSettings(); } + /** Returns the builder for the settings used for calls to listCustomTargetTypes. */ + public PagedCallSettings.Builder< + ListCustomTargetTypesRequest, + ListCustomTargetTypesResponse, + ListCustomTargetTypesPagedResponse> + listCustomTargetTypesSettings() { + return getStubSettingsBuilder().listCustomTargetTypesSettings(); + } + + /** Returns the builder for the settings used for calls to getCustomTargetType. */ + public UnaryCallSettings.Builder + getCustomTargetTypeSettings() { + return getStubSettingsBuilder().getCustomTargetTypeSettings(); + } + + /** Returns the builder for the settings used for calls to createCustomTargetType. */ + public UnaryCallSettings.Builder + createCustomTargetTypeSettings() { + return getStubSettingsBuilder().createCustomTargetTypeSettings(); + } + + /** Returns the builder for the settings used for calls to createCustomTargetType. */ + public OperationCallSettings.Builder< + CreateCustomTargetTypeRequest, CustomTargetType, OperationMetadata> + createCustomTargetTypeOperationSettings() { + return getStubSettingsBuilder().createCustomTargetTypeOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateCustomTargetType. */ + public UnaryCallSettings.Builder + updateCustomTargetTypeSettings() { + return getStubSettingsBuilder().updateCustomTargetTypeSettings(); + } + + /** Returns the builder for the settings used for calls to updateCustomTargetType. */ + public OperationCallSettings.Builder< + UpdateCustomTargetTypeRequest, CustomTargetType, OperationMetadata> + updateCustomTargetTypeOperationSettings() { + return getStubSettingsBuilder().updateCustomTargetTypeOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCustomTargetType. */ + public UnaryCallSettings.Builder + deleteCustomTargetTypeSettings() { + return getStubSettingsBuilder().deleteCustomTargetTypeSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCustomTargetType. */ + public OperationCallSettings.Builder + deleteCustomTargetTypeOperationSettings() { + return getStubSettingsBuilder().deleteCustomTargetTypeOperationSettings(); + } + /** Returns the builder for the settings used for calls to listReleases. */ public PagedCallSettings.Builder< ListReleasesRequest, ListReleasesResponse, ListReleasesPagedResponse> diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/gapic_metadata.json b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/gapic_metadata.json index b5120d3225d5..6bd5014e6910 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/gapic_metadata.json +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/gapic_metadata.json @@ -28,6 +28,9 @@ "CreateAutomation": { "methods": ["createAutomationAsync", "createAutomationAsync", "createAutomationAsync", "createAutomationOperationCallable", "createAutomationCallable"] }, + "CreateCustomTargetType": { + "methods": ["createCustomTargetTypeAsync", "createCustomTargetTypeAsync", "createCustomTargetTypeAsync", "createCustomTargetTypeOperationCallable", "createCustomTargetTypeCallable"] + }, "CreateDeliveryPipeline": { "methods": ["createDeliveryPipelineAsync", "createDeliveryPipelineAsync", "createDeliveryPipelineAsync", "createDeliveryPipelineOperationCallable", "createDeliveryPipelineCallable"] }, @@ -43,6 +46,9 @@ "DeleteAutomation": { "methods": ["deleteAutomationAsync", "deleteAutomationAsync", "deleteAutomationAsync", "deleteAutomationOperationCallable", "deleteAutomationCallable"] }, + "DeleteCustomTargetType": { + "methods": ["deleteCustomTargetTypeAsync", "deleteCustomTargetTypeAsync", "deleteCustomTargetTypeAsync", "deleteCustomTargetTypeOperationCallable", "deleteCustomTargetTypeCallable"] + }, "DeleteDeliveryPipeline": { "methods": ["deleteDeliveryPipelineAsync", "deleteDeliveryPipelineAsync", "deleteDeliveryPipelineAsync", "deleteDeliveryPipelineOperationCallable", "deleteDeliveryPipelineCallable"] }, @@ -58,6 +64,9 @@ "GetConfig": { "methods": ["getConfig", "getConfig", "getConfig", "getConfigCallable"] }, + "GetCustomTargetType": { + "methods": ["getCustomTargetType", "getCustomTargetType", "getCustomTargetType", "getCustomTargetTypeCallable"] + }, "GetDeliveryPipeline": { "methods": ["getDeliveryPipeline", "getDeliveryPipeline", "getDeliveryPipeline", "getDeliveryPipelineCallable"] }, @@ -88,6 +97,9 @@ "ListAutomations": { "methods": ["listAutomations", "listAutomations", "listAutomations", "listAutomationsPagedCallable", "listAutomationsCallable"] }, + "ListCustomTargetTypes": { + "methods": ["listCustomTargetTypes", "listCustomTargetTypes", "listCustomTargetTypes", "listCustomTargetTypesPagedCallable", "listCustomTargetTypesCallable"] + }, "ListDeliveryPipelines": { "methods": ["listDeliveryPipelines", "listDeliveryPipelines", "listDeliveryPipelines", "listDeliveryPipelinesPagedCallable", "listDeliveryPipelinesCallable"] }, @@ -124,6 +136,9 @@ "UpdateAutomation": { "methods": ["updateAutomationAsync", "updateAutomationAsync", "updateAutomationOperationCallable", "updateAutomationCallable"] }, + "UpdateCustomTargetType": { + "methods": ["updateCustomTargetTypeAsync", "updateCustomTargetTypeAsync", "updateCustomTargetTypeOperationCallable", "updateCustomTargetTypeCallable"] + }, "UpdateDeliveryPipeline": { "methods": ["updateDeliveryPipelineAsync", "updateDeliveryPipelineAsync", "updateDeliveryPipelineOperationCallable", "updateDeliveryPipelineCallable"] }, diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java index 0b0ed2819963..72c8923764b9 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationRunsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationsPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListCustomTargetTypesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; @@ -42,17 +43,21 @@ import com.google.cloud.deploy.v1.CancelRolloutResponse; import com.google.cloud.deploy.v1.Config; import com.google.cloud.deploy.v1.CreateAutomationRequest; +import com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest; import com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest; import com.google.cloud.deploy.v1.CreateReleaseRequest; import com.google.cloud.deploy.v1.CreateRolloutRequest; import com.google.cloud.deploy.v1.CreateTargetRequest; +import com.google.cloud.deploy.v1.CustomTargetType; import com.google.cloud.deploy.v1.DeleteAutomationRequest; +import com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest; import com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest; import com.google.cloud.deploy.v1.DeleteTargetRequest; import com.google.cloud.deploy.v1.DeliveryPipeline; import com.google.cloud.deploy.v1.GetAutomationRequest; import com.google.cloud.deploy.v1.GetAutomationRunRequest; import com.google.cloud.deploy.v1.GetConfigRequest; +import com.google.cloud.deploy.v1.GetCustomTargetTypeRequest; import com.google.cloud.deploy.v1.GetDeliveryPipelineRequest; import com.google.cloud.deploy.v1.GetJobRunRequest; import com.google.cloud.deploy.v1.GetReleaseRequest; @@ -65,6 +70,8 @@ import com.google.cloud.deploy.v1.ListAutomationRunsResponse; import com.google.cloud.deploy.v1.ListAutomationsRequest; import com.google.cloud.deploy.v1.ListAutomationsResponse; +import com.google.cloud.deploy.v1.ListCustomTargetTypesRequest; +import com.google.cloud.deploy.v1.ListCustomTargetTypesResponse; import com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest; import com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse; import com.google.cloud.deploy.v1.ListJobRunsRequest; @@ -86,6 +93,7 @@ import com.google.cloud.deploy.v1.TerminateJobRunRequest; import com.google.cloud.deploy.v1.TerminateJobRunResponse; import com.google.cloud.deploy.v1.UpdateAutomationRequest; +import com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest; import com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest; import com.google.cloud.deploy.v1.UpdateTargetRequest; import com.google.cloud.location.GetLocationRequest; @@ -207,6 +215,51 @@ public UnaryCallable deleteTargetCallable() { throw new UnsupportedOperationException("Not implemented: deleteTargetCallable()"); } + public UnaryCallable + listCustomTargetTypesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listCustomTargetTypesPagedCallable()"); + } + + public UnaryCallable + listCustomTargetTypesCallable() { + throw new UnsupportedOperationException("Not implemented: listCustomTargetTypesCallable()"); + } + + public UnaryCallable getCustomTargetTypeCallable() { + throw new UnsupportedOperationException("Not implemented: getCustomTargetTypeCallable()"); + } + + public OperationCallable + createCustomTargetTypeOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createCustomTargetTypeOperationCallable()"); + } + + public UnaryCallable createCustomTargetTypeCallable() { + throw new UnsupportedOperationException("Not implemented: createCustomTargetTypeCallable()"); + } + + public OperationCallable + updateCustomTargetTypeOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateCustomTargetTypeOperationCallable()"); + } + + public UnaryCallable updateCustomTargetTypeCallable() { + throw new UnsupportedOperationException("Not implemented: updateCustomTargetTypeCallable()"); + } + + public OperationCallable + deleteCustomTargetTypeOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteCustomTargetTypeOperationCallable()"); + } + + public UnaryCallable deleteCustomTargetTypeCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCustomTargetTypeCallable()"); + } + public UnaryCallable listReleasesPagedCallable() { throw new UnsupportedOperationException("Not implemented: listReleasesPagedCallable()"); } diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java index 5d24e7a0b948..09172d82a2e5 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java @@ -18,6 +18,7 @@ import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationRunsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationsPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListCustomTargetTypesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; @@ -68,17 +69,21 @@ import com.google.cloud.deploy.v1.CancelRolloutResponse; import com.google.cloud.deploy.v1.Config; import com.google.cloud.deploy.v1.CreateAutomationRequest; +import com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest; import com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest; import com.google.cloud.deploy.v1.CreateReleaseRequest; import com.google.cloud.deploy.v1.CreateRolloutRequest; import com.google.cloud.deploy.v1.CreateTargetRequest; +import com.google.cloud.deploy.v1.CustomTargetType; import com.google.cloud.deploy.v1.DeleteAutomationRequest; +import com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest; import com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest; import com.google.cloud.deploy.v1.DeleteTargetRequest; import com.google.cloud.deploy.v1.DeliveryPipeline; import com.google.cloud.deploy.v1.GetAutomationRequest; import com.google.cloud.deploy.v1.GetAutomationRunRequest; import com.google.cloud.deploy.v1.GetConfigRequest; +import com.google.cloud.deploy.v1.GetCustomTargetTypeRequest; import com.google.cloud.deploy.v1.GetDeliveryPipelineRequest; import com.google.cloud.deploy.v1.GetJobRunRequest; import com.google.cloud.deploy.v1.GetReleaseRequest; @@ -91,6 +96,8 @@ import com.google.cloud.deploy.v1.ListAutomationRunsResponse; import com.google.cloud.deploy.v1.ListAutomationsRequest; import com.google.cloud.deploy.v1.ListAutomationsResponse; +import com.google.cloud.deploy.v1.ListCustomTargetTypesRequest; +import com.google.cloud.deploy.v1.ListCustomTargetTypesResponse; import com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest; import com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse; import com.google.cloud.deploy.v1.ListJobRunsRequest; @@ -112,6 +119,7 @@ import com.google.cloud.deploy.v1.TerminateJobRunRequest; import com.google.cloud.deploy.v1.TerminateJobRunResponse; import com.google.cloud.deploy.v1.UpdateAutomationRequest; +import com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest; import com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest; import com.google.cloud.deploy.v1.UpdateTargetRequest; import com.google.cloud.location.GetLocationRequest; @@ -212,6 +220,27 @@ public class CloudDeployStubSettings extends StubSettings deleteTargetSettings; private final OperationCallSettings deleteTargetOperationSettings; + private final PagedCallSettings< + ListCustomTargetTypesRequest, + ListCustomTargetTypesResponse, + ListCustomTargetTypesPagedResponse> + listCustomTargetTypesSettings; + private final UnaryCallSettings + getCustomTargetTypeSettings; + private final UnaryCallSettings + createCustomTargetTypeSettings; + private final OperationCallSettings< + CreateCustomTargetTypeRequest, CustomTargetType, OperationMetadata> + createCustomTargetTypeOperationSettings; + private final UnaryCallSettings + updateCustomTargetTypeSettings; + private final OperationCallSettings< + UpdateCustomTargetTypeRequest, CustomTargetType, OperationMetadata> + updateCustomTargetTypeOperationSettings; + private final UnaryCallSettings + deleteCustomTargetTypeSettings; + private final OperationCallSettings + deleteCustomTargetTypeOperationSettings; private final PagedCallSettings< ListReleasesRequest, ListReleasesResponse, ListReleasesPagedResponse> listReleasesSettings; @@ -347,6 +376,47 @@ public Iterable extractResources(ListTargetsResponse payload) { } }; + private static final PagedListDescriptor< + ListCustomTargetTypesRequest, ListCustomTargetTypesResponse, CustomTargetType> + LIST_CUSTOM_TARGET_TYPES_PAGE_STR_DESC = + new PagedListDescriptor< + ListCustomTargetTypesRequest, ListCustomTargetTypesResponse, CustomTargetType>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListCustomTargetTypesRequest injectToken( + ListCustomTargetTypesRequest payload, String token) { + return ListCustomTargetTypesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListCustomTargetTypesRequest injectPageSize( + ListCustomTargetTypesRequest payload, int pageSize) { + return ListCustomTargetTypesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListCustomTargetTypesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListCustomTargetTypesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListCustomTargetTypesResponse payload) { + return payload.getCustomTargetTypesList() == null + ? ImmutableList.of() + : payload.getCustomTargetTypesList(); + } + }; + private static final PagedListDescriptor LIST_RELEASES_PAGE_STR_DESC = new PagedListDescriptor() { @@ -611,6 +681,30 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListCustomTargetTypesRequest, + ListCustomTargetTypesResponse, + ListCustomTargetTypesPagedResponse> + LIST_CUSTOM_TARGET_TYPES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListCustomTargetTypesRequest, + ListCustomTargetTypesResponse, + ListCustomTargetTypesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListCustomTargetTypesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListCustomTargetTypesRequest, ListCustomTargetTypesResponse, CustomTargetType> + pageContext = + PageContext.create( + callable, LIST_CUSTOM_TARGET_TYPES_PAGE_STR_DESC, request, context); + return ListCustomTargetTypesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListReleasesRequest, ListReleasesResponse, ListReleasesPagedResponse> LIST_RELEASES_PAGE_STR_FACT = @@ -817,6 +911,57 @@ public UnaryCallSettings deleteTargetSettings() return deleteTargetOperationSettings; } + /** Returns the object with the settings used for calls to listCustomTargetTypes. */ + public PagedCallSettings< + ListCustomTargetTypesRequest, + ListCustomTargetTypesResponse, + ListCustomTargetTypesPagedResponse> + listCustomTargetTypesSettings() { + return listCustomTargetTypesSettings; + } + + /** Returns the object with the settings used for calls to getCustomTargetType. */ + public UnaryCallSettings + getCustomTargetTypeSettings() { + return getCustomTargetTypeSettings; + } + + /** Returns the object with the settings used for calls to createCustomTargetType. */ + public UnaryCallSettings + createCustomTargetTypeSettings() { + return createCustomTargetTypeSettings; + } + + /** Returns the object with the settings used for calls to createCustomTargetType. */ + public OperationCallSettings + createCustomTargetTypeOperationSettings() { + return createCustomTargetTypeOperationSettings; + } + + /** Returns the object with the settings used for calls to updateCustomTargetType. */ + public UnaryCallSettings + updateCustomTargetTypeSettings() { + return updateCustomTargetTypeSettings; + } + + /** Returns the object with the settings used for calls to updateCustomTargetType. */ + public OperationCallSettings + updateCustomTargetTypeOperationSettings() { + return updateCustomTargetTypeOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteCustomTargetType. */ + public UnaryCallSettings + deleteCustomTargetTypeSettings() { + return deleteCustomTargetTypeSettings; + } + + /** Returns the object with the settings used for calls to deleteCustomTargetType. */ + public OperationCallSettings + deleteCustomTargetTypeOperationSettings() { + return deleteCustomTargetTypeOperationSettings; + } + /** Returns the object with the settings used for calls to listReleases. */ public PagedCallSettings listReleasesSettings() { @@ -1129,6 +1274,17 @@ protected CloudDeployStubSettings(Builder settingsBuilder) throws IOException { updateTargetOperationSettings = settingsBuilder.updateTargetOperationSettings().build(); deleteTargetSettings = settingsBuilder.deleteTargetSettings().build(); deleteTargetOperationSettings = settingsBuilder.deleteTargetOperationSettings().build(); + listCustomTargetTypesSettings = settingsBuilder.listCustomTargetTypesSettings().build(); + getCustomTargetTypeSettings = settingsBuilder.getCustomTargetTypeSettings().build(); + createCustomTargetTypeSettings = settingsBuilder.createCustomTargetTypeSettings().build(); + createCustomTargetTypeOperationSettings = + settingsBuilder.createCustomTargetTypeOperationSettings().build(); + updateCustomTargetTypeSettings = settingsBuilder.updateCustomTargetTypeSettings().build(); + updateCustomTargetTypeOperationSettings = + settingsBuilder.updateCustomTargetTypeOperationSettings().build(); + deleteCustomTargetTypeSettings = settingsBuilder.deleteCustomTargetTypeSettings().build(); + deleteCustomTargetTypeOperationSettings = + settingsBuilder.deleteCustomTargetTypeOperationSettings().build(); listReleasesSettings = settingsBuilder.listReleasesSettings().build(); getReleaseSettings = settingsBuilder.getReleaseSettings().build(); createReleaseSettings = settingsBuilder.createReleaseSettings().build(); @@ -1205,6 +1361,28 @@ public static class Builder extends StubSettings.Builder deleteTargetSettings; private final OperationCallSettings.Builder deleteTargetOperationSettings; + private final PagedCallSettings.Builder< + ListCustomTargetTypesRequest, + ListCustomTargetTypesResponse, + ListCustomTargetTypesPagedResponse> + listCustomTargetTypesSettings; + private final UnaryCallSettings.Builder + getCustomTargetTypeSettings; + private final UnaryCallSettings.Builder + createCustomTargetTypeSettings; + private final OperationCallSettings.Builder< + CreateCustomTargetTypeRequest, CustomTargetType, OperationMetadata> + createCustomTargetTypeOperationSettings; + private final UnaryCallSettings.Builder + updateCustomTargetTypeSettings; + private final OperationCallSettings.Builder< + UpdateCustomTargetTypeRequest, CustomTargetType, OperationMetadata> + updateCustomTargetTypeOperationSettings; + private final UnaryCallSettings.Builder + deleteCustomTargetTypeSettings; + private final OperationCallSettings.Builder< + DeleteCustomTargetTypeRequest, Empty, OperationMetadata> + deleteCustomTargetTypeOperationSettings; private final PagedCallSettings.Builder< ListReleasesRequest, ListReleasesResponse, ListReleasesPagedResponse> listReleasesSettings; @@ -1338,6 +1516,15 @@ protected Builder(ClientContext clientContext) { updateTargetOperationSettings = OperationCallSettings.newBuilder(); deleteTargetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteTargetOperationSettings = OperationCallSettings.newBuilder(); + listCustomTargetTypesSettings = + PagedCallSettings.newBuilder(LIST_CUSTOM_TARGET_TYPES_PAGE_STR_FACT); + getCustomTargetTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createCustomTargetTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createCustomTargetTypeOperationSettings = OperationCallSettings.newBuilder(); + updateCustomTargetTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateCustomTargetTypeOperationSettings = OperationCallSettings.newBuilder(); + deleteCustomTargetTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteCustomTargetTypeOperationSettings = OperationCallSettings.newBuilder(); listReleasesSettings = PagedCallSettings.newBuilder(LIST_RELEASES_PAGE_STR_FACT); getReleaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createReleaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1386,6 +1573,11 @@ protected Builder(ClientContext clientContext) { createTargetSettings, updateTargetSettings, deleteTargetSettings, + listCustomTargetTypesSettings, + getCustomTargetTypeSettings, + createCustomTargetTypeSettings, + updateCustomTargetTypeSettings, + deleteCustomTargetTypeSettings, listReleasesSettings, getReleaseSettings, createReleaseSettings, @@ -1441,6 +1633,17 @@ protected Builder(CloudDeployStubSettings settings) { updateTargetOperationSettings = settings.updateTargetOperationSettings.toBuilder(); deleteTargetSettings = settings.deleteTargetSettings.toBuilder(); deleteTargetOperationSettings = settings.deleteTargetOperationSettings.toBuilder(); + listCustomTargetTypesSettings = settings.listCustomTargetTypesSettings.toBuilder(); + getCustomTargetTypeSettings = settings.getCustomTargetTypeSettings.toBuilder(); + createCustomTargetTypeSettings = settings.createCustomTargetTypeSettings.toBuilder(); + createCustomTargetTypeOperationSettings = + settings.createCustomTargetTypeOperationSettings.toBuilder(); + updateCustomTargetTypeSettings = settings.updateCustomTargetTypeSettings.toBuilder(); + updateCustomTargetTypeOperationSettings = + settings.updateCustomTargetTypeOperationSettings.toBuilder(); + deleteCustomTargetTypeSettings = settings.deleteCustomTargetTypeSettings.toBuilder(); + deleteCustomTargetTypeOperationSettings = + settings.deleteCustomTargetTypeOperationSettings.toBuilder(); listReleasesSettings = settings.listReleasesSettings.toBuilder(); getReleaseSettings = settings.getReleaseSettings.toBuilder(); createReleaseSettings = settings.createReleaseSettings.toBuilder(); @@ -1489,6 +1692,11 @@ protected Builder(CloudDeployStubSettings settings) { createTargetSettings, updateTargetSettings, deleteTargetSettings, + listCustomTargetTypesSettings, + getCustomTargetTypeSettings, + createCustomTargetTypeSettings, + updateCustomTargetTypeSettings, + deleteCustomTargetTypeSettings, listReleasesSettings, getReleaseSettings, createReleaseSettings, @@ -1602,6 +1810,31 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .listCustomTargetTypesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getCustomTargetTypeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createCustomTargetTypeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateCustomTargetTypeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteCustomTargetTypeSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .listReleasesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1891,6 +2124,78 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .createCustomTargetTypeOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(CustomTargetType.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateCustomTargetTypeOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(CustomTargetType.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteCustomTargetTypeOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + builder .createReleaseOperationSettings() .setInitialCallSettings( @@ -2145,6 +2450,65 @@ public UnaryCallSettings.Builder deleteTargetSet return deleteTargetOperationSettings; } + /** Returns the builder for the settings used for calls to listCustomTargetTypes. */ + public PagedCallSettings.Builder< + ListCustomTargetTypesRequest, + ListCustomTargetTypesResponse, + ListCustomTargetTypesPagedResponse> + listCustomTargetTypesSettings() { + return listCustomTargetTypesSettings; + } + + /** Returns the builder for the settings used for calls to getCustomTargetType. */ + public UnaryCallSettings.Builder + getCustomTargetTypeSettings() { + return getCustomTargetTypeSettings; + } + + /** Returns the builder for the settings used for calls to createCustomTargetType. */ + public UnaryCallSettings.Builder + createCustomTargetTypeSettings() { + return createCustomTargetTypeSettings; + } + + /** Returns the builder for the settings used for calls to createCustomTargetType. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateCustomTargetTypeRequest, CustomTargetType, OperationMetadata> + createCustomTargetTypeOperationSettings() { + return createCustomTargetTypeOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateCustomTargetType. */ + public UnaryCallSettings.Builder + updateCustomTargetTypeSettings() { + return updateCustomTargetTypeSettings; + } + + /** Returns the builder for the settings used for calls to updateCustomTargetType. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpdateCustomTargetTypeRequest, CustomTargetType, OperationMetadata> + updateCustomTargetTypeOperationSettings() { + return updateCustomTargetTypeOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteCustomTargetType. */ + public UnaryCallSettings.Builder + deleteCustomTargetTypeSettings() { + return deleteCustomTargetTypeSettings; + } + + /** Returns the builder for the settings used for calls to deleteCustomTargetType. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteCustomTargetTypeOperationSettings() { + return deleteCustomTargetTypeOperationSettings; + } + /** Returns the builder for the settings used for calls to listReleases. */ public PagedCallSettings.Builder< ListReleasesRequest, ListReleasesResponse, ListReleasesPagedResponse> diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java index aa825f4d3c42..ff723512339c 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationRunsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationsPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListCustomTargetTypesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; @@ -47,17 +48,21 @@ import com.google.cloud.deploy.v1.CancelRolloutResponse; import com.google.cloud.deploy.v1.Config; import com.google.cloud.deploy.v1.CreateAutomationRequest; +import com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest; import com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest; import com.google.cloud.deploy.v1.CreateReleaseRequest; import com.google.cloud.deploy.v1.CreateRolloutRequest; import com.google.cloud.deploy.v1.CreateTargetRequest; +import com.google.cloud.deploy.v1.CustomTargetType; import com.google.cloud.deploy.v1.DeleteAutomationRequest; +import com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest; import com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest; import com.google.cloud.deploy.v1.DeleteTargetRequest; import com.google.cloud.deploy.v1.DeliveryPipeline; import com.google.cloud.deploy.v1.GetAutomationRequest; import com.google.cloud.deploy.v1.GetAutomationRunRequest; import com.google.cloud.deploy.v1.GetConfigRequest; +import com.google.cloud.deploy.v1.GetCustomTargetTypeRequest; import com.google.cloud.deploy.v1.GetDeliveryPipelineRequest; import com.google.cloud.deploy.v1.GetJobRunRequest; import com.google.cloud.deploy.v1.GetReleaseRequest; @@ -70,6 +75,8 @@ import com.google.cloud.deploy.v1.ListAutomationRunsResponse; import com.google.cloud.deploy.v1.ListAutomationsRequest; import com.google.cloud.deploy.v1.ListAutomationsResponse; +import com.google.cloud.deploy.v1.ListCustomTargetTypesRequest; +import com.google.cloud.deploy.v1.ListCustomTargetTypesResponse; import com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest; import com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse; import com.google.cloud.deploy.v1.ListJobRunsRequest; @@ -91,6 +98,7 @@ import com.google.cloud.deploy.v1.TerminateJobRunRequest; import com.google.cloud.deploy.v1.TerminateJobRunResponse; import com.google.cloud.deploy.v1.UpdateAutomationRequest; +import com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest; import com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest; import com.google.cloud.deploy.v1.UpdateTargetRequest; import com.google.cloud.location.GetLocationRequest; @@ -226,6 +234,57 @@ public class GrpcCloudDeployStub extends CloudDeployStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + listCustomTargetTypesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/ListCustomTargetTypes") + .setRequestMarshaller( + ProtoUtils.marshaller(ListCustomTargetTypesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListCustomTargetTypesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getCustomTargetTypeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/GetCustomTargetType") + .setRequestMarshaller( + ProtoUtils.marshaller(GetCustomTargetTypeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomTargetType.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createCustomTargetTypeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/CreateCustomTargetType") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateCustomTargetTypeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateCustomTargetTypeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/UpdateCustomTargetType") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateCustomTargetTypeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteCustomTargetTypeMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/DeleteCustomTargetType") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteCustomTargetTypeRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor listReleasesMethodDescriptor = MethodDescriptor.newBuilder() @@ -544,6 +603,26 @@ public class GrpcCloudDeployStub extends CloudDeployStub { private final UnaryCallable deleteTargetCallable; private final OperationCallable deleteTargetOperationCallable; + private final UnaryCallable + listCustomTargetTypesCallable; + private final UnaryCallable + listCustomTargetTypesPagedCallable; + private final UnaryCallable + getCustomTargetTypeCallable; + private final UnaryCallable + createCustomTargetTypeCallable; + private final OperationCallable< + CreateCustomTargetTypeRequest, CustomTargetType, OperationMetadata> + createCustomTargetTypeOperationCallable; + private final UnaryCallable + updateCustomTargetTypeCallable; + private final OperationCallable< + UpdateCustomTargetTypeRequest, CustomTargetType, OperationMetadata> + updateCustomTargetTypeOperationCallable; + private final UnaryCallable + deleteCustomTargetTypeCallable; + private final OperationCallable + deleteCustomTargetTypeOperationCallable; private final UnaryCallable listReleasesCallable; private final UnaryCallable listReleasesPagedCallable; @@ -762,6 +841,64 @@ protected GrpcCloudDeployStub( return builder.build(); }) .build(); + GrpcCallSettings + listCustomTargetTypesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listCustomTargetTypesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getCustomTargetTypeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCustomTargetTypeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createCustomTargetTypeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCustomTargetTypeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateCustomTargetTypeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCustomTargetTypeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "custom_target_type.name", + String.valueOf(request.getCustomTargetType().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteCustomTargetTypeTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteCustomTargetTypeMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); GrpcCallSettings listReleasesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listReleasesMethodDescriptor) @@ -1148,6 +1285,54 @@ protected GrpcCloudDeployStub( settings.deleteTargetOperationSettings(), clientContext, operationsStub); + this.listCustomTargetTypesCallable = + callableFactory.createUnaryCallable( + listCustomTargetTypesTransportSettings, + settings.listCustomTargetTypesSettings(), + clientContext); + this.listCustomTargetTypesPagedCallable = + callableFactory.createPagedCallable( + listCustomTargetTypesTransportSettings, + settings.listCustomTargetTypesSettings(), + clientContext); + this.getCustomTargetTypeCallable = + callableFactory.createUnaryCallable( + getCustomTargetTypeTransportSettings, + settings.getCustomTargetTypeSettings(), + clientContext); + this.createCustomTargetTypeCallable = + callableFactory.createUnaryCallable( + createCustomTargetTypeTransportSettings, + settings.createCustomTargetTypeSettings(), + clientContext); + this.createCustomTargetTypeOperationCallable = + callableFactory.createOperationCallable( + createCustomTargetTypeTransportSettings, + settings.createCustomTargetTypeOperationSettings(), + clientContext, + operationsStub); + this.updateCustomTargetTypeCallable = + callableFactory.createUnaryCallable( + updateCustomTargetTypeTransportSettings, + settings.updateCustomTargetTypeSettings(), + clientContext); + this.updateCustomTargetTypeOperationCallable = + callableFactory.createOperationCallable( + updateCustomTargetTypeTransportSettings, + settings.updateCustomTargetTypeOperationSettings(), + clientContext, + operationsStub); + this.deleteCustomTargetTypeCallable = + callableFactory.createUnaryCallable( + deleteCustomTargetTypeTransportSettings, + settings.deleteCustomTargetTypeSettings(), + clientContext); + this.deleteCustomTargetTypeOperationCallable = + callableFactory.createOperationCallable( + deleteCustomTargetTypeTransportSettings, + settings.deleteCustomTargetTypeOperationSettings(), + clientContext, + operationsStub); this.listReleasesCallable = callableFactory.createUnaryCallable( listReleasesTransportSettings, settings.listReleasesSettings(), clientContext); @@ -1403,6 +1588,56 @@ public UnaryCallable deleteTargetCallable() { return deleteTargetOperationCallable; } + @Override + public UnaryCallable + listCustomTargetTypesCallable() { + return listCustomTargetTypesCallable; + } + + @Override + public UnaryCallable + listCustomTargetTypesPagedCallable() { + return listCustomTargetTypesPagedCallable; + } + + @Override + public UnaryCallable getCustomTargetTypeCallable() { + return getCustomTargetTypeCallable; + } + + @Override + public UnaryCallable createCustomTargetTypeCallable() { + return createCustomTargetTypeCallable; + } + + @Override + public OperationCallable + createCustomTargetTypeOperationCallable() { + return createCustomTargetTypeOperationCallable; + } + + @Override + public UnaryCallable updateCustomTargetTypeCallable() { + return updateCustomTargetTypeCallable; + } + + @Override + public OperationCallable + updateCustomTargetTypeOperationCallable() { + return updateCustomTargetTypeOperationCallable; + } + + @Override + public UnaryCallable deleteCustomTargetTypeCallable() { + return deleteCustomTargetTypeCallable; + } + + @Override + public OperationCallable + deleteCustomTargetTypeOperationCallable() { + return deleteCustomTargetTypeOperationCallable; + } + @Override public UnaryCallable listReleasesCallable() { return listReleasesCallable; diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployStub.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployStub.java index b6d9d80359af..8e57f3f6623e 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployStub.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployStub.java @@ -18,6 +18,7 @@ import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationRunsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationsPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListCustomTargetTypesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; @@ -56,17 +57,21 @@ import com.google.cloud.deploy.v1.CancelRolloutResponse; import com.google.cloud.deploy.v1.Config; import com.google.cloud.deploy.v1.CreateAutomationRequest; +import com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest; import com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest; import com.google.cloud.deploy.v1.CreateReleaseRequest; import com.google.cloud.deploy.v1.CreateRolloutRequest; import com.google.cloud.deploy.v1.CreateTargetRequest; +import com.google.cloud.deploy.v1.CustomTargetType; import com.google.cloud.deploy.v1.DeleteAutomationRequest; +import com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest; import com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest; import com.google.cloud.deploy.v1.DeleteTargetRequest; import com.google.cloud.deploy.v1.DeliveryPipeline; import com.google.cloud.deploy.v1.GetAutomationRequest; import com.google.cloud.deploy.v1.GetAutomationRunRequest; import com.google.cloud.deploy.v1.GetConfigRequest; +import com.google.cloud.deploy.v1.GetCustomTargetTypeRequest; import com.google.cloud.deploy.v1.GetDeliveryPipelineRequest; import com.google.cloud.deploy.v1.GetJobRunRequest; import com.google.cloud.deploy.v1.GetReleaseRequest; @@ -79,6 +84,8 @@ import com.google.cloud.deploy.v1.ListAutomationRunsResponse; import com.google.cloud.deploy.v1.ListAutomationsRequest; import com.google.cloud.deploy.v1.ListAutomationsResponse; +import com.google.cloud.deploy.v1.ListCustomTargetTypesRequest; +import com.google.cloud.deploy.v1.ListCustomTargetTypesResponse; import com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest; import com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse; import com.google.cloud.deploy.v1.ListJobRunsRequest; @@ -100,6 +107,7 @@ import com.google.cloud.deploy.v1.TerminateJobRunRequest; import com.google.cloud.deploy.v1.TerminateJobRunResponse; import com.google.cloud.deploy.v1.UpdateAutomationRequest; +import com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest; import com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest; import com.google.cloud.deploy.v1.UpdateTargetRequest; import com.google.cloud.location.GetLocationRequest; @@ -140,6 +148,7 @@ public class HttpJsonCloudDeployStub extends CloudDeployStub { .add(Automation.getDescriptor()) .add(DeliveryPipeline.getDescriptor()) .add(Target.getDescriptor()) + .add(CustomTargetType.getDescriptor()) .add(Release.getDescriptor()) .build(); @@ -597,6 +606,217 @@ public class HttpJsonCloudDeployStub extends CloudDeployStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor< + ListCustomTargetTypesRequest, ListCustomTargetTypesResponse> + listCustomTargetTypesMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/ListCustomTargetTypes") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/customTargetTypes", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCustomTargetTypesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getCustomTargetTypeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/GetCustomTargetType") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/customTargetTypes/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CustomTargetType.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createCustomTargetTypeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/CreateCustomTargetType") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/customTargetTypes", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "customTargetTypeId", request.getCustomTargetTypeId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("customTargetType", request.getCustomTargetType(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateCustomTargetTypeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateCustomTargetTypeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/UpdateCustomTargetType") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{customTargetType.name=projects/*/locations/*/customTargetTypes/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "customTargetType.name", + request.getCustomTargetType().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "allowMissing", request.getAllowMissing()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("customTargetType", request.getCustomTargetType(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateCustomTargetTypeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteCustomTargetTypeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/DeleteCustomTargetType") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/customTargetTypes/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "allowMissing", request.getAllowMissing()); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteCustomTargetTypeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listReleasesMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1724,6 +1944,26 @@ public class HttpJsonCloudDeployStub extends CloudDeployStub { private final UnaryCallable deleteTargetCallable; private final OperationCallable deleteTargetOperationCallable; + private final UnaryCallable + listCustomTargetTypesCallable; + private final UnaryCallable + listCustomTargetTypesPagedCallable; + private final UnaryCallable + getCustomTargetTypeCallable; + private final UnaryCallable + createCustomTargetTypeCallable; + private final OperationCallable< + CreateCustomTargetTypeRequest, CustomTargetType, OperationMetadata> + createCustomTargetTypeOperationCallable; + private final UnaryCallable + updateCustomTargetTypeCallable; + private final OperationCallable< + UpdateCustomTargetTypeRequest, CustomTargetType, OperationMetadata> + updateCustomTargetTypeOperationCallable; + private final UnaryCallable + deleteCustomTargetTypeCallable; + private final OperationCallable + deleteCustomTargetTypeOperationCallable; private final UnaryCallable listReleasesCallable; private final UnaryCallable listReleasesPagedCallable; @@ -1981,6 +2221,69 @@ protected HttpJsonCloudDeployStub( return builder.build(); }) .build(); + HttpJsonCallSettings + listCustomTargetTypesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listCustomTargetTypesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + getCustomTargetTypeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCustomTargetTypeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + createCustomTargetTypeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCustomTargetTypeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateCustomTargetTypeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCustomTargetTypeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "custom_target_type.name", + String.valueOf(request.getCustomTargetType().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + deleteCustomTargetTypeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCustomTargetTypeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listReleasesTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listReleasesMethodDescriptor) @@ -2399,6 +2702,54 @@ protected HttpJsonCloudDeployStub( settings.deleteTargetOperationSettings(), clientContext, httpJsonOperationsStub); + this.listCustomTargetTypesCallable = + callableFactory.createUnaryCallable( + listCustomTargetTypesTransportSettings, + settings.listCustomTargetTypesSettings(), + clientContext); + this.listCustomTargetTypesPagedCallable = + callableFactory.createPagedCallable( + listCustomTargetTypesTransportSettings, + settings.listCustomTargetTypesSettings(), + clientContext); + this.getCustomTargetTypeCallable = + callableFactory.createUnaryCallable( + getCustomTargetTypeTransportSettings, + settings.getCustomTargetTypeSettings(), + clientContext); + this.createCustomTargetTypeCallable = + callableFactory.createUnaryCallable( + createCustomTargetTypeTransportSettings, + settings.createCustomTargetTypeSettings(), + clientContext); + this.createCustomTargetTypeOperationCallable = + callableFactory.createOperationCallable( + createCustomTargetTypeTransportSettings, + settings.createCustomTargetTypeOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateCustomTargetTypeCallable = + callableFactory.createUnaryCallable( + updateCustomTargetTypeTransportSettings, + settings.updateCustomTargetTypeSettings(), + clientContext); + this.updateCustomTargetTypeOperationCallable = + callableFactory.createOperationCallable( + updateCustomTargetTypeTransportSettings, + settings.updateCustomTargetTypeOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteCustomTargetTypeCallable = + callableFactory.createUnaryCallable( + deleteCustomTargetTypeTransportSettings, + settings.deleteCustomTargetTypeSettings(), + clientContext); + this.deleteCustomTargetTypeOperationCallable = + callableFactory.createOperationCallable( + deleteCustomTargetTypeTransportSettings, + settings.deleteCustomTargetTypeOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listReleasesCallable = callableFactory.createUnaryCallable( listReleasesTransportSettings, settings.listReleasesSettings(), clientContext); @@ -2561,6 +2912,11 @@ public static List getMethodDescriptors() { methodDescriptors.add(createTargetMethodDescriptor); methodDescriptors.add(updateTargetMethodDescriptor); methodDescriptors.add(deleteTargetMethodDescriptor); + methodDescriptors.add(listCustomTargetTypesMethodDescriptor); + methodDescriptors.add(getCustomTargetTypeMethodDescriptor); + methodDescriptors.add(createCustomTargetTypeMethodDescriptor); + methodDescriptors.add(updateCustomTargetTypeMethodDescriptor); + methodDescriptors.add(deleteCustomTargetTypeMethodDescriptor); methodDescriptors.add(listReleasesMethodDescriptor); methodDescriptors.add(getReleaseMethodDescriptor); methodDescriptors.add(createReleaseMethodDescriptor); @@ -2700,6 +3056,56 @@ public UnaryCallable deleteTargetCallable() { return deleteTargetOperationCallable; } + @Override + public UnaryCallable + listCustomTargetTypesCallable() { + return listCustomTargetTypesCallable; + } + + @Override + public UnaryCallable + listCustomTargetTypesPagedCallable() { + return listCustomTargetTypesPagedCallable; + } + + @Override + public UnaryCallable getCustomTargetTypeCallable() { + return getCustomTargetTypeCallable; + } + + @Override + public UnaryCallable createCustomTargetTypeCallable() { + return createCustomTargetTypeCallable; + } + + @Override + public OperationCallable + createCustomTargetTypeOperationCallable() { + return createCustomTargetTypeOperationCallable; + } + + @Override + public UnaryCallable updateCustomTargetTypeCallable() { + return updateCustomTargetTypeCallable; + } + + @Override + public OperationCallable + updateCustomTargetTypeOperationCallable() { + return updateCustomTargetTypeOperationCallable; + } + + @Override + public UnaryCallable deleteCustomTargetTypeCallable() { + return deleteCustomTargetTypeCallable; + } + + @Override + public OperationCallable + deleteCustomTargetTypeOperationCallable() { + return deleteCustomTargetTypeOperationCallable; + } + @Override public UnaryCallable listReleasesCallable() { return listReleasesCallable; diff --git a/java-deploy/google-cloud-deploy/src/main/resources/META-INF/native-image/com.google.cloud.deploy.v1/reflect-config.json b/java-deploy/google-cloud-deploy/src/main/resources/META-INF/native-image/com.google.cloud.deploy.v1/reflect-config.json index 6e29fad427f2..24a35f617735 100644 --- a/java-deploy/google-cloud-deploy/src/main/resources/META-INF/native-image/com.google.cloud.deploy.v1/reflect-config.json +++ b/java-deploy/google-cloud-deploy/src/main/resources/META-INF/native-image/com.google.cloud.deploy.v1/reflect-config.json @@ -1025,6 +1025,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest", "queryAllDeclaredConstructors": true, @@ -1133,6 +1151,96 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.deploy.v1.CustomMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.CustomMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.CustomTarget", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.CustomTarget$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.CustomTargetDeployMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.CustomTargetDeployMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.CustomTargetSkaffoldActions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.CustomTargetSkaffoldActions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.CustomTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.CustomTargetType$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.deploy.v1.DefaultPool", "queryAllDeclaredConstructors": true, @@ -1169,6 +1277,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest", "queryAllDeclaredConstructors": true, @@ -1439,6 +1565,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.deploy.v1.GetCustomTargetTypeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.GetCustomTargetTypeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.deploy.v1.GetDeliveryPipelineRequest", "queryAllDeclaredConstructors": true, @@ -1781,6 +1925,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.deploy.v1.ListCustomTargetTypesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.ListCustomTargetTypesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.ListCustomTargetTypesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.ListCustomTargetTypesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest", "queryAllDeclaredConstructors": true, @@ -2816,6 +2996,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.deploy.v1.SkaffoldModules", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.SkaffoldModules$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.SkaffoldModules$SkaffoldGCSSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.SkaffoldModules$SkaffoldGCSSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.SkaffoldModules$SkaffoldGitSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.SkaffoldModules$SkaffoldGitSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.deploy.v1.SkaffoldSupportState", "queryAllDeclaredConstructors": true, @@ -3086,6 +3320,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest", "queryAllDeclaredConstructors": true, diff --git a/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientHttpJsonTest.java b/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientHttpJsonTest.java index 6efcd46a34a0..7d4a59cc6197 100644 --- a/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientHttpJsonTest.java +++ b/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientHttpJsonTest.java @@ -18,6 +18,7 @@ import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationRunsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationsPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListCustomTargetTypesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; @@ -1250,6 +1251,528 @@ public void deleteTargetExceptionTest2() throws Exception { } } + @Test + public void listCustomTargetTypesTest() throws Exception { + CustomTargetType responsesElement = CustomTargetType.newBuilder().build(); + ListCustomTargetTypesResponse expectedResponse = + ListCustomTargetTypesResponse.newBuilder() + .setNextPageToken("") + .addAllCustomTargetTypes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListCustomTargetTypesPagedResponse pagedListResponse = client.listCustomTargetTypes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCustomTargetTypesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCustomTargetTypesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listCustomTargetTypes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCustomTargetTypesTest2() throws Exception { + CustomTargetType responsesElement = CustomTargetType.newBuilder().build(); + ListCustomTargetTypesResponse expectedResponse = + ListCustomTargetTypesResponse.newBuilder() + .setNextPageToken("") + .addAllCustomTargetTypes(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListCustomTargetTypesPagedResponse pagedListResponse = client.listCustomTargetTypes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCustomTargetTypesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCustomTargetTypesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listCustomTargetTypes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCustomTargetTypeTest() throws Exception { + CustomTargetType expectedResponse = + CustomTargetType.newBuilder() + .setName( + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") + .toString()) + .setCustomTargetTypeId("customTargetTypeId1451302135") + .setUid("uid115792") + .setDescription("description-1724546052") + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + CustomTargetTypeName name = + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]"); + + CustomTargetType actualResponse = client.getCustomTargetType(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCustomTargetTypeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CustomTargetTypeName name = + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]"); + client.getCustomTargetType(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCustomTargetTypeTest2() throws Exception { + CustomTargetType expectedResponse = + CustomTargetType.newBuilder() + .setName( + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") + .toString()) + .setCustomTargetTypeId("customTargetTypeId1451302135") + .setUid("uid115792") + .setDescription("description-1724546052") + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-6861/locations/location-6861/customTargetTypes/customTargetType-6861"; + + CustomTargetType actualResponse = client.getCustomTargetType(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCustomTargetTypeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6861/locations/location-6861/customTargetTypes/customTargetType-6861"; + client.getCustomTargetType(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCustomTargetTypeTest() throws Exception { + CustomTargetType expectedResponse = + CustomTargetType.newBuilder() + .setName( + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") + .toString()) + .setCustomTargetTypeId("customTargetTypeId1451302135") + .setUid("uid115792") + .setDescription("description-1724546052") + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCustomTargetTypeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CustomTargetType customTargetType = CustomTargetType.newBuilder().build(); + String customTargetTypeId = "customTargetTypeId1451302135"; + + CustomTargetType actualResponse = + client.createCustomTargetTypeAsync(parent, customTargetType, customTargetTypeId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCustomTargetTypeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CustomTargetType customTargetType = CustomTargetType.newBuilder().build(); + String customTargetTypeId = "customTargetTypeId1451302135"; + client.createCustomTargetTypeAsync(parent, customTargetType, customTargetTypeId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createCustomTargetTypeTest2() throws Exception { + CustomTargetType expectedResponse = + CustomTargetType.newBuilder() + .setName( + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") + .toString()) + .setCustomTargetTypeId("customTargetTypeId1451302135") + .setUid("uid115792") + .setDescription("description-1724546052") + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCustomTargetTypeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + CustomTargetType customTargetType = CustomTargetType.newBuilder().build(); + String customTargetTypeId = "customTargetTypeId1451302135"; + + CustomTargetType actualResponse = + client.createCustomTargetTypeAsync(parent, customTargetType, customTargetTypeId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCustomTargetTypeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + CustomTargetType customTargetType = CustomTargetType.newBuilder().build(); + String customTargetTypeId = "customTargetTypeId1451302135"; + client.createCustomTargetTypeAsync(parent, customTargetType, customTargetTypeId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateCustomTargetTypeTest() throws Exception { + CustomTargetType expectedResponse = + CustomTargetType.newBuilder() + .setName( + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") + .toString()) + .setCustomTargetTypeId("customTargetTypeId1451302135") + .setUid("uid115792") + .setDescription("description-1724546052") + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateCustomTargetTypeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CustomTargetType customTargetType = + CustomTargetType.newBuilder() + .setName( + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") + .toString()) + .setCustomTargetTypeId("customTargetTypeId1451302135") + .setUid("uid115792") + .setDescription("description-1724546052") + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CustomTargetType actualResponse = + client.updateCustomTargetTypeAsync(customTargetType, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateCustomTargetTypeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CustomTargetType customTargetType = + CustomTargetType.newBuilder() + .setName( + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") + .toString()) + .setCustomTargetTypeId("customTargetTypeId1451302135") + .setUid("uid115792") + .setDescription("description-1724546052") + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCustomTargetTypeAsync(customTargetType, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCustomTargetTypeTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCustomTargetTypeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CustomTargetTypeName name = + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]"); + + client.deleteCustomTargetTypeAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCustomTargetTypeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CustomTargetTypeName name = + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]"); + client.deleteCustomTargetTypeAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCustomTargetTypeTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCustomTargetTypeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-6861/locations/location-6861/customTargetTypes/customTargetType-6861"; + + client.deleteCustomTargetTypeAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCustomTargetTypeExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-6861/locations/location-6861/customTargetTypes/customTargetType-6861"; + client.deleteCustomTargetTypeAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listReleasesTest() throws Exception { Release responsesElement = Release.newBuilder().build(); @@ -1374,6 +1897,7 @@ public void getReleaseTest() throws Exception { .addAllBuildArtifacts(new ArrayList()) .setDeliveryPipelineSnapshot(DeliveryPipeline.newBuilder().build()) .addAllTargetSnapshots(new ArrayList()) + .addAllCustomTargetTypeSnapshots(new ArrayList()) .setEtag("etag3123477") .setSkaffoldVersion("skaffoldVersion229290234") .putAllTargetArtifacts(new HashMap()) @@ -1441,6 +1965,7 @@ public void getReleaseTest2() throws Exception { .addAllBuildArtifacts(new ArrayList()) .setDeliveryPipelineSnapshot(DeliveryPipeline.newBuilder().build()) .addAllTargetSnapshots(new ArrayList()) + .addAllCustomTargetTypeSnapshots(new ArrayList()) .setEtag("etag3123477") .setSkaffoldVersion("skaffoldVersion229290234") .putAllTargetArtifacts(new HashMap()) @@ -1508,6 +2033,7 @@ public void createReleaseTest() throws Exception { .addAllBuildArtifacts(new ArrayList()) .setDeliveryPipelineSnapshot(DeliveryPipeline.newBuilder().build()) .addAllTargetSnapshots(new ArrayList()) + .addAllCustomTargetTypeSnapshots(new ArrayList()) .setEtag("etag3123477") .setSkaffoldVersion("skaffoldVersion229290234") .putAllTargetArtifacts(new HashMap()) @@ -1584,6 +2110,7 @@ public void createReleaseTest2() throws Exception { .addAllBuildArtifacts(new ArrayList()) .setDeliveryPipelineSnapshot(DeliveryPipeline.newBuilder().build()) .addAllTargetSnapshots(new ArrayList()) + .addAllCustomTargetTypeSnapshots(new ArrayList()) .setEtag("etag3123477") .setSkaffoldVersion("skaffoldVersion229290234") .putAllTargetArtifacts(new HashMap()) diff --git a/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java b/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java index 63dc1024512a..ed75198b14eb 100644 --- a/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java +++ b/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java @@ -18,6 +18,7 @@ import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationRunsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListAutomationsPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListCustomTargetTypesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; @@ -1128,6 +1129,471 @@ public void deleteTargetExceptionTest2() throws Exception { } } + @Test + public void listCustomTargetTypesTest() throws Exception { + CustomTargetType responsesElement = CustomTargetType.newBuilder().build(); + ListCustomTargetTypesResponse expectedResponse = + ListCustomTargetTypesResponse.newBuilder() + .setNextPageToken("") + .addAllCustomTargetTypes(Arrays.asList(responsesElement)) + .build(); + mockCloudDeploy.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListCustomTargetTypesPagedResponse pagedListResponse = client.listCustomTargetTypes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCustomTargetTypesList().get(0), resources.get(0)); + + List actualRequests = mockCloudDeploy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCustomTargetTypesRequest actualRequest = + ((ListCustomTargetTypesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCustomTargetTypesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudDeploy.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listCustomTargetTypes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCustomTargetTypesTest2() throws Exception { + CustomTargetType responsesElement = CustomTargetType.newBuilder().build(); + ListCustomTargetTypesResponse expectedResponse = + ListCustomTargetTypesResponse.newBuilder() + .setNextPageToken("") + .addAllCustomTargetTypes(Arrays.asList(responsesElement)) + .build(); + mockCloudDeploy.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListCustomTargetTypesPagedResponse pagedListResponse = client.listCustomTargetTypes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCustomTargetTypesList().get(0), resources.get(0)); + + List actualRequests = mockCloudDeploy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCustomTargetTypesRequest actualRequest = + ((ListCustomTargetTypesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCustomTargetTypesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudDeploy.addException(exception); + + try { + String parent = "parent-995424086"; + client.listCustomTargetTypes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCustomTargetTypeTest() throws Exception { + CustomTargetType expectedResponse = + CustomTargetType.newBuilder() + .setName( + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") + .toString()) + .setCustomTargetTypeId("customTargetTypeId1451302135") + .setUid("uid115792") + .setDescription("description-1724546052") + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockCloudDeploy.addResponse(expectedResponse); + + CustomTargetTypeName name = + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]"); + + CustomTargetType actualResponse = client.getCustomTargetType(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudDeploy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCustomTargetTypeRequest actualRequest = ((GetCustomTargetTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCustomTargetTypeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudDeploy.addException(exception); + + try { + CustomTargetTypeName name = + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]"); + client.getCustomTargetType(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCustomTargetTypeTest2() throws Exception { + CustomTargetType expectedResponse = + CustomTargetType.newBuilder() + .setName( + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") + .toString()) + .setCustomTargetTypeId("customTargetTypeId1451302135") + .setUid("uid115792") + .setDescription("description-1724546052") + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockCloudDeploy.addResponse(expectedResponse); + + String name = "name3373707"; + + CustomTargetType actualResponse = client.getCustomTargetType(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudDeploy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCustomTargetTypeRequest actualRequest = ((GetCustomTargetTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCustomTargetTypeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudDeploy.addException(exception); + + try { + String name = "name3373707"; + client.getCustomTargetType(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCustomTargetTypeTest() throws Exception { + CustomTargetType expectedResponse = + CustomTargetType.newBuilder() + .setName( + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") + .toString()) + .setCustomTargetTypeId("customTargetTypeId1451302135") + .setUid("uid115792") + .setDescription("description-1724546052") + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCustomTargetTypeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudDeploy.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CustomTargetType customTargetType = CustomTargetType.newBuilder().build(); + String customTargetTypeId = "customTargetTypeId1451302135"; + + CustomTargetType actualResponse = + client.createCustomTargetTypeAsync(parent, customTargetType, customTargetTypeId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudDeploy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCustomTargetTypeRequest actualRequest = + ((CreateCustomTargetTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(customTargetType, actualRequest.getCustomTargetType()); + Assert.assertEquals(customTargetTypeId, actualRequest.getCustomTargetTypeId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCustomTargetTypeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudDeploy.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CustomTargetType customTargetType = CustomTargetType.newBuilder().build(); + String customTargetTypeId = "customTargetTypeId1451302135"; + client.createCustomTargetTypeAsync(parent, customTargetType, customTargetTypeId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createCustomTargetTypeTest2() throws Exception { + CustomTargetType expectedResponse = + CustomTargetType.newBuilder() + .setName( + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") + .toString()) + .setCustomTargetTypeId("customTargetTypeId1451302135") + .setUid("uid115792") + .setDescription("description-1724546052") + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createCustomTargetTypeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudDeploy.addResponse(resultOperation); + + String parent = "parent-995424086"; + CustomTargetType customTargetType = CustomTargetType.newBuilder().build(); + String customTargetTypeId = "customTargetTypeId1451302135"; + + CustomTargetType actualResponse = + client.createCustomTargetTypeAsync(parent, customTargetType, customTargetTypeId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudDeploy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCustomTargetTypeRequest actualRequest = + ((CreateCustomTargetTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(customTargetType, actualRequest.getCustomTargetType()); + Assert.assertEquals(customTargetTypeId, actualRequest.getCustomTargetTypeId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCustomTargetTypeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudDeploy.addException(exception); + + try { + String parent = "parent-995424086"; + CustomTargetType customTargetType = CustomTargetType.newBuilder().build(); + String customTargetTypeId = "customTargetTypeId1451302135"; + client.createCustomTargetTypeAsync(parent, customTargetType, customTargetTypeId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateCustomTargetTypeTest() throws Exception { + CustomTargetType expectedResponse = + CustomTargetType.newBuilder() + .setName( + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") + .toString()) + .setCustomTargetTypeId("customTargetTypeId1451302135") + .setUid("uid115792") + .setDescription("description-1724546052") + .putAllAnnotations(new HashMap()) + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateCustomTargetTypeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudDeploy.addResponse(resultOperation); + + CustomTargetType customTargetType = CustomTargetType.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CustomTargetType actualResponse = + client.updateCustomTargetTypeAsync(customTargetType, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudDeploy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateCustomTargetTypeRequest actualRequest = + ((UpdateCustomTargetTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(customTargetType, actualRequest.getCustomTargetType()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateCustomTargetTypeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudDeploy.addException(exception); + + try { + CustomTargetType customTargetType = CustomTargetType.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCustomTargetTypeAsync(customTargetType, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteCustomTargetTypeTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCustomTargetTypeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudDeploy.addResponse(resultOperation); + + CustomTargetTypeName name = + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]"); + + client.deleteCustomTargetTypeAsync(name).get(); + + List actualRequests = mockCloudDeploy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCustomTargetTypeRequest actualRequest = + ((DeleteCustomTargetTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCustomTargetTypeExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudDeploy.addException(exception); + + try { + CustomTargetTypeName name = + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]"); + client.deleteCustomTargetTypeAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteCustomTargetTypeTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCustomTargetTypeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCloudDeploy.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteCustomTargetTypeAsync(name).get(); + + List actualRequests = mockCloudDeploy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCustomTargetTypeRequest actualRequest = + ((DeleteCustomTargetTypeRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCustomTargetTypeExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudDeploy.addException(exception); + + try { + String name = "name3373707"; + client.deleteCustomTargetTypeAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void listReleasesTest() throws Exception { Release responsesElement = Release.newBuilder().build(); @@ -1238,6 +1704,7 @@ public void getReleaseTest() throws Exception { .addAllBuildArtifacts(new ArrayList()) .setDeliveryPipelineSnapshot(DeliveryPipeline.newBuilder().build()) .addAllTargetSnapshots(new ArrayList()) + .addAllCustomTargetTypeSnapshots(new ArrayList()) .setEtag("etag3123477") .setSkaffoldVersion("skaffoldVersion229290234") .putAllTargetArtifacts(new HashMap()) @@ -1299,6 +1766,7 @@ public void getReleaseTest2() throws Exception { .addAllBuildArtifacts(new ArrayList()) .setDeliveryPipelineSnapshot(DeliveryPipeline.newBuilder().build()) .addAllTargetSnapshots(new ArrayList()) + .addAllCustomTargetTypeSnapshots(new ArrayList()) .setEtag("etag3123477") .setSkaffoldVersion("skaffoldVersion229290234") .putAllTargetArtifacts(new HashMap()) @@ -1358,6 +1826,7 @@ public void createReleaseTest() throws Exception { .addAllBuildArtifacts(new ArrayList()) .setDeliveryPipelineSnapshot(DeliveryPipeline.newBuilder().build()) .addAllTargetSnapshots(new ArrayList()) + .addAllCustomTargetTypeSnapshots(new ArrayList()) .setEtag("etag3123477") .setSkaffoldVersion("skaffoldVersion229290234") .putAllTargetArtifacts(new HashMap()) @@ -1433,6 +1902,7 @@ public void createReleaseTest2() throws Exception { .addAllBuildArtifacts(new ArrayList()) .setDeliveryPipelineSnapshot(DeliveryPipeline.newBuilder().build()) .addAllTargetSnapshots(new ArrayList()) + .addAllCustomTargetTypeSnapshots(new ArrayList()) .setEtag("etag3123477") .setSkaffoldVersion("skaffoldVersion229290234") .putAllTargetArtifacts(new HashMap()) diff --git a/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java b/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java index 2792ba328d57..06a8271cc722 100644 --- a/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java +++ b/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java @@ -290,6 +290,112 @@ public void deleteTarget( } } + @Override + public void listCustomTargetTypes( + ListCustomTargetTypesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListCustomTargetTypesResponse) { + requests.add(request); + responseObserver.onNext(((ListCustomTargetTypesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListCustomTargetTypes, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListCustomTargetTypesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getCustomTargetType( + GetCustomTargetTypeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CustomTargetType) { + requests.add(request); + responseObserver.onNext(((CustomTargetType) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetCustomTargetType, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CustomTargetType.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createCustomTargetType( + CreateCustomTargetTypeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateCustomTargetType, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateCustomTargetType( + UpdateCustomTargetTypeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateCustomTargetType, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteCustomTargetType( + DeleteCustomTargetTypeRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteCustomTargetType, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listReleases( ListReleasesRequest request, StreamObserver responseObserver) { diff --git a/java-deploy/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java b/java-deploy/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java index 6134c4725ec5..f62100bcc765 100644 --- a/java-deploy/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java +++ b/java-deploy/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java @@ -534,6 +534,249 @@ private CloudDeployGrpc() {} return getDeleteTargetMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest, + com.google.cloud.deploy.v1.ListCustomTargetTypesResponse> + getListCustomTargetTypesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCustomTargetTypes", + requestType = com.google.cloud.deploy.v1.ListCustomTargetTypesRequest.class, + responseType = com.google.cloud.deploy.v1.ListCustomTargetTypesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest, + com.google.cloud.deploy.v1.ListCustomTargetTypesResponse> + getListCustomTargetTypesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest, + com.google.cloud.deploy.v1.ListCustomTargetTypesResponse> + getListCustomTargetTypesMethod; + if ((getListCustomTargetTypesMethod = CloudDeployGrpc.getListCustomTargetTypesMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getListCustomTargetTypesMethod = CloudDeployGrpc.getListCustomTargetTypesMethod) + == null) { + CloudDeployGrpc.getListCustomTargetTypesMethod = + getListCustomTargetTypesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListCustomTargetTypes")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.ListCustomTargetTypesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudDeployMethodDescriptorSupplier("ListCustomTargetTypes")) + .build(); + } + } + } + return getListCustomTargetTypesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest, + com.google.cloud.deploy.v1.CustomTargetType> + getGetCustomTargetTypeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCustomTargetType", + requestType = com.google.cloud.deploy.v1.GetCustomTargetTypeRequest.class, + responseType = com.google.cloud.deploy.v1.CustomTargetType.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest, + com.google.cloud.deploy.v1.CustomTargetType> + getGetCustomTargetTypeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest, + com.google.cloud.deploy.v1.CustomTargetType> + getGetCustomTargetTypeMethod; + if ((getGetCustomTargetTypeMethod = CloudDeployGrpc.getGetCustomTargetTypeMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getGetCustomTargetTypeMethod = CloudDeployGrpc.getGetCustomTargetTypeMethod) == null) { + CloudDeployGrpc.getGetCustomTargetTypeMethod = + getGetCustomTargetTypeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetCustomTargetType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.CustomTargetType.getDefaultInstance())) + .setSchemaDescriptor( + new CloudDeployMethodDescriptorSupplier("GetCustomTargetType")) + .build(); + } + } + } + return getGetCustomTargetTypeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest, + com.google.longrunning.Operation> + getCreateCustomTargetTypeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomTargetType", + requestType = com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest, + com.google.longrunning.Operation> + getCreateCustomTargetTypeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest, + com.google.longrunning.Operation> + getCreateCustomTargetTypeMethod; + if ((getCreateCustomTargetTypeMethod = CloudDeployGrpc.getCreateCustomTargetTypeMethod) + == null) { + synchronized (CloudDeployGrpc.class) { + if ((getCreateCustomTargetTypeMethod = CloudDeployGrpc.getCreateCustomTargetTypeMethod) + == null) { + CloudDeployGrpc.getCreateCustomTargetTypeMethod = + getCreateCustomTargetTypeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateCustomTargetType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudDeployMethodDescriptorSupplier("CreateCustomTargetType")) + .build(); + } + } + } + return getCreateCustomTargetTypeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest, + com.google.longrunning.Operation> + getUpdateCustomTargetTypeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomTargetType", + requestType = com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest, + com.google.longrunning.Operation> + getUpdateCustomTargetTypeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest, + com.google.longrunning.Operation> + getUpdateCustomTargetTypeMethod; + if ((getUpdateCustomTargetTypeMethod = CloudDeployGrpc.getUpdateCustomTargetTypeMethod) + == null) { + synchronized (CloudDeployGrpc.class) { + if ((getUpdateCustomTargetTypeMethod = CloudDeployGrpc.getUpdateCustomTargetTypeMethod) + == null) { + CloudDeployGrpc.getUpdateCustomTargetTypeMethod = + getUpdateCustomTargetTypeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateCustomTargetType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudDeployMethodDescriptorSupplier("UpdateCustomTargetType")) + .build(); + } + } + } + return getUpdateCustomTargetTypeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest, + com.google.longrunning.Operation> + getDeleteCustomTargetTypeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCustomTargetType", + requestType = com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest, + com.google.longrunning.Operation> + getDeleteCustomTargetTypeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest, + com.google.longrunning.Operation> + getDeleteCustomTargetTypeMethod; + if ((getDeleteCustomTargetTypeMethod = CloudDeployGrpc.getDeleteCustomTargetTypeMethod) + == null) { + synchronized (CloudDeployGrpc.class) { + if ((getDeleteCustomTargetTypeMethod = CloudDeployGrpc.getDeleteCustomTargetTypeMethod) + == null) { + CloudDeployGrpc.getDeleteCustomTargetTypeMethod = + getDeleteCustomTargetTypeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteCustomTargetType")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudDeployMethodDescriptorSupplier("DeleteCustomTargetType")) + .build(); + } + } + } + return getDeleteCustomTargetTypeMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.deploy.v1.ListReleasesRequest, com.google.cloud.deploy.v1.ListReleasesResponse> @@ -1792,6 +2035,77 @@ default void deleteTarget( getDeleteTargetMethod(), responseObserver); } + /** + * + * + *
+     * Lists CustomTargetTypes in a given project and location.
+     * 
+ */ + default void listCustomTargetTypes( + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCustomTargetTypesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single CustomTargetType.
+     * 
+ */ + default void getCustomTargetType( + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCustomTargetTypeMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new CustomTargetType in a given project and location.
+     * 
+ */ + default void createCustomTargetType( + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCustomTargetTypeMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a single CustomTargetType.
+     * 
+ */ + default void updateCustomTargetType( + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCustomTargetTypeMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single CustomTargetType.
+     * 
+ */ + default void deleteCustomTargetType( + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCustomTargetTypeMethod(), responseObserver); + } + /** * * @@ -2351,6 +2665,87 @@ public void deleteTarget( responseObserver); } + /** + * + * + *
+     * Lists CustomTargetTypes in a given project and location.
+     * 
+ */ + public void listCustomTargetTypes( + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomTargetTypesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single CustomTargetType.
+     * 
+ */ + public void getCustomTargetType( + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomTargetTypeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new CustomTargetType in a given project and location.
+     * 
+ */ + public void createCustomTargetType( + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomTargetTypeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a single CustomTargetType.
+     * 
+ */ + public void updateCustomTargetType( + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomTargetTypeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single CustomTargetType.
+     * 
+ */ + public void deleteCustomTargetType( + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCustomTargetTypeMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2902,6 +3297,71 @@ public com.google.longrunning.Operation deleteTarget( getChannel(), getDeleteTargetMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Lists CustomTargetTypes in a given project and location.
+     * 
+ */ + public com.google.cloud.deploy.v1.ListCustomTargetTypesResponse listCustomTargetTypes( + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCustomTargetTypesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single CustomTargetType.
+     * 
+ */ + public com.google.cloud.deploy.v1.CustomTargetType getCustomTargetType( + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCustomTargetTypeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new CustomTargetType in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createCustomTargetType( + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomTargetTypeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a single CustomTargetType.
+     * 
+ */ + public com.google.longrunning.Operation updateCustomTargetType( + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCustomTargetTypeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single CustomTargetType.
+     * 
+ */ + public com.google.longrunning.Operation deleteCustomTargetType( + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCustomTargetTypeMethod(), getCallOptions(), request); + } + /** * * @@ -3385,6 +3845,73 @@ protected CloudDeployFutureStub build( getChannel().newCall(getDeleteTargetMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Lists CustomTargetTypes in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.ListCustomTargetTypesResponse> + listCustomTargetTypes(com.google.cloud.deploy.v1.ListCustomTargetTypesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCustomTargetTypesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single CustomTargetType.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.CustomTargetType> + getCustomTargetType(com.google.cloud.deploy.v1.GetCustomTargetTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCustomTargetTypeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new CustomTargetType in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createCustomTargetType(com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCustomTargetTypeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a single CustomTargetType.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateCustomTargetType(com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCustomTargetTypeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single CustomTargetType.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCustomTargetType(com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCustomTargetTypeMethod(), getCallOptions()), request); + } + /** * * @@ -3726,30 +4253,35 @@ protected CloudDeployFutureStub build( private static final int METHODID_CREATE_TARGET = 8; private static final int METHODID_UPDATE_TARGET = 9; private static final int METHODID_DELETE_TARGET = 10; - private static final int METHODID_LIST_RELEASES = 11; - private static final int METHODID_GET_RELEASE = 12; - private static final int METHODID_CREATE_RELEASE = 13; - private static final int METHODID_ABANDON_RELEASE = 14; - private static final int METHODID_APPROVE_ROLLOUT = 15; - private static final int METHODID_ADVANCE_ROLLOUT = 16; - private static final int METHODID_CANCEL_ROLLOUT = 17; - private static final int METHODID_LIST_ROLLOUTS = 18; - private static final int METHODID_GET_ROLLOUT = 19; - private static final int METHODID_CREATE_ROLLOUT = 20; - private static final int METHODID_IGNORE_JOB = 21; - private static final int METHODID_RETRY_JOB = 22; - private static final int METHODID_LIST_JOB_RUNS = 23; - private static final int METHODID_GET_JOB_RUN = 24; - private static final int METHODID_TERMINATE_JOB_RUN = 25; - private static final int METHODID_GET_CONFIG = 26; - private static final int METHODID_CREATE_AUTOMATION = 27; - private static final int METHODID_UPDATE_AUTOMATION = 28; - private static final int METHODID_DELETE_AUTOMATION = 29; - private static final int METHODID_GET_AUTOMATION = 30; - private static final int METHODID_LIST_AUTOMATIONS = 31; - private static final int METHODID_GET_AUTOMATION_RUN = 32; - private static final int METHODID_LIST_AUTOMATION_RUNS = 33; - private static final int METHODID_CANCEL_AUTOMATION_RUN = 34; + private static final int METHODID_LIST_CUSTOM_TARGET_TYPES = 11; + private static final int METHODID_GET_CUSTOM_TARGET_TYPE = 12; + private static final int METHODID_CREATE_CUSTOM_TARGET_TYPE = 13; + private static final int METHODID_UPDATE_CUSTOM_TARGET_TYPE = 14; + private static final int METHODID_DELETE_CUSTOM_TARGET_TYPE = 15; + private static final int METHODID_LIST_RELEASES = 16; + private static final int METHODID_GET_RELEASE = 17; + private static final int METHODID_CREATE_RELEASE = 18; + private static final int METHODID_ABANDON_RELEASE = 19; + private static final int METHODID_APPROVE_ROLLOUT = 20; + private static final int METHODID_ADVANCE_ROLLOUT = 21; + private static final int METHODID_CANCEL_ROLLOUT = 22; + private static final int METHODID_LIST_ROLLOUTS = 23; + private static final int METHODID_GET_ROLLOUT = 24; + private static final int METHODID_CREATE_ROLLOUT = 25; + private static final int METHODID_IGNORE_JOB = 26; + private static final int METHODID_RETRY_JOB = 27; + private static final int METHODID_LIST_JOB_RUNS = 28; + private static final int METHODID_GET_JOB_RUN = 29; + private static final int METHODID_TERMINATE_JOB_RUN = 30; + private static final int METHODID_GET_CONFIG = 31; + private static final int METHODID_CREATE_AUTOMATION = 32; + private static final int METHODID_UPDATE_AUTOMATION = 33; + private static final int METHODID_DELETE_AUTOMATION = 34; + private static final int METHODID_GET_AUTOMATION = 35; + private static final int METHODID_LIST_AUTOMATIONS = 36; + private static final int METHODID_GET_AUTOMATION_RUN = 37; + private static final int METHODID_LIST_AUTOMATION_RUNS = 38; + private static final int METHODID_CANCEL_AUTOMATION_RUN = 39; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3828,6 +4360,34 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.deploy.v1.DeleteTargetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_CUSTOM_TARGET_TYPES: + serviceImpl.listCustomTargetTypes( + (com.google.cloud.deploy.v1.ListCustomTargetTypesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.deploy.v1.ListCustomTargetTypesResponse>) + responseObserver); + break; + case METHODID_GET_CUSTOM_TARGET_TYPE: + serviceImpl.getCustomTargetType( + (com.google.cloud.deploy.v1.GetCustomTargetTypeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_CUSTOM_TARGET_TYPE: + serviceImpl.createCustomTargetType( + (com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CUSTOM_TARGET_TYPE: + serviceImpl.updateCustomTargetType( + (com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CUSTOM_TARGET_TYPE: + serviceImpl.deleteCustomTargetType( + (com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_RELEASES: serviceImpl.listReleases( (com.google.cloud.deploy.v1.ListReleasesRequest) request, @@ -4051,6 +4611,38 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.deploy.v1.DeleteTargetRequest, com.google.longrunning.Operation>(service, METHODID_DELETE_TARGET))) + .addMethod( + getListCustomTargetTypesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest, + com.google.cloud.deploy.v1.ListCustomTargetTypesResponse>( + service, METHODID_LIST_CUSTOM_TARGET_TYPES))) + .addMethod( + getGetCustomTargetTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest, + com.google.cloud.deploy.v1.CustomTargetType>( + service, METHODID_GET_CUSTOM_TARGET_TYPE))) + .addMethod( + getCreateCustomTargetTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_CUSTOM_TARGET_TYPE))) + .addMethod( + getUpdateCustomTargetTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_CUSTOM_TARGET_TYPE))) + .addMethod( + getDeleteCustomTargetTypeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_CUSTOM_TARGET_TYPE))) .addMethod( getListReleasesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4269,6 +4861,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateTargetMethod()) .addMethod(getUpdateTargetMethod()) .addMethod(getDeleteTargetMethod()) + .addMethod(getListCustomTargetTypesMethod()) + .addMethod(getGetCustomTargetTypeMethod()) + .addMethod(getCreateCustomTargetTypeMethod()) + .addMethod(getUpdateCustomTargetTypeMethod()) + .addMethod(getDeleteCustomTargetTypeMethod()) .addMethod(getListReleasesMethod()) .addMethod(getGetReleaseMethod()) .addMethod(getCreateReleaseMethod()) diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutOperation.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutOperation.java index 709edb675905..0a5f1aee7127 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutOperation.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutOperation.java @@ -220,7 +220,7 @@ public com.google.protobuf.ByteString getRolloutBytes() { * * *
-   * Output only. The phase to which the rollout will be advanced to.
+   * Output only. The phase the rollout will be advanced to.
    * 
* * string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -243,7 +243,7 @@ public java.lang.String getDestinationPhase() { * * *
-   * Output only. The phase to which the rollout will be advanced to.
+   * Output only. The phase the rollout will be advanced to.
    * 
* * string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1080,7 +1080,7 @@ public Builder setRolloutBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The phase to which the rollout will be advanced to.
+     * Output only. The phase the rollout will be advanced to.
      * 
* * string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1102,7 +1102,7 @@ public java.lang.String getDestinationPhase() { * * *
-     * Output only. The phase to which the rollout will be advanced to.
+     * Output only. The phase the rollout will be advanced to.
      * 
* * string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1124,7 +1124,7 @@ public com.google.protobuf.ByteString getDestinationPhaseBytes() { * * *
-     * Output only. The phase to which the rollout will be advanced to.
+     * Output only. The phase the rollout will be advanced to.
      * 
* * string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1145,7 +1145,7 @@ public Builder setDestinationPhase(java.lang.String value) { * * *
-     * Output only. The phase to which the rollout will be advanced to.
+     * Output only. The phase the rollout will be advanced to.
      * 
* * string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1162,7 +1162,7 @@ public Builder clearDestinationPhase() { * * *
-     * Output only. The phase to which the rollout will be advanced to.
+     * Output only. The phase the rollout will be advanced to.
      * 
* * string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutOperationOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutOperationOrBuilder.java index 7ba9f284b810..8b1d54a38146 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutOperationOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutOperationOrBuilder.java @@ -112,7 +112,7 @@ public interface AdvanceRolloutOperationOrBuilder * * *
-   * Output only. The phase to which the rollout will be advanced to.
+   * Output only. The phase the rollout will be advanced to.
    * 
* * string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -124,7 +124,7 @@ public interface AdvanceRolloutOperationOrBuilder * * *
-   * Output only. The phase to which the rollout will be advanced to.
+   * Output only. The phase the rollout will be advanced to.
    * 
* * string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Automation.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Automation.java index 61762e025ee9..fba31ed432e8 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Automation.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Automation.java @@ -25,7 +25,7 @@ * An `Automation` resource in the Cloud Deploy API. * * An `Automation` enables the automation of manually driven actions for - * a Delivery Pipeline, which includes Release promotion amongst Targets, + * a Delivery Pipeline, which includes Release promotion among Targets, * Rollout repair and Rollout deployment strategy advancement. The intention * of Automation is to reduce manual intervention in the continuous delivery * process. @@ -1228,7 +1228,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * An `Automation` resource in the Cloud Deploy API. * * An `Automation` enables the automation of manually driven actions for - * a Delivery Pipeline, which includes Release promotion amongst Targets, + * a Delivery Pipeline, which includes Release promotion among Targets, * Rollout repair and Rollout deployment strategy advancement. The intention * of Automation is to reduce manual intervention in the continuous delivery * process. diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRun.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRun.java index cecf01f38b13..ccb41764a9ed 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRun.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRun.java @@ -24,7 +24,7 @@ *
  * An `AutomationRun` resource in the Cloud Deploy API.
  *
- * An `AutomationRun` represents an automation execution instance of an
+ * An `AutomationRun` represents an execution instance of an
  * automation rule.
  * 
* @@ -770,7 +770,7 @@ public com.google.cloud.deploy.v1.AutomationRun.State getState() { * *
    * Output only. Explains the current state of the `AutomationRun`. Present
-   * only an explanation is needed.
+   * only when an explanation is needed.
    * 
* * string state_description = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -794,7 +794,7 @@ public java.lang.String getStateDescription() { * *
    * Output only. Explains the current state of the `AutomationRun`. Present
-   * only an explanation is needed.
+   * only when an explanation is needed.
    * 
* * string state_description = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -820,8 +820,8 @@ public com.google.protobuf.ByteString getStateDescriptionBytes() { * * *
-   * Output only. Time the `AutomationRun` will expire. An `AutomationRun` will
-   * expire after 14 days from its creation date.
+   * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
+   * after 14 days from its creation date.
    * 
* * .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -837,8 +837,8 @@ public boolean hasExpireTime() { * * *
-   * Output only. Time the `AutomationRun` will expire. An `AutomationRun` will
-   * expire after 14 days from its creation date.
+   * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
+   * after 14 days from its creation date.
    * 
* * .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -854,8 +854,8 @@ public com.google.protobuf.Timestamp getExpireTime() { * * *
-   * Output only. Time the `AutomationRun` will expire. An `AutomationRun` will
-   * expire after 14 days from its creation date.
+   * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
+   * after 14 days from its creation date.
    * 
* * .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1552,7 +1552,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * An `AutomationRun` resource in the Cloud Deploy API.
    *
-   * An `AutomationRun` represents an automation execution instance of an
+   * An `AutomationRun` represents an execution instance of an
    * automation rule.
    * 
* @@ -3184,7 +3184,7 @@ public Builder clearState() { * *
      * Output only. Explains the current state of the `AutomationRun`. Present
-     * only an explanation is needed.
+     * only when an explanation is needed.
      * 
* * string state_description = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3207,7 +3207,7 @@ public java.lang.String getStateDescription() { * *
      * Output only. Explains the current state of the `AutomationRun`. Present
-     * only an explanation is needed.
+     * only when an explanation is needed.
      * 
* * string state_description = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3230,7 +3230,7 @@ public com.google.protobuf.ByteString getStateDescriptionBytes() { * *
      * Output only. Explains the current state of the `AutomationRun`. Present
-     * only an explanation is needed.
+     * only when an explanation is needed.
      * 
* * string state_description = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3252,7 +3252,7 @@ public Builder setStateDescription(java.lang.String value) { * *
      * Output only. Explains the current state of the `AutomationRun`. Present
-     * only an explanation is needed.
+     * only when an explanation is needed.
      * 
* * string state_description = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3270,7 +3270,7 @@ public Builder clearStateDescription() { * *
      * Output only. Explains the current state of the `AutomationRun`. Present
-     * only an explanation is needed.
+     * only when an explanation is needed.
      * 
* * string state_description = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3299,8 +3299,8 @@ public Builder setStateDescriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. Time the `AutomationRun` will expire. An `AutomationRun` will
-     * expire after 14 days from its creation date.
+     * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
+     * after 14 days from its creation date.
      * 
* * @@ -3316,8 +3316,8 @@ public boolean hasExpireTime() { * * *
-     * Output only. Time the `AutomationRun` will expire. An `AutomationRun` will
-     * expire after 14 days from its creation date.
+     * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
+     * after 14 days from its creation date.
      * 
* * @@ -3339,8 +3339,8 @@ public com.google.protobuf.Timestamp getExpireTime() { * * *
-     * Output only. Time the `AutomationRun` will expire. An `AutomationRun` will
-     * expire after 14 days from its creation date.
+     * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
+     * after 14 days from its creation date.
      * 
* * @@ -3364,8 +3364,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Time the `AutomationRun` will expire. An `AutomationRun` will
-     * expire after 14 days from its creation date.
+     * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
+     * after 14 days from its creation date.
      * 
* * @@ -3386,8 +3386,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. Time the `AutomationRun` will expire. An `AutomationRun` will
-     * expire after 14 days from its creation date.
+     * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
+     * after 14 days from its creation date.
      * 
* * @@ -3414,8 +3414,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. Time the `AutomationRun` will expire. An `AutomationRun` will
-     * expire after 14 days from its creation date.
+     * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
+     * after 14 days from its creation date.
      * 
* * @@ -3436,8 +3436,8 @@ public Builder clearExpireTime() { * * *
-     * Output only. Time the `AutomationRun` will expire. An `AutomationRun` will
-     * expire after 14 days from its creation date.
+     * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
+     * after 14 days from its creation date.
      * 
* * @@ -3453,8 +3453,8 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { * * *
-     * Output only. Time the `AutomationRun` will expire. An `AutomationRun` will
-     * expire after 14 days from its creation date.
+     * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
+     * after 14 days from its creation date.
      * 
* * @@ -3474,8 +3474,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * * *
-     * Output only. Time the `AutomationRun` will expire. An `AutomationRun` will
-     * expire after 14 days from its creation date.
+     * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
+     * after 14 days from its creation date.
      * 
* * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRunOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRunOrBuilder.java index 9f7fb92b63ac..193bf00782d6 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRunOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AutomationRunOrBuilder.java @@ -291,7 +291,7 @@ public interface AutomationRunOrBuilder * *
    * Output only. Explains the current state of the `AutomationRun`. Present
-   * only an explanation is needed.
+   * only when an explanation is needed.
    * 
* * string state_description = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -304,7 +304,7 @@ public interface AutomationRunOrBuilder * *
    * Output only. Explains the current state of the `AutomationRun`. Present
-   * only an explanation is needed.
+   * only when an explanation is needed.
    * 
* * string state_description = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -317,8 +317,8 @@ public interface AutomationRunOrBuilder * * *
-   * Output only. Time the `AutomationRun` will expire. An `AutomationRun` will
-   * expire after 14 days from its creation date.
+   * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
+   * after 14 days from its creation date.
    * 
* * .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -331,8 +331,8 @@ public interface AutomationRunOrBuilder * * *
-   * Output only. Time the `AutomationRun` will expire. An `AutomationRun` will
-   * expire after 14 days from its creation date.
+   * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
+   * after 14 days from its creation date.
    * 
* * .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -345,8 +345,8 @@ public interface AutomationRunOrBuilder * * *
-   * Output only. Time the `AutomationRun` will expire. An `AutomationRun` will
-   * expire after 14 days from its creation date.
+   * Output only. Time the `AutomationRun` expires. An `AutomationRun` expires
+   * after 14 days from its creation date.
    * 
* * .google.protobuf.Timestamp expire_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java index 0ffc802729e6..f0919d05f294 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java @@ -207,6 +207,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_deploy_v1_MultiTarget_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_deploy_v1_MultiTarget_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_CustomTarget_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_CustomTarget_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_deploy_v1_ListTargetsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -231,6 +235,58 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_deploy_v1_DeleteTargetRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_deploy_v1_DeleteTargetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_CustomTargetType_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_CustomTargetType_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_CustomTargetType_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_CustomTargetType_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_CustomTargetType_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_CustomTargetType_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_CustomTargetSkaffoldActions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_CustomTargetSkaffoldActions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_SkaffoldModules_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_SkaffoldModules_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGitSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGitSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGCSSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGCSSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_ListCustomTargetTypesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_ListCustomTargetTypesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_ListCustomTargetTypesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_ListCustomTargetTypesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_GetCustomTargetTypeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_GetCustomTargetTypeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_CreateCustomTargetTypeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_CreateCustomTargetTypeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_UpdateCustomTargetTypeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_UpdateCustomTargetTypeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_DeleteCustomTargetTypeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_DeleteCustomTargetTypeRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_deploy_v1_TargetAttribute_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -347,10 +403,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_deploy_v1_CloudRunMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_deploy_v1_CloudRunMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_CustomTargetDeployMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_CustomTargetDeployMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_deploy_v1_AutomationRolloutMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_deploy_v1_AutomationRolloutMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_CustomMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_CustomMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_CustomMetadata_ValuesEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_CustomMetadata_ValuesEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_deploy_v1_Phase_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -734,875 +802,991 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004\342A\001\001\032p\n\021ServiceNetworking\022\025\n\007service\030\001 " + "\001(\tB\004\342A\001\002\022\030\n\ndeployment\030\002 \001(\tB\004\342A\001\002\022*\n\034d" + "isable_pod_overprovisioning\030\003 \001(\010B\004\342A\001\001B" - + "\024\n\022service_definition\"3\n\016CloudRunConfig\022" - + "!\n\031automatic_traffic_control\030\001 \001(\010\"\236\001\n\rR" - + "untimeConfig\022>\n\nkubernetes\030\001 \001(\0132(.googl" - + "e.cloud.deploy.v1.KubernetesConfigH\000\022;\n\t" - + "cloud_run\030\002 \001(\0132&.google.cloud.deploy.v1" - + ".CloudRunConfigH\000B\020\n\016runtime_config\"Y\n\026P" - + "ipelineReadyCondition\022\016\n\006status\030\003 \001(\010\022/\n" - + "\013update_time\030\004 \001(\0132\032.google.protobuf.Tim" - + "estamp\"\233\001\n\027TargetsPresentCondition\022\016\n\006st" - + "atus\030\001 \001(\010\022?\n\017missing_targets\030\002 \003(\tB&\372A#" - + "\n!clouddeploy.googleapis.com/Target\022/\n\013u" - + "pdate_time\030\004 \001(\0132\032.google.protobuf.Times" - + "tamp\"=\n\024TargetsTypeCondition\022\016\n\006status\030\001" - + " \001(\010\022\025\n\rerror_details\030\002 \001(\t\"\207\002\n\021Pipeline" - + "Condition\022P\n\030pipeline_ready_condition\030\001 " - + "\001(\0132..google.cloud.deploy.v1.PipelineRea" - + "dyCondition\022R\n\031targets_present_condition" - + "\030\003 \001(\0132/.google.cloud.deploy.v1.TargetsP" - + "resentCondition\022L\n\026targets_type_conditio" - + "n\030\004 \001(\0132,.google.cloud.deploy.v1.Targets" - + "TypeCondition\"\255\001\n\034ListDeliveryPipelinesR" - + "equest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\022+cloudde" - + "ploy.googleapis.com/DeliveryPipeline\022\021\n\t" - + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006f" - + "ilter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\223\001\n\035ListDe" - + "liveryPipelinesResponse\022D\n\022delivery_pipe" - + "lines\030\001 \003(\0132(.google.cloud.deploy.v1.Del" - + "iveryPipeline\022\027\n\017next_page_token\030\002 \001(\t\022\023" - + "\n\013unreachable\030\003 \003(\t\"`\n\032GetDeliveryPipeli" - + "neRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+cloudd" - + "eploy.googleapis.com/DeliveryPipeline\"\213\002" - + "\n\035CreateDeliveryPipelineRequest\022D\n\006paren" - + "t\030\001 \001(\tB4\342A\001\002\372A-\022+clouddeploy.googleapis" - + ".com/DeliveryPipeline\022\"\n\024delivery_pipeli" - + "ne_id\030\002 \001(\tB\004\342A\001\002\022I\n\021delivery_pipeline\030\003" - + " \001(\0132(.google.cloud.deploy.v1.DeliveryPi" - + "pelineB\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\022\033" - + "\n\rvalidate_only\030\005 \001(\010B\004\342A\001\001\"\365\001\n\035UpdateDe" - + "liveryPipelineRequest\0225\n\013update_mask\030\001 \001" - + "(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\022I\n\021" - + "delivery_pipeline\030\002 \001(\0132(.google.cloud.d" - + "eploy.v1.DeliveryPipelineB\004\342A\001\002\022\030\n\nreque" - + "st_id\030\003 \001(\tB\004\342A\001\001\022\033\n\rallow_missing\030\004 \001(\010" - + "B\004\342A\001\001\022\033\n\rvalidate_only\030\005 \001(\010B\004\342A\001\001\"\340\001\n\035" - + "DeleteDeliveryPipelineRequest\022B\n\004name\030\001 " + + "\024\n\022service_definition\"\236\001\n\016CloudRunConfig" + + "\022!\n\031automatic_traffic_control\030\001 \001(\010\022\"\n\024c" + + "anary_revision_tags\030\002 \003(\tB\004\342A\001\001\022!\n\023prior" + + "_revision_tags\030\003 \003(\tB\004\342A\001\001\022\"\n\024stable_rev" + + "ision_tags\030\004 \003(\tB\004\342A\001\001\"\236\001\n\rRuntimeConfig" + + "\022>\n\nkubernetes\030\001 \001(\0132(.google.cloud.depl" + + "oy.v1.KubernetesConfigH\000\022;\n\tcloud_run\030\002 " + + "\001(\0132&.google.cloud.deploy.v1.CloudRunCon" + + "figH\000B\020\n\016runtime_config\"Y\n\026PipelineReady" + + "Condition\022\016\n\006status\030\003 \001(\010\022/\n\013update_time" + + "\030\004 \001(\0132\032.google.protobuf.Timestamp\"\233\001\n\027T" + + "argetsPresentCondition\022\016\n\006status\030\001 \001(\010\022?" + + "\n\017missing_targets\030\002 \003(\tB&\372A#\n!clouddeplo" + + "y.googleapis.com/Target\022/\n\013update_time\030\004" + + " \001(\0132\032.google.protobuf.Timestamp\"=\n\024Targ" + + "etsTypeCondition\022\016\n\006status\030\001 \001(\010\022\025\n\rerro" + + "r_details\030\002 \001(\t\"\207\002\n\021PipelineCondition\022P\n" + + "\030pipeline_ready_condition\030\001 \001(\0132..google" + + ".cloud.deploy.v1.PipelineReadyCondition\022" + + "R\n\031targets_present_condition\030\003 \001(\0132/.goo" + + "gle.cloud.deploy.v1.TargetsPresentCondit" + + "ion\022L\n\026targets_type_condition\030\004 \001(\0132,.go" + + "ogle.cloud.deploy.v1.TargetsTypeConditio" + + "n\"\255\001\n\034ListDeliveryPipelinesRequest\022D\n\006pa" + + "rent\030\001 \001(\tB4\342A\001\002\372A-\022+clouddeploy.googlea" + + "pis.com/DeliveryPipeline\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022" + + "\020\n\010order_by\030\005 \001(\t\"\223\001\n\035ListDeliveryPipeli" + + "nesResponse\022D\n\022delivery_pipelines\030\001 \003(\0132" + + "(.google.cloud.deploy.v1.DeliveryPipelin" + + "e\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl" + + "e\030\003 \003(\t\"`\n\032GetDeliveryPipelineRequest\022B\n" + + "\004name\030\001 \001(\tB4\342A\001\002\372A-\n+clouddeploy.google" + + "apis.com/DeliveryPipeline\"\213\002\n\035CreateDeli" + + "veryPipelineRequest\022D\n\006parent\030\001 \001(\tB4\342A\001" + + "\002\372A-\022+clouddeploy.googleapis.com/Deliver" + + "yPipeline\022\"\n\024delivery_pipeline_id\030\002 \001(\tB" + + "\004\342A\001\002\022I\n\021delivery_pipeline\030\003 \001(\0132(.googl" + + "e.cloud.deploy.v1.DeliveryPipelineB\004\342A\001\002" + + "\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\022\033\n\rvalidate_o" + + "nly\030\005 \001(\010B\004\342A\001\001\"\365\001\n\035UpdateDeliveryPipeli" + + "neRequest\0225\n\013update_mask\030\001 \001(\0132\032.google." + + "protobuf.FieldMaskB\004\342A\001\002\022I\n\021delivery_pip" + + "eline\030\002 \001(\0132(.google.cloud.deploy.v1.Del" + + "iveryPipelineB\004\342A\001\002\022\030\n\nrequest_id\030\003 \001(\tB" + + "\004\342A\001\001\022\033\n\rallow_missing\030\004 \001(\010B\004\342A\001\001\022\033\n\rva" + + "lidate_only\030\005 \001(\010B\004\342A\001\001\"\340\001\n\035DeleteDelive" + + "ryPipelineRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-" + + "\n+clouddeploy.googleapis.com/DeliveryPip" + + "eline\022\030\n\nrequest_id\030\002 \001(\tB\004\342A\001\001\022\033\n\rallow" + + "_missing\030\003 \001(\010B\004\342A\001\001\022\033\n\rvalidate_only\030\004 " + + "\001(\010B\004\342A\001\001\022\023\n\005force\030\006 \001(\010B\004\342A\001\001\022\022\n\004etag\030\005" + + " \001(\tB\004\342A\001\001\"o\n\024RollbackTargetConfig\0226\n\007ro" + + "llout\030\001 \001(\0132\037.google.cloud.deploy.v1.Rol" + + "loutB\004\342A\001\001\022\037\n\021starting_phase_id\030\002 \001(\tB\004\342" + + "A\001\001\"\266\002\n\025RollbackTargetRequest\022B\n\004name\030\001 " + "\001(\tB4\342A\001\002\372A-\n+clouddeploy.googleapis.com" - + "/DeliveryPipeline\022\030\n\nrequest_id\030\002 \001(\tB\004\342" - + "A\001\001\022\033\n\rallow_missing\030\003 \001(\010B\004\342A\001\001\022\033\n\rvali" - + "date_only\030\004 \001(\010B\004\342A\001\001\022\023\n\005force\030\006 \001(\010B\004\342A" - + "\001\001\022\022\n\004etag\030\005 \001(\tB\004\342A\001\001\"o\n\024RollbackTarget" - + "Config\0226\n\007rollout\030\001 \001(\0132\037.google.cloud.d" - + "eploy.v1.RolloutB\004\342A\001\001\022\037\n\021starting_phase" - + "_id\030\002 \001(\tB\004\342A\001\001\"\266\002\n\025RollbackTargetReques" - + "t\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+clouddeploy.go" - + "ogleapis.com/DeliveryPipeline\022\027\n\ttarget_" - + "id\030\002 \001(\tB\004\342A\001\002\022\030\n\nrollout_id\030\003 \001(\tB\004\342A\001\002" - + "\022\030\n\nrelease_id\030\004 \001(\tB\004\342A\001\001\022\"\n\024rollout_to" - + "_roll_back\030\005 \001(\tB\004\342A\001\001\022K\n\017rollback_confi" - + "g\030\006 \001(\0132,.google.cloud.deploy.v1.Rollbac" - + "kTargetConfigB\004\342A\001\001\022\033\n\rvalidate_only\030\007 \001" - + "(\010B\004\342A\001\001\"_\n\026RollbackTargetResponse\022E\n\017ro" - + "llback_config\030\001 \001(\0132,.google.cloud.deplo" - + "y.v1.RollbackTargetConfig\"\303\010\n\006Target\022\022\n\004" - + "name\030\001 \001(\tB\004\342A\001\001\022\027\n\ttarget_id\030\002 \001(\tB\004\342A\001" - + "\003\022\021\n\003uid\030\003 \001(\tB\004\342A\001\003\022\031\n\013description\030\004 \001(" - + "\tB\004\342A\001\001\022J\n\013annotations\030\005 \003(\0132/.google.cl" - + "oud.deploy.v1.Target.AnnotationsEntryB\004\342" - + "A\001\001\022@\n\006labels\030\006 \003(\0132*.google.cloud.deplo" - + "y.v1.Target.LabelsEntryB\004\342A\001\001\022\036\n\020require" - + "_approval\030\r \001(\010B\004\342A\001\001\0225\n\013create_time\030\010 \001" - + "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n\013" - + "update_time\030\t \001(\0132\032.google.protobuf.Time" - + "stampB\004\342A\001\003\0227\n\003gke\030\017 \001(\0132\".google.cloud." - + "deploy.v1.GkeClusterB\004\342A\001\001H\000\022E\n\016anthos_c" - + "luster\030\021 \001(\0132%.google.cloud.deploy.v1.An" - + "thosClusterB\004\342A\001\001H\000\022=\n\003run\030\022 \001(\0132(.googl" - + "e.cloud.deploy.v1.CloudRunLocationB\004\342A\001\001" - + "H\000\022A\n\014multi_target\030\023 \001(\0132#.google.cloud." - + "deploy.v1.MultiTargetB\004\342A\001\001H\000\022\022\n\004etag\030\014 " - + "\001(\tB\004\342A\001\001\022B\n\021execution_configs\030\020 \003(\0132\'.g" - + "oogle.cloud.deploy.v1.ExecutionConfig\022U\n" - + "\021deploy_parameters\030\024 \003(\01324.google.cloud." - + "deploy.v1.Target.DeployParametersEntryB\004" - + "\342A\001\001\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001" - + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0327\n\025DeployParamet" - + "ersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + ":`\352A]\n!clouddeploy.googleapis.com/Target" - + "\0228projects/{project}/locations/{location" - + "}/targets/{target}B\023\n\021deployment_target\"" - + "\326\004\n\017ExecutionConfig\022W\n\006usages\030\001 \003(\0162A.go" - + "ogle.cloud.deploy.v1.ExecutionConfig.Exe" - + "cutionEnvironmentUsageB\004\342A\001\002\022A\n\014default_" - + "pool\030\002 \001(\0132#.google.cloud.deploy.v1.Defa" - + "ultPoolB\004\342A\001\001H\000\022A\n\014private_pool\030\003 \001(\0132#." - + "google.cloud.deploy.v1.PrivatePoolB\004\342A\001\001" - + "H\000\022B\n\013worker_pool\030\004 \001(\tB-\342A\001\001\372A&\n$cloudb" - + "uild.googleapis.com/WorkerPool\022\035\n\017servic" - + "e_account\030\005 \001(\tB\004\342A\001\001\022\036\n\020artifact_storag" - + "e\030\006 \001(\tB\004\342A\001\001\022:\n\021execution_timeout\030\007 \001(\013" - + "2\031.google.protobuf.DurationB\004\342A\001\001\"\213\001\n\031Ex" - + "ecutionEnvironmentUsage\022+\n\'EXECUTION_ENV" - + "IRONMENT_USAGE_UNSPECIFIED\020\000\022\n\n\006RENDER\020\001" - + "\022\n\n\006DEPLOY\020\002\022\n\n\006VERIFY\020\003\022\r\n\tPREDEPLOY\020\004\022" - + "\016\n\nPOSTDEPLOY\020\005B\027\n\025execution_environment" - + "\"L\n\013DefaultPool\022\035\n\017service_account\030\001 \001(\t" - + "B\004\342A\001\001\022\036\n\020artifact_storage\030\002 \001(\tB\004\342A\001\001\"\220" - + "\001\n\013PrivatePool\022B\n\013worker_pool\030\001 \001(\tB-\342A\001" - + "\002\372A&\n$cloudbuild.googleapis.com/WorkerPo" - + "ol\022\035\n\017service_account\030\002 \001(\tB\004\342A\001\001\022\036\n\020art" - + "ifact_storage\030\003 \001(\tB\004\342A\001\001\"_\n\nGkeCluster\022" - + "6\n\007cluster\030\001 \001(\tB%\372A\"\n container.googlea" - + "pis.com/Cluster\022\031\n\013internal_ip\030\002 \001(\010B\004\342A" - + "\001\001\"J\n\rAnthosCluster\0229\n\nmembership\030\001 \001(\tB" - + "%\372A\"\n gkehub.googleapis.com/Membership\"P" - + "\n\020CloudRunLocation\022<\n\010location\030\001 \001(\tB*\342A" - + "\001\002\372A#\n!locations.googleapis.com/Location" - + "\"\'\n\013MultiTarget\022\030\n\ntarget_ids\030\001 \003(\tB\004\342A\001" - + "\002\"\261\001\n\022ListTargetsRequest\022:\n\006parent\030\001 \001(\t" - + "B*\342A\001\002\372A#\022!clouddeploy.googleapis.com/Ta" - + "rget\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_to" - + "ken\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" - + "\010order_by\030\005 \001(\tB\004\342A\001\001\"t\n\023ListTargetsResp" - + "onse\022/\n\007targets\030\001 \003(\0132\036.google.cloud.dep" - + "loy.v1.Target\022\027\n\017next_page_token\030\002 \001(\t\022\023" - + "\n\013unreachable\030\003 \003(\t\"L\n\020GetTargetRequest\022" - + "8\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!clouddeploy.goog" - + "leapis.com/Target\"\327\001\n\023CreateTargetReques" - + "t\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\022!clouddeploy." - + "googleapis.com/Target\022\027\n\ttarget_id\030\002 \001(\t" - + "B\004\342A\001\002\0224\n\006target\030\003 \001(\0132\036.google.cloud.de" - + "ploy.v1.TargetB\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(\t" - + "B\004\342A\001\001\022\033\n\rvalidate_only\030\005 \001(\010B\004\342A\001\001\"\326\001\n\023" - + "UpdateTargetRequest\0225\n\013update_mask\030\001 \001(\013" - + "2\032.google.protobuf.FieldMaskB\004\342A\001\002\0224\n\006ta" - + "rget\030\002 \001(\0132\036.google.cloud.deploy.v1.Targ" - + "etB\004\342A\001\002\022\030\n\nrequest_id\030\003 \001(\tB\004\342A\001\001\022\033\n\ral" - + "low_missing\030\004 \001(\010B\004\342A\001\001\022\033\n\rvalidate_only" - + "\030\005 \001(\010B\004\342A\001\001\"\267\001\n\023DeleteTargetRequest\0228\n\004" - + "name\030\001 \001(\tB*\342A\001\002\372A#\n!clouddeploy.googlea" - + "pis.com/Target\022\030\n\nrequest_id\030\002 \001(\tB\004\342A\001\001" - + "\022\033\n\rallow_missing\030\003 \001(\010B\004\342A\001\001\022\033\n\rvalidat" - + "e_only\030\004 \001(\010B\004\342A\001\001\022\022\n\004etag\030\005 \001(\tB\004\342A\001\001\"\221" - + "\001\n\017TargetAttribute\022\n\n\002id\030\001 \001(\t\022C\n\006labels" - + "\030\002 \003(\01323.google.cloud.deploy.v1.TargetAt" - + "tribute.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\242\026\n\007Release\022\022" - + "\n\004name\030\001 \001(\tB\004\342A\001\001\022\021\n\003uid\030\002 \001(\tB\004\342A\001\003\022\023\n" - + "\013description\030\003 \001(\t\022E\n\013annotations\030\004 \003(\0132" - + "0.google.cloud.deploy.v1.Release.Annotat" - + "ionsEntry\022;\n\006labels\030\005 \003(\0132+.google.cloud" - + ".deploy.v1.Release.LabelsEntry\022\027\n\tabando" - + "ned\030\027 \001(\010B\004\342A\001\003\0225\n\013create_time\030\006 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\004\342A\001\003\022;\n\021render" - + "_start_time\030\007 \001(\0132\032.google.protobuf.Time" - + "stampB\004\342A\001\003\0229\n\017render_end_time\030\010 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\004\342A\001\003\022\033\n\023skaffo" - + "ld_config_uri\030\021 \001(\t\022\034\n\024skaffold_config_p" - + "ath\030\t \001(\t\022>\n\017build_artifacts\030\n \003(\0132%.goo" - + "gle.cloud.deploy.v1.BuildArtifact\022R\n\032del" - + "ivery_pipeline_snapshot\030\013 \001(\0132(.google.c" - + "loud.deploy.v1.DeliveryPipelineB\004\342A\001\003\022>\n" - + "\020target_snapshots\030\014 \003(\0132\036.google.cloud.d" - + "eploy.v1.TargetB\004\342A\001\003\022G\n\014render_state\030\r " - + "\001(\0162+.google.cloud.deploy.v1.Release.Ren" - + "derStateB\004\342A\001\003\022\014\n\004etag\030\020 \001(\t\022\030\n\020skaffold" - + "_version\030\023 \001(\t\022T\n\020target_artifacts\030\024 \003(\013" - + "24.google.cloud.deploy.v1.Release.Target" - + "ArtifactsEntryB\004\342A\001\003\022P\n\016target_renders\030\026" - + " \003(\01322.google.cloud.deploy.v1.Release.Ta" - + "rgetRendersEntryB\004\342A\001\003\022I\n\tcondition\030\030 \001(" - + "\01320.google.cloud.deploy.v1.Release.Relea" - + "seConditionB\004\342A\001\003\022V\n\021deploy_parameters\030\031" - + " \003(\01325.google.cloud.deploy.v1.Release.De" - + "ployParametersEntryB\004\342A\001\001\032\220\005\n\014TargetRend" - + "er\022A\n\017rendering_build\030\001 \001(\tB(\342A\001\003\372A!\n\037cl" - + "oudbuild.googleapis.com/Build\022]\n\017renderi" - + "ng_state\030\002 \001(\0162>.google.cloud.deploy.v1." - + "Release.TargetRender.TargetRenderStateB\004" - + "\342A\001\003\022>\n\010metadata\030\006 \001(\0132&.google.cloud.de" - + "ploy.v1.RenderMetadataB\004\342A\001\003\022V\n\rfailure_" - + "cause\030\004 \001(\01629.google.cloud.deploy.v1.Rel" - + "ease.TargetRender.FailureCauseB\004\342A\001\003\022\035\n\017" - + "failure_message\030\005 \001(\tB\004\342A\001\003\"d\n\021TargetRen" - + "derState\022#\n\037TARGET_RENDER_STATE_UNSPECIF" - + "IED\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006FAILED\020\002\022\017\n\013IN_P" - + "ROGRESS\020\003\"\300\001\n\014FailureCause\022\035\n\031FAILURE_CA" - + "USE_UNSPECIFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAIL" - + "ABLE\020\001\022\024\n\020EXECUTION_FAILED\020\002\022\036\n\032CLOUD_BU" - + "ILD_REQUEST_FAILED\020\003\022!\n\035VERIFICATION_CON" - + "FIG_NOT_FOUND\020\004\022\033\n\027CUSTOM_ACTION_NOT_FOU" - + "ND\020\005\032\'\n\025ReleaseReadyCondition\022\016\n\006status\030" - + "\001 \001(\010\032\362\001\n\032SkaffoldSupportedCondition\022\016\n\006" - + "status\030\001 \001(\010\022L\n\026skaffold_support_state\030\002" - + " \001(\0162,.google.cloud.deploy.v1.SkaffoldSu" - + "pportState\0229\n\025maintenance_mode_time\030\003 \001(" - + "\0132\032.google.protobuf.Timestamp\022;\n\027support" - + "_expiration_time\030\004 \001(\0132\032.google.protobuf" - + ".Timestamp\032\314\001\n\020ReleaseCondition\022V\n\027relea" - + "se_ready_condition\030\001 \001(\01325.google.cloud." - + "deploy.v1.Release.ReleaseReadyCondition\022" - + "`\n\034skaffold_supported_condition\030\002 \001(\0132:." - + "google.cloud.deploy.v1.Release.SkaffoldS" - + "upportedCondition\0322\n\020AnnotationsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032^\n\024" - + "TargetArtifactsEntry\022\013\n\003key\030\001 \001(\t\0225\n\005val" - + "ue\030\002 \001(\0132&.google.cloud.deploy.v1.Target" - + "Artifact:\0028\001\032b\n\022TargetRendersEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google.cloud.de" - + "ploy.v1.Release.TargetRender:\0028\001\0327\n\025Depl" - + "oyParametersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\"W\n\013RenderState\022\034\n\030RENDER_STATE" - + "_UNSPECIFIED\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006FAILED\020" - + "\002\022\017\n\013IN_PROGRESS\020\003:\212\001\352A\206\001\n\"clouddeploy.g" - + "oogleapis.com/Release\022`projects/{project" - + "}/locations/{location}/deliveryPipelines" - + "/{delivery_pipeline}/releases/{release}\"" - + "+\n\rBuildArtifact\022\r\n\005image\030\003 \001(\t\022\013\n\003tag\030\002" - + " \001(\t\"\262\003\n\016TargetArtifact\022\034\n\014artifact_uri\030" - + "\004 \001(\tB\004\342A\001\003H\000\022\"\n\024skaffold_config_path\030\002 " - + "\001(\tB\004\342A\001\003\022\033\n\rmanifest_path\030\003 \001(\tB\004\342A\001\003\022Y" - + "\n\017phase_artifacts\030\005 \003(\0132:.google.cloud.d" - + "eploy.v1.TargetArtifact.PhaseArtifactsEn" - + "tryB\004\342A\001\003\032r\n\rPhaseArtifact\022\"\n\024skaffold_c" - + "onfig_path\030\001 \001(\tB\004\342A\001\003\022\033\n\rmanifest_path\030" - + "\003 \001(\tB\004\342A\001\003\022 \n\022job_manifests_path\030\004 \001(\tB" - + "\004\342A\001\003\032k\n\023PhaseArtifactsEntry\022\013\n\003key\030\001 \001(" - + "\t\022C\n\005value\030\002 \001(\01324.google.cloud.deploy.v" - + "1.TargetArtifact.PhaseArtifact:\0028\001B\005\n\003ur" - + "i\"J\n\016DeployArtifact\022\032\n\014artifact_uri\030\001 \001(" - + "\tB\004\342A\001\003\022\034\n\016manifest_paths\030\002 \003(\tB\004\342A\001\003\"N\n" - + "\026CloudRunRenderMetadata\0224\n\007service\030\001 \001(\t" - + "B#\342A\001\003\372A\034\n\032run.googleapis.com/Service\"Y\n" - + "\016RenderMetadata\022G\n\tcloud_run\030\001 \001(\0132..goo" - + "gle.cloud.deploy.v1.CloudRunRenderMetada" - + "taB\004\342A\001\003\"\274\001\n\023ListReleasesRequest\022D\n\006pare" - + "nt\030\001 \001(\tB4\342A\001\002\372A-\n+clouddeploy.googleapi" - + "s.com/DeliveryPipeline\022\027\n\tpage_size\030\002 \001(" - + "\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006fil" - + "ter\030\004 \001(\tB\004\342A\001\001\022\026\n\010order_by\030\005 \001(\tB\004\342A\001\001\"" - + "w\n\024ListReleasesResponse\0221\n\010releases\030\001 \003(" - + "\0132\037.google.cloud.deploy.v1.Release\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t" - + "\"N\n\021GetReleaseRequest\0229\n\004name\030\001 \001(\tB+\342A\001" - + "\002\372A$\n\"clouddeploy.googleapis.com/Release" - + "\"\345\001\n\024CreateReleaseRequest\022D\n\006parent\030\001 \001(" - + "\tB4\342A\001\002\372A-\n+clouddeploy.googleapis.com/D" - + "eliveryPipeline\022\030\n\nrelease_id\030\002 \001(\tB\004\342A\001" - + "\002\0226\n\007release\030\003 \001(\0132\037.google.cloud.deploy" - + ".v1.ReleaseB\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(\tB\004\342" - + "A\001\001\022\033\n\rvalidate_only\030\005 \001(\010B\004\342A\001\001\"\325\016\n\007Rol" - + "lout\022\022\n\004name\030\001 \001(\tB\004\342A\001\001\022\021\n\003uid\030\002 \001(\tB\004\342" - + "A\001\003\022\023\n\013description\030\003 \001(\t\022E\n\013annotations\030" - + "\004 \003(\01320.google.cloud.deploy.v1.Rollout.A" - + "nnotationsEntry\022;\n\006labels\030\005 \003(\0132+.google" - + ".cloud.deploy.v1.Rollout.LabelsEntry\0225\n\013" - + "create_time\030\006 \001(\0132\032.google.protobuf.Time" - + "stampB\004\342A\001\003\0226\n\014approve_time\030\007 \001(\0132\032.goog" - + "le.protobuf.TimestampB\004\342A\001\003\0226\n\014enqueue_t" - + "ime\030\010 \001(\0132\032.google.protobuf.TimestampB\004\342" - + "A\001\003\022;\n\021deploy_start_time\030\t \001(\0132\032.google." - + "protobuf.TimestampB\004\342A\001\003\0229\n\017deploy_end_t" - + "ime\030\n \001(\0132\032.google.protobuf.TimestampB\004\342" - + "A\001\003\022\027\n\ttarget_id\030\022 \001(\tB\004\342A\001\002\022K\n\016approval" - + "_state\030\014 \001(\0162-.google.cloud.deploy.v1.Ro" - + "llout.ApprovalStateB\004\342A\001\003\022:\n\005state\030\r \001(\016" - + "2%.google.cloud.deploy.v1.Rollout.StateB" - + "\004\342A\001\003\022\034\n\016failure_reason\030\016 \001(\tB\004\342A\001\003\022A\n\017d" - + "eploying_build\030\021 \001(\tB(\342A\001\003\372A!\n\037cloudbuil" - + "d.googleapis.com/Build\022\014\n\004etag\030\020 \001(\t\022P\n\024" - + "deploy_failure_cause\030\023 \001(\0162,.google.clou" - + "d.deploy.v1.Rollout.FailureCauseB\004\342A\001\003\0223" - + "\n\006phases\030\027 \003(\0132\035.google.cloud.deploy.v1." - + "PhaseB\004\342A\001\003\0228\n\010metadata\030\030 \001(\0132 .google.c" - + "loud.deploy.v1.MetadataB\004\342A\001\003\022 \n\022control" - + "ler_rollout\030\031 \001(\tB\004\342A\001\003\022!\n\023rollback_of_r" - + "ollout\030\032 \001(\tB\004\342A\001\003\022%\n\027rolled_back_by_rol" - + "louts\030\033 \003(\tB\004\342A\001\003\0322\n\020AnnotationsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"{\n\r" - + "ApprovalState\022\036\n\032APPROVAL_STATE_UNSPECIF" - + "IED\020\000\022\022\n\016NEEDS_APPROVAL\020\001\022\032\n\026DOES_NOT_NE" - + "ED_APPROVAL\020\002\022\014\n\010APPROVED\020\003\022\014\n\010REJECTED\020" - + "\004\"\304\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r\n\tSU" - + "CCEEDED\020\001\022\n\n\006FAILED\020\002\022\017\n\013IN_PROGRESS\020\003\022\024" - + "\n\020PENDING_APPROVAL\020\004\022\025\n\021APPROVAL_REJECTE" - + "D\020\005\022\013\n\007PENDING\020\006\022\023\n\017PENDING_RELEASE\020\007\022\016\n" - + "\nCANCELLING\020\010\022\r\n\tCANCELLED\020\t\022\n\n\006HALTED\020\n" - + "\"\345\001\n\014FailureCause\022\035\n\031FAILURE_CAUSE_UNSPE" - + "CIFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAILABLE\020\001\022\024\n" - + "\020EXECUTION_FAILED\020\002\022\025\n\021DEADLINE_EXCEEDED" - + "\020\003\022\022\n\016RELEASE_FAILED\020\004\022\025\n\021RELEASE_ABANDO" - + "NED\020\005\022!\n\035VERIFICATION_CONFIG_NOT_FOUND\020\006" - + "\022\036\n\032CLOUD_BUILD_REQUEST_FAILED\020\007:\235\001\352A\231\001\n" - + "\"clouddeploy.googleapis.com/Rollout\022spro" - + "jects/{project}/locations/{location}/del" - + "iveryPipelines/{delivery_pipeline}/relea" - + "ses/{release}/rollouts/{rollout}\"\232\001\n\010Met" - + "adata\022A\n\tcloud_run\030\001 \001(\0132(.google.cloud." - + "deploy.v1.CloudRunMetadataB\004\342A\001\003\022K\n\nauto" - + "mation\030\002 \001(\01321.google.cloud.deploy.v1.Au" - + "tomationRolloutMetadataB\004\342A\001\003\"Y\n\024DeployJ" - + "obRunMetadata\022A\n\tcloud_run\030\001 \001(\0132(.googl" - + "e.cloud.deploy.v1.CloudRunMetadataB\004\342A\001\003" - + "\"\252\001\n\020CloudRunMetadata\0224\n\007service\030\001 \001(\tB#" - + "\342A\001\003\372A\034\n\032run.googleapis.com/Service\022\032\n\014s" - + "ervice_urls\030\002 \003(\tB\004\342A\001\003\022\026\n\010revision\030\003 \001(" - + "\tB\004\342A\001\003\022,\n\003job\030\004 \001(\tB\037\342A\001\003\372A\030\n\026run.googl" - + "eapis.com/Job\"\216\001\n\031AutomationRolloutMetad" - + "ata\022$\n\026promote_automation_run\030\001 \001(\tB\004\342A\001" - + "\003\022%\n\027advance_automation_runs\030\002 \003(\tB\004\342A\001\003" - + "\022$\n\026repair_automation_runs\030\003 \003(\tB\004\342A\001\003\"\201" - + "\003\n\005Phase\022\020\n\002id\030\001 \001(\tB\004\342A\001\003\0228\n\005state\030\003 \001(" - + "\0162#.google.cloud.deploy.v1.Phase.StateB\004" - + "\342A\001\003\022\032\n\014skip_message\030\006 \001(\tB\004\342A\001\003\022G\n\017depl" - + "oyment_jobs\030\004 \001(\0132&.google.cloud.deploy." - + "v1.DeploymentJobsB\004\342A\001\003H\000\022L\n\022child_rollo", - "ut_jobs\030\005 \001(\0132(.google.cloud.deploy.v1.C" - + "hildRolloutJobsB\004\342A\001\003H\000\"q\n\005State\022\025\n\021STAT" - + "E_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\017\n\013IN_PROGR" - + "ESS\020\002\022\r\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\022\013\n\007ABOR" - + "TED\020\005\022\013\n\007SKIPPED\020\006B\006\n\004jobs\"\363\001\n\016Deploymen" - + "tJobs\0225\n\ndeploy_job\030\001 \001(\0132\033.google.cloud" - + ".deploy.v1.JobB\004\342A\001\003\0225\n\nverify_job\030\002 \001(\013" - + "2\033.google.cloud.deploy.v1.JobB\004\342A\001\003\0228\n\rp" - + "redeploy_job\030\003 \001(\0132\033.google.cloud.deploy" - + ".v1.JobB\004\342A\001\003\0229\n\016postdeploy_job\030\004 \001(\0132\033." - + "google.cloud.deploy.v1.JobB\004\342A\001\003\"\223\001\n\020Chi" - + "ldRolloutJobs\022>\n\023create_rollout_jobs\030\001 \003" - + "(\0132\033.google.cloud.deploy.v1.JobB\004\342A\001\003\022?\n" - + "\024advance_rollout_jobs\030\002 \003(\0132\033.google.clo" - + "ud.deploy.v1.JobB\004\342A\001\003\"\201\006\n\003Job\022\020\n\002id\030\001 \001" - + "(\tB\004\342A\001\003\0226\n\005state\030\002 \001(\0162!.google.cloud.d" - + "eploy.v1.Job.StateB\004\342A\001\003\022\032\n\014skip_message" - + "\030\010 \001(\tB\004\342A\001\003\022;\n\007job_run\030\003 \001(\tB*\342A\001\003\372A#\n!" - + "clouddeploy.googleapis.com/JobRun\022=\n\ndep" - + "loy_job\030\004 \001(\0132!.google.cloud.deploy.v1.D" - + "eployJobB\004\342A\001\003H\000\022=\n\nverify_job\030\005 \001(\0132!.g" - + "oogle.cloud.deploy.v1.VerifyJobB\004\342A\001\003H\000\022" - + "C\n\rpredeploy_job\030\t \001(\0132$.google.cloud.de" - + "ploy.v1.PredeployJobB\004\342A\001\003H\000\022E\n\016postdepl" - + "oy_job\030\n \001(\0132%.google.cloud.deploy.v1.Po" - + "stdeployJobB\004\342A\001\003H\000\022W\n\030create_child_roll" - + "out_job\030\006 \001(\0132-.google.cloud.deploy.v1.C" - + "reateChildRolloutJobB\004\342A\001\003H\000\022Y\n\031advance_" - + "child_rollout_job\030\007 \001(\0132..google.cloud.d" - + "eploy.v1.AdvanceChildRolloutJobB\004\342A\001\003H\000\"" - + "\214\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PEND" - + "ING\020\001\022\014\n\010DISABLED\020\002\022\017\n\013IN_PROGRESS\020\003\022\r\n\t" - + "SUCCEEDED\020\004\022\n\n\006FAILED\020\005\022\013\n\007ABORTED\020\006\022\013\n\007" - + "SKIPPED\020\007\022\013\n\007IGNORED\020\010B\n\n\010job_type\"\013\n\tDe" - + "ployJob\"\013\n\tVerifyJob\"%\n\014PredeployJob\022\025\n\007" - + "actions\030\001 \003(\tB\004\342A\001\003\"&\n\rPostdeployJob\022\025\n\007" - + "actions\030\001 \003(\tB\004\342A\001\003\"\027\n\025CreateChildRollou" - + "tJob\"\030\n\026AdvanceChildRolloutJob\"\263\001\n\023ListR" - + "olloutsRequest\022;\n\006parent\030\001 \001(\tB+\342A\001\002\372A$\n" - + "\"clouddeploy.googleapis.com/Release\022\027\n\tp" - + "age_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\t" - + "B\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n\010order_by" - + "\030\005 \001(\tB\004\342A\001\001\"w\n\024ListRolloutsResponse\0221\n\010" - + "rollouts\030\001 \003(\0132\037.google.cloud.deploy.v1." - + "Rollout\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" - + "achable\030\003 \003(\t\"N\n\021GetRolloutRequest\0229\n\004na" - + "me\030\001 \001(\tB+\342A\001\002\372A$\n\"clouddeploy.googleapi" - + "s.com/Rollout\"\375\001\n\024CreateRolloutRequest\022;" - + "\n\006parent\030\001 \001(\tB+\342A\001\002\372A$\n\"clouddeploy.goo" - + "gleapis.com/Release\022\030\n\nrollout_id\030\002 \001(\tB" - + "\004\342A\001\002\0226\n\007rollout\030\003 \001(\0132\037.google.cloud.de" - + "ploy.v1.RolloutB\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(" - + "\tB\004\342A\001\001\022\033\n\rvalidate_only\030\005 \001(\010B\004\342A\001\001\022\037\n\021" - + "starting_phase_id\030\007 \001(\tB\004\342A\001\001\"\207\002\n\021Operat" - + "ionMetadata\0225\n\013create_time\030\001 \001(\0132\032.googl" - + "e.protobuf.TimestampB\004\342A\001\003\0222\n\010end_time\030\002" - + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\024" - + "\n\006target\030\003 \001(\tB\004\342A\001\003\022\022\n\004verb\030\004 \001(\tB\004\342A\001\003" - + "\022\034\n\016status_message\030\005 \001(\tB\004\342A\001\003\022$\n\026reques" - + "ted_cancellation\030\006 \001(\010B\004\342A\001\003\022\031\n\013api_vers" - + "ion\030\007 \001(\tB\004\342A\001\003\"j\n\025ApproveRolloutRequest" - + "\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A$\n\"clouddeploy.goo" - + "gleapis.com/Rollout\022\026\n\010approved\030\002 \001(\010B\004\342" - + "A\001\002\"\030\n\026ApproveRolloutResponse\"j\n\025Advance" - + "RolloutRequest\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A$\n\"c" - + "louddeploy.googleapis.com/Rollout\022\026\n\010pha" - + "se_id\030\002 \001(\tB\004\342A\001\002\"\030\n\026AdvanceRolloutRespo" - + "nse\"Q\n\024CancelRolloutRequest\0229\n\004name\030\001 \001(" + + "/DeliveryPipeline\022\027\n\ttarget_id\030\002 \001(\tB\004\342A" + + "\001\002\022\030\n\nrollout_id\030\003 \001(\tB\004\342A\001\002\022\030\n\nrelease_" + + "id\030\004 \001(\tB\004\342A\001\001\022\"\n\024rollout_to_roll_back\030\005" + + " \001(\tB\004\342A\001\001\022K\n\017rollback_config\030\006 \001(\0132,.go" + + "ogle.cloud.deploy.v1.RollbackTargetConfi" + + "gB\004\342A\001\001\022\033\n\rvalidate_only\030\007 \001(\010B\004\342A\001\001\"_\n\026" + + "RollbackTargetResponse\022E\n\017rollback_confi" + + "g\030\001 \001(\0132,.google.cloud.deploy.v1.Rollbac" + + "kTargetConfig\"\210\t\n\006Target\022\022\n\004name\030\001 \001(\tB\004" + + "\342A\001\001\022\027\n\ttarget_id\030\002 \001(\tB\004\342A\001\003\022\021\n\003uid\030\003 \001" + + "(\tB\004\342A\001\003\022\031\n\013description\030\004 \001(\tB\004\342A\001\001\022J\n\013a" + + "nnotations\030\005 \003(\0132/.google.cloud.deploy.v" + + "1.Target.AnnotationsEntryB\004\342A\001\001\022@\n\006label" + + "s\030\006 \003(\0132*.google.cloud.deploy.v1.Target." + + "LabelsEntryB\004\342A\001\001\022\036\n\020require_approval\030\r " + + "\001(\010B\004\342A\001\001\0225\n\013create_time\030\010 \001(\0132\032.google." + + "protobuf.TimestampB\004\342A\001\003\0225\n\013update_time\030" + + "\t \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" + + "7\n\003gke\030\017 \001(\0132\".google.cloud.deploy.v1.Gk" + + "eClusterB\004\342A\001\001H\000\022E\n\016anthos_cluster\030\021 \001(\013" + + "2%.google.cloud.deploy.v1.AnthosClusterB" + + "\004\342A\001\001H\000\022=\n\003run\030\022 \001(\0132(.google.cloud.depl" + + "oy.v1.CloudRunLocationB\004\342A\001\001H\000\022A\n\014multi_" + + "target\030\023 \001(\0132#.google.cloud.deploy.v1.Mu" + + "ltiTargetB\004\342A\001\001H\000\022C\n\rcustom_target\030\025 \001(\013" + + "2$.google.cloud.deploy.v1.CustomTargetB\004" + + "\342A\001\001H\000\022\022\n\004etag\030\014 \001(\tB\004\342A\001\001\022B\n\021execution_" + + "configs\030\020 \003(\0132\'.google.cloud.deploy.v1.E" + + "xecutionConfig\022U\n\021deploy_parameters\030\024 \003(" + + "\01324.google.cloud.deploy.v1.Target.Deploy" + + "ParametersEntryB\004\342A\001\001\0322\n\020AnnotationsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\0327\n\025DeployParametersEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001:`\352A]\n!clouddeploy.goog" + + "leapis.com/Target\0228projects/{project}/lo" + + "cations/{location}/targets/{target}B\023\n\021d" + + "eployment_target\"\326\004\n\017ExecutionConfig\022W\n\006" + + "usages\030\001 \003(\0162A.google.cloud.deploy.v1.Ex" + + "ecutionConfig.ExecutionEnvironmentUsageB" + + "\004\342A\001\002\022A\n\014default_pool\030\002 \001(\0132#.google.clo" + + "ud.deploy.v1.DefaultPoolB\004\342A\001\001H\000\022A\n\014priv" + + "ate_pool\030\003 \001(\0132#.google.cloud.deploy.v1." + + "PrivatePoolB\004\342A\001\001H\000\022B\n\013worker_pool\030\004 \001(\t" + + "B-\342A\001\001\372A&\n$cloudbuild.googleapis.com/Wor" + + "kerPool\022\035\n\017service_account\030\005 \001(\tB\004\342A\001\001\022\036" + + "\n\020artifact_storage\030\006 \001(\tB\004\342A\001\001\022:\n\021execut" + + "ion_timeout\030\007 \001(\0132\031.google.protobuf.Dura" + + "tionB\004\342A\001\001\"\213\001\n\031ExecutionEnvironmentUsage" + + "\022+\n\'EXECUTION_ENVIRONMENT_USAGE_UNSPECIF" + + "IED\020\000\022\n\n\006RENDER\020\001\022\n\n\006DEPLOY\020\002\022\n\n\006VERIFY\020" + + "\003\022\r\n\tPREDEPLOY\020\004\022\016\n\nPOSTDEPLOY\020\005B\027\n\025exec" + + "ution_environment\"L\n\013DefaultPool\022\035\n\017serv" + + "ice_account\030\001 \001(\tB\004\342A\001\001\022\036\n\020artifact_stor" + + "age\030\002 \001(\tB\004\342A\001\001\"\220\001\n\013PrivatePool\022B\n\013worke" + + "r_pool\030\001 \001(\tB-\342A\001\002\372A&\n$cloudbuild.google" + + "apis.com/WorkerPool\022\035\n\017service_account\030\002" + + " \001(\tB\004\342A\001\001\022\036\n\020artifact_storage\030\003 \001(\tB\004\342A" + + "\001\001\"_\n\nGkeCluster\0226\n\007cluster\030\001 \001(\tB%\372A\"\n " + + "container.googleapis.com/Cluster\022\031\n\013inte" + + "rnal_ip\030\002 \001(\010B\004\342A\001\001\"J\n\rAnthosCluster\0229\n\n" + + "membership\030\001 \001(\tB%\372A\"\n gkehub.googleapis" + + ".com/Membership\"P\n\020CloudRunLocation\022<\n\010l" + + "ocation\030\001 \001(\tB*\342A\001\002\372A#\n!locations.google" + + "apis.com/Location\"\'\n\013MultiTarget\022\030\n\ntarg" + + "et_ids\030\001 \003(\tB\004\342A\001\002\"`\n\014CustomTarget\022P\n\022cu" + + "stom_target_type\030\001 \001(\tB4\342A\001\002\372A-\n+cloudde" + + "ploy.googleapis.com/CustomTargetType\"\261\001\n" + + "\022ListTargetsRequest\022:\n\006parent\030\001 \001(\tB*\342A\001" + + "\002\372A#\022!clouddeploy.googleapis.com/Target\022" + + "\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003" + + " \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n\010orde" + + "r_by\030\005 \001(\tB\004\342A\001\001\"t\n\023ListTargetsResponse\022" + + "/\n\007targets\030\001 \003(\0132\036.google.cloud.deploy.v" + + "1.Target\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unr" + + "eachable\030\003 \003(\t\"L\n\020GetTargetRequest\0228\n\004na" + + "me\030\001 \001(\tB*\342A\001\002\372A#\n!clouddeploy.googleapi" + + "s.com/Target\"\327\001\n\023CreateTargetRequest\022:\n\006" + + "parent\030\001 \001(\tB*\342A\001\002\372A#\022!clouddeploy.googl" + + "eapis.com/Target\022\027\n\ttarget_id\030\002 \001(\tB\004\342A\001" + + "\002\0224\n\006target\030\003 \001(\0132\036.google.cloud.deploy." + + "v1.TargetB\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001" + + "\001\022\033\n\rvalidate_only\030\005 \001(\010B\004\342A\001\001\"\326\001\n\023Updat" + + "eTargetRequest\0225\n\013update_mask\030\001 \001(\0132\032.go" + + "ogle.protobuf.FieldMaskB\004\342A\001\002\0224\n\006target\030" + + "\002 \001(\0132\036.google.cloud.deploy.v1.TargetB\004\342" + + "A\001\002\022\030\n\nrequest_id\030\003 \001(\tB\004\342A\001\001\022\033\n\rallow_m" + + "issing\030\004 \001(\010B\004\342A\001\001\022\033\n\rvalidate_only\030\005 \001(" + + "\010B\004\342A\001\001\"\267\001\n\023DeleteTargetRequest\0228\n\004name\030" + + "\001 \001(\tB*\342A\001\002\372A#\n!clouddeploy.googleapis.c" + + "om/Target\022\030\n\nrequest_id\030\002 \001(\tB\004\342A\001\001\022\033\n\ra" + + "llow_missing\030\003 \001(\010B\004\342A\001\001\022\033\n\rvalidate_onl" + + "y\030\004 \001(\010B\004\342A\001\001\022\022\n\004etag\030\005 \001(\tB\004\342A\001\001\"\340\005\n\020Cu" + + "stomTargetType\022\022\n\004name\030\001 \001(\tB\004\342A\001\001\022#\n\025cu" + + "stom_target_type_id\030\002 \001(\tB\004\342A\001\003\022\021\n\003uid\030\003" + + " \001(\tB\004\342A\001\003\022\031\n\013description\030\004 \001(\tB\004\342A\001\001\022T\n" + + "\013annotations\030\005 \003(\01329.google.cloud.deploy" + + ".v1.CustomTargetType.AnnotationsEntryB\004\342" + + "A\001\001\022J\n\006labels\030\006 \003(\01324.google.cloud.deplo" + + "y.v1.CustomTargetType.LabelsEntryB\004\342A\001\001\022" + + "5\n\013create_time\030\007 \001(\0132\032.google.protobuf.T" + + "imestampB\004\342A\001\003\0225\n\013update_time\030\010 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\004\342A\001\003\022\022\n\004etag\030\t " + + "\001(\tB\004\342A\001\001\022M\n\016custom_actions\030\n \001(\01323.goog" + + "le.cloud.deploy.v1.CustomTargetSkaffoldA" + + "ctionsH\000\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\200\001\352A}\n+cloud" + + "deploy.googleapis.com/CustomTargetType\022N" + + "projects/{project}/locations/{location}/" + + "customTargetTypes/{custom_target_type}B\014" + + "\n\ndefinition\"\250\001\n\033CustomTargetSkaffoldAct" + + "ions\022\033\n\rrender_action\030\001 \001(\tB\004\342A\001\001\022\033\n\rdep" + + "loy_action\030\002 \001(\tB\004\342A\001\002\022O\n\030include_skaffo" + + "ld_modules\030\003 \003(\0132\'.google.cloud.deploy.v" + + "1.SkaffoldModulesB\004\342A\001\001\"\346\002\n\017SkaffoldModu" + + "les\022\025\n\007configs\030\001 \003(\tB\004\342A\001\001\022H\n\003git\030\002 \001(\0132" + + "9.google.cloud.deploy.v1.SkaffoldModules" + + ".SkaffoldGitSourceH\000\022Y\n\024google_cloud_sto" + + "rage\030\003 \001(\01329.google.cloud.deploy.v1.Skaf" + + "foldModules.SkaffoldGCSSourceH\000\032N\n\021Skaff" + + "oldGitSource\022\022\n\004repo\030\001 \001(\tB\004\342A\001\002\022\022\n\004path" + + "\030\002 \001(\tB\004\342A\001\001\022\021\n\003ref\030\003 \001(\tB\004\342A\001\001\032=\n\021Skaff" + + "oldGCSSource\022\024\n\006source\030\001 \001(\tB\004\342A\001\002\022\022\n\004pa" + + "th\030\002 \001(\tB\004\342A\001\001B\010\n\006source\"\305\001\n\034ListCustomT" + + "argetTypesRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372" + + "A-\022+clouddeploy.googleapis.com/CustomTar" + + "getType\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage" + + "_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001" + + "\022\026\n\010order_by\030\005 \001(\tB\004\342A\001\001\"\224\001\n\035ListCustomT" + + "argetTypesResponse\022E\n\023custom_target_type" + + "s\030\001 \003(\0132(.google.cloud.deploy.v1.CustomT" + + "argetType\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013un" + + "reachable\030\003 \003(\t\"`\n\032GetCustomTargetTypeRe" + + "quest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+clouddeplo" + + "y.googleapis.com/CustomTargetType\"\215\002\n\035Cr" + + "eateCustomTargetTypeRequest\022D\n\006parent\030\001 " + + "\001(\tB4\342A\001\002\372A-\022+clouddeploy.googleapis.com" + + "/CustomTargetType\022#\n\025custom_target_type_" + + "id\030\002 \001(\tB\004\342A\001\002\022J\n\022custom_target_type\030\003 \001" + + "(\0132(.google.cloud.deploy.v1.CustomTarget" + + "TypeB\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\022\033\n\r" + + "validate_only\030\005 \001(\010B\004\342A\001\001\"\366\001\n\035UpdateCust" + + "omTargetTypeRequest\0225\n\013update_mask\030\001 \001(\013" + + "2\032.google.protobuf.FieldMaskB\004\342A\001\002\022J\n\022cu" + + "stom_target_type\030\002 \001(\0132(.google.cloud.de" + + "ploy.v1.CustomTargetTypeB\004\342A\001\002\022\030\n\nreques" + + "t_id\030\003 \001(\tB\004\342A\001\001\022\033\n\rallow_missing\030\004 \001(\010B" + + "\004\342A\001\001\022\033\n\rvalidate_only\030\005 \001(\010B\004\342A\001\001\"\313\001\n\035D" + + "eleteCustomTargetTypeRequest\022B\n\004name\030\001 \001" + + "(\tB4\342A\001\002\372A-\n+clouddeploy.googleapis.com/" + + "CustomTargetType\022\030\n\nrequest_id\030\002 \001(\tB\004\342A" + + "\001\001\022\033\n\rallow_missing\030\003 \001(\010B\004\342A\001\001\022\033\n\rvalid" + + "ate_only\030\004 \001(\010B\004\342A\001\001\022\022\n\004etag\030\005 \001(\tB\004\342A\001\001" + + "\"\221\001\n\017TargetAttribute\022\n\n\002id\030\001 \001(\t\022C\n\006labe" + + "ls\030\002 \003(\01323.google.cloud.deploy.v1.Target" + + "Attribute.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\301\027\n\007Release" + + "\022\022\n\004name\030\001 \001(\tB\004\342A\001\001\022\021\n\003uid\030\002 \001(\tB\004\342A\001\003\022" + + "\023\n\013description\030\003 \001(\t\022E\n\013annotations\030\004 \003(" + + "\01320.google.cloud.deploy.v1.Release.Annot" + + "ationsEntry\022;\n\006labels\030\005 \003(\0132+.google.clo" + + "ud.deploy.v1.Release.LabelsEntry\022\027\n\taban" + + "doned\030\027 \001(\010B\004\342A\001\003\0225\n\013create_time\030\006 \001(\0132\032" + + ".google.protobuf.TimestampB\004\342A\001\003\022;\n\021rend" + + "er_start_time\030\007 \001(\0132\032.google.protobuf.Ti" + + "mestampB\004\342A\001\003\0229\n\017render_end_time\030\010 \001(\0132\032" + + ".google.protobuf.TimestampB\004\342A\001\003\022\033\n\023skaf" + + "fold_config_uri\030\021 \001(\t\022\034\n\024skaffold_config" + + "_path\030\t \001(\t\022>\n\017build_artifacts\030\n \003(\0132%.g" + + "oogle.cloud.deploy.v1.BuildArtifact\022R\n\032d" + + "elivery_pipeline_snapshot\030\013 \001(\0132(.google" + + ".cloud.deploy.v1.DeliveryPipelineB\004\342A\001\003\022" + + ">\n\020target_snapshots\030\014 \003(\0132\036.google.cloud" + + ".deploy.v1.TargetB\004\342A\001\003\022T\n\034custom_target" + + "_type_snapshots\030\033 \003(\0132(.google.cloud.dep" + + "loy.v1.CustomTargetTypeB\004\342A\001\003\022G\n\014render_" + + "state\030\r \001(\0162+.google.cloud.deploy.v1.Rel" + + "ease.RenderStateB\004\342A\001\003\022\014\n\004etag\030\020 \001(\t\022\030\n\020" + + "skaffold_version\030\023 \001(\t\022T\n\020target_artifac" + + "ts\030\024 \003(\01324.google.cloud.deploy.v1.Releas" + + "e.TargetArtifactsEntryB\004\342A\001\003\022P\n\016target_r" + + "enders\030\026 \003(\01322.google.cloud.deploy.v1.Re" + + "lease.TargetRendersEntryB\004\342A\001\003\022I\n\tcondit" + + "ion\030\030 \001(\01320.google.cloud.deploy.v1.Relea" + + "se.ReleaseConditionB\004\342A\001\003\022V\n\021deploy_para" + + "meters\030\031 \003(\01325.google.cloud.deploy.v1.Re" + + "lease.DeployParametersEntryB\004\342A\001\001\032\331\005\n\014Ta" + + "rgetRender\022A\n\017rendering_build\030\001 \001(\tB(\342A\001" + + "\003\372A!\n\037cloudbuild.googleapis.com/Build\022]\n" + + "\017rendering_state\030\002 \001(\0162>.google.cloud.de" + + "ploy.v1.Release.TargetRender.TargetRende" + + "rStateB\004\342A\001\003\022>\n\010metadata\030\006 \001(\0132&.google." + + "cloud.deploy.v1.RenderMetadataB\004\342A\001\003\022V\n\r" + + "failure_cause\030\004 \001(\01629.google.cloud.deplo" + + "y.v1.Release.TargetRender.FailureCauseB\004" + + "\342A\001\003\022\035\n\017failure_message\030\005 \001(\tB\004\342A\001\003\"d\n\021T" + + "argetRenderState\022#\n\037TARGET_RENDER_STATE_" + + "UNSPECIFIED\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006FAILED\020\002" + + "\022\017\n\013IN_PROGRESS\020\003\"\211\002\n\014FailureCause\022\035\n\031FA" + + "ILURE_CAUSE_UNSPECIFIED\020\000\022\033\n\027CLOUD_BUILD" + + "_UNAVAILABLE\020\001\022\024\n\020EXECUTION_FAILED\020\002\022\036\n\032" + + "CLOUD_BUILD_REQUEST_FAILED\020\003\022!\n\035VERIFICA" + + "TION_CONFIG_NOT_FOUND\020\004\022\033\n\027CUSTOM_ACTION" + + "_NOT_FOUND\020\005\022%\n!DEPLOYMENT_STRATEGY_NOT_" + + "SUPPORTED\020\006\022 \n\034RENDER_FEATURE_NOT_SUPPOR" + + "TED\020\007\032\'\n\025ReleaseReadyCondition\022\016\n\006status" + + "\030\001 \001(\010\032\362\001\n\032SkaffoldSupportedCondition\022\016\n" + + "\006status\030\001 \001(\010\022L\n\026skaffold_support_state\030" + + "\002 \001(\0162,.google.cloud.deploy.v1.SkaffoldS" + + "upportState\0229\n\025maintenance_mode_time\030\003 \001" + + "(\0132\032.google.protobuf.Timestamp\022;\n\027suppor" + + "t_expiration_time\030\004 \001(\0132\032.google.protobu" + + "f.Timestamp\032\314\001\n\020ReleaseCondition\022V\n\027rele" + + "ase_ready_condition\030\001 \001(\01325.google.cloud" + + ".deploy.v1.Release.ReleaseReadyCondition" + + "\022`\n\034skaffold_supported_condition\030\002 \001(\0132:" + + ".google.cloud.deploy.v1.Release.Skaffold" + + "SupportedCondition\0322\n\020AnnotationsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032^\n" + + "\024TargetArtifactsEntry\022\013\n\003key\030\001 \001(\t\0225\n\005va" + + "lue\030\002 \001(\0132&.google.cloud.deploy.v1.Targe" + + "tArtifact:\0028\001\032b\n\022TargetRendersEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google.cloud.d" + + "eploy.v1.Release.TargetRender:\0028\001\0327\n\025Dep" + + "loyParametersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001\"W\n\013RenderState\022\034\n\030RENDER_STAT" + + "E_UNSPECIFIED\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006FAILED" + + "\020\002\022\017\n\013IN_PROGRESS\020\003:\212\001\352A\206\001\n\"clouddeploy." + + "googleapis.com/Release\022`projects/{projec" + + "t}/locations/{location}/deliveryPipeline" + + "s/{delivery_pipeline}/releases/{release}" + + "\"+\n\rBuildArtifact\022\r\n\005image\030\003 \001(\t\022\013\n\003tag\030" + + "\002 \001(\t\"\262\003\n\016TargetArtifact\022\034\n\014artifact_uri" + + "\030\004 \001(\tB\004\342A\001\003H\000\022\"\n\024skaffold_config_path\030\002" + + " \001(\tB\004\342A\001\003\022\033\n\rmanifest_path\030\003 \001(\tB\004\342A\001\003\022" + + "Y\n\017phase_artifacts\030\005 \003(\0132:.google.cloud." + + "deploy.v1.TargetArtifact.PhaseArtifactsE" + + "ntryB\004\342A\001\003\032r\n\rPhaseArtifact\022\"\n\024skaffold_" + + "config_path\030\001 \001(\tB\004\342A\001\003\022\033\n\rmanifest_path" + + "\030\003 \001(\tB\004\342A\001\003\022 \n\022job_manifests_path\030\004 \001(\t" + + "B\004\342A\001\003\032k\n\023PhaseArtifactsEntry\022\013\n\003key\030\001 \001" + + "(\t\022C\n\005value\030\002 \001(\01324.google.cloud.deploy." + + "v1.TargetArtifact.PhaseArtifact:\0028\001B\005\n\003u" + + "ri\"J\n\016DeployArtifact\022\032\n\014artifact_uri\030\001 \001" + + "(\tB\004\342A\001\003\022\034\n\016manifest_paths\030\002 \003(\tB\004\342A\001\003\"N" + + "\n\026CloudRunRenderMetadata\0224\n\007service\030\001 \001(" + + "\tB#\342A\001\003\372A\034\n\032run.googleapis.com/Service\"\227" + + "\001\n\016RenderMetadata\022G\n\tcloud_run\030\001 \001(\0132..g" + + "oogle.cloud.deploy.v1.CloudRunRenderMeta" + + "dataB\004\342A\001\003\022<\n\006custom\030\002 \001(\0132&.google.clou" + + "d.deploy.v1.CustomMetadataB\004\342A\001\003\"\274\001\n\023Lis" + + "tReleasesRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A" + + "-\n+clouddeploy.googleapis.com/DeliveryPi" + + "peline\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_" + + "token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001\022" + + "\026\n\010order_by\030\005 \001(\tB\004\342A\001\001\"w\n\024ListReleasesR" + + "esponse\0221\n\010releases\030\001 \003(\0132\037.google.cloud" + + ".deploy.v1.Release\022\027\n\017next_page_token\030\002 " + + "\001(\t\022\023\n\013unreachable\030\003 \003(\t\"N\n\021GetReleaseRe", + "quest\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A$\n\"clouddeplo" + + "y.googleapis.com/Release\"\345\001\n\024CreateRelea" + + "seRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\n+clou" + + "ddeploy.googleapis.com/DeliveryPipeline\022" + + "\030\n\nrelease_id\030\002 \001(\tB\004\342A\001\002\0226\n\007release\030\003 \001" + + "(\0132\037.google.cloud.deploy.v1.ReleaseB\004\342A\001" + + "\002\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\022\033\n\rvalidate_" + + "only\030\005 \001(\010B\004\342A\001\001\"\372\016\n\007Rollout\022\022\n\004name\030\001 \001" + + "(\tB\004\342A\001\001\022\021\n\003uid\030\002 \001(\tB\004\342A\001\003\022\023\n\013descripti" + + "on\030\003 \001(\t\022E\n\013annotations\030\004 \003(\01320.google.c" + + "loud.deploy.v1.Rollout.AnnotationsEntry\022" + + ";\n\006labels\030\005 \003(\0132+.google.cloud.deploy.v1" + + ".Rollout.LabelsEntry\0225\n\013create_time\030\006 \001(" + + "\0132\032.google.protobuf.TimestampB\004\342A\001\003\0226\n\014a" + + "pprove_time\030\007 \001(\0132\032.google.protobuf.Time" + + "stampB\004\342A\001\003\0226\n\014enqueue_time\030\010 \001(\0132\032.goog" + + "le.protobuf.TimestampB\004\342A\001\003\022;\n\021deploy_st" + + "art_time\030\t \001(\0132\032.google.protobuf.Timesta" + + "mpB\004\342A\001\003\0229\n\017deploy_end_time\030\n \001(\0132\032.goog" + + "le.protobuf.TimestampB\004\342A\001\003\022\027\n\ttarget_id" + + "\030\022 \001(\tB\004\342A\001\002\022K\n\016approval_state\030\014 \001(\0162-.g" + + "oogle.cloud.deploy.v1.Rollout.ApprovalSt" + + "ateB\004\342A\001\003\022:\n\005state\030\r \001(\0162%.google.cloud." + + "deploy.v1.Rollout.StateB\004\342A\001\003\022\034\n\016failure" + + "_reason\030\016 \001(\tB\004\342A\001\003\022A\n\017deploying_build\030\021" + + " \001(\tB(\342A\001\003\372A!\n\037cloudbuild.googleapis.com" + + "/Build\022\014\n\004etag\030\020 \001(\t\022P\n\024deploy_failure_c" + + "ause\030\023 \001(\0162,.google.cloud.deploy.v1.Roll" + + "out.FailureCauseB\004\342A\001\003\0223\n\006phases\030\027 \003(\0132\035" + + ".google.cloud.deploy.v1.PhaseB\004\342A\001\003\0228\n\010m" + + "etadata\030\030 \001(\0132 .google.cloud.deploy.v1.M" + + "etadataB\004\342A\001\003\022 \n\022controller_rollout\030\031 \001(" + + "\tB\004\342A\001\003\022!\n\023rollback_of_rollout\030\032 \001(\tB\004\342A" + + "\001\003\022%\n\027rolled_back_by_rollouts\030\033 \003(\tB\004\342A\001" + + "\003\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"{\n\rApprovalState\022\036\n" + + "\032APPROVAL_STATE_UNSPECIFIED\020\000\022\022\n\016NEEDS_A" + + "PPROVAL\020\001\022\032\n\026DOES_NOT_NEED_APPROVAL\020\002\022\014\n" + + "\010APPROVED\020\003\022\014\n\010REJECTED\020\004\"\304\001\n\005State\022\025\n\021S" + + "TATE_UNSPECIFIED\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006FAI" + + "LED\020\002\022\017\n\013IN_PROGRESS\020\003\022\024\n\020PENDING_APPROV" + + "AL\020\004\022\025\n\021APPROVAL_REJECTED\020\005\022\013\n\007PENDING\020\006" + + "\022\023\n\017PENDING_RELEASE\020\007\022\016\n\nCANCELLING\020\010\022\r\n" + + "\tCANCELLED\020\t\022\n\n\006HALTED\020\n\"\212\002\n\014FailureCaus" + + "e\022\035\n\031FAILURE_CAUSE_UNSPECIFIED\020\000\022\033\n\027CLOU" + + "D_BUILD_UNAVAILABLE\020\001\022\024\n\020EXECUTION_FAILE" + + "D\020\002\022\025\n\021DEADLINE_EXCEEDED\020\003\022\022\n\016RELEASE_FA" + + "ILED\020\004\022\025\n\021RELEASE_ABANDONED\020\005\022!\n\035VERIFIC" + + "ATION_CONFIG_NOT_FOUND\020\006\022\036\n\032CLOUD_BUILD_" + + "REQUEST_FAILED\020\007\022#\n\037OPERATION_FEATURE_NO" + + "T_SUPPORTED\020\010:\235\001\352A\231\001\n\"clouddeploy.google" + + "apis.com/Rollout\022sprojects/{project}/loc" + + "ations/{location}/deliveryPipelines/{del" + + "ivery_pipeline}/releases/{release}/rollo" + + "uts/{rollout}\"\330\001\n\010Metadata\022A\n\tcloud_run\030" + + "\001 \001(\0132(.google.cloud.deploy.v1.CloudRunM" + + "etadataB\004\342A\001\003\022K\n\nautomation\030\002 \001(\01321.goog" + + "le.cloud.deploy.v1.AutomationRolloutMeta" + + "dataB\004\342A\001\003\022<\n\006custom\030\003 \001(\0132&.google.clou" + + "d.deploy.v1.CustomMetadataB\004\342A\001\003\"\350\001\n\024Dep" + + "loyJobRunMetadata\022A\n\tcloud_run\030\001 \001(\0132(.g" + + "oogle.cloud.deploy.v1.CloudRunMetadataB\004" + + "\342A\001\003\022O\n\rcustom_target\030\002 \001(\01322.google.clo" + + "ud.deploy.v1.CustomTargetDeployMetadataB" + + "\004\342A\001\003\022<\n\006custom\030\003 \001(\0132&.google.cloud.dep" + + "loy.v1.CustomMetadataB\004\342A\001\003\"\252\001\n\020CloudRun" + + "Metadata\0224\n\007service\030\001 \001(\tB#\342A\001\003\372A\034\n\032run." + + "googleapis.com/Service\022\032\n\014service_urls\030\002" + + " \003(\tB\004\342A\001\003\022\026\n\010revision\030\003 \001(\tB\004\342A\001\003\022,\n\003jo" + + "b\030\004 \001(\tB\037\342A\001\003\372A\030\n\026run.googleapis.com/Job" + + "\"8\n\032CustomTargetDeployMetadata\022\032\n\014skip_m" + + "essage\030\001 \001(\tB\004\342A\001\003\"\216\001\n\031AutomationRollout" + + "Metadata\022$\n\026promote_automation_run\030\001 \001(\t" + + "B\004\342A\001\003\022%\n\027advance_automation_runs\030\002 \003(\tB" + + "\004\342A\001\003\022$\n\026repair_automation_runs\030\003 \003(\tB\004\342" + + "A\001\003\"\211\001\n\016CustomMetadata\022H\n\006values\030\001 \003(\01322" + + ".google.cloud.deploy.v1.CustomMetadata.V" + + "aluesEntryB\004\342A\001\003\032-\n\013ValuesEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\201\003\n\005Phase\022\020\n\002id\030" + + "\001 \001(\tB\004\342A\001\003\0228\n\005state\030\003 \001(\0162#.google.clou" + + "d.deploy.v1.Phase.StateB\004\342A\001\003\022\032\n\014skip_me" + + "ssage\030\006 \001(\tB\004\342A\001\003\022G\n\017deployment_jobs\030\004 \001" + + "(\0132&.google.cloud.deploy.v1.DeploymentJo" + + "bsB\004\342A\001\003H\000\022L\n\022child_rollout_jobs\030\005 \001(\0132(" + + ".google.cloud.deploy.v1.ChildRolloutJobs" + + "B\004\342A\001\003H\000\"q\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000" + + "\022\013\n\007PENDING\020\001\022\017\n\013IN_PROGRESS\020\002\022\r\n\tSUCCEE" + + "DED\020\003\022\n\n\006FAILED\020\004\022\013\n\007ABORTED\020\005\022\013\n\007SKIPPE" + + "D\020\006B\006\n\004jobs\"\363\001\n\016DeploymentJobs\0225\n\ndeploy" + + "_job\030\001 \001(\0132\033.google.cloud.deploy.v1.JobB" + + "\004\342A\001\003\0225\n\nverify_job\030\002 \001(\0132\033.google.cloud" + + ".deploy.v1.JobB\004\342A\001\003\0228\n\rpredeploy_job\030\003 " + + "\001(\0132\033.google.cloud.deploy.v1.JobB\004\342A\001\003\0229" + + "\n\016postdeploy_job\030\004 \001(\0132\033.google.cloud.de" + + "ploy.v1.JobB\004\342A\001\003\"\223\001\n\020ChildRolloutJobs\022>" + + "\n\023create_rollout_jobs\030\001 \003(\0132\033.google.clo" + + "ud.deploy.v1.JobB\004\342A\001\003\022?\n\024advance_rollou" + + "t_jobs\030\002 \003(\0132\033.google.cloud.deploy.v1.Jo" + + "bB\004\342A\001\003\"\201\006\n\003Job\022\020\n\002id\030\001 \001(\tB\004\342A\001\003\0226\n\005sta" + + "te\030\002 \001(\0162!.google.cloud.deploy.v1.Job.St" + + "ateB\004\342A\001\003\022\032\n\014skip_message\030\010 \001(\tB\004\342A\001\003\022;\n" + + "\007job_run\030\003 \001(\tB*\342A\001\003\372A#\n!clouddeploy.goo" + + "gleapis.com/JobRun\022=\n\ndeploy_job\030\004 \001(\0132!" + + ".google.cloud.deploy.v1.DeployJobB\004\342A\001\003H" + + "\000\022=\n\nverify_job\030\005 \001(\0132!.google.cloud.dep" + + "loy.v1.VerifyJobB\004\342A\001\003H\000\022C\n\rpredeploy_jo" + + "b\030\t \001(\0132$.google.cloud.deploy.v1.Predepl" + + "oyJobB\004\342A\001\003H\000\022E\n\016postdeploy_job\030\n \001(\0132%." + + "google.cloud.deploy.v1.PostdeployJobB\004\342A" + + "\001\003H\000\022W\n\030create_child_rollout_job\030\006 \001(\0132-" + + ".google.cloud.deploy.v1.CreateChildRollo" + + "utJobB\004\342A\001\003H\000\022Y\n\031advance_child_rollout_j" + + "ob\030\007 \001(\0132..google.cloud.deploy.v1.Advanc" + + "eChildRolloutJobB\004\342A\001\003H\000\"\214\001\n\005State\022\025\n\021ST" + + "ATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\014\n\010DISABL" + + "ED\020\002\022\017\n\013IN_PROGRESS\020\003\022\r\n\tSUCCEEDED\020\004\022\n\n\006" + + "FAILED\020\005\022\013\n\007ABORTED\020\006\022\013\n\007SKIPPED\020\007\022\013\n\007IG" + + "NORED\020\010B\n\n\010job_type\"\013\n\tDeployJob\"\013\n\tVeri" + + "fyJob\"%\n\014PredeployJob\022\025\n\007actions\030\001 \003(\tB\004" + + "\342A\001\003\"&\n\rPostdeployJob\022\025\n\007actions\030\001 \003(\tB\004" + + "\342A\001\003\"\027\n\025CreateChildRolloutJob\"\030\n\026Advance" + + "ChildRolloutJob\"\263\001\n\023ListRolloutsRequest\022" + + ";\n\006parent\030\001 \001(\tB+\342A\001\002\372A$\n\"clouddeploy.go" + + "ogleapis.com/Release\022\027\n\tpage_size\030\002 \001(\005B" + + "\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filte" + + "r\030\004 \001(\tB\004\342A\001\001\022\026\n\010order_by\030\005 \001(\tB\004\342A\001\001\"w\n" + + "\024ListRolloutsResponse\0221\n\010rollouts\030\001 \003(\0132" + + "\037.google.cloud.deploy.v1.Rollout\022\027\n\017next" + + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"N" + + "\n\021GetRolloutRequest\0229\n\004name\030\001 \001(\tB+\342A\001\002\372" + + "A$\n\"clouddeploy.googleapis.com/Rollout\"\375" + + "\001\n\024CreateRolloutRequest\022;\n\006parent\030\001 \001(\tB" + + "+\342A\001\002\372A$\n\"clouddeploy.googleapis.com/Rel" + + "ease\022\030\n\nrollout_id\030\002 \001(\tB\004\342A\001\002\0226\n\007rollou" + + "t\030\003 \001(\0132\037.google.cloud.deploy.v1.Rollout" + + "B\004\342A\001\002\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\022\033\n\rvali" + + "date_only\030\005 \001(\010B\004\342A\001\001\022\037\n\021starting_phase_" + + "id\030\007 \001(\tB\004\342A\001\001\"\207\002\n\021OperationMetadata\0225\n\013" + + "create_time\030\001 \001(\0132\032.google.protobuf.Time" + + "stampB\004\342A\001\003\0222\n\010end_time\030\002 \001(\0132\032.google.p" + + "rotobuf.TimestampB\004\342A\001\003\022\024\n\006target\030\003 \001(\tB" + + "\004\342A\001\003\022\022\n\004verb\030\004 \001(\tB\004\342A\001\003\022\034\n\016status_mess" + + "age\030\005 \001(\tB\004\342A\001\003\022$\n\026requested_cancellatio" + + "n\030\006 \001(\010B\004\342A\001\003\022\031\n\013api_version\030\007 \001(\tB\004\342A\001\003" + + "\"j\n\025ApproveRolloutRequest\0229\n\004name\030\001 \001(\tB" + + "+\342A\001\002\372A$\n\"clouddeploy.googleapis.com/Rol" + + "lout\022\026\n\010approved\030\002 \001(\010B\004\342A\001\002\"\030\n\026ApproveR" + + "olloutResponse\"j\n\025AdvanceRolloutRequest\022" + + "9\n\004name\030\001 \001(\tB+\342A\001\002\372A$\n\"clouddeploy.goog" + + "leapis.com/Rollout\022\026\n\010phase_id\030\002 \001(\tB\004\342A" + + "\001\002\"\030\n\026AdvanceRolloutResponse\"Q\n\024CancelRo" + + "lloutRequest\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A$\n\"clo" + + "uddeploy.googleapis.com/Rollout\"\027\n\025Cance" + + "lRolloutResponse\"~\n\020IgnoreJobRequest\022<\n\007" + + "rollout\030\001 \001(\tB+\342A\001\002\372A$\n\"clouddeploy.goog" + + "leapis.com/Rollout\022\026\n\010phase_id\030\002 \001(\tB\004\342A" + + "\001\002\022\024\n\006job_id\030\003 \001(\tB\004\342A\001\002\"\023\n\021IgnoreJobRes" + + "ponse\"}\n\017RetryJobRequest\022<\n\007rollout\030\001 \001(" + "\tB+\342A\001\002\372A$\n\"clouddeploy.googleapis.com/R" - + "ollout\"\027\n\025CancelRolloutResponse\"~\n\020Ignor" - + "eJobRequest\022<\n\007rollout\030\001 \001(\tB+\342A\001\002\372A$\n\"c" - + "louddeploy.googleapis.com/Rollout\022\026\n\010pha" - + "se_id\030\002 \001(\tB\004\342A\001\002\022\024\n\006job_id\030\003 \001(\tB\004\342A\001\002\"" - + "\023\n\021IgnoreJobResponse\"}\n\017RetryJobRequest\022" - + "<\n\007rollout\030\001 \001(\tB+\342A\001\002\372A$\n\"clouddeploy.g" - + "oogleapis.com/Rollout\022\026\n\010phase_id\030\002 \001(\tB" - + "\004\342A\001\002\022\024\n\006job_id\030\003 \001(\tB\004\342A\001\002\"\022\n\020RetryJobR" - + "esponse\"R\n\025AbandonReleaseRequest\0229\n\004name" - + "\030\001 \001(\tB+\342A\001\002\372A$\n\"clouddeploy.googleapis." - + "com/Release\"\030\n\026AbandonReleaseResponse\"\337\010" - + "\n\006JobRun\022\022\n\004name\030\001 \001(\tB\004\342A\001\001\022\021\n\003uid\030\002 \001(" - + "\tB\004\342A\001\003\022\026\n\010phase_id\030\003 \001(\tB\004\342A\001\003\022\024\n\006job_i" - + "d\030\004 \001(\tB\004\342A\001\003\0225\n\013create_time\030\005 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\004\342A\001\003\0224\n\nstart_ti" - + "me\030\006 \001(\0132\032.google.protobuf.TimestampB\004\342A" - + "\001\003\0222\n\010end_time\030\007 \001(\0132\032.google.protobuf.T" - + "imestampB\004\342A\001\003\0229\n\005state\030\010 \001(\0162$.google.c" - + "loud.deploy.v1.JobRun.StateB\004\342A\001\003\022D\n\016dep" - + "loy_job_run\030\t \001(\0132$.google.cloud.deploy." - + "v1.DeployJobRunB\004\342A\001\003H\000\022D\n\016verify_job_ru" - + "n\030\n \001(\0132$.google.cloud.deploy.v1.VerifyJ" - + "obRunB\004\342A\001\003H\000\022J\n\021predeploy_job_run\030\016 \001(\013" - + "2\'.google.cloud.deploy.v1.PredeployJobRu" - + "nB\004\342A\001\003H\000\022L\n\022postdeploy_job_run\030\017 \001(\0132(." - + "google.cloud.deploy.v1.PostdeployJobRunB" - + "\004\342A\001\003H\000\022^\n\034create_child_rollout_job_run\030" - + "\014 \001(\01320.google.cloud.deploy.v1.CreateChi" - + "ldRolloutJobRunB\004\342A\001\003H\000\022`\n\035advance_child" - + "_rollout_job_run\030\r \001(\01321.google.cloud.de" - + "ploy.v1.AdvanceChildRolloutJobRunB\004\342A\001\003H" - + "\000\022\022\n\004etag\030\013 \001(\tB\004\342A\001\003\"k\n\005State\022\025\n\021STATE_" - + "UNSPECIFIED\020\000\022\017\n\013IN_PROGRESS\020\001\022\r\n\tSUCCEE" - + "DED\020\002\022\n\n\006FAILED\020\003\022\017\n\013TERMINATING\020\004\022\016\n\nTE" - + "RMINATED\020\005:\257\001\352A\253\001\n!clouddeploy.googleapi" - + "s.com/JobRun\022\205\001projects/{project}/locati" - + "ons/{location}/deliveryPipelines/{delive" - + "ry_pipeline}/releases/{release}/rollouts" - + "/{rollout}/jobRuns/{job_run}B\t\n\007job_run\"" - + "\370\003\n\014DeployJobRun\0227\n\005build\030\001 \001(\tB(\342A\001\003\372A!" - + "\n\037cloudbuild.googleapis.com/Build\022N\n\rfai" - + "lure_cause\030\002 \001(\01621.google.cloud.deploy.v" - + "1.DeployJobRun.FailureCauseB\004\342A\001\003\022\035\n\017fai" - + "lure_message\030\003 \001(\tB\004\342A\001\003\022D\n\010metadata\030\004 \001" - + "(\0132,.google.cloud.deploy.v1.DeployJobRun" - + "MetadataB\004\342A\001\003\022>\n\010artifact\030\005 \001(\0132&.googl" - + "e.cloud.deploy.v1.DeployArtifactB\004\342A\001\003\"\271" - + "\001\n\014FailureCause\022\035\n\031FAILURE_CAUSE_UNSPECI" - + "FIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAILABLE\020\001\022\024\n\020E" - + "XECUTION_FAILED\020\002\022\025\n\021DEADLINE_EXCEEDED\020\003" - + "\022 \n\034MISSING_RESOURCES_FOR_CANARY\020\004\022\036\n\032CL" - + "OUD_BUILD_REQUEST_FAILED\020\005\"\255\003\n\014VerifyJob" - + "Run\0227\n\005build\030\001 \001(\tB(\342A\001\003\372A!\n\037cloudbuild." - + "googleapis.com/Build\022\032\n\014artifact_uri\030\002 \001" - + "(\tB\004\342A\001\003\022\034\n\016event_log_path\030\003 \001(\tB\004\342A\001\003\022N" - + "\n\rfailure_cause\030\004 \001(\01621.google.cloud.dep" - + "loy.v1.VerifyJobRun.FailureCauseB\004\342A\001\003\022\035" - + "\n\017failure_message\030\005 \001(\tB\004\342A\001\003\"\272\001\n\014Failur" - + "eCause\022\035\n\031FAILURE_CAUSE_UNSPECIFIED\020\000\022\033\n" - + "\027CLOUD_BUILD_UNAVAILABLE\020\001\022\024\n\020EXECUTION_" - + "FAILED\020\002\022\025\n\021DEADLINE_EXCEEDED\020\003\022!\n\035VERIF" - + "ICATION_CONFIG_NOT_FOUND\020\004\022\036\n\032CLOUD_BUIL" - + "D_REQUEST_FAILED\020\005\"\326\002\n\017PredeployJobRun\0227" - + "\n\005build\030\001 \001(\tB(\342A\001\003\372A!\n\037cloudbuild.googl" - + "eapis.com/Build\022Q\n\rfailure_cause\030\002 \001(\01624" - + ".google.cloud.deploy.v1.PredeployJobRun." + + "ollout\022\026\n\010phase_id\030\002 \001(\tB\004\342A\001\002\022\024\n\006job_id" + + "\030\003 \001(\tB\004\342A\001\002\"\022\n\020RetryJobResponse\"R\n\025Aban" + + "donReleaseRequest\0229\n\004name\030\001 \001(\tB+\342A\001\002\372A$" + + "\n\"clouddeploy.googleapis.com/Release\"\030\n\026" + + "AbandonReleaseResponse\"\337\010\n\006JobRun\022\022\n\004nam" + + "e\030\001 \001(\tB\004\342A\001\001\022\021\n\003uid\030\002 \001(\tB\004\342A\001\003\022\026\n\010phas" + + "e_id\030\003 \001(\tB\004\342A\001\003\022\024\n\006job_id\030\004 \001(\tB\004\342A\001\003\0225" + + "\n\013create_time\030\005 \001(\0132\032.google.protobuf.Ti" + + "mestampB\004\342A\001\003\0224\n\nstart_time\030\006 \001(\0132\032.goog" + + "le.protobuf.TimestampB\004\342A\001\003\0222\n\010end_time\030" + + "\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" + + "9\n\005state\030\010 \001(\0162$.google.cloud.deploy.v1." + + "JobRun.StateB\004\342A\001\003\022D\n\016deploy_job_run\030\t \001" + + "(\0132$.google.cloud.deploy.v1.DeployJobRun" + + "B\004\342A\001\003H\000\022D\n\016verify_job_run\030\n \001(\0132$.googl" + + "e.cloud.deploy.v1.VerifyJobRunB\004\342A\001\003H\000\022J" + + "\n\021predeploy_job_run\030\016 \001(\0132\'.google.cloud" + + ".deploy.v1.PredeployJobRunB\004\342A\001\003H\000\022L\n\022po" + + "stdeploy_job_run\030\017 \001(\0132(.google.cloud.de" + + "ploy.v1.PostdeployJobRunB\004\342A\001\003H\000\022^\n\034crea" + + "te_child_rollout_job_run\030\014 \001(\01320.google." + + "cloud.deploy.v1.CreateChildRolloutJobRun" + + "B\004\342A\001\003H\000\022`\n\035advance_child_rollout_job_ru" + + "n\030\r \001(\01321.google.cloud.deploy.v1.Advance" + + "ChildRolloutJobRunB\004\342A\001\003H\000\022\022\n\004etag\030\013 \001(\t" + + "B\004\342A\001\003\"k\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\017" + + "\n\013IN_PROGRESS\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FAILED" + + "\020\003\022\017\n\013TERMINATING\020\004\022\016\n\nTERMINATED\020\005:\257\001\352A" + + "\253\001\n!clouddeploy.googleapis.com/JobRun\022\205\001" + + "projects/{project}/locations/{location}/" + + "deliveryPipelines/{delivery_pipeline}/re" + + "leases/{release}/rollouts/{rollout}/jobR" + + "uns/{job_run}B\t\n\007job_run\"\232\004\n\014DeployJobRu" + + "n\0227\n\005build\030\001 \001(\tB(\342A\001\003\372A!\n\037cloudbuild.go" + + "ogleapis.com/Build\022N\n\rfailure_cause\030\002 \001(" + + "\01621.google.cloud.deploy.v1.DeployJobRun." + "FailureCauseB\004\342A\001\003\022\035\n\017failure_message\030\003 " - + "\001(\tB\004\342A\001\003\"\227\001\n\014FailureCause\022\035\n\031FAILURE_CA" - + "USE_UNSPECIFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAIL" - + "ABLE\020\001\022\024\n\020EXECUTION_FAILED\020\002\022\025\n\021DEADLINE" - + "_EXCEEDED\020\003\022\036\n\032CLOUD_BUILD_REQUEST_FAILE" - + "D\020\004\"\330\002\n\020PostdeployJobRun\0227\n\005build\030\001 \001(\tB" - + "(\342A\001\003\372A!\n\037cloudbuild.googleapis.com/Buil" - + "d\022R\n\rfailure_cause\030\002 \001(\01625.google.cloud." - + "deploy.v1.PostdeployJobRun.FailureCauseB" - + "\004\342A\001\003\022\035\n\017failure_message\030\003 \001(\tB\004\342A\001\003\"\227\001\n" - + "\014FailureCause\022\035\n\031FAILURE_CAUSE_UNSPECIFI" - + "ED\020\000\022\033\n\027CLOUD_BUILD_UNAVAILABLE\020\001\022\024\n\020EXE" - + "CUTION_FAILED\020\002\022\025\n\021DEADLINE_EXCEEDED\020\003\022\036" - + "\n\032CLOUD_BUILD_REQUEST_FAILED\020\004\"Q\n\030Create" - + "ChildRolloutJobRun\022\025\n\007rollout\030\001 \001(\tB\004\342A\001" - + "\003\022\036\n\020rollout_phase_id\030\002 \001(\tB\004\342A\001\003\"R\n\031Adv" - + "anceChildRolloutJobRun\022\025\n\007rollout\030\001 \001(\tB" - + "\004\342A\001\003\022\036\n\020rollout_phase_id\030\002 \001(\tB\004\342A\001\003\"\262\001" - + "\n\022ListJobRunsRequest\022;\n\006parent\030\001 \001(\tB+\342A" - + "\001\002\372A$\n\"clouddeploy.googleapis.com/Rollou" - + "t\022\027\n\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token" - + "\030\003 \001(\tB\004\342A\001\001\022\024\n\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n\010or" - + "der_by\030\005 \001(\tB\004\342A\001\001\"u\n\023ListJobRunsRespons" - + "e\0220\n\010job_runs\030\001 \003(\0132\036.google.cloud.deplo" - + "y.v1.JobRun\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" - + "unreachable\030\003 \003(\t\"L\n\020GetJobRunRequest\0228\n" - + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n!clouddeploy.google" - + "apis.com/JobRun\"R\n\026TerminateJobRunReques" - + "t\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!clouddeploy.go" - + "ogleapis.com/JobRun\"\031\n\027TerminateJobRunRe" - + "sponse\"\325\001\n\006Config\022\014\n\004name\030\001 \001(\t\022C\n\022suppo" - + "rted_versions\030\002 \003(\0132\'.google.cloud.deplo" - + "y.v1.SkaffoldVersion\022 \n\030default_skaffold" - + "_version\030\003 \001(\t:V\352AS\n!clouddeploy.googlea" - + "pis.com/Config\022.projects/{project}/locat" - + "ions/{location}/config\"\307\001\n\017SkaffoldVersi" - + "on\022\017\n\007version\030\001 \001(\t\0229\n\025maintenance_mode_" - + "time\030\003 \001(\0132\032.google.protobuf.Timestamp\022;" - + "\n\027support_expiration_time\030\004 \001(\0132\032.google" - + ".protobuf.Timestamp\022+\n\020support_end_date\030" - + "\002 \001(\0132\021.google.type.Date\"L\n\020GetConfigReq" - + "uest\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n!clouddeploy" - + ".googleapis.com/Config\"\243\006\n\nAutomation\022\022\n" - + "\004name\030\001 \001(\tB\004\342A\001\003\022\021\n\003uid\030\002 \001(\tB\004\342A\001\003\022\031\n\013" - + "description\030\003 \001(\tB\004\342A\001\001\0225\n\013create_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225" - + "\n\013update_time\030\005 \001(\0132\032.google.protobuf.Ti" - + "mestampB\004\342A\001\003\022N\n\013annotations\030\006 \003(\01323.goo" - + "gle.cloud.deploy.v1.Automation.Annotatio" - + "nsEntryB\004\342A\001\001\022D\n\006labels\030\007 \003(\0132..google.c" - + "loud.deploy.v1.Automation.LabelsEntryB\004\342" - + "A\001\001\022\022\n\004etag\030\010 \001(\tB\004\342A\001\001\022\027\n\tsuspended\030\t \001" - + "(\010B\004\342A\001\001\022\035\n\017service_account\030\n \001(\tB\004\342A\001\002\022" - + "J\n\010selector\030\013 \001(\01322.google.cloud.deploy." - + "v1.AutomationResourceSelectorB\004\342A\001\002\022;\n\005r" - + "ules\030\016 \003(\0132&.google.cloud.deploy.v1.Auto" - + "mationRuleB\004\342A\001\002\0322\n\020AnnotationsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\226\001\352A" - + "\222\001\n%clouddeploy.googleapis.com/Automatio" - + "n\022fprojects/{project}/locations/{locatio" - + "n}/deliveryPipelines/{delivery_pipeline}" - + "/automations/{automation}R\001\001\"V\n\032Automati" - + "onResourceSelector\0228\n\007targets\030\001 \003(\0132\'.go" - + "ogle.cloud.deploy.v1.TargetAttribute\"\214\002\n" - + "\016AutomationRule\022P\n\024promote_release_rule\030" - + "\001 \001(\0132*.google.cloud.deploy.v1.PromoteRe" - + "leaseRuleB\004\342A\001\001H\000\022P\n\024advance_rollout_rul" - + "e\030\002 \001(\0132*.google.cloud.deploy.v1.Advance" - + "RolloutRuleB\004\342A\001\001H\000\022N\n\023repair_rollout_ru" - + "le\030\003 \001(\0132).google.cloud.deploy.v1.Repair" - + "RolloutRuleB\004\342A\001\001H\000B\006\n\004rule\"\345\001\n\022PromoteR" - + "eleaseRule\022\020\n\002id\030\001 \001(\tB\004\342A\001\002\022-\n\004wait\030\002 \001" - + "(\0132\031.google.protobuf.DurationB\004\342A\001\001\022#\n\025d" - + "estination_target_id\030\007 \001(\tB\004\342A\001\001\022H\n\tcond" - + "ition\030\005 \001(\0132/.google.cloud.deploy.v1.Aut" - + "omationRuleConditionB\004\342A\001\003\022\037\n\021destinatio" - + "n_phase\030\010 \001(\tB\004\342A\001\001\"\274\001\n\022AdvanceRolloutRu" - + "le\022\020\n\002id\030\001 \001(\tB\004\342A\001\002\022\033\n\rsource_phases\030\006 " - + "\003(\tB\004\342A\001\001\022-\n\004wait\030\003 \001(\0132\031.google.protobu" - + "f.DurationB\004\342A\001\001\022H\n\tcondition\030\005 \001(\0132/.go" - + "ogle.cloud.deploy.v1.AutomationRuleCondi" - + "tionB\004\342A\001\003\"\340\001\n\021RepairRolloutRule\022\020\n\002id\030\001" - + " \001(\tB\004\342A\001\002\022\033\n\rsource_phases\030\002 \003(\tB\004\342A\001\001\022" - + "\022\n\004jobs\030\003 \003(\tB\004\342A\001\001\022>\n\014repair_modes\030\004 \003(" - + "\0132\".google.cloud.deploy.v1.RepairModeB\004\342" - + "A\001\002\022H\n\tcondition\030\006 \001(\0132/.google.cloud.de" - + "ploy.v1.AutomationRuleConditionB\004\342A\001\003\"\206\001" - + "\n\nRepairMode\0224\n\005retry\030\001 \001(\0132\035.google.clo" - + "ud.deploy.v1.RetryB\004\342A\001\001H\000\022:\n\010rollback\030\002" - + " \001(\0132 .google.cloud.deploy.v1.RollbackB\004" - + "\342A\001\001H\000B\006\n\004mode\"\217\001\n\005Retry\022\026\n\010attempts\030\001 \001" - + "(\003B\004\342A\001\002\022-\n\004wait\030\002 \001(\0132\031.google.protobuf" - + ".DurationB\004\342A\001\001\022?\n\014backoff_mode\030\003 \001(\0162#." - + "google.cloud.deploy.v1.BackoffModeB\004\342A\001\001" - + "\"+\n\010Rollback\022\037\n\021destination_phase\030\001 \001(\tB" - + "\004\342A\001\001\"s\n\027AutomationRuleCondition\022X\n\031targ" - + "ets_present_condition\030\001 \001(\0132/.google.clo" - + "ud.deploy.v1.TargetsPresentConditionB\004\342A" - + "\001\001\"\353\001\n\027CreateAutomationRequest\022>\n\006parent" - + "\030\001 \001(\tB.\342A\001\002\372A\'\022%clouddeploy.googleapis." - + "com/Automation\022\033\n\rautomation_id\030\002 \001(\tB\004\342" - + "A\001\002\022<\n\nautomation\030\003 \001(\0132\".google.cloud.d" - + "eploy.v1.AutomationB\004\342A\001\002\022\030\n\nrequest_id\030" - + "\004 \001(\tB\004\342A\001\001\022\033\n\rvalidate_only\030\005 \001(\010B\004\342A\001\001" - + "\"\342\001\n\027UpdateAutomationRequest\0225\n\013update_m" - + "ask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\004\342" - + "A\001\002\022<\n\nautomation\030\002 \001(\0132\".google.cloud.d" - + "eploy.v1.AutomationB\004\342A\001\002\022\030\n\nrequest_id\030" - + "\003 \001(\tB\004\342A\001\001\022\033\n\rallow_missing\030\004 \001(\010B\004\342A\001\001" - + "\022\033\n\rvalidate_only\030\005 \001(\010B\004\342A\001\001\"\277\001\n\027Delete" - + "AutomationRequest\022<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'" - + "\n%clouddeploy.googleapis.com/Automation\022" - + "\030\n\nrequest_id\030\002 \001(\tB\004\342A\001\001\022\033\n\rallow_missi" - + "ng\030\003 \001(\010B\004\342A\001\001\022\033\n\rvalidate_only\030\004 \001(\010B\004\342" - + "A\001\001\022\022\n\004etag\030\005 \001(\tB\004\342A\001\001\"\241\001\n\026ListAutomati" - + "onsRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\022%clo" - + "uddeploy.googleapis.com/Automation\022\021\n\tpa" - + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006fil" - + "ter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\200\001\n\027ListAuto" - + "mationsResponse\0227\n\013automations\030\001 \003(\0132\".g" - + "oogle.cloud.deploy.v1.Automation\022\027\n\017next" - + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"T" - + "\n\024GetAutomationRequest\022<\n\004name\030\001 \001(\tB.\342A" - + "\001\002\372A\'\n%clouddeploy.googleapis.com/Automa" - + "tion\"\324\010\n\rAutomationRun\022\022\n\004name\030\001 \001(\tB\004\342A" - + "\001\003\0225\n\013create_time\030\002 \001(\0132\032.google.protobu" - + "f.TimestampB\004\342A\001\003\0225\n\013update_time\030\003 \001(\0132\032" - + ".google.protobuf.TimestampB\004\342A\001\003\022\022\n\004etag" - + "\030\004 \001(\tB\004\342A\001\003\022\035\n\017service_account\030\005 \001(\tB\004\342" - + "A\001\003\022E\n\023automation_snapshot\030\006 \001(\0132\".googl" - + "e.cloud.deploy.v1.AutomationB\004\342A\001\003\022\027\n\tta" - + "rget_id\030\007 \001(\tB\004\342A\001\003\022@\n\005state\030\010 \001(\0162+.goo" - + "gle.cloud.deploy.v1.AutomationRun.StateB" - + "\004\342A\001\003\022\037\n\021state_description\030\t \001(\tB\004\342A\001\003\0225" - + "\n\013expire_time\030\013 \001(\0132\032.google.protobuf.Ti" - + "mestampB\004\342A\001\003\022\025\n\007rule_id\030\014 \001(\tB\004\342A\001\003\022\033\n\r" - + "automation_id\030\017 \001(\tB\004\342A\001\003\022Z\n\031promote_rel" - + "ease_operation\030\r \001(\0132/.google.cloud.depl" - + "oy.v1.PromoteReleaseOperationB\004\342A\001\003H\000\022Z\n" - + "\031advance_rollout_operation\030\016 \001(\0132/.googl" - + "e.cloud.deploy.v1.AdvanceRolloutOperatio" - + "nB\004\342A\001\003H\000\022X\n\030repair_rollout_operation\030\021 " - + "\001(\0132..google.cloud.deploy.v1.RepairRollo" - + "utOperationB\004\342A\001\003H\000\0229\n\017wait_until_time\030\020" - + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\"f" - + "\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r\n\tSUCCEE" - + "DED\020\001\022\r\n\tCANCELLED\020\002\022\n\n\006FAILED\020\003\022\017\n\013IN_P" - + "ROGRESS\020\004\022\013\n\007PENDING\020\005:\235\001\352A\231\001\n(clouddepl" - + "oy.googleapis.com/AutomationRun\022mproject" - + "s/{project}/locations/{location}/deliver" - + "yPipelines/{delivery_pipeline}/automatio" - + "nRuns/{automation_run}B\013\n\toperation\"\215\001\n\027" - + "PromoteReleaseOperation\022\027\n\ttarget_id\030\001 \001" - + "(\tB\004\342A\001\003\022-\n\004wait\030\002 \001(\0132\031.google.protobuf" - + ".DurationB\004\342A\001\003\022\025\n\007rollout\030\003 \001(\tB\004\342A\001\003\022\023" - + "\n\005phase\030\004 \001(\tB\004\342A\001\003\"\234\001\n\027AdvanceRolloutOp" - + "eration\022\032\n\014source_phase\030\005 \001(\tB\004\342A\001\003\022-\n\004w" - + "ait\030\002 \001(\0132\031.google.protobuf.DurationB\004\342A" - + "\001\003\022\025\n\007rollout\030\003 \001(\tB\004\342A\001\003\022\037\n\021destination" - + "_phase\030\004 \001(\tB\004\342A\001\003\"\232\001\n\026RepairRolloutOper" - + "ation\022\025\n\007rollout\030\001 \001(\tB\004\342A\001\003\022\'\n\031current_" - + "repair_mode_index\030\002 \001(\003B\004\342A\001\003\022@\n\rrepair_" - + "phases\030\003 \003(\0132#.google.cloud.deploy.v1.Re" - + "pairPhaseB\004\342A\001\003\"\233\001\n\013RepairPhase\0229\n\005retry" - + "\030\001 \001(\0132\".google.cloud.deploy.v1.RetryPha" - + "seB\004\342A\001\003H\000\022A\n\010rollback\030\002 \001(\0132\'.google.cl" - + "oud.deploy.v1.RollbackAttemptB\004\342A\001\003H\000B\016\n" - + "\014repair_phase\"\327\001\n\nRetryPhase\022\034\n\016total_at" - + "tempts\030\001 \001(\003B\004\342A\001\003\022?\n\014backoff_mode\030\002 \001(\016" - + "2#.google.cloud.deploy.v1.BackoffModeB\004\342" - + "A\001\003\022\026\n\010phase_id\030\003 \001(\tB\004\342A\001\003\022\024\n\006job_id\030\004 " - + "\001(\tB\004\342A\001\003\022<\n\010attempts\030\005 \003(\0132$.google.clo" - + "ud.deploy.v1.RetryAttemptB\004\342A\001\003\"\250\001\n\014Retr" - + "yAttempt\022\025\n\007attempt\030\001 \001(\003B\004\342A\001\003\022-\n\004wait\030" - + "\002 \001(\0132\031.google.protobuf.DurationB\004\342A\001\003\0228" - + "\n\005state\030\005 \001(\0162#.google.cloud.deploy.v1.R" - + "epairStateB\004\342A\001\003\022\030\n\nstate_desc\030\006 \001(\tB\004\342A" - + "\001\003\"\240\001\n\017RollbackAttempt\022\037\n\021destination_ph" - + "ase\030\001 \001(\tB\004\342A\001\003\022\030\n\nrollout_id\030\002 \001(\tB\004\342A\001" - + "\003\0228\n\005state\030\003 \001(\0162#.google.cloud.deploy.v" - + "1.RepairStateB\004\342A\001\003\022\030\n\nstate_desc\030\004 \001(\tB" - + "\004\342A\001\003\"\247\001\n\031ListAutomationRunsRequest\022A\n\006p" - + "arent\030\001 \001(\tB1\342A\001\002\372A*\022(clouddeploy.google" - + "apis.com/AutomationRun\022\021\n\tpage_size\030\002 \001(" - + "\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n" - + "\010order_by\030\005 \001(\t\"\212\001\n\032ListAutomationRunsRe" - + "sponse\022>\n\017automation_runs\030\001 \003(\0132%.google" - + ".cloud.deploy.v1.AutomationRun\022\027\n\017next_p" - + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"Z\n\027" - + "GetAutomationRunRequest\022?\n\004name\030\001 \001(\tB1\342" - + "A\001\002\372A*\n(clouddeploy.googleapis.com/Autom" - + "ationRun\"]\n\032CancelAutomationRunRequest\022?" - + "\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(clouddeploy.googl" - + "eapis.com/AutomationRun\"\035\n\033CancelAutomat" - + "ionRunResponse*\271\001\n\024SkaffoldSupportState\022" - + "&\n\"SKAFFOLD_SUPPORT_STATE_UNSPECIFIED\020\000\022" - + "$\n SKAFFOLD_SUPPORT_STATE_SUPPORTED\020\001\022+\n" - + "\'SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE" - + "\020\002\022&\n\"SKAFFOLD_SUPPORT_STATE_UNSUPPORTED" - + "\020\003*b\n\013BackoffMode\022\034\n\030BACKOFF_MODE_UNSPEC" - + "IFIED\020\000\022\027\n\023BACKOFF_MODE_LINEAR\020\001\022\034\n\030BACK" - + "OFF_MODE_EXPONENTIAL\020\002*\316\001\n\013RepairState\022\034" - + "\n\030REPAIR_STATE_UNSPECIFIED\020\000\022\032\n\026REPAIR_S" - + "TATE_SUCCEEDED\020\001\022\032\n\026REPAIR_STATE_CANCELL" - + "ED\020\002\022\027\n\023REPAIR_STATE_FAILED\020\003\022\034\n\030REPAIR_" - + "STATE_IN_PROGRESS\020\004\022\030\n\024REPAIR_STATE_PEND" - + "ING\020\005\022\030\n\024REPAIR_STATE_SKIPPED\020\0062\363:\n\013Clou" - + "dDeploy\022\314\001\n\025ListDeliveryPipelines\0224.goog" - + "le.cloud.deploy.v1.ListDeliveryPipelines" - + "Request\0325.google.cloud.deploy.v1.ListDel" - + "iveryPipelinesResponse\"F\332A\006parent\202\323\344\223\0027\022" - + "5/v1/{parent=projects/*/locations/*}/del" - + "iveryPipelines\022\271\001\n\023GetDeliveryPipeline\0222" - + ".google.cloud.deploy.v1.GetDeliveryPipel" - + "ineRequest\032(.google.cloud.deploy.v1.Deli" - + "veryPipeline\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=p" - + "rojects/*/locations/*/deliveryPipelines/" - + "*}\022\231\002\n\026CreateDeliveryPipeline\0225.google.c" - + "loud.deploy.v1.CreateDeliveryPipelineReq" - + "uest\032\035.google.longrunning.Operation\"\250\001\312A" - + "%\n\020DeliveryPipeline\022\021OperationMetadata\332A" - + "-parent,delivery_pipeline,delivery_pipel" - + "ine_id\202\323\344\223\002J\"5/v1/{parent=projects/*/loc" - + "ations/*}/deliveryPipelines:\021delivery_pi" - + "peline\022\233\002\n\026UpdateDeliveryPipeline\0225.goog" - + "le.cloud.deploy.v1.UpdateDeliveryPipelin" - + "eRequest\032\035.google.longrunning.Operation\"" - + "\252\001\312A%\n\020DeliveryPipeline\022\021OperationMetada" - + "ta\332A\035delivery_pipeline,update_mask\202\323\344\223\002\\" - + "2G/v1/{delivery_pipeline.name=projects/*" - + "/locations/*/deliveryPipelines/*}:\021deliv" - + "ery_pipeline\022\341\001\n\026DeleteDeliveryPipeline\022" - + "5.google.cloud.deploy.v1.DeleteDeliveryP" - + "ipelineRequest\032\035.google.longrunning.Oper" - + "ation\"q\312A*\n\025google.protobuf.Empty\022\021Opera" - + "tionMetadata\332A\004name\202\323\344\223\0027*5/v1/{name=pro" - + "jects/*/locations/*/deliveryPipelines/*}" - + "\022\244\001\n\013ListTargets\022*.google.cloud.deploy.v" - + "1.ListTargetsRequest\032+.google.cloud.depl" - + "oy.v1.ListTargetsResponse\"<\332A\006parent\202\323\344\223" - + "\002-\022+/v1/{parent=projects/*/locations/*}/" - + "targets\022\334\001\n\016RollbackTarget\022-.google.clou" - + "d.deploy.v1.RollbackTargetRequest\032..goog" - + "le.cloud.deploy.v1.RollbackTargetRespons" - + "e\"k\332A\031name,target_id,rollout_id\202\323\344\223\002I\"D/" - + "v1/{name=projects/*/locations/*/delivery" - + "Pipelines/*}:rollbackTarget:\001*\022\221\001\n\tGetTa" - + "rget\022(.google.cloud.deploy.v1.GetTargetR" - + "equest\032\036.google.cloud.deploy.v1.Target\":" - + "\332A\004name\202\323\344\223\002-\022+/v1/{name=projects/*/loca" - + "tions/*/targets/*}\022\317\001\n\014CreateTarget\022+.go" - + "ogle.cloud.deploy.v1.CreateTargetRequest" - + "\032\035.google.longrunning.Operation\"s\312A\033\n\006Ta" - + "rget\022\021OperationMetadata\332A\027parent,target," - + "target_id\202\323\344\223\0025\"+/v1/{parent=projects/*/" - + "locations/*}/targets:\006target\022\321\001\n\014UpdateT" - + "arget\022+.google.cloud.deploy.v1.UpdateTar" - + "getRequest\032\035.google.longrunning.Operatio" - + "n\"u\312A\033\n\006Target\022\021OperationMetadata\332A\022targ" - + "et,update_mask\202\323\344\223\002<22/v1/{target.name=p" - + "rojects/*/locations/*/targets/*}:\006target" - + "\022\303\001\n\014DeleteTarget\022+.google.cloud.deploy." - + "v1.DeleteTargetRequest\032\035.google.longrunn" - + "ing.Operation\"g\312A*\n\025google.protobuf.Empt", - "y\022\021OperationMetadata\332A\004name\202\323\344\223\002-*+/v1/{" - + "name=projects/*/locations/*/targets/*}\022\274" - + "\001\n\014ListReleases\022+.google.cloud.deploy.v1" - + ".ListReleasesRequest\032,.google.cloud.depl" - + "oy.v1.ListReleasesResponse\"Q\332A\006parent\202\323\344" - + "\223\002B\022@/v1/{parent=projects/*/locations/*/" - + "deliveryPipelines/*}/releases\022\251\001\n\nGetRel" - + "ease\022).google.cloud.deploy.v1.GetRelease" - + "Request\032\037.google.cloud.deploy.v1.Release" - + "\"O\332A\004name\202\323\344\223\002B\022@/v1/{name=projects/*/lo" - + "cations/*/deliveryPipelines/*/releases/*" - + "}\022\353\001\n\rCreateRelease\022,.google.cloud.deplo" - + "y.v1.CreateReleaseRequest\032\035.google.longr" - + "unning.Operation\"\214\001\312A\034\n\007Release\022\021Operati" - + "onMetadata\332A\031parent,release,release_id\202\323" - + "\344\223\002K\"@/v1/{parent=projects/*/locations/*" - + "/deliveryPipelines/*}/releases:\007release\022" - + "\313\001\n\016AbandonRelease\022-.google.cloud.deploy" - + ".v1.AbandonReleaseRequest\032..google.cloud" - + ".deploy.v1.AbandonReleaseResponse\"Z\332A\004na" - + "me\202\323\344\223\002M\"H/v1/{name=projects/*/locations" - + "/*/deliveryPipelines/*/releases/*}:aband" - + "on:\001*\022\326\001\n\016ApproveRollout\022-.google.cloud." - + "deploy.v1.ApproveRolloutRequest\032..google" - + ".cloud.deploy.v1.ApproveRolloutResponse\"" - + "e\332A\004name\202\323\344\223\002X\"S/v1/{name=projects/*/loc" - + "ations/*/deliveryPipelines/*/releases/*/" - + "rollouts/*}:approve:\001*\022\337\001\n\016AdvanceRollou" - + "t\022-.google.cloud.deploy.v1.AdvanceRollou" - + "tRequest\032..google.cloud.deploy.v1.Advanc" - + "eRolloutResponse\"n\332A\rname,phase_id\202\323\344\223\002X" - + "\"S/v1/{name=projects/*/locations/*/deliv" - + "eryPipelines/*/releases/*/rollouts/*}:ad" - + "vance:\001*\022\322\001\n\rCancelRollout\022,.google.clou" - + "d.deploy.v1.CancelRolloutRequest\032-.googl" - + "e.cloud.deploy.v1.CancelRolloutResponse\"" - + "d\332A\004name\202\323\344\223\002W\"R/v1/{name=projects/*/loc" - + "ations/*/deliveryPipelines/*/releases/*/" - + "rollouts/*}:cancel:\001*\022\307\001\n\014ListRollouts\022+" - + ".google.cloud.deploy.v1.ListRolloutsRequ" - + "est\032,.google.cloud.deploy.v1.ListRollout" - + "sResponse\"\\\332A\006parent\202\323\344\223\002M\022K/v1/{parent=" - + "projects/*/locations/*/deliveryPipelines" - + "/*/releases/*}/rollouts\022\264\001\n\nGetRollout\022)" - + ".google.cloud.deploy.v1.GetRolloutReques" - + "t\032\037.google.cloud.deploy.v1.Rollout\"Z\332A\004n" - + "ame\202\323\344\223\002M\022K/v1/{name=projects/*/location" - + "s/*/deliveryPipelines/*/releases/*/rollo" - + "uts/*}\022\366\001\n\rCreateRollout\022,.google.cloud." - + "deploy.v1.CreateRolloutRequest\032\035.google." - + "longrunning.Operation\"\227\001\312A\034\n\007Rollout\022\021Op" - + "erationMetadata\332A\031parent,rollout,rollout" - + "_id\202\323\344\223\002V\"K/v1/{parent=projects/*/locati" - + "ons/*/deliveryPipelines/*/releases/*}/ro" - + "llouts:\007rollout\022\337\001\n\tIgnoreJob\022(.google.c" - + "loud.deploy.v1.IgnoreJobRequest\032).google" - + ".cloud.deploy.v1.IgnoreJobResponse\"}\332A\027r" - + "ollout,phase_id,job_id\202\323\344\223\002]\"X/v1/{rollo" - + "ut=projects/*/locations/*/deliveryPipeli" - + "nes/*/releases/*/rollouts/*}:ignoreJob:\001" - + "*\022\333\001\n\010RetryJob\022\'.google.cloud.deploy.v1." - + "RetryJobRequest\032(.google.cloud.deploy.v1" - + ".RetryJobResponse\"|\332A\027rollout,phase_id,j" - + "ob_id\202\323\344\223\002\\\"W/v1/{rollout=projects/*/loc" - + "ations/*/deliveryPipelines/*/releases/*/" - + "rollouts/*}:retryJob:\001*\022\316\001\n\013ListJobRuns\022" - + "*.google.cloud.deploy.v1.ListJobRunsRequ" - + "est\032+.google.cloud.deploy.v1.ListJobRuns" - + "Response\"f\332A\006parent\202\323\344\223\002W\022U/v1/{parent=p" + + "\001(\tB\004\342A\001\003\022D\n\010metadata\030\004 \001(\0132,.google.clo" + + "ud.deploy.v1.DeployJobRunMetadataB\004\342A\001\003\022" + + ">\n\010artifact\030\005 \001(\0132&.google.cloud.deploy." + + "v1.DeployArtifactB\004\342A\001\003\"\333\001\n\014FailureCause" + + "\022\035\n\031FAILURE_CAUSE_UNSPECIFIED\020\000\022\033\n\027CLOUD" + + "_BUILD_UNAVAILABLE\020\001\022\024\n\020EXECUTION_FAILED" + + "\020\002\022\025\n\021DEADLINE_EXCEEDED\020\003\022 \n\034MISSING_RES" + + "OURCES_FOR_CANARY\020\004\022\036\n\032CLOUD_BUILD_REQUE" + + "ST_FAILED\020\005\022 \n\034DEPLOY_FEATURE_NOT_SUPPOR" + + "TED\020\006\"\255\003\n\014VerifyJobRun\0227\n\005build\030\001 \001(\tB(\342" + + "A\001\003\372A!\n\037cloudbuild.googleapis.com/Build\022" + + "\032\n\014artifact_uri\030\002 \001(\tB\004\342A\001\003\022\034\n\016event_log" + + "_path\030\003 \001(\tB\004\342A\001\003\022N\n\rfailure_cause\030\004 \001(\016" + + "21.google.cloud.deploy.v1.VerifyJobRun.F" + + "ailureCauseB\004\342A\001\003\022\035\n\017failure_message\030\005 \001" + + "(\tB\004\342A\001\003\"\272\001\n\014FailureCause\022\035\n\031FAILURE_CAU" + + "SE_UNSPECIFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAILA" + + "BLE\020\001\022\024\n\020EXECUTION_FAILED\020\002\022\025\n\021DEADLINE_" + + "EXCEEDED\020\003\022!\n\035VERIFICATION_CONFIG_NOT_FO" + + "UND\020\004\022\036\n\032CLOUD_BUILD_REQUEST_FAILED\020\005\"\326\002" + + "\n\017PredeployJobRun\0227\n\005build\030\001 \001(\tB(\342A\001\003\372A" + + "!\n\037cloudbuild.googleapis.com/Build\022Q\n\rfa" + + "ilure_cause\030\002 \001(\01624.google.cloud.deploy." + + "v1.PredeployJobRun.FailureCauseB\004\342A\001\003\022\035\n" + + "\017failure_message\030\003 \001(\tB\004\342A\001\003\"\227\001\n\014Failure" + + "Cause\022\035\n\031FAILURE_CAUSE_UNSPECIFIED\020\000\022\033\n\027" + + "CLOUD_BUILD_UNAVAILABLE\020\001\022\024\n\020EXECUTION_F" + + "AILED\020\002\022\025\n\021DEADLINE_EXCEEDED\020\003\022\036\n\032CLOUD_" + + "BUILD_REQUEST_FAILED\020\004\"\330\002\n\020PostdeployJob" + + "Run\0227\n\005build\030\001 \001(\tB(\342A\001\003\372A!\n\037cloudbuild." + + "googleapis.com/Build\022R\n\rfailure_cause\030\002 " + + "\001(\01625.google.cloud.deploy.v1.PostdeployJ" + + "obRun.FailureCauseB\004\342A\001\003\022\035\n\017failure_mess" + + "age\030\003 \001(\tB\004\342A\001\003\"\227\001\n\014FailureCause\022\035\n\031FAIL" + + "URE_CAUSE_UNSPECIFIED\020\000\022\033\n\027CLOUD_BUILD_U" + + "NAVAILABLE\020\001\022\024\n\020EXECUTION_FAILED\020\002\022\025\n\021DE" + + "ADLINE_EXCEEDED\020\003\022\036\n\032CLOUD_BUILD_REQUEST" + + "_FAILED\020\004\"Q\n\030CreateChildRolloutJobRun\022\025\n" + + "\007rollout\030\001 \001(\tB\004\342A\001\003\022\036\n\020rollout_phase_id" + + "\030\002 \001(\tB\004\342A\001\003\"R\n\031AdvanceChildRolloutJobRu" + + "n\022\025\n\007rollout\030\001 \001(\tB\004\342A\001\003\022\036\n\020rollout_phas" + + "e_id\030\002 \001(\tB\004\342A\001\003\"\262\001\n\022ListJobRunsRequest\022" + + ";\n\006parent\030\001 \001(\tB+\342A\001\002\372A$\n\"clouddeploy.go" + + "ogleapis.com/Rollout\022\027\n\tpage_size\030\002 \001(\005B" + + "\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\022\024\n\006filte" + + "r\030\004 \001(\tB\004\342A\001\001\022\026\n\010order_by\030\005 \001(\tB\004\342A\001\001\"u\n" + + "\023ListJobRunsResponse\0220\n\010job_runs\030\001 \003(\0132\036" + + ".google.cloud.deploy.v1.JobRun\022\027\n\017next_p" + + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"L\n\020" + + "GetJobRunRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + + "!clouddeploy.googleapis.com/JobRun\"R\n\026Te" + + "rminateJobRunRequest\0228\n\004name\030\001 \001(\tB*\342A\001\002" + + "\372A#\n!clouddeploy.googleapis.com/JobRun\"\031" + + "\n\027TerminateJobRunResponse\"\325\001\n\006Config\022\014\n\004" + + "name\030\001 \001(\t\022C\n\022supported_versions\030\002 \003(\0132\'" + + ".google.cloud.deploy.v1.SkaffoldVersion\022" + + " \n\030default_skaffold_version\030\003 \001(\t:V\352AS\n!" + + "clouddeploy.googleapis.com/Config\022.proje" + + "cts/{project}/locations/{location}/confi" + + "g\"\307\001\n\017SkaffoldVersion\022\017\n\007version\030\001 \001(\t\0229" + + "\n\025maintenance_mode_time\030\003 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022;\n\027support_expiration_" + + "time\030\004 \001(\0132\032.google.protobuf.Timestamp\022+" + + "\n\020support_end_date\030\002 \001(\0132\021.google.type.D" + + "ate\"L\n\020GetConfigRequest\0228\n\004name\030\001 \001(\tB*\342" + + "A\001\002\372A#\n!clouddeploy.googleapis.com/Confi" + + "g\"\243\006\n\nAutomation\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\021\n\003" + + "uid\030\002 \001(\tB\004\342A\001\003\022\031\n\013description\030\003 \001(\tB\004\342A" + + "\001\001\0225\n\013create_time\030\004 \001(\0132\032.google.protobu" + + "f.TimestampB\004\342A\001\003\0225\n\013update_time\030\005 \001(\0132\032" + + ".google.protobuf.TimestampB\004\342A\001\003\022N\n\013anno" + + "tations\030\006 \003(\01323.google.cloud.deploy.v1.A" + + "utomation.AnnotationsEntryB\004\342A\001\001\022D\n\006labe" + + "ls\030\007 \003(\0132..google.cloud.deploy.v1.Automa" + + "tion.LabelsEntryB\004\342A\001\001\022\022\n\004etag\030\010 \001(\tB\004\342A" + + "\001\001\022\027\n\tsuspended\030\t \001(\010B\004\342A\001\001\022\035\n\017service_a" + + "ccount\030\n \001(\tB\004\342A\001\002\022J\n\010selector\030\013 \001(\01322.g" + + "oogle.cloud.deploy.v1.AutomationResource" + + "SelectorB\004\342A\001\002\022;\n\005rules\030\016 \003(\0132&.google.c" + + "loud.deploy.v1.AutomationRuleB\004\342A\001\002\0322\n\020A" + + "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001:\226\001\352A\222\001\n%clouddeploy.googl" + + "eapis.com/Automation\022fprojects/{project}" + + "/locations/{location}/deliveryPipelines/" + + "{delivery_pipeline}/automations/{automat" + + "ion}R\001\001\"V\n\032AutomationResourceSelector\0228\n" + + "\007targets\030\001 \003(\0132\'.google.cloud.deploy.v1." + + "TargetAttribute\"\214\002\n\016AutomationRule\022P\n\024pr" + + "omote_release_rule\030\001 \001(\0132*.google.cloud." + + "deploy.v1.PromoteReleaseRuleB\004\342A\001\001H\000\022P\n\024" + + "advance_rollout_rule\030\002 \001(\0132*.google.clou" + + "d.deploy.v1.AdvanceRolloutRuleB\004\342A\001\001H\000\022N" + + "\n\023repair_rollout_rule\030\003 \001(\0132).google.clo" + + "ud.deploy.v1.RepairRolloutRuleB\004\342A\001\001H\000B\006" + + "\n\004rule\"\345\001\n\022PromoteReleaseRule\022\020\n\002id\030\001 \001(" + + "\tB\004\342A\001\002\022-\n\004wait\030\002 \001(\0132\031.google.protobuf." + + "DurationB\004\342A\001\001\022#\n\025destination_target_id\030" + + "\007 \001(\tB\004\342A\001\001\022H\n\tcondition\030\005 \001(\0132/.google." + + "cloud.deploy.v1.AutomationRuleConditionB" + + "\004\342A\001\003\022\037\n\021destination_phase\030\010 \001(\tB\004\342A\001\001\"\274" + + "\001\n\022AdvanceRolloutRule\022\020\n\002id\030\001 \001(\tB\004\342A\001\002\022" + + "\033\n\rsource_phases\030\006 \003(\tB\004\342A\001\001\022-\n\004wait\030\003 \001" + + "(\0132\031.google.protobuf.DurationB\004\342A\001\001\022H\n\tc" + + "ondition\030\005 \001(\0132/.google.cloud.deploy.v1." + + "AutomationRuleConditionB\004\342A\001\003\"\340\001\n\021Repair" + + "RolloutRule\022\020\n\002id\030\001 \001(\tB\004\342A\001\002\022\033\n\rsource_" + + "phases\030\002 \003(\tB\004\342A\001\001\022\022\n\004jobs\030\003 \003(\tB\004\342A\001\001\022>" + + "\n\014repair_modes\030\004 \003(\0132\".google.cloud.depl" + + "oy.v1.RepairModeB\004\342A\001\002\022H\n\tcondition\030\006 \001(" + + "\0132/.google.cloud.deploy.v1.AutomationRul" + + "eConditionB\004\342A\001\003\"\206\001\n\nRepairMode\0224\n\005retry" + + "\030\001 \001(\0132\035.google.cloud.deploy.v1.RetryB\004\342" + + "A\001\001H\000\022:\n\010rollback\030\002 \001(\0132 .google.cloud.d" + + "eploy.v1.RollbackB\004\342A\001\001H\000B\006\n\004mode\"\217\001\n\005Re" + + "try\022\026\n\010attempts\030\001 \001(\003B\004\342A\001\002\022-\n\004wait\030\002 \001(" + + "\0132\031.google.protobuf.DurationB\004\342A\001\001\022?\n\014ba" + + "ckoff_mode\030\003 \001(\0162#.google.cloud.deploy.v" + + "1.BackoffModeB\004\342A\001\001\"+\n\010Rollback\022\037\n\021desti" + + "nation_phase\030\001 \001(\tB\004\342A\001\001\"s\n\027AutomationRu" + + "leCondition\022X\n\031targets_present_condition" + + "\030\001 \001(\0132/.google.cloud.deploy.v1.TargetsP" + + "resentConditionB\004\342A\001\001\"\353\001\n\027CreateAutomati" + + "onRequest\022>\n\006parent\030\001 \001(\tB.\342A\001\002\372A\'\022%clou" + + "ddeploy.googleapis.com/Automation\022\033\n\raut" + + "omation_id\030\002 \001(\tB\004\342A\001\002\022<\n\nautomation\030\003 \001" + + "(\0132\".google.cloud.deploy.v1.AutomationB\004" + + "\342A\001\002\022\030\n\nrequest_id\030\004 \001(\tB\004\342A\001\001\022\033\n\rvalida" + + "te_only\030\005 \001(\010B\004\342A\001\001\"\342\001\n\027UpdateAutomation" + + "Request\0225\n\013update_mask\030\001 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\004\342A\001\002\022<\n\nautomation\030\002 \001" + + "(\0132\".google.cloud.deploy.v1.AutomationB\004" + + "\342A\001\002\022\030\n\nrequest_id\030\003 \001(\tB\004\342A\001\001\022\033\n\rallow_" + + "missing\030\004 \001(\010B\004\342A\001\001\022\033\n\rvalidate_only\030\005 \001" + + "(\010B\004\342A\001\001\"\277\001\n\027DeleteAutomationRequest\022<\n\004" + + "name\030\001 \001(\tB.\342A\001\002\372A\'\n%clouddeploy.googlea" + + "pis.com/Automation\022\030\n\nrequest_id\030\002 \001(\tB\004" + + "\342A\001\001\022\033\n\rallow_missing\030\003 \001(\010B\004\342A\001\001\022\033\n\rval" + + "idate_only\030\004 \001(\010B\004\342A\001\001\022\022\n\004etag\030\005 \001(\tB\004\342A" + + "\001\001\"\241\001\n\026ListAutomationsRequest\022>\n\006parent\030" + + "\001 \001(\tB.\342A\001\002\372A\'\022%clouddeploy.googleapis.c" + + "om/Automation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" + + "\030\005 \001(\t\"\200\001\n\027ListAutomationsResponse\0227\n\013au" + + "tomations\030\001 \003(\0132\".google.cloud.deploy.v1" + + ".Automation\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" + + "unreachable\030\003 \003(\t\"T\n\024GetAutomationReques" + + "t\022<\n\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%clouddeploy.go" + + "ogleapis.com/Automation\"\324\010\n\rAutomationRu" + + "n\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0225\n\013create_time\030\002 \001" + + "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n\013" + + "update_time\030\003 \001(\0132\032.google.protobuf.Time" + + "stampB\004\342A\001\003\022\022\n\004etag\030\004 \001(\tB\004\342A\001\003\022\035\n\017servi" + + "ce_account\030\005 \001(\tB\004\342A\001\003\022E\n\023automation_sna" + + "pshot\030\006 \001(\0132\".google.cloud.deploy.v1.Aut" + + "omationB\004\342A\001\003\022\027\n\ttarget_id\030\007 \001(\tB\004\342A\001\003\022@" + + "\n\005state\030\010 \001(\0162+.google.cloud.deploy.v1.A" + + "utomationRun.StateB\004\342A\001\003\022\037\n\021state_descri" + + "ption\030\t \001(\tB\004\342A\001\003\0225\n\013expire_time\030\013 \001(\0132\032" + + ".google.protobuf.TimestampB\004\342A\001\003\022\025\n\007rule" + + "_id\030\014 \001(\tB\004\342A\001\003\022\033\n\rautomation_id\030\017 \001(\tB\004" + + "\342A\001\003\022Z\n\031promote_release_operation\030\r \001(\0132" + + "/.google.cloud.deploy.v1.PromoteReleaseO" + + "perationB\004\342A\001\003H\000\022Z\n\031advance_rollout_oper" + + "ation\030\016 \001(\0132/.google.cloud.deploy.v1.Adv" + + "anceRolloutOperationB\004\342A\001\003H\000\022X\n\030repair_r" + + "ollout_operation\030\021 \001(\0132..google.cloud.de" + + "ploy.v1.RepairRolloutOperationB\004\342A\001\003H\000\0229" + + "\n\017wait_until_time\030\020 \001(\0132\032.google.protobu" + + "f.TimestampB\004\342A\001\003\"f\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\020\000\022\r\n\tSUCCEEDED\020\001\022\r\n\tCANCELLED\020\002\022" + + "\n\n\006FAILED\020\003\022\017\n\013IN_PROGRESS\020\004\022\013\n\007PENDING\020" + + "\005:\235\001\352A\231\001\n(clouddeploy.googleapis.com/Aut" + + "omationRun\022mprojects/{project}/locations" + + "/{location}/deliveryPipelines/{delivery_" + + "pipeline}/automationRuns/{automation_run" + + "}B\013\n\toperation\"\215\001\n\027PromoteReleaseOperati" + + "on\022\027\n\ttarget_id\030\001 \001(\tB\004\342A\001\003\022-\n\004wait\030\002 \001(" + + "\0132\031.google.protobuf.DurationB\004\342A\001\003\022\025\n\007ro" + + "llout\030\003 \001(\tB\004\342A\001\003\022\023\n\005phase\030\004 \001(\tB\004\342A\001\003\"\234" + + "\001\n\027AdvanceRolloutOperation\022\032\n\014source_pha" + + "se\030\005 \001(\tB\004\342A\001\003\022-\n\004wait\030\002 \001(\0132\031.google.pr" + + "otobuf.DurationB\004\342A\001\003\022\025\n\007rollout\030\003 \001(\tB\004" + + "\342A\001\003\022\037\n\021destination_phase\030\004 \001(\tB\004\342A\001\003\"\232\001" + + "\n\026RepairRolloutOperation\022\025\n\007rollout\030\001 \001(" + + "\tB\004\342A\001\003\022\'\n\031current_repair_mode_index\030\002 \001" + + "(\003B\004\342A\001\003\022@\n\rrepair_phases\030\003 \003(\0132#.google" + + ".cloud.deploy.v1.RepairPhaseB\004\342A\001\003\"\233\001\n\013R" + + "epairPhase\0229\n\005retry\030\001 \001(\0132\".google.cloud" + + ".deploy.v1.RetryPhaseB\004\342A\001\003H\000\022A\n\010rollbac" + + "k\030\002 \001(\0132\'.google.cloud.deploy.v1.Rollbac" + + "kAttemptB\004\342A\001\003H\000B\016\n\014repair_phase\"\327\001\n\nRet" + + "ryPhase\022\034\n\016total_attempts\030\001 \001(\003B\004\342A\001\003\022?\n" + + "\014backoff_mode\030\002 \001(\0162#.google.cloud.deplo" + + "y.v1.BackoffModeB\004\342A\001\003\022\026\n\010phase_id\030\003 \001(\t" + + "B\004\342A\001\003\022\024\n\006job_id\030\004 \001(\tB\004\342A\001\003\022<\n\010attempts" + + "\030\005 \003(\0132$.google.cloud.deploy.v1.RetryAtt" + + "emptB\004\342A\001\003\"\250\001\n\014RetryAttempt\022\025\n\007attempt\030\001" + + " \001(\003B\004\342A\001\003\022-\n\004wait\030\002 \001(\0132\031.google.protob" + + "uf.DurationB\004\342A\001\003\0228\n\005state\030\005 \001(\0162#.googl" + + "e.cloud.deploy.v1.RepairStateB\004\342A\001\003\022\030\n\ns" + + "tate_desc\030\006 \001(\tB\004\342A\001\003\"\240\001\n\017RollbackAttemp" + + "t\022\037\n\021destination_phase\030\001 \001(\tB\004\342A\001\003\022\030\n\nro", + "llout_id\030\002 \001(\tB\004\342A\001\003\0228\n\005state\030\003 \001(\0162#.go" + + "ogle.cloud.deploy.v1.RepairStateB\004\342A\001\003\022\030" + + "\n\nstate_desc\030\004 \001(\tB\004\342A\001\003\"\247\001\n\031ListAutomat" + + "ionRunsRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\022" + + "(clouddeploy.googleapis.com/AutomationRu" + + "n\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + + "\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\212\001\n\032L" + + "istAutomationRunsResponse\022>\n\017automation_" + + "runs\030\001 \003(\0132%.google.cloud.deploy.v1.Auto" + + "mationRun\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013un" + + "reachable\030\003 \003(\t\"Z\n\027GetAutomationRunReque" + + "st\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(clouddeploy.g" + + "oogleapis.com/AutomationRun\"]\n\032CancelAut" + + "omationRunRequest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*" + + "\n(clouddeploy.googleapis.com/AutomationR" + + "un\"\035\n\033CancelAutomationRunResponse*\271\001\n\024Sk" + + "affoldSupportState\022&\n\"SKAFFOLD_SUPPORT_S" + + "TATE_UNSPECIFIED\020\000\022$\n SKAFFOLD_SUPPORT_S" + + "TATE_SUPPORTED\020\001\022+\n\'SKAFFOLD_SUPPORT_STA" + + "TE_MAINTENANCE_MODE\020\002\022&\n\"SKAFFOLD_SUPPOR" + + "T_STATE_UNSUPPORTED\020\003*b\n\013BackoffMode\022\034\n\030" + + "BACKOFF_MODE_UNSPECIFIED\020\000\022\027\n\023BACKOFF_MO" + + "DE_LINEAR\020\001\022\034\n\030BACKOFF_MODE_EXPONENTIAL\020" + + "\002*\316\001\n\013RepairState\022\034\n\030REPAIR_STATE_UNSPEC" + + "IFIED\020\000\022\032\n\026REPAIR_STATE_SUCCEEDED\020\001\022\032\n\026R" + + "EPAIR_STATE_CANCELLED\020\002\022\027\n\023REPAIR_STATE_" + + "FAILED\020\003\022\034\n\030REPAIR_STATE_IN_PROGRESS\020\004\022\030" + + "\n\024REPAIR_STATE_PENDING\020\005\022\030\n\024REPAIR_STATE" + + "_SKIPPED\020\0062\242D\n\013CloudDeploy\022\314\001\n\025ListDeliv" + + "eryPipelines\0224.google.cloud.deploy.v1.Li" + + "stDeliveryPipelinesRequest\0325.google.clou" + + "d.deploy.v1.ListDeliveryPipelinesRespons" + + "e\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=projects" + + "/*/locations/*}/deliveryPipelines\022\271\001\n\023Ge" + + "tDeliveryPipeline\0222.google.cloud.deploy." + + "v1.GetDeliveryPipelineRequest\032(.google.c" + + "loud.deploy.v1.DeliveryPipeline\"D\332A\004name" + + "\202\323\344\223\0027\0225/v1/{name=projects/*/locations/*" + + "/deliveryPipelines/*}\022\231\002\n\026CreateDelivery" + + "Pipeline\0225.google.cloud.deploy.v1.Create" + + "DeliveryPipelineRequest\032\035.google.longrun" + + "ning.Operation\"\250\001\312A%\n\020DeliveryPipeline\022\021" + + "OperationMetadata\332A-parent,delivery_pipe" + + "line,delivery_pipeline_id\202\323\344\223\002J\"5/v1/{pa" + + "rent=projects/*/locations/*}/deliveryPip" + + "elines:\021delivery_pipeline\022\233\002\n\026UpdateDeli" + + "veryPipeline\0225.google.cloud.deploy.v1.Up" + + "dateDeliveryPipelineRequest\032\035.google.lon" + + "grunning.Operation\"\252\001\312A%\n\020DeliveryPipeli" + + "ne\022\021OperationMetadata\332A\035delivery_pipelin" + + "e,update_mask\202\323\344\223\002\\2G/v1/{delivery_pipel" + + "ine.name=projects/*/locations/*/delivery" + + "Pipelines/*}:\021delivery_pipeline\022\341\001\n\026Dele" + + "teDeliveryPipeline\0225.google.cloud.deploy" + + ".v1.DeleteDeliveryPipelineRequest\032\035.goog" + + "le.longrunning.Operation\"q\312A*\n\025google.pr" + + "otobuf.Empty\022\021OperationMetadata\332A\004name\202\323" + + "\344\223\0027*5/v1/{name=projects/*/locations/*/d" + + "eliveryPipelines/*}\022\244\001\n\013ListTargets\022*.go" + + "ogle.cloud.deploy.v1.ListTargetsRequest\032" + + "+.google.cloud.deploy.v1.ListTargetsResp" + + "onse\"<\332A\006parent\202\323\344\223\002-\022+/v1/{parent=proje" + + "cts/*/locations/*}/targets\022\334\001\n\016RollbackT" + + "arget\022-.google.cloud.deploy.v1.RollbackT" + + "argetRequest\032..google.cloud.deploy.v1.Ro" + + "llbackTargetResponse\"k\332A\031name,target_id," + + "rollout_id\202\323\344\223\002I\"D/v1/{name=projects/*/l" + + "ocations/*/deliveryPipelines/*}:rollback" + + "Target:\001*\022\221\001\n\tGetTarget\022(.google.cloud.d" + + "eploy.v1.GetTargetRequest\032\036.google.cloud" + + ".deploy.v1.Target\":\332A\004name\202\323\344\223\002-\022+/v1/{n" + + "ame=projects/*/locations/*/targets/*}\022\317\001" + + "\n\014CreateTarget\022+.google.cloud.deploy.v1." + + "CreateTargetRequest\032\035.google.longrunning" + + ".Operation\"s\312A\033\n\006Target\022\021OperationMetada" + + "ta\332A\027parent,target,target_id\202\323\344\223\0025\"+/v1/" + + "{parent=projects/*/locations/*}/targets:" + + "\006target\022\321\001\n\014UpdateTarget\022+.google.cloud." + + "deploy.v1.UpdateTargetRequest\032\035.google.l" + + "ongrunning.Operation\"u\312A\033\n\006Target\022\021Opera" + + "tionMetadata\332A\022target,update_mask\202\323\344\223\002<2" + + "2/v1/{target.name=projects/*/locations/*" + + "/targets/*}:\006target\022\303\001\n\014DeleteTarget\022+.g" + + "oogle.cloud.deploy.v1.DeleteTargetReques" + + "t\032\035.google.longrunning.Operation\"g\312A*\n\025g" + + "oogle.protobuf.Empty\022\021OperationMetadata\332" + + "A\004name\202\323\344\223\002-*+/v1/{name=projects/*/locat" + + "ions/*/targets/*}\022\314\001\n\025ListCustomTargetTy" + + "pes\0224.google.cloud.deploy.v1.ListCustomT" + + "argetTypesRequest\0325.google.cloud.deploy." + + "v1.ListCustomTargetTypesResponse\"F\332A\006par" + + "ent\202\323\344\223\0027\0225/v1/{parent=projects/*/locati" + + "ons/*}/customTargetTypes\022\271\001\n\023GetCustomTa" + + "rgetType\0222.google.cloud.deploy.v1.GetCus" + + "tomTargetTypeRequest\032(.google.cloud.depl" + + "oy.v1.CustomTargetType\"D\332A\004name\202\323\344\223\0027\0225/" + + "v1/{name=projects/*/locations/*/customTa" + + "rgetTypes/*}\022\234\002\n\026CreateCustomTargetType\022" + + "5.google.cloud.deploy.v1.CreateCustomTar" + + "getTypeRequest\032\035.google.longrunning.Oper" + + "ation\"\253\001\312A%\n\020CustomTargetType\022\021Operation" + + "Metadata\332A/parent,custom_target_type,cus" + + "tom_target_type_id\202\323\344\223\002K\"5/v1/{parent=pr" + + "ojects/*/locations/*}/customTargetTypes:" + + "\022custom_target_type\022\236\002\n\026UpdateCustomTarg" + + "etType\0225.google.cloud.deploy.v1.UpdateCu" + + "stomTargetTypeRequest\032\035.google.longrunni" + + "ng.Operation\"\255\001\312A%\n\020CustomTargetType\022\021Op" + + "erationMetadata\332A\036custom_target_type,upd" + + "ate_mask\202\323\344\223\002^2H/v1/{custom_target_type." + + "name=projects/*/locations/*/customTarget" + + "Types/*}:\022custom_target_type\022\341\001\n\026DeleteC" + + "ustomTargetType\0225.google.cloud.deploy.v1" + + ".DeleteCustomTargetTypeRequest\032\035.google." + + "longrunning.Operation\"q\312A*\n\025google.proto" + + "buf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002" + + "7*5/v1/{name=projects/*/locations/*/cust" + + "omTargetTypes/*}\022\274\001\n\014ListReleases\022+.goog" + + "le.cloud.deploy.v1.ListReleasesRequest\032," + + ".google.cloud.deploy.v1.ListReleasesResp" + + "onse\"Q\332A\006parent\202\323\344\223\002B\022@/v1/{parent=proje" + + "cts/*/locations/*/deliveryPipelines/*}/r" + + "eleases\022\251\001\n\nGetRelease\022).google.cloud.de" + + "ploy.v1.GetReleaseRequest\032\037.google.cloud" + + ".deploy.v1.Release\"O\332A\004name\202\323\344\223\002B\022@/v1/{" + + "name=projects/*/locations/*/deliveryPipe" + + "lines/*/releases/*}\022\353\001\n\rCreateRelease\022,." + + "google.cloud.deploy.v1.CreateReleaseRequ" + + "est\032\035.google.longrunning.Operation\"\214\001\312A\034" + + "\n\007Release\022\021OperationMetadata\332A\031parent,re" + + "lease,release_id\202\323\344\223\002K\"@/v1/{parent=proj" + + "ects/*/locations/*/deliveryPipelines/*}/" + + "releases:\007release\022\313\001\n\016AbandonRelease\022-.g" + + "oogle.cloud.deploy.v1.AbandonReleaseRequ" + + "est\032..google.cloud.deploy.v1.AbandonRele" + + "aseResponse\"Z\332A\004name\202\323\344\223\002M\"H/v1/{name=pr" + + "ojects/*/locations/*/deliveryPipelines/*" + + "/releases/*}:abandon:\001*\022\326\001\n\016ApproveRollo" + + "ut\022-.google.cloud.deploy.v1.ApproveRollo" + + "utRequest\032..google.cloud.deploy.v1.Appro" + + "veRolloutResponse\"e\332A\004name\202\323\344\223\002X\"S/v1/{n" + + "ame=projects/*/locations/*/deliveryPipel" + + "ines/*/releases/*/rollouts/*}:approve:\001*" + + "\022\337\001\n\016AdvanceRollout\022-.google.cloud.deplo" + + "y.v1.AdvanceRolloutRequest\032..google.clou" + + "d.deploy.v1.AdvanceRolloutResponse\"n\332A\rn" + + "ame,phase_id\202\323\344\223\002X\"S/v1/{name=projects/*" + + "/locations/*/deliveryPipelines/*/release" + + "s/*/rollouts/*}:advance:\001*\022\322\001\n\rCancelRol" + + "lout\022,.google.cloud.deploy.v1.CancelRoll" + + "outRequest\032-.google.cloud.deploy.v1.Canc" + + "elRolloutResponse\"d\332A\004name\202\323\344\223\002W\"R/v1/{n" + + "ame=projects/*/locations/*/deliveryPipel" + + "ines/*/releases/*/rollouts/*}:cancel:\001*\022" + + "\307\001\n\014ListRollouts\022+.google.cloud.deploy.v" + + "1.ListRolloutsRequest\032,.google.cloud.dep" + + "loy.v1.ListRolloutsResponse\"\\\332A\006parent\202\323" + + "\344\223\002M\022K/v1/{parent=projects/*/locations/*" + + "/deliveryPipelines/*/releases/*}/rollout" + + "s\022\264\001\n\nGetRollout\022).google.cloud.deploy.v" + + "1.GetRolloutRequest\032\037.google.cloud.deplo" + + "y.v1.Rollout\"Z\332A\004name\202\323\344\223\002M\022K/v1/{name=p" + "rojects/*/locations/*/deliveryPipelines/" - + "*/releases/*/rollouts/*}/jobRuns\022\273\001\n\tGet" - + "JobRun\022(.google.cloud.deploy.v1.GetJobRu" - + "nRequest\032\036.google.cloud.deploy.v1.JobRun" - + "\"d\332A\004name\202\323\344\223\002W\022U/v1/{name=projects/*/lo" - + "cations/*/deliveryPipelines/*/releases/*" - + "/rollouts/*/jobRuns/*}\022\345\001\n\017TerminateJobR" - + "un\022..google.cloud.deploy.v1.TerminateJob" - + "RunRequest\032/.google.cloud.deploy.v1.Term" - + "inateJobRunResponse\"q\332A\004name\202\323\344\223\002d\"_/v1/" - + "{name=projects/*/locations/*/deliveryPip" - + "elines/*/releases/*/rollouts/*/jobRuns/*" - + "}:terminate:\001*\022\216\001\n\tGetConfig\022(.google.cl" - + "oud.deploy.v1.GetConfigRequest\032\036.google." - + "cloud.deploy.v1.Config\"7\332A\004name\202\323\344\223\002*\022(/" - + "v1/{name=projects/*/locations/*/config}\022" - + "\200\002\n\020CreateAutomation\022/.google.cloud.depl" - + "oy.v1.CreateAutomationRequest\032\035.google.l" - + "ongrunning.Operation\"\233\001\312A\037\n\nAutomation\022\021" - + "OperationMetadata\332A\037parent,automation,au" - + "tomation_id\202\323\344\223\002Q\"C/v1/{parent=projects/" - + "*/locations/*/deliveryPipelines/*}/autom" - + "ations:\nautomation\022\202\002\n\020UpdateAutomation\022" - + "/.google.cloud.deploy.v1.UpdateAutomatio" - + "nRequest\032\035.google.longrunning.Operation\"" - + "\235\001\312A\037\n\nAutomation\022\021OperationMetadata\332A\026a" - + "utomation,update_mask\202\323\344\223\002\\2N/v1/{automa" - + "tion.name=projects/*/locations/*/deliver" - + "yPipelines/*/automations/*}:\nautomation\022" - + "\343\001\n\020DeleteAutomation\022/.google.cloud.depl" - + "oy.v1.DeleteAutomationRequest\032\035.google.l" - + "ongrunning.Operation\"\177\312A*\n\025google.protob" - + "uf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002E" - + "*C/v1/{name=projects/*/locations/*/deliv" - + "eryPipelines/*/automations/*}\022\265\001\n\rGetAut" - + "omation\022,.google.cloud.deploy.v1.GetAuto" - + "mationRequest\032\".google.cloud.deploy.v1.A" - + "utomation\"R\332A\004name\202\323\344\223\002E\022C/v1/{name=proj" - + "ects/*/locations/*/deliveryPipelines/*/a" - + "utomations/*}\022\310\001\n\017ListAutomations\022..goog" - + "le.cloud.deploy.v1.ListAutomationsReques" - + "t\032/.google.cloud.deploy.v1.ListAutomatio" - + "nsResponse\"T\332A\006parent\202\323\344\223\002E\022C/v1/{parent" + + "*/releases/*/rollouts/*}\022\366\001\n\rCreateRollo" + + "ut\022,.google.cloud.deploy.v1.CreateRollou" + + "tRequest\032\035.google.longrunning.Operation\"" + + "\227\001\312A\034\n\007Rollout\022\021OperationMetadata\332A\031pare" + + "nt,rollout,rollout_id\202\323\344\223\002V\"K/v1/{parent" + "=projects/*/locations/*/deliveryPipeline" - + "s/*}/automations\022\301\001\n\020GetAutomationRun\022/." - + "google.cloud.deploy.v1.GetAutomationRunR" - + "equest\032%.google.cloud.deploy.v1.Automati" - + "onRun\"U\332A\004name\202\323\344\223\002H\022F/v1/{name=projects" - + "/*/locations/*/deliveryPipelines/*/autom" - + "ationRuns/*}\022\324\001\n\022ListAutomationRuns\0221.go" - + "ogle.cloud.deploy.v1.ListAutomationRunsR" - + "equest\0322.google.cloud.deploy.v1.ListAuto" - + "mationRunsResponse\"W\332A\006parent\202\323\344\223\002H\022F/v1" + + "s/*/releases/*}/rollouts:\007rollout\022\337\001\n\tIg" + + "noreJob\022(.google.cloud.deploy.v1.IgnoreJ" + + "obRequest\032).google.cloud.deploy.v1.Ignor" + + "eJobResponse\"}\332A\027rollout,phase_id,job_id" + + "\202\323\344\223\002]\"X/v1/{rollout=projects/*/location" + + "s/*/deliveryPipelines/*/releases/*/rollo" + + "uts/*}:ignoreJob:\001*\022\333\001\n\010RetryJob\022\'.googl" + + "e.cloud.deploy.v1.RetryJobRequest\032(.goog" + + "le.cloud.deploy.v1.RetryJobResponse\"|\332A\027" + + "rollout,phase_id,job_id\202\323\344\223\002\\\"W/v1/{roll" + + "out=projects/*/locations/*/deliveryPipel" + + "ines/*/releases/*/rollouts/*}:retryJob:\001" + + "*\022\316\001\n\013ListJobRuns\022*.google.cloud.deploy." + + "v1.ListJobRunsRequest\032+.google.cloud.dep" + + "loy.v1.ListJobRunsResponse\"f\332A\006parent\202\323\344" + + "\223\002W\022U/v1/{parent=projects/*/locations/*/" + + "deliveryPipelines/*/releases/*/rollouts/" + + "*}/jobRuns\022\273\001\n\tGetJobRun\022(.google.cloud." + + "deploy.v1.GetJobRunRequest\032\036.google.clou" + + "d.deploy.v1.JobRun\"d\332A\004name\202\323\344\223\002W\022U/v1/{" + + "name=projects/*/locations/*/deliveryPipe" + + "lines/*/releases/*/rollouts/*/jobRuns/*}" + + "\022\345\001\n\017TerminateJobRun\022..google.cloud.depl" + + "oy.v1.TerminateJobRunRequest\032/.google.cl" + + "oud.deploy.v1.TerminateJobRunResponse\"q\332" + + "A\004name\202\323\344\223\002d\"_/v1/{name=projects/*/locat" + + "ions/*/deliveryPipelines/*/releases/*/ro" + + "llouts/*/jobRuns/*}:terminate:\001*\022\216\001\n\tGet" + + "Config\022(.google.cloud.deploy.v1.GetConfi" + + "gRequest\032\036.google.cloud.deploy.v1.Config" + + "\"7\332A\004name\202\323\344\223\002*\022(/v1/{name=projects/*/lo" + + "cations/*/config}\022\200\002\n\020CreateAutomation\022/" + + ".google.cloud.deploy.v1.CreateAutomation" + + "Request\032\035.google.longrunning.Operation\"\233" + + "\001\312A\037\n\nAutomation\022\021OperationMetadata\332A\037pa" + + "rent,automation,automation_id\202\323\344\223\002Q\"C/v1" + "/{parent=projects/*/locations/*/delivery" - + "Pipelines/*}/automationRuns\022\337\001\n\023CancelAu" - + "tomationRun\0222.google.cloud.deploy.v1.Can" - + "celAutomationRunRequest\0323.google.cloud.d" - + "eploy.v1.CancelAutomationRunResponse\"_\332A" - + "\004name\202\323\344\223\002R\"M/v1/{name=projects/*/locati" - + "ons/*/deliveryPipelines/*/automationRuns" - + "/*}:cancel:\001*\032N\312A\032clouddeploy.googleapis" - + ".com\322A.https://www.googleapis.com/auth/c" - + "loud-platformB\207\006\n\032com.google.cloud.deplo" - + "y.v1B\020CloudDeployProtoP\001Z2cloud.google.c" - + "om/go/deploy/apiv1/deploypb;deploypb\352AY\n" - + "\037cloudbuild.googleapis.com/Build\0226projec" - + "ts/{project}/locations/{location}/builds" - + "/{build}\352A^\n container.googleapis.com/Cl" - + "uster\022:projects/{project}/locations/{loc" - + "ation}/clusters/{cluster}\352Af\n$clouddeplo" - + "y.googleapis.com/Operation\022>projects/{pr" - + "oject}/locations/{location}/operations/{" - + "operation}\352Ai\n$cloudbuild.googleapis.com" - + "/WorkerPool\022Aprojects/{project}/location" - + "s/{location}/workerPools/{worker_pool}\352A" - + "d\n gkehub.googleapis.com/Membership\022@pro" - + "jects/{project}/locations/{location}/mem" - + "berships/{membership}\352AX\n\032run.googleapis" - + ".com/Service\022:projects/{project}/locatio" - + "ns/{location}/services/{service}\352AL\n\026run" - + ".googleapis.com/Job\0222projects/{project}/" - + "locations/{location}/jobs/{job}b\006proto3" + + "Pipelines/*}/automations:\nautomation\022\202\002\n" + + "\020UpdateAutomation\022/.google.cloud.deploy." + + "v1.UpdateAutomationRequest\032\035.google.long" + + "running.Operation\"\235\001\312A\037\n\nAutomation\022\021Ope" + + "rationMetadata\332A\026automation,update_mask\202" + + "\323\344\223\002\\2N/v1/{automation.name=projects/*/l" + + "ocations/*/deliveryPipelines/*/automatio" + + "ns/*}:\nautomation\022\343\001\n\020DeleteAutomation\022/" + + ".google.cloud.deploy.v1.DeleteAutomation" + + "Request\032\035.google.longrunning.Operation\"\177" + + "\312A*\n\025google.protobuf.Empty\022\021OperationMet" + + "adata\332A\004name\202\323\344\223\002E*C/v1/{name=projects/*" + + "/locations/*/deliveryPipelines/*/automat" + + "ions/*}\022\265\001\n\rGetAutomation\022,.google.cloud" + + ".deploy.v1.GetAutomationRequest\032\".google" + + ".cloud.deploy.v1.Automation\"R\332A\004name\202\323\344\223" + + "\002E\022C/v1/{name=projects/*/locations/*/del" + + "iveryPipelines/*/automations/*}\022\310\001\n\017List" + + "Automations\022..google.cloud.deploy.v1.Lis" + + "tAutomationsRequest\032/.google.cloud.deplo" + + "y.v1.ListAutomationsResponse\"T\332A\006parent\202" + + "\323\344\223\002E\022C/v1/{parent=projects/*/locations/" + + "*/deliveryPipelines/*}/automations\022\301\001\n\020G" + + "etAutomationRun\022/.google.cloud.deploy.v1" + + ".GetAutomationRunRequest\032%.google.cloud." + + "deploy.v1.AutomationRun\"U\332A\004name\202\323\344\223\002H\022F" + + "/v1/{name=projects/*/locations/*/deliver" + + "yPipelines/*/automationRuns/*}\022\324\001\n\022ListA" + + "utomationRuns\0221.google.cloud.deploy.v1.L" + + "istAutomationRunsRequest\0322.google.cloud." + + "deploy.v1.ListAutomationRunsResponse\"W\332A" + + "\006parent\202\323\344\223\002H\022F/v1/{parent=projects/*/lo" + + "cations/*/deliveryPipelines/*}/automatio" + + "nRuns\022\337\001\n\023CancelAutomationRun\0222.google.c" + + "loud.deploy.v1.CancelAutomationRunReques" + + "t\0323.google.cloud.deploy.v1.CancelAutomat" + + "ionRunResponse\"_\332A\004name\202\323\344\223\002R\"M/v1/{name" + + "=projects/*/locations/*/deliveryPipeline" + + "s/*/automationRuns/*}:cancel:\001*\032N\312A\032clou" + + "ddeploy.googleapis.com\322A.https://www.goo" + + "gleapis.com/auth/cloud-platformB\207\006\n\032com." + + "google.cloud.deploy.v1B\020CloudDeployProto" + + "P\001Z2cloud.google.com/go/deploy/apiv1/dep" + + "loypb;deploypb\352AY\n\037cloudbuild.googleapis" + + ".com/Build\0226projects/{project}/locations" + + "/{location}/builds/{build}\352A^\n container" + + ".googleapis.com/Cluster\022:projects/{proje" + + "ct}/locations/{location}/clusters/{clust" + + "er}\352Af\n$clouddeploy.googleapis.com/Opera" + + "tion\022>projects/{project}/locations/{loca" + + "tion}/operations/{operation}\352Ai\n$cloudbu" + + "ild.googleapis.com/WorkerPool\022Aprojects/" + + "{project}/locations/{location}/workerPoo" + + "ls/{worker_pool}\352Ad\n gkehub.googleapis.c" + + "om/Membership\022@projects/{project}/locati" + + "ons/{location}/memberships/{membership}\352" + + "AX\n\032run.googleapis.com/Service\022:projects" + + "/{project}/locations/{location}/services" + + "/{service}\352AL\n\026run.googleapis.com/Job\0222p" + + "rojects/{project}/locations/{location}/j" + + "obs/{job}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1791,6 +1975,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_deploy_v1_CloudRunConfig_descriptor, new java.lang.String[] { "AutomaticTrafficControl", + "CanaryRevisionTags", + "PriorRevisionTags", + "StableRevisionTags", }); internal_static_google_cloud_deploy_v1_RuntimeConfig_descriptor = getDescriptor().getMessageTypes().get(13); @@ -1929,6 +2116,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AnthosCluster", "Run", "MultiTarget", + "CustomTarget", "Etag", "ExecutionConfigs", "DeployParameters", @@ -2021,8 +2209,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TargetIds", }); - internal_static_google_cloud_deploy_v1_ListTargetsRequest_descriptor = + internal_static_google_cloud_deploy_v1_CustomTarget_descriptor = getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_deploy_v1_CustomTarget_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_CustomTarget_descriptor, + new java.lang.String[] { + "CustomTargetType", + }); + internal_static_google_cloud_deploy_v1_ListTargetsRequest_descriptor = + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_deploy_v1_ListTargetsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListTargetsRequest_descriptor, @@ -2030,7 +2226,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_deploy_v1_ListTargetsResponse_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_deploy_v1_ListTargetsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListTargetsResponse_descriptor, @@ -2038,7 +2234,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Targets", "NextPageToken", "Unreachable", }); internal_static_google_cloud_deploy_v1_GetTargetRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_deploy_v1_GetTargetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GetTargetRequest_descriptor, @@ -2046,7 +2242,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_CreateTargetRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_deploy_v1_CreateTargetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CreateTargetRequest_descriptor, @@ -2054,7 +2250,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "TargetId", "Target", "RequestId", "ValidateOnly", }); internal_static_google_cloud_deploy_v1_UpdateTargetRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_deploy_v1_UpdateTargetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_UpdateTargetRequest_descriptor, @@ -2062,15 +2258,129 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Target", "RequestId", "AllowMissing", "ValidateOnly", }); internal_static_google_cloud_deploy_v1_DeleteTargetRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_deploy_v1_DeleteTargetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_DeleteTargetRequest_descriptor, new java.lang.String[] { "Name", "RequestId", "AllowMissing", "ValidateOnly", "Etag", }); + internal_static_google_cloud_deploy_v1_CustomTargetType_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_cloud_deploy_v1_CustomTargetType_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_CustomTargetType_descriptor, + new java.lang.String[] { + "Name", + "CustomTargetTypeId", + "Uid", + "Description", + "Annotations", + "Labels", + "CreateTime", + "UpdateTime", + "Etag", + "CustomActions", + "Definition", + }); + internal_static_google_cloud_deploy_v1_CustomTargetType_AnnotationsEntry_descriptor = + internal_static_google_cloud_deploy_v1_CustomTargetType_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_deploy_v1_CustomTargetType_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_CustomTargetType_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_deploy_v1_CustomTargetType_LabelsEntry_descriptor = + internal_static_google_cloud_deploy_v1_CustomTargetType_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_deploy_v1_CustomTargetType_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_CustomTargetType_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_deploy_v1_CustomTargetSkaffoldActions_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_cloud_deploy_v1_CustomTargetSkaffoldActions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_CustomTargetSkaffoldActions_descriptor, + new java.lang.String[] { + "RenderAction", "DeployAction", "IncludeSkaffoldModules", + }); + internal_static_google_cloud_deploy_v1_SkaffoldModules_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_cloud_deploy_v1_SkaffoldModules_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_SkaffoldModules_descriptor, + new java.lang.String[] { + "Configs", "Git", "GoogleCloudStorage", "Source", + }); + internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGitSource_descriptor = + internal_static_google_cloud_deploy_v1_SkaffoldModules_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGitSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGitSource_descriptor, + new java.lang.String[] { + "Repo", "Path", "Ref", + }); + internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGCSSource_descriptor = + internal_static_google_cloud_deploy_v1_SkaffoldModules_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGCSSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGCSSource_descriptor, + new java.lang.String[] { + "Source", "Path", + }); + internal_static_google_cloud_deploy_v1_ListCustomTargetTypesRequest_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_cloud_deploy_v1_ListCustomTargetTypesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_ListCustomTargetTypesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_deploy_v1_ListCustomTargetTypesResponse_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_cloud_deploy_v1_ListCustomTargetTypesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_ListCustomTargetTypesResponse_descriptor, + new java.lang.String[] { + "CustomTargetTypes", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_deploy_v1_GetCustomTargetTypeRequest_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_cloud_deploy_v1_GetCustomTargetTypeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_GetCustomTargetTypeRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_deploy_v1_CreateCustomTargetTypeRequest_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_cloud_deploy_v1_CreateCustomTargetTypeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_CreateCustomTargetTypeRequest_descriptor, + new java.lang.String[] { + "Parent", "CustomTargetTypeId", "CustomTargetType", "RequestId", "ValidateOnly", + }); + internal_static_google_cloud_deploy_v1_UpdateCustomTargetTypeRequest_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_cloud_deploy_v1_UpdateCustomTargetTypeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_UpdateCustomTargetTypeRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "CustomTargetType", "RequestId", "AllowMissing", "ValidateOnly", + }); + internal_static_google_cloud_deploy_v1_DeleteCustomTargetTypeRequest_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_google_cloud_deploy_v1_DeleteCustomTargetTypeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_DeleteCustomTargetTypeRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "AllowMissing", "ValidateOnly", "Etag", + }); internal_static_google_cloud_deploy_v1_TargetAttribute_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(51); internal_static_google_cloud_deploy_v1_TargetAttribute_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_TargetAttribute_descriptor, @@ -2086,7 +2396,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_deploy_v1_Release_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(52); internal_static_google_cloud_deploy_v1_Release_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_Release_descriptor, @@ -2105,6 +2415,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BuildArtifacts", "DeliveryPipelineSnapshot", "TargetSnapshots", + "CustomTargetTypeSnapshots", "RenderState", "Etag", "SkaffoldVersion", @@ -2186,7 +2497,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_deploy_v1_BuildArtifact_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(53); internal_static_google_cloud_deploy_v1_BuildArtifact_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_BuildArtifact_descriptor, @@ -2194,7 +2505,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Image", "Tag", }); internal_static_google_cloud_deploy_v1_TargetArtifact_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(54); internal_static_google_cloud_deploy_v1_TargetArtifact_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_TargetArtifact_descriptor, @@ -2218,7 +2529,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_deploy_v1_DeployArtifact_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(55); internal_static_google_cloud_deploy_v1_DeployArtifact_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_DeployArtifact_descriptor, @@ -2226,7 +2537,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ArtifactUri", "ManifestPaths", }); internal_static_google_cloud_deploy_v1_CloudRunRenderMetadata_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(56); internal_static_google_cloud_deploy_v1_CloudRunRenderMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CloudRunRenderMetadata_descriptor, @@ -2234,15 +2545,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Service", }); internal_static_google_cloud_deploy_v1_RenderMetadata_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(57); internal_static_google_cloud_deploy_v1_RenderMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_RenderMetadata_descriptor, new java.lang.String[] { - "CloudRun", + "CloudRun", "Custom", }); internal_static_google_cloud_deploy_v1_ListReleasesRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(58); internal_static_google_cloud_deploy_v1_ListReleasesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListReleasesRequest_descriptor, @@ -2250,7 +2561,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_deploy_v1_ListReleasesResponse_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(59); internal_static_google_cloud_deploy_v1_ListReleasesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListReleasesResponse_descriptor, @@ -2258,7 +2569,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Releases", "NextPageToken", "Unreachable", }); internal_static_google_cloud_deploy_v1_GetReleaseRequest_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(60); internal_static_google_cloud_deploy_v1_GetReleaseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GetReleaseRequest_descriptor, @@ -2266,7 +2577,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_CreateReleaseRequest_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(61); internal_static_google_cloud_deploy_v1_CreateReleaseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CreateReleaseRequest_descriptor, @@ -2274,7 +2585,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ReleaseId", "Release", "RequestId", "ValidateOnly", }); internal_static_google_cloud_deploy_v1_Rollout_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(62); internal_static_google_cloud_deploy_v1_Rollout_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_Rollout_descriptor, @@ -2319,39 +2630,63 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_deploy_v1_Metadata_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(63); internal_static_google_cloud_deploy_v1_Metadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_Metadata_descriptor, new java.lang.String[] { - "CloudRun", "Automation", + "CloudRun", "Automation", "Custom", }); internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(64); internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_descriptor, new java.lang.String[] { - "CloudRun", + "CloudRun", "CustomTarget", "Custom", }); internal_static_google_cloud_deploy_v1_CloudRunMetadata_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(65); internal_static_google_cloud_deploy_v1_CloudRunMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CloudRunMetadata_descriptor, new java.lang.String[] { "Service", "ServiceUrls", "Revision", "Job", }); + internal_static_google_cloud_deploy_v1_CustomTargetDeployMetadata_descriptor = + getDescriptor().getMessageTypes().get(66); + internal_static_google_cloud_deploy_v1_CustomTargetDeployMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_CustomTargetDeployMetadata_descriptor, + new java.lang.String[] { + "SkipMessage", + }); internal_static_google_cloud_deploy_v1_AutomationRolloutMetadata_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(67); internal_static_google_cloud_deploy_v1_AutomationRolloutMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_AutomationRolloutMetadata_descriptor, new java.lang.String[] { "PromoteAutomationRun", "AdvanceAutomationRuns", "RepairAutomationRuns", }); + internal_static_google_cloud_deploy_v1_CustomMetadata_descriptor = + getDescriptor().getMessageTypes().get(68); + internal_static_google_cloud_deploy_v1_CustomMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_CustomMetadata_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_cloud_deploy_v1_CustomMetadata_ValuesEntry_descriptor = + internal_static_google_cloud_deploy_v1_CustomMetadata_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_deploy_v1_CustomMetadata_ValuesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_CustomMetadata_ValuesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_deploy_v1_Phase_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(69); internal_static_google_cloud_deploy_v1_Phase_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_Phase_descriptor, @@ -2359,7 +2694,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "State", "SkipMessage", "DeploymentJobs", "ChildRolloutJobs", "Jobs", }); internal_static_google_cloud_deploy_v1_DeploymentJobs_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(70); internal_static_google_cloud_deploy_v1_DeploymentJobs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_DeploymentJobs_descriptor, @@ -2367,7 +2702,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeployJob", "VerifyJob", "PredeployJob", "PostdeployJob", }); internal_static_google_cloud_deploy_v1_ChildRolloutJobs_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(71); internal_static_google_cloud_deploy_v1_ChildRolloutJobs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ChildRolloutJobs_descriptor, @@ -2375,7 +2710,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateRolloutJobs", "AdvanceRolloutJobs", }); internal_static_google_cloud_deploy_v1_Job_descriptor = - getDescriptor().getMessageTypes().get(60); + getDescriptor().getMessageTypes().get(72); internal_static_google_cloud_deploy_v1_Job_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_Job_descriptor, @@ -2393,17 +2728,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "JobType", }); internal_static_google_cloud_deploy_v1_DeployJob_descriptor = - getDescriptor().getMessageTypes().get(61); + getDescriptor().getMessageTypes().get(73); internal_static_google_cloud_deploy_v1_DeployJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_DeployJob_descriptor, new java.lang.String[] {}); internal_static_google_cloud_deploy_v1_VerifyJob_descriptor = - getDescriptor().getMessageTypes().get(62); + getDescriptor().getMessageTypes().get(74); internal_static_google_cloud_deploy_v1_VerifyJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_VerifyJob_descriptor, new java.lang.String[] {}); internal_static_google_cloud_deploy_v1_PredeployJob_descriptor = - getDescriptor().getMessageTypes().get(63); + getDescriptor().getMessageTypes().get(75); internal_static_google_cloud_deploy_v1_PredeployJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_PredeployJob_descriptor, @@ -2411,7 +2746,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Actions", }); internal_static_google_cloud_deploy_v1_PostdeployJob_descriptor = - getDescriptor().getMessageTypes().get(64); + getDescriptor().getMessageTypes().get(76); internal_static_google_cloud_deploy_v1_PostdeployJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_PostdeployJob_descriptor, @@ -2419,19 +2754,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Actions", }); internal_static_google_cloud_deploy_v1_CreateChildRolloutJob_descriptor = - getDescriptor().getMessageTypes().get(65); + getDescriptor().getMessageTypes().get(77); internal_static_google_cloud_deploy_v1_CreateChildRolloutJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CreateChildRolloutJob_descriptor, new java.lang.String[] {}); internal_static_google_cloud_deploy_v1_AdvanceChildRolloutJob_descriptor = - getDescriptor().getMessageTypes().get(66); + getDescriptor().getMessageTypes().get(78); internal_static_google_cloud_deploy_v1_AdvanceChildRolloutJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_AdvanceChildRolloutJob_descriptor, new java.lang.String[] {}); internal_static_google_cloud_deploy_v1_ListRolloutsRequest_descriptor = - getDescriptor().getMessageTypes().get(67); + getDescriptor().getMessageTypes().get(79); internal_static_google_cloud_deploy_v1_ListRolloutsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListRolloutsRequest_descriptor, @@ -2439,7 +2774,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_deploy_v1_ListRolloutsResponse_descriptor = - getDescriptor().getMessageTypes().get(68); + getDescriptor().getMessageTypes().get(80); internal_static_google_cloud_deploy_v1_ListRolloutsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListRolloutsResponse_descriptor, @@ -2447,7 +2782,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Rollouts", "NextPageToken", "Unreachable", }); internal_static_google_cloud_deploy_v1_GetRolloutRequest_descriptor = - getDescriptor().getMessageTypes().get(69); + getDescriptor().getMessageTypes().get(81); internal_static_google_cloud_deploy_v1_GetRolloutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GetRolloutRequest_descriptor, @@ -2455,7 +2790,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_CreateRolloutRequest_descriptor = - getDescriptor().getMessageTypes().get(70); + getDescriptor().getMessageTypes().get(82); internal_static_google_cloud_deploy_v1_CreateRolloutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CreateRolloutRequest_descriptor, @@ -2463,7 +2798,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "RolloutId", "Rollout", "RequestId", "ValidateOnly", "StartingPhaseId", }); internal_static_google_cloud_deploy_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(71); + getDescriptor().getMessageTypes().get(83); internal_static_google_cloud_deploy_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_OperationMetadata_descriptor, @@ -2477,7 +2812,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiVersion", }); internal_static_google_cloud_deploy_v1_ApproveRolloutRequest_descriptor = - getDescriptor().getMessageTypes().get(72); + getDescriptor().getMessageTypes().get(84); internal_static_google_cloud_deploy_v1_ApproveRolloutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ApproveRolloutRequest_descriptor, @@ -2485,13 +2820,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Approved", }); internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_descriptor = - getDescriptor().getMessageTypes().get(73); + getDescriptor().getMessageTypes().get(85); internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_deploy_v1_AdvanceRolloutRequest_descriptor = - getDescriptor().getMessageTypes().get(74); + getDescriptor().getMessageTypes().get(86); internal_static_google_cloud_deploy_v1_AdvanceRolloutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_AdvanceRolloutRequest_descriptor, @@ -2499,13 +2834,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PhaseId", }); internal_static_google_cloud_deploy_v1_AdvanceRolloutResponse_descriptor = - getDescriptor().getMessageTypes().get(75); + getDescriptor().getMessageTypes().get(87); internal_static_google_cloud_deploy_v1_AdvanceRolloutResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_AdvanceRolloutResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_deploy_v1_CancelRolloutRequest_descriptor = - getDescriptor().getMessageTypes().get(76); + getDescriptor().getMessageTypes().get(88); internal_static_google_cloud_deploy_v1_CancelRolloutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CancelRolloutRequest_descriptor, @@ -2513,13 +2848,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_CancelRolloutResponse_descriptor = - getDescriptor().getMessageTypes().get(77); + getDescriptor().getMessageTypes().get(89); internal_static_google_cloud_deploy_v1_CancelRolloutResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CancelRolloutResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_deploy_v1_IgnoreJobRequest_descriptor = - getDescriptor().getMessageTypes().get(78); + getDescriptor().getMessageTypes().get(90); internal_static_google_cloud_deploy_v1_IgnoreJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_IgnoreJobRequest_descriptor, @@ -2527,13 +2862,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Rollout", "PhaseId", "JobId", }); internal_static_google_cloud_deploy_v1_IgnoreJobResponse_descriptor = - getDescriptor().getMessageTypes().get(79); + getDescriptor().getMessageTypes().get(91); internal_static_google_cloud_deploy_v1_IgnoreJobResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_IgnoreJobResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_deploy_v1_RetryJobRequest_descriptor = - getDescriptor().getMessageTypes().get(80); + getDescriptor().getMessageTypes().get(92); internal_static_google_cloud_deploy_v1_RetryJobRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_RetryJobRequest_descriptor, @@ -2541,13 +2876,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Rollout", "PhaseId", "JobId", }); internal_static_google_cloud_deploy_v1_RetryJobResponse_descriptor = - getDescriptor().getMessageTypes().get(81); + getDescriptor().getMessageTypes().get(93); internal_static_google_cloud_deploy_v1_RetryJobResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_RetryJobResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_descriptor = - getDescriptor().getMessageTypes().get(82); + getDescriptor().getMessageTypes().get(94); internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_descriptor, @@ -2555,13 +2890,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_descriptor = - getDescriptor().getMessageTypes().get(83); + getDescriptor().getMessageTypes().get(95); internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_deploy_v1_JobRun_descriptor = - getDescriptor().getMessageTypes().get(84); + getDescriptor().getMessageTypes().get(96); internal_static_google_cloud_deploy_v1_JobRun_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_JobRun_descriptor, @@ -2584,7 +2919,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "JobRun", }); internal_static_google_cloud_deploy_v1_DeployJobRun_descriptor = - getDescriptor().getMessageTypes().get(85); + getDescriptor().getMessageTypes().get(97); internal_static_google_cloud_deploy_v1_DeployJobRun_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_DeployJobRun_descriptor, @@ -2592,7 +2927,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Build", "FailureCause", "FailureMessage", "Metadata", "Artifact", }); internal_static_google_cloud_deploy_v1_VerifyJobRun_descriptor = - getDescriptor().getMessageTypes().get(86); + getDescriptor().getMessageTypes().get(98); internal_static_google_cloud_deploy_v1_VerifyJobRun_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_VerifyJobRun_descriptor, @@ -2600,7 +2935,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Build", "ArtifactUri", "EventLogPath", "FailureCause", "FailureMessage", }); internal_static_google_cloud_deploy_v1_PredeployJobRun_descriptor = - getDescriptor().getMessageTypes().get(87); + getDescriptor().getMessageTypes().get(99); internal_static_google_cloud_deploy_v1_PredeployJobRun_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_PredeployJobRun_descriptor, @@ -2608,7 +2943,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Build", "FailureCause", "FailureMessage", }); internal_static_google_cloud_deploy_v1_PostdeployJobRun_descriptor = - getDescriptor().getMessageTypes().get(88); + getDescriptor().getMessageTypes().get(100); internal_static_google_cloud_deploy_v1_PostdeployJobRun_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_PostdeployJobRun_descriptor, @@ -2616,7 +2951,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Build", "FailureCause", "FailureMessage", }); internal_static_google_cloud_deploy_v1_CreateChildRolloutJobRun_descriptor = - getDescriptor().getMessageTypes().get(89); + getDescriptor().getMessageTypes().get(101); internal_static_google_cloud_deploy_v1_CreateChildRolloutJobRun_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CreateChildRolloutJobRun_descriptor, @@ -2624,7 +2959,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Rollout", "RolloutPhaseId", }); internal_static_google_cloud_deploy_v1_AdvanceChildRolloutJobRun_descriptor = - getDescriptor().getMessageTypes().get(90); + getDescriptor().getMessageTypes().get(102); internal_static_google_cloud_deploy_v1_AdvanceChildRolloutJobRun_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_AdvanceChildRolloutJobRun_descriptor, @@ -2632,7 +2967,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Rollout", "RolloutPhaseId", }); internal_static_google_cloud_deploy_v1_ListJobRunsRequest_descriptor = - getDescriptor().getMessageTypes().get(91); + getDescriptor().getMessageTypes().get(103); internal_static_google_cloud_deploy_v1_ListJobRunsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListJobRunsRequest_descriptor, @@ -2640,7 +2975,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_deploy_v1_ListJobRunsResponse_descriptor = - getDescriptor().getMessageTypes().get(92); + getDescriptor().getMessageTypes().get(104); internal_static_google_cloud_deploy_v1_ListJobRunsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListJobRunsResponse_descriptor, @@ -2648,7 +2983,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "JobRuns", "NextPageToken", "Unreachable", }); internal_static_google_cloud_deploy_v1_GetJobRunRequest_descriptor = - getDescriptor().getMessageTypes().get(93); + getDescriptor().getMessageTypes().get(105); internal_static_google_cloud_deploy_v1_GetJobRunRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GetJobRunRequest_descriptor, @@ -2656,7 +2991,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_TerminateJobRunRequest_descriptor = - getDescriptor().getMessageTypes().get(94); + getDescriptor().getMessageTypes().get(106); internal_static_google_cloud_deploy_v1_TerminateJobRunRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_TerminateJobRunRequest_descriptor, @@ -2664,13 +2999,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_TerminateJobRunResponse_descriptor = - getDescriptor().getMessageTypes().get(95); + getDescriptor().getMessageTypes().get(107); internal_static_google_cloud_deploy_v1_TerminateJobRunResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_TerminateJobRunResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_deploy_v1_Config_descriptor = - getDescriptor().getMessageTypes().get(96); + getDescriptor().getMessageTypes().get(108); internal_static_google_cloud_deploy_v1_Config_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_Config_descriptor, @@ -2678,7 +3013,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "SupportedVersions", "DefaultSkaffoldVersion", }); internal_static_google_cloud_deploy_v1_SkaffoldVersion_descriptor = - getDescriptor().getMessageTypes().get(97); + getDescriptor().getMessageTypes().get(109); internal_static_google_cloud_deploy_v1_SkaffoldVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_SkaffoldVersion_descriptor, @@ -2686,7 +3021,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Version", "MaintenanceModeTime", "SupportExpirationTime", "SupportEndDate", }); internal_static_google_cloud_deploy_v1_GetConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(98); + getDescriptor().getMessageTypes().get(110); internal_static_google_cloud_deploy_v1_GetConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GetConfigRequest_descriptor, @@ -2694,7 +3029,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_Automation_descriptor = - getDescriptor().getMessageTypes().get(99); + getDescriptor().getMessageTypes().get(111); internal_static_google_cloud_deploy_v1_Automation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_Automation_descriptor, @@ -2729,7 +3064,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_deploy_v1_AutomationResourceSelector_descriptor = - getDescriptor().getMessageTypes().get(100); + getDescriptor().getMessageTypes().get(112); internal_static_google_cloud_deploy_v1_AutomationResourceSelector_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_AutomationResourceSelector_descriptor, @@ -2737,7 +3072,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Targets", }); internal_static_google_cloud_deploy_v1_AutomationRule_descriptor = - getDescriptor().getMessageTypes().get(101); + getDescriptor().getMessageTypes().get(113); internal_static_google_cloud_deploy_v1_AutomationRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_AutomationRule_descriptor, @@ -2745,7 +3080,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PromoteReleaseRule", "AdvanceRolloutRule", "RepairRolloutRule", "Rule", }); internal_static_google_cloud_deploy_v1_PromoteReleaseRule_descriptor = - getDescriptor().getMessageTypes().get(102); + getDescriptor().getMessageTypes().get(114); internal_static_google_cloud_deploy_v1_PromoteReleaseRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_PromoteReleaseRule_descriptor, @@ -2753,7 +3088,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Wait", "DestinationTargetId", "Condition", "DestinationPhase", }); internal_static_google_cloud_deploy_v1_AdvanceRolloutRule_descriptor = - getDescriptor().getMessageTypes().get(103); + getDescriptor().getMessageTypes().get(115); internal_static_google_cloud_deploy_v1_AdvanceRolloutRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_AdvanceRolloutRule_descriptor, @@ -2761,7 +3096,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "SourcePhases", "Wait", "Condition", }); internal_static_google_cloud_deploy_v1_RepairRolloutRule_descriptor = - getDescriptor().getMessageTypes().get(104); + getDescriptor().getMessageTypes().get(116); internal_static_google_cloud_deploy_v1_RepairRolloutRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_RepairRolloutRule_descriptor, @@ -2769,7 +3104,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "SourcePhases", "Jobs", "RepairModes", "Condition", }); internal_static_google_cloud_deploy_v1_RepairMode_descriptor = - getDescriptor().getMessageTypes().get(105); + getDescriptor().getMessageTypes().get(117); internal_static_google_cloud_deploy_v1_RepairMode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_RepairMode_descriptor, @@ -2777,7 +3112,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Retry", "Rollback", "Mode", }); internal_static_google_cloud_deploy_v1_Retry_descriptor = - getDescriptor().getMessageTypes().get(106); + getDescriptor().getMessageTypes().get(118); internal_static_google_cloud_deploy_v1_Retry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_Retry_descriptor, @@ -2785,7 +3120,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Attempts", "Wait", "BackoffMode", }); internal_static_google_cloud_deploy_v1_Rollback_descriptor = - getDescriptor().getMessageTypes().get(107); + getDescriptor().getMessageTypes().get(119); internal_static_google_cloud_deploy_v1_Rollback_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_Rollback_descriptor, @@ -2793,7 +3128,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DestinationPhase", }); internal_static_google_cloud_deploy_v1_AutomationRuleCondition_descriptor = - getDescriptor().getMessageTypes().get(108); + getDescriptor().getMessageTypes().get(120); internal_static_google_cloud_deploy_v1_AutomationRuleCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_AutomationRuleCondition_descriptor, @@ -2801,7 +3136,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetsPresentCondition", }); internal_static_google_cloud_deploy_v1_CreateAutomationRequest_descriptor = - getDescriptor().getMessageTypes().get(109); + getDescriptor().getMessageTypes().get(121); internal_static_google_cloud_deploy_v1_CreateAutomationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CreateAutomationRequest_descriptor, @@ -2809,7 +3144,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "AutomationId", "Automation", "RequestId", "ValidateOnly", }); internal_static_google_cloud_deploy_v1_UpdateAutomationRequest_descriptor = - getDescriptor().getMessageTypes().get(110); + getDescriptor().getMessageTypes().get(122); internal_static_google_cloud_deploy_v1_UpdateAutomationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_UpdateAutomationRequest_descriptor, @@ -2817,7 +3152,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Automation", "RequestId", "AllowMissing", "ValidateOnly", }); internal_static_google_cloud_deploy_v1_DeleteAutomationRequest_descriptor = - getDescriptor().getMessageTypes().get(111); + getDescriptor().getMessageTypes().get(123); internal_static_google_cloud_deploy_v1_DeleteAutomationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_DeleteAutomationRequest_descriptor, @@ -2825,7 +3160,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "AllowMissing", "ValidateOnly", "Etag", }); internal_static_google_cloud_deploy_v1_ListAutomationsRequest_descriptor = - getDescriptor().getMessageTypes().get(112); + getDescriptor().getMessageTypes().get(124); internal_static_google_cloud_deploy_v1_ListAutomationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListAutomationsRequest_descriptor, @@ -2833,7 +3168,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_deploy_v1_ListAutomationsResponse_descriptor = - getDescriptor().getMessageTypes().get(113); + getDescriptor().getMessageTypes().get(125); internal_static_google_cloud_deploy_v1_ListAutomationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListAutomationsResponse_descriptor, @@ -2841,7 +3176,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Automations", "NextPageToken", "Unreachable", }); internal_static_google_cloud_deploy_v1_GetAutomationRequest_descriptor = - getDescriptor().getMessageTypes().get(114); + getDescriptor().getMessageTypes().get(126); internal_static_google_cloud_deploy_v1_GetAutomationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GetAutomationRequest_descriptor, @@ -2849,7 +3184,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_AutomationRun_descriptor = - getDescriptor().getMessageTypes().get(115); + getDescriptor().getMessageTypes().get(127); internal_static_google_cloud_deploy_v1_AutomationRun_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_AutomationRun_descriptor, @@ -2873,7 +3208,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operation", }); internal_static_google_cloud_deploy_v1_PromoteReleaseOperation_descriptor = - getDescriptor().getMessageTypes().get(116); + getDescriptor().getMessageTypes().get(128); internal_static_google_cloud_deploy_v1_PromoteReleaseOperation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_PromoteReleaseOperation_descriptor, @@ -2881,7 +3216,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetId", "Wait", "Rollout", "Phase", }); internal_static_google_cloud_deploy_v1_AdvanceRolloutOperation_descriptor = - getDescriptor().getMessageTypes().get(117); + getDescriptor().getMessageTypes().get(129); internal_static_google_cloud_deploy_v1_AdvanceRolloutOperation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_AdvanceRolloutOperation_descriptor, @@ -2889,7 +3224,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourcePhase", "Wait", "Rollout", "DestinationPhase", }); internal_static_google_cloud_deploy_v1_RepairRolloutOperation_descriptor = - getDescriptor().getMessageTypes().get(118); + getDescriptor().getMessageTypes().get(130); internal_static_google_cloud_deploy_v1_RepairRolloutOperation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_RepairRolloutOperation_descriptor, @@ -2897,7 +3232,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Rollout", "CurrentRepairModeIndex", "RepairPhases", }); internal_static_google_cloud_deploy_v1_RepairPhase_descriptor = - getDescriptor().getMessageTypes().get(119); + getDescriptor().getMessageTypes().get(131); internal_static_google_cloud_deploy_v1_RepairPhase_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_RepairPhase_descriptor, @@ -2905,7 +3240,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Retry", "Rollback", "RepairPhase", }); internal_static_google_cloud_deploy_v1_RetryPhase_descriptor = - getDescriptor().getMessageTypes().get(120); + getDescriptor().getMessageTypes().get(132); internal_static_google_cloud_deploy_v1_RetryPhase_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_RetryPhase_descriptor, @@ -2913,7 +3248,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TotalAttempts", "BackoffMode", "PhaseId", "JobId", "Attempts", }); internal_static_google_cloud_deploy_v1_RetryAttempt_descriptor = - getDescriptor().getMessageTypes().get(121); + getDescriptor().getMessageTypes().get(133); internal_static_google_cloud_deploy_v1_RetryAttempt_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_RetryAttempt_descriptor, @@ -2921,7 +3256,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Attempt", "Wait", "State", "StateDesc", }); internal_static_google_cloud_deploy_v1_RollbackAttempt_descriptor = - getDescriptor().getMessageTypes().get(122); + getDescriptor().getMessageTypes().get(134); internal_static_google_cloud_deploy_v1_RollbackAttempt_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_RollbackAttempt_descriptor, @@ -2929,7 +3264,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DestinationPhase", "RolloutId", "State", "StateDesc", }); internal_static_google_cloud_deploy_v1_ListAutomationRunsRequest_descriptor = - getDescriptor().getMessageTypes().get(123); + getDescriptor().getMessageTypes().get(135); internal_static_google_cloud_deploy_v1_ListAutomationRunsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListAutomationRunsRequest_descriptor, @@ -2937,7 +3272,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_deploy_v1_ListAutomationRunsResponse_descriptor = - getDescriptor().getMessageTypes().get(124); + getDescriptor().getMessageTypes().get(136); internal_static_google_cloud_deploy_v1_ListAutomationRunsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListAutomationRunsResponse_descriptor, @@ -2945,7 +3280,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AutomationRuns", "NextPageToken", "Unreachable", }); internal_static_google_cloud_deploy_v1_GetAutomationRunRequest_descriptor = - getDescriptor().getMessageTypes().get(125); + getDescriptor().getMessageTypes().get(137); internal_static_google_cloud_deploy_v1_GetAutomationRunRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GetAutomationRunRequest_descriptor, @@ -2953,7 +3288,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_CancelAutomationRunRequest_descriptor = - getDescriptor().getMessageTypes().get(126); + getDescriptor().getMessageTypes().get(138); internal_static_google_cloud_deploy_v1_CancelAutomationRunRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CancelAutomationRunRequest_descriptor, @@ -2961,7 +3296,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_CancelAutomationRunResponse_descriptor = - getDescriptor().getMessageTypes().get(127); + getDescriptor().getMessageTypes().get(139); internal_static_google_cloud_deploy_v1_CancelAutomationRunResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CancelAutomationRunResponse_descriptor, diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunConfig.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunConfig.java index 9f8e5e59d343..0a66c5fe57ef 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunConfig.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunConfig.java @@ -37,7 +37,11 @@ private CloudRunConfig(com.google.protobuf.GeneratedMessageV3.Builder builder super(builder); } - private CloudRunConfig() {} + private CloudRunConfig() { + canaryRevisionTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + priorRevisionTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + stableRevisionTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -81,6 +85,218 @@ public boolean getAutomaticTrafficControl() { return automaticTrafficControl_; } + public static final int CANARY_REVISION_TAGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList canaryRevisionTags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Optional. A list of tags that are added to the canary revision while the
+   * canary deployment is in progress.
+   * 
+ * + * repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the canaryRevisionTags. + */ + public com.google.protobuf.ProtocolStringList getCanaryRevisionTagsList() { + return canaryRevisionTags_; + } + /** + * + * + *
+   * Optional. A list of tags that are added to the canary revision while the
+   * canary deployment is in progress.
+   * 
+ * + * repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of canaryRevisionTags. + */ + public int getCanaryRevisionTagsCount() { + return canaryRevisionTags_.size(); + } + /** + * + * + *
+   * Optional. A list of tags that are added to the canary revision while the
+   * canary deployment is in progress.
+   * 
+ * + * repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The canaryRevisionTags at the given index. + */ + public java.lang.String getCanaryRevisionTags(int index) { + return canaryRevisionTags_.get(index); + } + /** + * + * + *
+   * Optional. A list of tags that are added to the canary revision while the
+   * canary deployment is in progress.
+   * 
+ * + * repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the canaryRevisionTags at the given index. + */ + public com.google.protobuf.ByteString getCanaryRevisionTagsBytes(int index) { + return canaryRevisionTags_.getByteString(index); + } + + public static final int PRIOR_REVISION_TAGS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList priorRevisionTags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Optional. A list of tags that are added to the prior revision while the
+   * canary deployment is in progress.
+   * 
+ * + * repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the priorRevisionTags. + */ + public com.google.protobuf.ProtocolStringList getPriorRevisionTagsList() { + return priorRevisionTags_; + } + /** + * + * + *
+   * Optional. A list of tags that are added to the prior revision while the
+   * canary deployment is in progress.
+   * 
+ * + * repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of priorRevisionTags. + */ + public int getPriorRevisionTagsCount() { + return priorRevisionTags_.size(); + } + /** + * + * + *
+   * Optional. A list of tags that are added to the prior revision while the
+   * canary deployment is in progress.
+   * 
+ * + * repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The priorRevisionTags at the given index. + */ + public java.lang.String getPriorRevisionTags(int index) { + return priorRevisionTags_.get(index); + } + /** + * + * + *
+   * Optional. A list of tags that are added to the prior revision while the
+   * canary deployment is in progress.
+   * 
+ * + * repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the priorRevisionTags at the given index. + */ + public com.google.protobuf.ByteString getPriorRevisionTagsBytes(int index) { + return priorRevisionTags_.getByteString(index); + } + + public static final int STABLE_REVISION_TAGS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList stableRevisionTags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Optional. A list of tags that are added to the final stable revision after
+   * the canary deployment is completed.
+   * 
+ * + * repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the stableRevisionTags. + */ + public com.google.protobuf.ProtocolStringList getStableRevisionTagsList() { + return stableRevisionTags_; + } + /** + * + * + *
+   * Optional. A list of tags that are added to the final stable revision after
+   * the canary deployment is completed.
+   * 
+ * + * repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of stableRevisionTags. + */ + public int getStableRevisionTagsCount() { + return stableRevisionTags_.size(); + } + /** + * + * + *
+   * Optional. A list of tags that are added to the final stable revision after
+   * the canary deployment is completed.
+   * 
+ * + * repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The stableRevisionTags at the given index. + */ + public java.lang.String getStableRevisionTags(int index) { + return stableRevisionTags_.get(index); + } + /** + * + * + *
+   * Optional. A list of tags that are added to the final stable revision after
+   * the canary deployment is completed.
+   * 
+ * + * repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the stableRevisionTags at the given index. + */ + public com.google.protobuf.ByteString getStableRevisionTagsBytes(int index) { + return stableRevisionTags_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -98,6 +314,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (automaticTrafficControl_ != false) { output.writeBool(1, automaticTrafficControl_); } + for (int i = 0; i < canaryRevisionTags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, canaryRevisionTags_.getRaw(i)); + } + for (int i = 0; i < priorRevisionTags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, priorRevisionTags_.getRaw(i)); + } + for (int i = 0; i < stableRevisionTags_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, stableRevisionTags_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -110,6 +335,30 @@ public int getSerializedSize() { if (automaticTrafficControl_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, automaticTrafficControl_); } + { + int dataSize = 0; + for (int i = 0; i < canaryRevisionTags_.size(); i++) { + dataSize += computeStringSizeNoTag(canaryRevisionTags_.getRaw(i)); + } + size += dataSize; + size += 1 * getCanaryRevisionTagsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < priorRevisionTags_.size(); i++) { + dataSize += computeStringSizeNoTag(priorRevisionTags_.getRaw(i)); + } + size += dataSize; + size += 1 * getPriorRevisionTagsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < stableRevisionTags_.size(); i++) { + dataSize += computeStringSizeNoTag(stableRevisionTags_.getRaw(i)); + } + size += dataSize; + size += 1 * getStableRevisionTagsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -127,6 +376,9 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.deploy.v1.CloudRunConfig) obj; if (getAutomaticTrafficControl() != other.getAutomaticTrafficControl()) return false; + if (!getCanaryRevisionTagsList().equals(other.getCanaryRevisionTagsList())) return false; + if (!getPriorRevisionTagsList().equals(other.getPriorRevisionTagsList())) return false; + if (!getStableRevisionTagsList().equals(other.getStableRevisionTagsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -140,6 +392,18 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AUTOMATIC_TRAFFIC_CONTROL_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutomaticTrafficControl()); + if (getCanaryRevisionTagsCount() > 0) { + hash = (37 * hash) + CANARY_REVISION_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getCanaryRevisionTagsList().hashCode(); + } + if (getPriorRevisionTagsCount() > 0) { + hash = (37 * hash) + PRIOR_REVISION_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getPriorRevisionTagsList().hashCode(); + } + if (getStableRevisionTagsCount() > 0) { + hash = (37 * hash) + STABLE_REVISION_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getStableRevisionTagsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -280,6 +544,9 @@ public Builder clear() { super.clear(); bitField0_ = 0; automaticTrafficControl_ = false; + canaryRevisionTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + priorRevisionTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + stableRevisionTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -319,6 +586,18 @@ private void buildPartial0(com.google.cloud.deploy.v1.CloudRunConfig result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.automaticTrafficControl_ = automaticTrafficControl_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + canaryRevisionTags_.makeImmutable(); + result.canaryRevisionTags_ = canaryRevisionTags_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + priorRevisionTags_.makeImmutable(); + result.priorRevisionTags_ = priorRevisionTags_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + stableRevisionTags_.makeImmutable(); + result.stableRevisionTags_ = stableRevisionTags_; + } } @java.lang.Override @@ -369,6 +648,36 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.CloudRunConfig other) { if (other.getAutomaticTrafficControl() != false) { setAutomaticTrafficControl(other.getAutomaticTrafficControl()); } + if (!other.canaryRevisionTags_.isEmpty()) { + if (canaryRevisionTags_.isEmpty()) { + canaryRevisionTags_ = other.canaryRevisionTags_; + bitField0_ |= 0x00000002; + } else { + ensureCanaryRevisionTagsIsMutable(); + canaryRevisionTags_.addAll(other.canaryRevisionTags_); + } + onChanged(); + } + if (!other.priorRevisionTags_.isEmpty()) { + if (priorRevisionTags_.isEmpty()) { + priorRevisionTags_ = other.priorRevisionTags_; + bitField0_ |= 0x00000004; + } else { + ensurePriorRevisionTagsIsMutable(); + priorRevisionTags_.addAll(other.priorRevisionTags_); + } + onChanged(); + } + if (!other.stableRevisionTags_.isEmpty()) { + if (stableRevisionTags_.isEmpty()) { + stableRevisionTags_ = other.stableRevisionTags_; + bitField0_ |= 0x00000008; + } else { + ensureStableRevisionTagsIsMutable(); + stableRevisionTags_.addAll(other.stableRevisionTags_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -401,6 +710,27 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCanaryRevisionTagsIsMutable(); + canaryRevisionTags_.add(s); + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePriorRevisionTagsIsMutable(); + priorRevisionTags_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureStableRevisionTagsIsMutable(); + stableRevisionTags_.add(s); + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -482,6 +812,582 @@ public Builder clearAutomaticTrafficControl() { return this; } + private com.google.protobuf.LazyStringArrayList canaryRevisionTags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCanaryRevisionTagsIsMutable() { + if (!canaryRevisionTags_.isModifiable()) { + canaryRevisionTags_ = new com.google.protobuf.LazyStringArrayList(canaryRevisionTags_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+     * Optional. A list of tags that are added to the canary revision while the
+     * canary deployment is in progress.
+     * 
+ * + * repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the canaryRevisionTags. + */ + public com.google.protobuf.ProtocolStringList getCanaryRevisionTagsList() { + canaryRevisionTags_.makeImmutable(); + return canaryRevisionTags_; + } + /** + * + * + *
+     * Optional. A list of tags that are added to the canary revision while the
+     * canary deployment is in progress.
+     * 
+ * + * repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of canaryRevisionTags. + */ + public int getCanaryRevisionTagsCount() { + return canaryRevisionTags_.size(); + } + /** + * + * + *
+     * Optional. A list of tags that are added to the canary revision while the
+     * canary deployment is in progress.
+     * 
+ * + * repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The canaryRevisionTags at the given index. + */ + public java.lang.String getCanaryRevisionTags(int index) { + return canaryRevisionTags_.get(index); + } + /** + * + * + *
+     * Optional. A list of tags that are added to the canary revision while the
+     * canary deployment is in progress.
+     * 
+ * + * repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the canaryRevisionTags at the given index. + */ + public com.google.protobuf.ByteString getCanaryRevisionTagsBytes(int index) { + return canaryRevisionTags_.getByteString(index); + } + /** + * + * + *
+     * Optional. A list of tags that are added to the canary revision while the
+     * canary deployment is in progress.
+     * 
+ * + * repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The canaryRevisionTags to set. + * @return This builder for chaining. + */ + public Builder setCanaryRevisionTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCanaryRevisionTagsIsMutable(); + canaryRevisionTags_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of tags that are added to the canary revision while the
+     * canary deployment is in progress.
+     * 
+ * + * repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The canaryRevisionTags to add. + * @return This builder for chaining. + */ + public Builder addCanaryRevisionTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCanaryRevisionTagsIsMutable(); + canaryRevisionTags_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of tags that are added to the canary revision while the
+     * canary deployment is in progress.
+     * 
+ * + * repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The canaryRevisionTags to add. + * @return This builder for chaining. + */ + public Builder addAllCanaryRevisionTags(java.lang.Iterable values) { + ensureCanaryRevisionTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, canaryRevisionTags_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of tags that are added to the canary revision while the
+     * canary deployment is in progress.
+     * 
+ * + * repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearCanaryRevisionTags() { + canaryRevisionTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of tags that are added to the canary revision while the
+     * canary deployment is in progress.
+     * 
+ * + * repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the canaryRevisionTags to add. + * @return This builder for chaining. + */ + public Builder addCanaryRevisionTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCanaryRevisionTagsIsMutable(); + canaryRevisionTags_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList priorRevisionTags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePriorRevisionTagsIsMutable() { + if (!priorRevisionTags_.isModifiable()) { + priorRevisionTags_ = new com.google.protobuf.LazyStringArrayList(priorRevisionTags_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * Optional. A list of tags that are added to the prior revision while the
+     * canary deployment is in progress.
+     * 
+ * + * repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the priorRevisionTags. + */ + public com.google.protobuf.ProtocolStringList getPriorRevisionTagsList() { + priorRevisionTags_.makeImmutable(); + return priorRevisionTags_; + } + /** + * + * + *
+     * Optional. A list of tags that are added to the prior revision while the
+     * canary deployment is in progress.
+     * 
+ * + * repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of priorRevisionTags. + */ + public int getPriorRevisionTagsCount() { + return priorRevisionTags_.size(); + } + /** + * + * + *
+     * Optional. A list of tags that are added to the prior revision while the
+     * canary deployment is in progress.
+     * 
+ * + * repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The priorRevisionTags at the given index. + */ + public java.lang.String getPriorRevisionTags(int index) { + return priorRevisionTags_.get(index); + } + /** + * + * + *
+     * Optional. A list of tags that are added to the prior revision while the
+     * canary deployment is in progress.
+     * 
+ * + * repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the priorRevisionTags at the given index. + */ + public com.google.protobuf.ByteString getPriorRevisionTagsBytes(int index) { + return priorRevisionTags_.getByteString(index); + } + /** + * + * + *
+     * Optional. A list of tags that are added to the prior revision while the
+     * canary deployment is in progress.
+     * 
+ * + * repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The priorRevisionTags to set. + * @return This builder for chaining. + */ + public Builder setPriorRevisionTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePriorRevisionTagsIsMutable(); + priorRevisionTags_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of tags that are added to the prior revision while the
+     * canary deployment is in progress.
+     * 
+ * + * repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The priorRevisionTags to add. + * @return This builder for chaining. + */ + public Builder addPriorRevisionTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePriorRevisionTagsIsMutable(); + priorRevisionTags_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of tags that are added to the prior revision while the
+     * canary deployment is in progress.
+     * 
+ * + * repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The priorRevisionTags to add. + * @return This builder for chaining. + */ + public Builder addAllPriorRevisionTags(java.lang.Iterable values) { + ensurePriorRevisionTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, priorRevisionTags_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of tags that are added to the prior revision while the
+     * canary deployment is in progress.
+     * 
+ * + * repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPriorRevisionTags() { + priorRevisionTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of tags that are added to the prior revision while the
+     * canary deployment is in progress.
+     * 
+ * + * repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the priorRevisionTags to add. + * @return This builder for chaining. + */ + public Builder addPriorRevisionTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePriorRevisionTagsIsMutable(); + priorRevisionTags_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList stableRevisionTags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureStableRevisionTagsIsMutable() { + if (!stableRevisionTags_.isModifiable()) { + stableRevisionTags_ = new com.google.protobuf.LazyStringArrayList(stableRevisionTags_); + } + bitField0_ |= 0x00000008; + } + /** + * + * + *
+     * Optional. A list of tags that are added to the final stable revision after
+     * the canary deployment is completed.
+     * 
+ * + * repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the stableRevisionTags. + */ + public com.google.protobuf.ProtocolStringList getStableRevisionTagsList() { + stableRevisionTags_.makeImmutable(); + return stableRevisionTags_; + } + /** + * + * + *
+     * Optional. A list of tags that are added to the final stable revision after
+     * the canary deployment is completed.
+     * 
+ * + * repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of stableRevisionTags. + */ + public int getStableRevisionTagsCount() { + return stableRevisionTags_.size(); + } + /** + * + * + *
+     * Optional. A list of tags that are added to the final stable revision after
+     * the canary deployment is completed.
+     * 
+ * + * repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The stableRevisionTags at the given index. + */ + public java.lang.String getStableRevisionTags(int index) { + return stableRevisionTags_.get(index); + } + /** + * + * + *
+     * Optional. A list of tags that are added to the final stable revision after
+     * the canary deployment is completed.
+     * 
+ * + * repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the stableRevisionTags at the given index. + */ + public com.google.protobuf.ByteString getStableRevisionTagsBytes(int index) { + return stableRevisionTags_.getByteString(index); + } + /** + * + * + *
+     * Optional. A list of tags that are added to the final stable revision after
+     * the canary deployment is completed.
+     * 
+ * + * repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The stableRevisionTags to set. + * @return This builder for chaining. + */ + public Builder setStableRevisionTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStableRevisionTagsIsMutable(); + stableRevisionTags_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of tags that are added to the final stable revision after
+     * the canary deployment is completed.
+     * 
+ * + * repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The stableRevisionTags to add. + * @return This builder for chaining. + */ + public Builder addStableRevisionTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStableRevisionTagsIsMutable(); + stableRevisionTags_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of tags that are added to the final stable revision after
+     * the canary deployment is completed.
+     * 
+ * + * repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The stableRevisionTags to add. + * @return This builder for chaining. + */ + public Builder addAllStableRevisionTags(java.lang.Iterable values) { + ensureStableRevisionTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stableRevisionTags_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of tags that are added to the final stable revision after
+     * the canary deployment is completed.
+     * 
+ * + * repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearStableRevisionTags() { + stableRevisionTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A list of tags that are added to the final stable revision after
+     * the canary deployment is completed.
+     * 
+ * + * repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the stableRevisionTags to add. + * @return This builder for chaining. + */ + public Builder addStableRevisionTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureStableRevisionTagsIsMutable(); + stableRevisionTags_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunConfigOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunConfigOrBuilder.java index 228201e906ed..29f0be00a962 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunConfigOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunConfigOrBuilder.java @@ -38,4 +38,177 @@ public interface CloudRunConfigOrBuilder * @return The automaticTrafficControl. */ boolean getAutomaticTrafficControl(); + + /** + * + * + *
+   * Optional. A list of tags that are added to the canary revision while the
+   * canary deployment is in progress.
+   * 
+ * + * repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the canaryRevisionTags. + */ + java.util.List getCanaryRevisionTagsList(); + /** + * + * + *
+   * Optional. A list of tags that are added to the canary revision while the
+   * canary deployment is in progress.
+   * 
+ * + * repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of canaryRevisionTags. + */ + int getCanaryRevisionTagsCount(); + /** + * + * + *
+   * Optional. A list of tags that are added to the canary revision while the
+   * canary deployment is in progress.
+   * 
+ * + * repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The canaryRevisionTags at the given index. + */ + java.lang.String getCanaryRevisionTags(int index); + /** + * + * + *
+   * Optional. A list of tags that are added to the canary revision while the
+   * canary deployment is in progress.
+   * 
+ * + * repeated string canary_revision_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the canaryRevisionTags at the given index. + */ + com.google.protobuf.ByteString getCanaryRevisionTagsBytes(int index); + + /** + * + * + *
+   * Optional. A list of tags that are added to the prior revision while the
+   * canary deployment is in progress.
+   * 
+ * + * repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the priorRevisionTags. + */ + java.util.List getPriorRevisionTagsList(); + /** + * + * + *
+   * Optional. A list of tags that are added to the prior revision while the
+   * canary deployment is in progress.
+   * 
+ * + * repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of priorRevisionTags. + */ + int getPriorRevisionTagsCount(); + /** + * + * + *
+   * Optional. A list of tags that are added to the prior revision while the
+   * canary deployment is in progress.
+   * 
+ * + * repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The priorRevisionTags at the given index. + */ + java.lang.String getPriorRevisionTags(int index); + /** + * + * + *
+   * Optional. A list of tags that are added to the prior revision while the
+   * canary deployment is in progress.
+   * 
+ * + * repeated string prior_revision_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the priorRevisionTags at the given index. + */ + com.google.protobuf.ByteString getPriorRevisionTagsBytes(int index); + + /** + * + * + *
+   * Optional. A list of tags that are added to the final stable revision after
+   * the canary deployment is completed.
+   * 
+ * + * repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the stableRevisionTags. + */ + java.util.List getStableRevisionTagsList(); + /** + * + * + *
+   * Optional. A list of tags that are added to the final stable revision after
+   * the canary deployment is completed.
+   * 
+ * + * repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of stableRevisionTags. + */ + int getStableRevisionTagsCount(); + /** + * + * + *
+   * Optional. A list of tags that are added to the final stable revision after
+   * the canary deployment is completed.
+   * 
+ * + * repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The stableRevisionTags at the given index. + */ + java.lang.String getStableRevisionTags(int index); + /** + * + * + *
+   * Optional. A list of tags that are added to the final stable revision after
+   * the canary deployment is completed.
+   * 
+ * + * repeated string stable_revision_tags = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the stableRevisionTags at the given index. + */ + com.google.protobuf.ByteString getStableRevisionTagsBytes(int index); } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateCustomTargetTypeRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateCustomTargetTypeRequest.java new file mode 100644 index 000000000000..040076f35930 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateCustomTargetTypeRequest.java @@ -0,0 +1,1490 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +/** + * + * + *
+ * The request object for `CreateCustomTargetType`.
+ * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.CreateCustomTargetTypeRequest} + */ +public final class CreateCustomTargetTypeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.CreateCustomTargetTypeRequest) + CreateCustomTargetTypeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCustomTargetTypeRequest.newBuilder() to construct. + private CreateCustomTargetTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCustomTargetTypeRequest() { + parent_ = ""; + customTargetTypeId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCustomTargetTypeRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CreateCustomTargetTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CreateCustomTargetTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest.class, + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent collection in which the `CustomTargetType` should be
+   * created in. Format should be
+   * `projects/{project_id}/locations/{location_name}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent collection in which the `CustomTargetType` should be
+   * created in. Format should be
+   * `projects/{project_id}/locations/{location_name}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_TARGET_TYPE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object customTargetTypeId_ = ""; + /** + * + * + *
+   * Required. ID of the `CustomTargetType`.
+   * 
+ * + * string custom_target_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The customTargetTypeId. + */ + @java.lang.Override + public java.lang.String getCustomTargetTypeId() { + java.lang.Object ref = customTargetTypeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customTargetTypeId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. ID of the `CustomTargetType`.
+   * 
+ * + * string custom_target_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for customTargetTypeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomTargetTypeIdBytes() { + java.lang.Object ref = customTargetTypeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customTargetTypeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_TARGET_TYPE_FIELD_NUMBER = 3; + private com.google.cloud.deploy.v1.CustomTargetType customTargetType_; + /** + * + * + *
+   * Required. The `CustomTargetType` to create.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customTargetType field is set. + */ + @java.lang.Override + public boolean hasCustomTargetType() { + return customTargetType_ != null; + } + /** + * + * + *
+   * Required. The `CustomTargetType` to create.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customTargetType. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetType getCustomTargetType() { + return customTargetType_ == null + ? com.google.cloud.deploy.v1.CustomTargetType.getDefaultInstance() + : customTargetType_; + } + /** + * + * + *
+   * Required. The `CustomTargetType` to create.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder getCustomTargetTypeOrBuilder() { + return customTargetType_ == null + ? com.google.cloud.deploy.v1.CustomTargetType.getDefaultInstance() + : customTargetType_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; + private boolean validateOnly_ = false; + /** + * + * + *
+   * Optional. If set to true, the request is validated and the user is provided
+   * with an expected result, but no actual change is made.
+   * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customTargetTypeId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, customTargetTypeId_); + } + if (customTargetType_ != null) { + output.writeMessage(3, getCustomTargetType()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + if (validateOnly_ != false) { + output.writeBool(5, validateOnly_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customTargetTypeId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customTargetTypeId_); + } + if (customTargetType_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCustomTargetType()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, validateOnly_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest other = + (com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getCustomTargetTypeId().equals(other.getCustomTargetTypeId())) return false; + if (hasCustomTargetType() != other.hasCustomTargetType()) return false; + if (hasCustomTargetType()) { + if (!getCustomTargetType().equals(other.getCustomTargetType())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + CUSTOM_TARGET_TYPE_ID_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargetTypeId().hashCode(); + if (hasCustomTargetType()) { + hash = (37 * hash) + CUSTOM_TARGET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargetType().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request object for `CreateCustomTargetType`.
+   * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.CreateCustomTargetTypeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.CreateCustomTargetTypeRequest) + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CreateCustomTargetTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CreateCustomTargetTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest.class, + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + customTargetTypeId_ = ""; + customTargetType_ = null; + if (customTargetTypeBuilder_ != null) { + customTargetTypeBuilder_.dispose(); + customTargetTypeBuilder_ = null; + } + requestId_ = ""; + validateOnly_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CreateCustomTargetTypeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest build() { + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest buildPartial() { + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest result = + new com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customTargetTypeId_ = customTargetTypeId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.customTargetType_ = + customTargetTypeBuilder_ == null ? customTargetType_ : customTargetTypeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.validateOnly_ = validateOnly_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest) { + return mergeFrom((com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest other) { + if (other == com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCustomTargetTypeId().isEmpty()) { + customTargetTypeId_ = other.customTargetTypeId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCustomTargetType()) { + mergeCustomTargetType(other.getCustomTargetType()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + customTargetTypeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getCustomTargetTypeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent collection in which the `CustomTargetType` should be
+     * created in. Format should be
+     * `projects/{project_id}/locations/{location_name}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent collection in which the `CustomTargetType` should be
+     * created in. Format should be
+     * `projects/{project_id}/locations/{location_name}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent collection in which the `CustomTargetType` should be
+     * created in. Format should be
+     * `projects/{project_id}/locations/{location_name}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent collection in which the `CustomTargetType` should be
+     * created in. Format should be
+     * `projects/{project_id}/locations/{location_name}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent collection in which the `CustomTargetType` should be
+     * created in. Format should be
+     * `projects/{project_id}/locations/{location_name}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object customTargetTypeId_ = ""; + /** + * + * + *
+     * Required. ID of the `CustomTargetType`.
+     * 
+ * + * string custom_target_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The customTargetTypeId. + */ + public java.lang.String getCustomTargetTypeId() { + java.lang.Object ref = customTargetTypeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customTargetTypeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. ID of the `CustomTargetType`.
+     * 
+ * + * string custom_target_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for customTargetTypeId. + */ + public com.google.protobuf.ByteString getCustomTargetTypeIdBytes() { + java.lang.Object ref = customTargetTypeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customTargetTypeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. ID of the `CustomTargetType`.
+     * 
+ * + * string custom_target_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The customTargetTypeId to set. + * @return This builder for chaining. + */ + public Builder setCustomTargetTypeId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customTargetTypeId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. ID of the `CustomTargetType`.
+     * 
+ * + * string custom_target_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCustomTargetTypeId() { + customTargetTypeId_ = getDefaultInstance().getCustomTargetTypeId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. ID of the `CustomTargetType`.
+     * 
+ * + * string custom_target_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for customTargetTypeId to set. + * @return This builder for chaining. + */ + public Builder setCustomTargetTypeIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customTargetTypeId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.deploy.v1.CustomTargetType customTargetType_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTargetType, + com.google.cloud.deploy.v1.CustomTargetType.Builder, + com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder> + customTargetTypeBuilder_; + /** + * + * + *
+     * Required. The `CustomTargetType` to create.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customTargetType field is set. + */ + public boolean hasCustomTargetType() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Required. The `CustomTargetType` to create.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customTargetType. + */ + public com.google.cloud.deploy.v1.CustomTargetType getCustomTargetType() { + if (customTargetTypeBuilder_ == null) { + return customTargetType_ == null + ? com.google.cloud.deploy.v1.CustomTargetType.getDefaultInstance() + : customTargetType_; + } else { + return customTargetTypeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The `CustomTargetType` to create.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomTargetType(com.google.cloud.deploy.v1.CustomTargetType value) { + if (customTargetTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customTargetType_ = value; + } else { + customTargetTypeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `CustomTargetType` to create.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomTargetType( + com.google.cloud.deploy.v1.CustomTargetType.Builder builderForValue) { + if (customTargetTypeBuilder_ == null) { + customTargetType_ = builderForValue.build(); + } else { + customTargetTypeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `CustomTargetType` to create.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCustomTargetType(com.google.cloud.deploy.v1.CustomTargetType value) { + if (customTargetTypeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && customTargetType_ != null + && customTargetType_ + != com.google.cloud.deploy.v1.CustomTargetType.getDefaultInstance()) { + getCustomTargetTypeBuilder().mergeFrom(value); + } else { + customTargetType_ = value; + } + } else { + customTargetTypeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `CustomTargetType` to create.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCustomTargetType() { + bitField0_ = (bitField0_ & ~0x00000004); + customTargetType_ = null; + if (customTargetTypeBuilder_ != null) { + customTargetTypeBuilder_.dispose(); + customTargetTypeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `CustomTargetType` to create.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.deploy.v1.CustomTargetType.Builder getCustomTargetTypeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCustomTargetTypeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The `CustomTargetType` to create.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder getCustomTargetTypeOrBuilder() { + if (customTargetTypeBuilder_ != null) { + return customTargetTypeBuilder_.getMessageOrBuilder(); + } else { + return customTargetType_ == null + ? com.google.cloud.deploy.v1.CustomTargetType.getDefaultInstance() + : customTargetType_; + } + } + /** + * + * + *
+     * Required. The `CustomTargetType` to create.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTargetType, + com.google.cloud.deploy.v1.CustomTargetType.Builder, + com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder> + getCustomTargetTypeFieldBuilder() { + if (customTargetTypeBuilder_ == null) { + customTargetTypeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTargetType, + com.google.cloud.deploy.v1.CustomTargetType.Builder, + com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder>( + getCustomTargetType(), getParentForChildren(), isClean()); + customTargetType_ = null; + } + return customTargetTypeBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean validateOnly_; + /** + * + * + *
+     * Optional. If set to true, the request is validated and the user is provided
+     * with an expected result, but no actual change is made.
+     * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + * + * + *
+     * Optional. If set to true, the request is validated and the user is provided
+     * with an expected result, but no actual change is made.
+     * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to true, the request is validated and the user is provided
+     * with an expected result, but no actual change is made.
+     * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000010); + validateOnly_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.CreateCustomTargetTypeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.CreateCustomTargetTypeRequest) + private static final com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest(); + } + + public static com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomTargetTypeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateCustomTargetTypeRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateCustomTargetTypeRequestOrBuilder.java new file mode 100644 index 000000000000..18bc73bb7ffa --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateCustomTargetTypeRequestOrBuilder.java @@ -0,0 +1,187 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface CreateCustomTargetTypeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.CreateCustomTargetTypeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent collection in which the `CustomTargetType` should be
+   * created in. Format should be
+   * `projects/{project_id}/locations/{location_name}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent collection in which the `CustomTargetType` should be
+   * created in. Format should be
+   * `projects/{project_id}/locations/{location_name}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. ID of the `CustomTargetType`.
+   * 
+ * + * string custom_target_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The customTargetTypeId. + */ + java.lang.String getCustomTargetTypeId(); + /** + * + * + *
+   * Required. ID of the `CustomTargetType`.
+   * 
+ * + * string custom_target_type_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for customTargetTypeId. + */ + com.google.protobuf.ByteString getCustomTargetTypeIdBytes(); + + /** + * + * + *
+   * Required. The `CustomTargetType` to create.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customTargetType field is set. + */ + boolean hasCustomTargetType(); + /** + * + * + *
+   * Required. The `CustomTargetType` to create.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customTargetType. + */ + com.google.cloud.deploy.v1.CustomTargetType getCustomTargetType(); + /** + * + * + *
+   * Required. The `CustomTargetType` to create.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder getCustomTargetTypeOrBuilder(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. If set to true, the request is validated and the user is provided
+   * with an expected result, but no actual change is made.
+   * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomMetadata.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomMetadata.java new file mode 100644 index 000000000000..0c8cdbb7ee16 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomMetadata.java @@ -0,0 +1,779 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +/** + * + * + *
+ * CustomMetadata contains information from a user defined operation.
+ * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.CustomMetadata} + */ +public final class CustomMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.CustomMetadata) + CustomMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomMetadata.newBuilder() to construct. + private CustomMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetValues(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.CustomMetadata.class, + com.google.cloud.deploy.v1.CustomMetadata.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + + private static final class ValuesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomMetadata_ValuesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField values_; + + private com.google.protobuf.MapField internalGetValues() { + if (values_ == null) { + return com.google.protobuf.MapField.emptyMapField(ValuesDefaultEntryHolder.defaultEntry); + } + return values_; + } + + public int getValuesCount() { + return internalGetValues().getMap().size(); + } + /** + * + * + *
+   * Output only. Key-value pairs provided by the user defined operation.
+   * 
+ * + * map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public boolean containsValues(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetValues().getMap().containsKey(key); + } + /** Use {@link #getValuesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getValues() { + return getValuesMap(); + } + /** + * + * + *
+   * Output only. Key-value pairs provided by the user defined operation.
+   * 
+ * + * map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.util.Map getValuesMap() { + return internalGetValues().getMap(); + } + /** + * + * + *
+   * Output only. Key-value pairs provided by the user defined operation.
+   * 
+ * + * map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getValuesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Output only. Key-value pairs provided by the user defined operation.
+   * 
+ * + * map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public java.lang.String getValuesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetValues(), ValuesDefaultEntryHolder.defaultEntry, 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetValues().getMap().entrySet()) { + com.google.protobuf.MapEntry values__ = + ValuesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, values__); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.CustomMetadata)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.CustomMetadata other = + (com.google.cloud.deploy.v1.CustomMetadata) obj; + + if (!internalGetValues().equals(other.internalGetValues())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetValues().getMap().isEmpty()) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + internalGetValues().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.CustomMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CustomMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CustomMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CustomMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CustomMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CustomMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CustomMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.deploy.v1.CustomMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * CustomMetadata contains information from a user defined operation.
+   * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.CustomMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.CustomMetadata) + com.google.cloud.deploy.v1.CustomMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomMetadata_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 1: + return internalGetValues(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 1: + return internalGetMutableValues(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.CustomMetadata.class, + com.google.cloud.deploy.v1.CustomMetadata.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.CustomMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableValues().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomMetadata getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.CustomMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomMetadata build() { + com.google.cloud.deploy.v1.CustomMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomMetadata buildPartial() { + com.google.cloud.deploy.v1.CustomMetadata result = + new com.google.cloud.deploy.v1.CustomMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.deploy.v1.CustomMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.values_ = internalGetValues(); + result.values_.makeImmutable(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.CustomMetadata) { + return mergeFrom((com.google.cloud.deploy.v1.CustomMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.CustomMetadata other) { + if (other == com.google.cloud.deploy.v1.CustomMetadata.getDefaultInstance()) return this; + internalGetMutableValues().mergeFrom(other.internalGetValues()); + bitField0_ |= 0x00000001; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.MapEntry values__ = + input.readMessage( + ValuesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableValues() + .getMutableMap() + .put(values__.getKey(), values__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField values_; + + private com.google.protobuf.MapField internalGetValues() { + if (values_ == null) { + return com.google.protobuf.MapField.emptyMapField(ValuesDefaultEntryHolder.defaultEntry); + } + return values_; + } + + private com.google.protobuf.MapField + internalGetMutableValues() { + if (values_ == null) { + values_ = com.google.protobuf.MapField.newMapField(ValuesDefaultEntryHolder.defaultEntry); + } + if (!values_.isMutable()) { + values_ = values_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return values_; + } + + public int getValuesCount() { + return internalGetValues().getMap().size(); + } + /** + * + * + *
+     * Output only. Key-value pairs provided by the user defined operation.
+     * 
+ * + * map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsValues(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetValues().getMap().containsKey(key); + } + /** Use {@link #getValuesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getValues() { + return getValuesMap(); + } + /** + * + * + *
+     * Output only. Key-value pairs provided by the user defined operation.
+     * 
+ * + * map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getValuesMap() { + return internalGetValues().getMap(); + } + /** + * + * + *
+     * Output only. Key-value pairs provided by the user defined operation.
+     * 
+ * + * map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getValuesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetValues().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Output only. Key-value pairs provided by the user defined operation.
+     * 
+ * + * map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getValuesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetValues().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearValues() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableValues().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Output only. Key-value pairs provided by the user defined operation.
+     * 
+ * + * map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeValues(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableValues().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableValues() { + bitField0_ |= 0x00000001; + return internalGetMutableValues().getMutableMap(); + } + /** + * + * + *
+     * Output only. Key-value pairs provided by the user defined operation.
+     * 
+ * + * map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putValues(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableValues().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + /** + * + * + *
+     * Output only. Key-value pairs provided by the user defined operation.
+     * 
+ * + * map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllValues(java.util.Map values) { + internalGetMutableValues().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.CustomMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.CustomMetadata) + private static final com.google.cloud.deploy.v1.CustomMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.CustomMetadata(); + } + + public static com.google.cloud.deploy.v1.CustomMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomMetadataOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomMetadataOrBuilder.java new file mode 100644 index 000000000000..000910ab9cb3 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomMetadataOrBuilder.java @@ -0,0 +1,83 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface CustomMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.CustomMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Key-value pairs provided by the user defined operation.
+   * 
+ * + * map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + int getValuesCount(); + /** + * + * + *
+   * Output only. Key-value pairs provided by the user defined operation.
+   * 
+ * + * map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + boolean containsValues(java.lang.String key); + /** Use {@link #getValuesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getValues(); + /** + * + * + *
+   * Output only. Key-value pairs provided by the user defined operation.
+   * 
+ * + * map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.Map getValuesMap(); + /** + * + * + *
+   * Output only. Key-value pairs provided by the user defined operation.
+   * 
+ * + * map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + /* nullable */ + java.lang.String getValuesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Output only. Key-value pairs provided by the user defined operation.
+   * 
+ * + * map<string, string> values = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.lang.String getValuesOrThrow(java.lang.String key); +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTarget.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTarget.java new file mode 100644 index 000000000000..fb5979e76d65 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTarget.java @@ -0,0 +1,643 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +/** + * + * + *
+ * Information specifying a Custom Target.
+ * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.CustomTarget} + */ +public final class CustomTarget extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.CustomTarget) + CustomTargetOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomTarget.newBuilder() to construct. + private CustomTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomTarget() { + customTargetType_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomTarget(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.CustomTarget.class, + com.google.cloud.deploy.v1.CustomTarget.Builder.class); + } + + public static final int CUSTOM_TARGET_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object customTargetType_ = ""; + /** + * + * + *
+   * Required. The name of the CustomTargetType. Format must be
+   * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`.
+   * 
+ * + * + * string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The customTargetType. + */ + @java.lang.Override + public java.lang.String getCustomTargetType() { + java.lang.Object ref = customTargetType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customTargetType_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the CustomTargetType. Format must be
+   * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`.
+   * 
+ * + * + * string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for customTargetType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomTargetTypeBytes() { + java.lang.Object ref = customTargetType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customTargetType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customTargetType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, customTargetType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customTargetType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, customTargetType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.CustomTarget)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.CustomTarget other = (com.google.cloud.deploy.v1.CustomTarget) obj; + + if (!getCustomTargetType().equals(other.getCustomTargetType())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CUSTOM_TARGET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargetType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.CustomTarget parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CustomTarget parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTarget parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CustomTarget parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTarget parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CustomTarget parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTarget parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CustomTarget parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTarget parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CustomTarget parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTarget parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CustomTarget parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.deploy.v1.CustomTarget prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Information specifying a Custom Target.
+   * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.CustomTarget} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.CustomTarget) + com.google.cloud.deploy.v1.CustomTargetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTarget_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTarget_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.CustomTarget.class, + com.google.cloud.deploy.v1.CustomTarget.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.CustomTarget.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + customTargetType_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTarget_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTarget getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.CustomTarget.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTarget build() { + com.google.cloud.deploy.v1.CustomTarget result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTarget buildPartial() { + com.google.cloud.deploy.v1.CustomTarget result = + new com.google.cloud.deploy.v1.CustomTarget(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.deploy.v1.CustomTarget result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.customTargetType_ = customTargetType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.CustomTarget) { + return mergeFrom((com.google.cloud.deploy.v1.CustomTarget) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.CustomTarget other) { + if (other == com.google.cloud.deploy.v1.CustomTarget.getDefaultInstance()) return this; + if (!other.getCustomTargetType().isEmpty()) { + customTargetType_ = other.customTargetType_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + customTargetType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object customTargetType_ = ""; + /** + * + * + *
+     * Required. The name of the CustomTargetType. Format must be
+     * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`.
+     * 
+ * + * + * string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The customTargetType. + */ + public java.lang.String getCustomTargetType() { + java.lang.Object ref = customTargetType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customTargetType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomTargetType. Format must be
+     * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`.
+     * 
+ * + * + * string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for customTargetType. + */ + public com.google.protobuf.ByteString getCustomTargetTypeBytes() { + java.lang.Object ref = customTargetType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customTargetType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomTargetType. Format must be
+     * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`.
+     * 
+ * + * + * string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The customTargetType to set. + * @return This builder for chaining. + */ + public Builder setCustomTargetType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customTargetType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomTargetType. Format must be
+     * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`.
+     * 
+ * + * + * string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCustomTargetType() { + customTargetType_ = getDefaultInstance().getCustomTargetType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomTargetType. Format must be
+     * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`.
+     * 
+ * + * + * string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for customTargetType to set. + * @return This builder for chaining. + */ + public Builder setCustomTargetTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customTargetType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.CustomTarget) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.CustomTarget) + private static final com.google.cloud.deploy.v1.CustomTarget DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.CustomTarget(); + } + + public static com.google.cloud.deploy.v1.CustomTarget getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomTarget parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTarget getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetDeployMetadata.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetDeployMetadata.java new file mode 100644 index 000000000000..63b68c94a1a8 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetDeployMetadata.java @@ -0,0 +1,634 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +/** + * + * + *
+ * CustomTargetDeployMetadata contains information from a Custom Target
+ * deploy operation.
+ * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.CustomTargetDeployMetadata} + */ +public final class CustomTargetDeployMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.CustomTargetDeployMetadata) + CustomTargetDeployMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomTargetDeployMetadata.newBuilder() to construct. + private CustomTargetDeployMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomTargetDeployMetadata() { + skipMessage_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomTargetDeployMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTargetDeployMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTargetDeployMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.CustomTargetDeployMetadata.class, + com.google.cloud.deploy.v1.CustomTargetDeployMetadata.Builder.class); + } + + public static final int SKIP_MESSAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object skipMessage_ = ""; + /** + * + * + *
+   * Output only. Skip message provided in the results of a custom deploy
+   * operation.
+   * 
+ * + * string skip_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The skipMessage. + */ + @java.lang.Override + public java.lang.String getSkipMessage() { + java.lang.Object ref = skipMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + skipMessage_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Skip message provided in the results of a custom deploy
+   * operation.
+   * 
+ * + * string skip_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for skipMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSkipMessageBytes() { + java.lang.Object ref = skipMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skipMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skipMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, skipMessage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skipMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, skipMessage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.CustomTargetDeployMetadata)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.CustomTargetDeployMetadata other = + (com.google.cloud.deploy.v1.CustomTargetDeployMetadata) obj; + + if (!getSkipMessage().equals(other.getSkipMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SKIP_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getSkipMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.CustomTargetDeployMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CustomTargetDeployMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetDeployMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CustomTargetDeployMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetDeployMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CustomTargetDeployMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetDeployMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CustomTargetDeployMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetDeployMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CustomTargetDeployMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetDeployMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CustomTargetDeployMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.deploy.v1.CustomTargetDeployMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * CustomTargetDeployMetadata contains information from a Custom Target
+   * deploy operation.
+   * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.CustomTargetDeployMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.CustomTargetDeployMetadata) + com.google.cloud.deploy.v1.CustomTargetDeployMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTargetDeployMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTargetDeployMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.CustomTargetDeployMetadata.class, + com.google.cloud.deploy.v1.CustomTargetDeployMetadata.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.CustomTargetDeployMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + skipMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTargetDeployMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetDeployMetadata getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.CustomTargetDeployMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetDeployMetadata build() { + com.google.cloud.deploy.v1.CustomTargetDeployMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetDeployMetadata buildPartial() { + com.google.cloud.deploy.v1.CustomTargetDeployMetadata result = + new com.google.cloud.deploy.v1.CustomTargetDeployMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.deploy.v1.CustomTargetDeployMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.skipMessage_ = skipMessage_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.CustomTargetDeployMetadata) { + return mergeFrom((com.google.cloud.deploy.v1.CustomTargetDeployMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.CustomTargetDeployMetadata other) { + if (other == com.google.cloud.deploy.v1.CustomTargetDeployMetadata.getDefaultInstance()) + return this; + if (!other.getSkipMessage().isEmpty()) { + skipMessage_ = other.skipMessage_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + skipMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object skipMessage_ = ""; + /** + * + * + *
+     * Output only. Skip message provided in the results of a custom deploy
+     * operation.
+     * 
+ * + * string skip_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The skipMessage. + */ + public java.lang.String getSkipMessage() { + java.lang.Object ref = skipMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + skipMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Skip message provided in the results of a custom deploy
+     * operation.
+     * 
+ * + * string skip_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for skipMessage. + */ + public com.google.protobuf.ByteString getSkipMessageBytes() { + java.lang.Object ref = skipMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + skipMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Skip message provided in the results of a custom deploy
+     * operation.
+     * 
+ * + * string skip_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The skipMessage to set. + * @return This builder for chaining. + */ + public Builder setSkipMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + skipMessage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skip message provided in the results of a custom deploy
+     * operation.
+     * 
+ * + * string skip_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSkipMessage() { + skipMessage_ = getDefaultInstance().getSkipMessage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Skip message provided in the results of a custom deploy
+     * operation.
+     * 
+ * + * string skip_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for skipMessage to set. + * @return This builder for chaining. + */ + public Builder setSkipMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + skipMessage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.CustomTargetDeployMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.CustomTargetDeployMetadata) + private static final com.google.cloud.deploy.v1.CustomTargetDeployMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.CustomTargetDeployMetadata(); + } + + public static com.google.cloud.deploy.v1.CustomTargetDeployMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomTargetDeployMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetDeployMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetDeployMetadataOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetDeployMetadataOrBuilder.java new file mode 100644 index 000000000000..264cda114947 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetDeployMetadataOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface CustomTargetDeployMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.CustomTargetDeployMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Skip message provided in the results of a custom deploy
+   * operation.
+   * 
+ * + * string skip_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The skipMessage. + */ + java.lang.String getSkipMessage(); + /** + * + * + *
+   * Output only. Skip message provided in the results of a custom deploy
+   * operation.
+   * 
+ * + * string skip_message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for skipMessage. + */ + com.google.protobuf.ByteString getSkipMessageBytes(); +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetOrBuilder.java new file mode 100644 index 000000000000..dc695e94f516 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface CustomTargetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.CustomTarget) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the CustomTargetType. Format must be
+   * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`.
+   * 
+ * + * + * string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The customTargetType. + */ + java.lang.String getCustomTargetType(); + /** + * + * + *
+   * Required. The name of the CustomTargetType. Format must be
+   * `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`.
+   * 
+ * + * + * string custom_target_type = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for customTargetType. + */ + com.google.protobuf.ByteString getCustomTargetTypeBytes(); +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetSkaffoldActions.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetSkaffoldActions.java new file mode 100644 index 000000000000..900c96c5ce54 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetSkaffoldActions.java @@ -0,0 +1,1402 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +/** + * + * + *
+ * CustomTargetSkaffoldActions represents the `CustomTargetType` configuration
+ * using Skaffold custom actions.
+ * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.CustomTargetSkaffoldActions} + */ +public final class CustomTargetSkaffoldActions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.CustomTargetSkaffoldActions) + CustomTargetSkaffoldActionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomTargetSkaffoldActions.newBuilder() to construct. + private CustomTargetSkaffoldActions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomTargetSkaffoldActions() { + renderAction_ = ""; + deployAction_ = ""; + includeSkaffoldModules_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomTargetSkaffoldActions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTargetSkaffoldActions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTargetSkaffoldActions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.class, + com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.Builder.class); + } + + public static final int RENDER_ACTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object renderAction_ = ""; + /** + * + * + *
+   * Optional. The Skaffold custom action responsible for render operations. If
+   * not provided then Cloud Deploy will perform the render operations via
+   * `skaffold render`.
+   * 
+ * + * string render_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The renderAction. + */ + @java.lang.Override + public java.lang.String getRenderAction() { + java.lang.Object ref = renderAction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + renderAction_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The Skaffold custom action responsible for render operations. If
+   * not provided then Cloud Deploy will perform the render operations via
+   * `skaffold render`.
+   * 
+ * + * string render_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for renderAction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRenderActionBytes() { + java.lang.Object ref = renderAction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + renderAction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPLOY_ACTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployAction_ = ""; + /** + * + * + *
+   * Required. The Skaffold custom action responsible for deploy operations.
+   * 
+ * + * string deploy_action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deployAction. + */ + @java.lang.Override + public java.lang.String getDeployAction() { + java.lang.Object ref = deployAction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployAction_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The Skaffold custom action responsible for deploy operations.
+   * 
+ * + * string deploy_action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deployAction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeployActionBytes() { + java.lang.Object ref = deployAction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployAction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INCLUDE_SKAFFOLD_MODULES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List includeSkaffoldModules_; + /** + * + * + *
+   * Optional. List of Skaffold modules Cloud Deploy will include in the
+   * Skaffold Config as required before performing diagnose.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getIncludeSkaffoldModulesList() { + return includeSkaffoldModules_; + } + /** + * + * + *
+   * Optional. List of Skaffold modules Cloud Deploy will include in the
+   * Skaffold Config as required before performing diagnose.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getIncludeSkaffoldModulesOrBuilderList() { + return includeSkaffoldModules_; + } + /** + * + * + *
+   * Optional. List of Skaffold modules Cloud Deploy will include in the
+   * Skaffold Config as required before performing diagnose.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getIncludeSkaffoldModulesCount() { + return includeSkaffoldModules_.size(); + } + /** + * + * + *
+   * Optional. List of Skaffold modules Cloud Deploy will include in the
+   * Skaffold Config as required before performing diagnose.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules getIncludeSkaffoldModules(int index) { + return includeSkaffoldModules_.get(index); + } + /** + * + * + *
+   * Optional. List of Skaffold modules Cloud Deploy will include in the
+   * Skaffold Config as required before performing diagnose.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModulesOrBuilder getIncludeSkaffoldModulesOrBuilder( + int index) { + return includeSkaffoldModules_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renderAction_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, renderAction_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployAction_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deployAction_); + } + for (int i = 0; i < includeSkaffoldModules_.size(); i++) { + output.writeMessage(3, includeSkaffoldModules_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renderAction_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, renderAction_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployAction_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deployAction_); + } + for (int i = 0; i < includeSkaffoldModules_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, includeSkaffoldModules_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.CustomTargetSkaffoldActions)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.CustomTargetSkaffoldActions other = + (com.google.cloud.deploy.v1.CustomTargetSkaffoldActions) obj; + + if (!getRenderAction().equals(other.getRenderAction())) return false; + if (!getDeployAction().equals(other.getDeployAction())) return false; + if (!getIncludeSkaffoldModulesList().equals(other.getIncludeSkaffoldModulesList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RENDER_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getRenderAction().hashCode(); + hash = (37 * hash) + DEPLOY_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getDeployAction().hashCode(); + if (getIncludeSkaffoldModulesCount() > 0) { + hash = (37 * hash) + INCLUDE_SKAFFOLD_MODULES_FIELD_NUMBER; + hash = (53 * hash) + getIncludeSkaffoldModulesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.CustomTargetSkaffoldActions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CustomTargetSkaffoldActions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetSkaffoldActions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CustomTargetSkaffoldActions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetSkaffoldActions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CustomTargetSkaffoldActions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetSkaffoldActions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CustomTargetSkaffoldActions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetSkaffoldActions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CustomTargetSkaffoldActions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetSkaffoldActions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CustomTargetSkaffoldActions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.deploy.v1.CustomTargetSkaffoldActions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * CustomTargetSkaffoldActions represents the `CustomTargetType` configuration
+   * using Skaffold custom actions.
+   * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.CustomTargetSkaffoldActions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.CustomTargetSkaffoldActions) + com.google.cloud.deploy.v1.CustomTargetSkaffoldActionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTargetSkaffoldActions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTargetSkaffoldActions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.class, + com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + renderAction_ = ""; + deployAction_ = ""; + if (includeSkaffoldModulesBuilder_ == null) { + includeSkaffoldModules_ = java.util.Collections.emptyList(); + } else { + includeSkaffoldModules_ = null; + includeSkaffoldModulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTargetSkaffoldActions_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetSkaffoldActions getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetSkaffoldActions build() { + com.google.cloud.deploy.v1.CustomTargetSkaffoldActions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetSkaffoldActions buildPartial() { + com.google.cloud.deploy.v1.CustomTargetSkaffoldActions result = + new com.google.cloud.deploy.v1.CustomTargetSkaffoldActions(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.deploy.v1.CustomTargetSkaffoldActions result) { + if (includeSkaffoldModulesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + includeSkaffoldModules_ = java.util.Collections.unmodifiableList(includeSkaffoldModules_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.includeSkaffoldModules_ = includeSkaffoldModules_; + } else { + result.includeSkaffoldModules_ = includeSkaffoldModulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.deploy.v1.CustomTargetSkaffoldActions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.renderAction_ = renderAction_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployAction_ = deployAction_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.CustomTargetSkaffoldActions) { + return mergeFrom((com.google.cloud.deploy.v1.CustomTargetSkaffoldActions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.CustomTargetSkaffoldActions other) { + if (other == com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.getDefaultInstance()) + return this; + if (!other.getRenderAction().isEmpty()) { + renderAction_ = other.renderAction_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDeployAction().isEmpty()) { + deployAction_ = other.deployAction_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (includeSkaffoldModulesBuilder_ == null) { + if (!other.includeSkaffoldModules_.isEmpty()) { + if (includeSkaffoldModules_.isEmpty()) { + includeSkaffoldModules_ = other.includeSkaffoldModules_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureIncludeSkaffoldModulesIsMutable(); + includeSkaffoldModules_.addAll(other.includeSkaffoldModules_); + } + onChanged(); + } + } else { + if (!other.includeSkaffoldModules_.isEmpty()) { + if (includeSkaffoldModulesBuilder_.isEmpty()) { + includeSkaffoldModulesBuilder_.dispose(); + includeSkaffoldModulesBuilder_ = null; + includeSkaffoldModules_ = other.includeSkaffoldModules_; + bitField0_ = (bitField0_ & ~0x00000004); + includeSkaffoldModulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIncludeSkaffoldModulesFieldBuilder() + : null; + } else { + includeSkaffoldModulesBuilder_.addAllMessages(other.includeSkaffoldModules_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + renderAction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + deployAction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.deploy.v1.SkaffoldModules m = + input.readMessage( + com.google.cloud.deploy.v1.SkaffoldModules.parser(), extensionRegistry); + if (includeSkaffoldModulesBuilder_ == null) { + ensureIncludeSkaffoldModulesIsMutable(); + includeSkaffoldModules_.add(m); + } else { + includeSkaffoldModulesBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object renderAction_ = ""; + /** + * + * + *
+     * Optional. The Skaffold custom action responsible for render operations. If
+     * not provided then Cloud Deploy will perform the render operations via
+     * `skaffold render`.
+     * 
+ * + * string render_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The renderAction. + */ + public java.lang.String getRenderAction() { + java.lang.Object ref = renderAction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + renderAction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The Skaffold custom action responsible for render operations. If
+     * not provided then Cloud Deploy will perform the render operations via
+     * `skaffold render`.
+     * 
+ * + * string render_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for renderAction. + */ + public com.google.protobuf.ByteString getRenderActionBytes() { + java.lang.Object ref = renderAction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + renderAction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The Skaffold custom action responsible for render operations. If
+     * not provided then Cloud Deploy will perform the render operations via
+     * `skaffold render`.
+     * 
+ * + * string render_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The renderAction to set. + * @return This builder for chaining. + */ + public Builder setRenderAction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + renderAction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Skaffold custom action responsible for render operations. If
+     * not provided then Cloud Deploy will perform the render operations via
+     * `skaffold render`.
+     * 
+ * + * string render_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRenderAction() { + renderAction_ = getDefaultInstance().getRenderAction(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Skaffold custom action responsible for render operations. If
+     * not provided then Cloud Deploy will perform the render operations via
+     * `skaffold render`.
+     * 
+ * + * string render_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for renderAction to set. + * @return This builder for chaining. + */ + public Builder setRenderActionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + renderAction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object deployAction_ = ""; + /** + * + * + *
+     * Required. The Skaffold custom action responsible for deploy operations.
+     * 
+ * + * string deploy_action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deployAction. + */ + public java.lang.String getDeployAction() { + java.lang.Object ref = deployAction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deployAction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The Skaffold custom action responsible for deploy operations.
+     * 
+ * + * string deploy_action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deployAction. + */ + public com.google.protobuf.ByteString getDeployActionBytes() { + java.lang.Object ref = deployAction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deployAction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The Skaffold custom action responsible for deploy operations.
+     * 
+ * + * string deploy_action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The deployAction to set. + * @return This builder for chaining. + */ + public Builder setDeployAction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deployAction_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Skaffold custom action responsible for deploy operations.
+     * 
+ * + * string deploy_action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDeployAction() { + deployAction_ = getDefaultInstance().getDeployAction(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Skaffold custom action responsible for deploy operations.
+     * 
+ * + * string deploy_action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for deployAction to set. + * @return This builder for chaining. + */ + public Builder setDeployActionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deployAction_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List includeSkaffoldModules_ = + java.util.Collections.emptyList(); + + private void ensureIncludeSkaffoldModulesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + includeSkaffoldModules_ = + new java.util.ArrayList( + includeSkaffoldModules_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.deploy.v1.SkaffoldModules, + com.google.cloud.deploy.v1.SkaffoldModules.Builder, + com.google.cloud.deploy.v1.SkaffoldModulesOrBuilder> + includeSkaffoldModulesBuilder_; + + /** + * + * + *
+     * Optional. List of Skaffold modules Cloud Deploy will include in the
+     * Skaffold Config as required before performing diagnose.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIncludeSkaffoldModulesList() { + if (includeSkaffoldModulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(includeSkaffoldModules_); + } else { + return includeSkaffoldModulesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Optional. List of Skaffold modules Cloud Deploy will include in the
+     * Skaffold Config as required before performing diagnose.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getIncludeSkaffoldModulesCount() { + if (includeSkaffoldModulesBuilder_ == null) { + return includeSkaffoldModules_.size(); + } else { + return includeSkaffoldModulesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Optional. List of Skaffold modules Cloud Deploy will include in the
+     * Skaffold Config as required before performing diagnose.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.deploy.v1.SkaffoldModules getIncludeSkaffoldModules(int index) { + if (includeSkaffoldModulesBuilder_ == null) { + return includeSkaffoldModules_.get(index); + } else { + return includeSkaffoldModulesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Optional. List of Skaffold modules Cloud Deploy will include in the
+     * Skaffold Config as required before performing diagnose.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeSkaffoldModules( + int index, com.google.cloud.deploy.v1.SkaffoldModules value) { + if (includeSkaffoldModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeSkaffoldModulesIsMutable(); + includeSkaffoldModules_.set(index, value); + onChanged(); + } else { + includeSkaffoldModulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. List of Skaffold modules Cloud Deploy will include in the
+     * Skaffold Config as required before performing diagnose.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeSkaffoldModules( + int index, com.google.cloud.deploy.v1.SkaffoldModules.Builder builderForValue) { + if (includeSkaffoldModulesBuilder_ == null) { + ensureIncludeSkaffoldModulesIsMutable(); + includeSkaffoldModules_.set(index, builderForValue.build()); + onChanged(); + } else { + includeSkaffoldModulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. List of Skaffold modules Cloud Deploy will include in the
+     * Skaffold Config as required before performing diagnose.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludeSkaffoldModules(com.google.cloud.deploy.v1.SkaffoldModules value) { + if (includeSkaffoldModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeSkaffoldModulesIsMutable(); + includeSkaffoldModules_.add(value); + onChanged(); + } else { + includeSkaffoldModulesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Optional. List of Skaffold modules Cloud Deploy will include in the
+     * Skaffold Config as required before performing diagnose.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludeSkaffoldModules( + int index, com.google.cloud.deploy.v1.SkaffoldModules value) { + if (includeSkaffoldModulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeSkaffoldModulesIsMutable(); + includeSkaffoldModules_.add(index, value); + onChanged(); + } else { + includeSkaffoldModulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Optional. List of Skaffold modules Cloud Deploy will include in the
+     * Skaffold Config as required before performing diagnose.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludeSkaffoldModules( + com.google.cloud.deploy.v1.SkaffoldModules.Builder builderForValue) { + if (includeSkaffoldModulesBuilder_ == null) { + ensureIncludeSkaffoldModulesIsMutable(); + includeSkaffoldModules_.add(builderForValue.build()); + onChanged(); + } else { + includeSkaffoldModulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. List of Skaffold modules Cloud Deploy will include in the
+     * Skaffold Config as required before performing diagnose.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludeSkaffoldModules( + int index, com.google.cloud.deploy.v1.SkaffoldModules.Builder builderForValue) { + if (includeSkaffoldModulesBuilder_ == null) { + ensureIncludeSkaffoldModulesIsMutable(); + includeSkaffoldModules_.add(index, builderForValue.build()); + onChanged(); + } else { + includeSkaffoldModulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Optional. List of Skaffold modules Cloud Deploy will include in the
+     * Skaffold Config as required before performing diagnose.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllIncludeSkaffoldModules( + java.lang.Iterable values) { + if (includeSkaffoldModulesBuilder_ == null) { + ensureIncludeSkaffoldModulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeSkaffoldModules_); + onChanged(); + } else { + includeSkaffoldModulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Optional. List of Skaffold modules Cloud Deploy will include in the
+     * Skaffold Config as required before performing diagnose.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIncludeSkaffoldModules() { + if (includeSkaffoldModulesBuilder_ == null) { + includeSkaffoldModules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + includeSkaffoldModulesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. List of Skaffold modules Cloud Deploy will include in the
+     * Skaffold Config as required before performing diagnose.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeIncludeSkaffoldModules(int index) { + if (includeSkaffoldModulesBuilder_ == null) { + ensureIncludeSkaffoldModulesIsMutable(); + includeSkaffoldModules_.remove(index); + onChanged(); + } else { + includeSkaffoldModulesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Optional. List of Skaffold modules Cloud Deploy will include in the
+     * Skaffold Config as required before performing diagnose.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.deploy.v1.SkaffoldModules.Builder getIncludeSkaffoldModulesBuilder( + int index) { + return getIncludeSkaffoldModulesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Optional. List of Skaffold modules Cloud Deploy will include in the
+     * Skaffold Config as required before performing diagnose.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.deploy.v1.SkaffoldModulesOrBuilder getIncludeSkaffoldModulesOrBuilder( + int index) { + if (includeSkaffoldModulesBuilder_ == null) { + return includeSkaffoldModules_.get(index); + } else { + return includeSkaffoldModulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Optional. List of Skaffold modules Cloud Deploy will include in the
+     * Skaffold Config as required before performing diagnose.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIncludeSkaffoldModulesOrBuilderList() { + if (includeSkaffoldModulesBuilder_ != null) { + return includeSkaffoldModulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(includeSkaffoldModules_); + } + } + /** + * + * + *
+     * Optional. List of Skaffold modules Cloud Deploy will include in the
+     * Skaffold Config as required before performing diagnose.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.deploy.v1.SkaffoldModules.Builder addIncludeSkaffoldModulesBuilder() { + return getIncludeSkaffoldModulesFieldBuilder() + .addBuilder(com.google.cloud.deploy.v1.SkaffoldModules.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. List of Skaffold modules Cloud Deploy will include in the
+     * Skaffold Config as required before performing diagnose.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.deploy.v1.SkaffoldModules.Builder addIncludeSkaffoldModulesBuilder( + int index) { + return getIncludeSkaffoldModulesFieldBuilder() + .addBuilder(index, com.google.cloud.deploy.v1.SkaffoldModules.getDefaultInstance()); + } + /** + * + * + *
+     * Optional. List of Skaffold modules Cloud Deploy will include in the
+     * Skaffold Config as required before performing diagnose.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIncludeSkaffoldModulesBuilderList() { + return getIncludeSkaffoldModulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.deploy.v1.SkaffoldModules, + com.google.cloud.deploy.v1.SkaffoldModules.Builder, + com.google.cloud.deploy.v1.SkaffoldModulesOrBuilder> + getIncludeSkaffoldModulesFieldBuilder() { + if (includeSkaffoldModulesBuilder_ == null) { + includeSkaffoldModulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.deploy.v1.SkaffoldModules, + com.google.cloud.deploy.v1.SkaffoldModules.Builder, + com.google.cloud.deploy.v1.SkaffoldModulesOrBuilder>( + includeSkaffoldModules_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + includeSkaffoldModules_ = null; + } + return includeSkaffoldModulesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.CustomTargetSkaffoldActions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.CustomTargetSkaffoldActions) + private static final com.google.cloud.deploy.v1.CustomTargetSkaffoldActions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.CustomTargetSkaffoldActions(); + } + + public static com.google.cloud.deploy.v1.CustomTargetSkaffoldActions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomTargetSkaffoldActions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetSkaffoldActions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetSkaffoldActionsOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetSkaffoldActionsOrBuilder.java new file mode 100644 index 000000000000..a45d478de8e0 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetSkaffoldActionsOrBuilder.java @@ -0,0 +1,146 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface CustomTargetSkaffoldActionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.CustomTargetSkaffoldActions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The Skaffold custom action responsible for render operations. If
+   * not provided then Cloud Deploy will perform the render operations via
+   * `skaffold render`.
+   * 
+ * + * string render_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The renderAction. + */ + java.lang.String getRenderAction(); + /** + * + * + *
+   * Optional. The Skaffold custom action responsible for render operations. If
+   * not provided then Cloud Deploy will perform the render operations via
+   * `skaffold render`.
+   * 
+ * + * string render_action = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for renderAction. + */ + com.google.protobuf.ByteString getRenderActionBytes(); + + /** + * + * + *
+   * Required. The Skaffold custom action responsible for deploy operations.
+   * 
+ * + * string deploy_action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The deployAction. + */ + java.lang.String getDeployAction(); + /** + * + * + *
+   * Required. The Skaffold custom action responsible for deploy operations.
+   * 
+ * + * string deploy_action = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for deployAction. + */ + com.google.protobuf.ByteString getDeployActionBytes(); + + /** + * + * + *
+   * Optional. List of Skaffold modules Cloud Deploy will include in the
+   * Skaffold Config as required before performing diagnose.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getIncludeSkaffoldModulesList(); + /** + * + * + *
+   * Optional. List of Skaffold modules Cloud Deploy will include in the
+   * Skaffold Config as required before performing diagnose.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.deploy.v1.SkaffoldModules getIncludeSkaffoldModules(int index); + /** + * + * + *
+   * Optional. List of Skaffold modules Cloud Deploy will include in the
+   * Skaffold Config as required before performing diagnose.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getIncludeSkaffoldModulesCount(); + /** + * + * + *
+   * Optional. List of Skaffold modules Cloud Deploy will include in the
+   * Skaffold Config as required before performing diagnose.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getIncludeSkaffoldModulesOrBuilderList(); + /** + * + * + *
+   * Optional. List of Skaffold modules Cloud Deploy will include in the
+   * Skaffold Config as required before performing diagnose.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.SkaffoldModules include_skaffold_modules = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.deploy.v1.SkaffoldModulesOrBuilder getIncludeSkaffoldModulesOrBuilder(int index); +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetType.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetType.java new file mode 100644 index 000000000000..216504b958b9 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetType.java @@ -0,0 +1,3138 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +/** + * + * + *
+ * A `CustomTargetType` resource in the Cloud Deploy API.
+ *
+ * A `CustomTargetType` defines a type of custom target that can be referenced
+ * in a `Target` in order to facilitate deploying to a runtime that does not
+ * have a 1P integration with Cloud Deploy.
+ * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.CustomTargetType} + */ +public final class CustomTargetType extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.CustomTargetType) + CustomTargetTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomTargetType.newBuilder() to construct. + private CustomTargetType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomTargetType() { + name_ = ""; + customTargetTypeId_ = ""; + uid_ = ""; + description_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomTargetType(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTargetType_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 5: + return internalGetAnnotations(); + case 6: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTargetType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.CustomTargetType.class, + com.google.cloud.deploy.v1.CustomTargetType.Builder.class); + } + + private int definitionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object definition_; + + public enum DefinitionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CUSTOM_ACTIONS(10), + DEFINITION_NOT_SET(0); + private final int value; + + private DefinitionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DefinitionCase valueOf(int value) { + return forNumber(value); + } + + public static DefinitionCase forNumber(int value) { + switch (value) { + case 10: + return CUSTOM_ACTIONS; + case 0: + return DEFINITION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DefinitionCase getDefinitionCase() { + return DefinitionCase.forNumber(definitionCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Optional. Name of the `CustomTargetType`. Format is
+   * `projects/{project}/locations/{location}/customTargetTypes/[a-z][a-z0-9\-]{0,62}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Name of the `CustomTargetType`. Format is
+   * `projects/{project}/locations/{location}/customTargetTypes/[a-z][a-z0-9\-]{0,62}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_TARGET_TYPE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object customTargetTypeId_ = ""; + /** + * + * + *
+   * Output only. Resource id of the `CustomTargetType`.
+   * 
+ * + * string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The customTargetTypeId. + */ + @java.lang.Override + public java.lang.String getCustomTargetTypeId() { + java.lang.Object ref = customTargetTypeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customTargetTypeId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource id of the `CustomTargetType`.
+   * 
+ * + * string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for customTargetTypeId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomTargetTypeIdBytes() { + java.lang.Object ref = customTargetTypeId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customTargetTypeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + /** + * + * + *
+   * Output only. Unique identifier of the `CustomTargetType`.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Unique identifier of the `CustomTargetType`.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
+   * Optional. Description of the `CustomTargetType`. Max length is 255
+   * characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Description of the `CustomTargetType`. Max length is 255
+   * characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 5; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTargetType_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user, and not by Cloud Deploy. See
+   * https://google.aip.dev/128#annotations for more details such as format and
+   * size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user, and not by Cloud Deploy. See
+   * https://google.aip.dev/128#annotations for more details such as format and
+   * size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user, and not by Cloud Deploy. See
+   * https://google.aip.dev/128#annotations for more details such as format and
+   * size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user, and not by Cloud Deploy. See
+   * https://google.aip.dev/128#annotations for more details such as format and
+   * size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int LABELS_FIELD_NUMBER = 6; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTargetType_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+   * Optional. Labels are attributes that can be set and used by both the
+   * user and by Cloud Deploy. Labels must meet the following constraints:
+   *
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   * underscores, and dashes.
+   * * All characters must use UTF-8 encoding, and international characters are
+   * allowed.
+   * * Keys must start with a lowercase letter or international character.
+   * * Each resource is limited to a maximum of 64 labels.
+   *
+   * Both keys and values are additionally constrained to be <= 128 bytes.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+   * Optional. Labels are attributes that can be set and used by both the
+   * user and by Cloud Deploy. Labels must meet the following constraints:
+   *
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   * underscores, and dashes.
+   * * All characters must use UTF-8 encoding, and international characters are
+   * allowed.
+   * * Keys must start with a lowercase letter or international character.
+   * * Each resource is limited to a maximum of 64 labels.
+   *
+   * Both keys and values are additionally constrained to be <= 128 bytes.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+   * Optional. Labels are attributes that can be set and used by both the
+   * user and by Cloud Deploy. Labels must meet the following constraints:
+   *
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   * underscores, and dashes.
+   * * All characters must use UTF-8 encoding, and international characters are
+   * allowed.
+   * * Keys must start with a lowercase letter or international character.
+   * * Each resource is limited to a maximum of 64 labels.
+   *
+   * Both keys and values are additionally constrained to be <= 128 bytes.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Optional. Labels are attributes that can be set and used by both the
+   * user and by Cloud Deploy. Labels must meet the following constraints:
+   *
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   * underscores, and dashes.
+   * * All characters must use UTF-8 encoding, and international characters are
+   * allowed.
+   * * Keys must start with a lowercase letter or international character.
+   * * Each resource is limited to a maximum of 64 labels.
+   *
+   * Both keys and values are additionally constrained to be <= 128 bytes.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time at which the `CustomTargetType` was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Time at which the `CustomTargetType` was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Time at which the `CustomTargetType` was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Most recent time at which the `CustomTargetType` was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Most recent time at which the `CustomTargetType` was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Most recent time at which the `CustomTargetType` was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int ETAG_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + * + * + *
+   * Optional. This checksum is computed by the server based on the value of
+   * other fields, and may be sent on update and delete requests to ensure the
+   * client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. This checksum is computed by the server based on the value of
+   * other fields, and may be sent on update and delete requests to ensure the
+   * client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_ACTIONS_FIELD_NUMBER = 10; + /** + * + * + *
+   * Configures render and deploy for the `CustomTargetType` using Skaffold
+   * custom actions.
+   * 
+ * + * .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10; + * + * @return Whether the customActions field is set. + */ + @java.lang.Override + public boolean hasCustomActions() { + return definitionCase_ == 10; + } + /** + * + * + *
+   * Configures render and deploy for the `CustomTargetType` using Skaffold
+   * custom actions.
+   * 
+ * + * .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10; + * + * @return The customActions. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetSkaffoldActions getCustomActions() { + if (definitionCase_ == 10) { + return (com.google.cloud.deploy.v1.CustomTargetSkaffoldActions) definition_; + } + return com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.getDefaultInstance(); + } + /** + * + * + *
+   * Configures render and deploy for the `CustomTargetType` using Skaffold
+   * custom actions.
+   * 
+ * + * .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10; + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetSkaffoldActionsOrBuilder + getCustomActionsOrBuilder() { + if (definitionCase_ == 10) { + return (com.google.cloud.deploy.v1.CustomTargetSkaffoldActions) definition_; + } + return com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customTargetTypeId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, customTargetTypeId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 6); + if (createTime_ != null) { + output.writeMessage(7, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(8, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, etag_); + } + if (definitionCase_ == 10) { + output.writeMessage(10, (com.google.cloud.deploy.v1.CustomTargetSkaffoldActions) definition_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customTargetTypeId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customTargetTypeId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, labels__); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, etag_); + } + if (definitionCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.deploy.v1.CustomTargetSkaffoldActions) definition_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.CustomTargetType)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.CustomTargetType other = + (com.google.cloud.deploy.v1.CustomTargetType) obj; + + if (!getName().equals(other.getName())) return false; + if (!getCustomTargetTypeId().equals(other.getCustomTargetTypeId())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getEtag().equals(other.getEtag())) return false; + if (!getDefinitionCase().equals(other.getDefinitionCase())) return false; + switch (definitionCase_) { + case 10: + if (!getCustomActions().equals(other.getCustomActions())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + CUSTOM_TARGET_TYPE_ID_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargetTypeId().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + switch (definitionCase_) { + case 10: + hash = (37 * hash) + CUSTOM_ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getCustomActions().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.CustomTargetType parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CustomTargetType parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetType parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CustomTargetType parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetType parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.CustomTargetType parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetType parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CustomTargetType parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetType parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CustomTargetType parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.CustomTargetType parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.CustomTargetType parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.deploy.v1.CustomTargetType prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A `CustomTargetType` resource in the Cloud Deploy API.
+   *
+   * A `CustomTargetType` defines a type of custom target that can be referenced
+   * in a `Target` in order to facilitate deploying to a runtime that does not
+   * have a 1P integration with Cloud Deploy.
+   * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.CustomTargetType} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.CustomTargetType) + com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTargetType_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 5: + return internalGetAnnotations(); + case 6: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField(int number) { + switch (number) { + case 5: + return internalGetMutableAnnotations(); + case 6: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTargetType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.CustomTargetType.class, + com.google.cloud.deploy.v1.CustomTargetType.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.CustomTargetType.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + customTargetTypeId_ = ""; + uid_ = ""; + description_ = ""; + internalGetMutableAnnotations().clear(); + internalGetMutableLabels().clear(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + etag_ = ""; + if (customActionsBuilder_ != null) { + customActionsBuilder_.clear(); + } + definitionCase_ = 0; + definition_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CustomTargetType_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetType getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.CustomTargetType.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetType build() { + com.google.cloud.deploy.v1.CustomTargetType result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetType buildPartial() { + com.google.cloud.deploy.v1.CustomTargetType result = + new com.google.cloud.deploy.v1.CustomTargetType(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.deploy.v1.CustomTargetType result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customTargetTypeId_ = customTargetTypeId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.etag_ = etag_; + } + } + + private void buildPartialOneofs(com.google.cloud.deploy.v1.CustomTargetType result) { + result.definitionCase_ = definitionCase_; + result.definition_ = this.definition_; + if (definitionCase_ == 10 && customActionsBuilder_ != null) { + result.definition_ = customActionsBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.CustomTargetType) { + return mergeFrom((com.google.cloud.deploy.v1.CustomTargetType) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.CustomTargetType other) { + if (other == com.google.cloud.deploy.v1.CustomTargetType.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCustomTargetTypeId().isEmpty()) { + customTargetTypeId_ = other.customTargetTypeId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00000010; + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000020; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000100; + onChanged(); + } + switch (other.getDefinitionCase()) { + case CUSTOM_ACTIONS: + { + mergeCustomActions(other.getCustomActions()); + break; + } + case DEFINITION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + customTargetTypeId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + input.readMessage(getCustomActionsFieldBuilder().getBuilder(), extensionRegistry); + definitionCase_ = 10; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int definitionCase_ = 0; + private java.lang.Object definition_; + + public DefinitionCase getDefinitionCase() { + return DefinitionCase.forNumber(definitionCase_); + } + + public Builder clearDefinition() { + definitionCase_ = 0; + definition_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Optional. Name of the `CustomTargetType`. Format is
+     * `projects/{project}/locations/{location}/customTargetTypes/[a-z][a-z0-9\-]{0,62}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Name of the `CustomTargetType`. Format is
+     * `projects/{project}/locations/{location}/customTargetTypes/[a-z][a-z0-9\-]{0,62}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Name of the `CustomTargetType`. Format is
+     * `projects/{project}/locations/{location}/customTargetTypes/[a-z][a-z0-9\-]{0,62}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Name of the `CustomTargetType`. Format is
+     * `projects/{project}/locations/{location}/customTargetTypes/[a-z][a-z0-9\-]{0,62}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Name of the `CustomTargetType`. Format is
+     * `projects/{project}/locations/{location}/customTargetTypes/[a-z][a-z0-9\-]{0,62}`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object customTargetTypeId_ = ""; + /** + * + * + *
+     * Output only. Resource id of the `CustomTargetType`.
+     * 
+ * + * string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The customTargetTypeId. + */ + public java.lang.String getCustomTargetTypeId() { + java.lang.Object ref = customTargetTypeId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customTargetTypeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource id of the `CustomTargetType`.
+     * 
+ * + * string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for customTargetTypeId. + */ + public com.google.protobuf.ByteString getCustomTargetTypeIdBytes() { + java.lang.Object ref = customTargetTypeId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customTargetTypeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource id of the `CustomTargetType`.
+     * 
+ * + * string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The customTargetTypeId to set. + * @return This builder for chaining. + */ + public Builder setCustomTargetTypeId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customTargetTypeId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource id of the `CustomTargetType`.
+     * 
+ * + * string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCustomTargetTypeId() { + customTargetTypeId_ = getDefaultInstance().getCustomTargetTypeId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource id of the `CustomTargetType`.
+     * 
+ * + * string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for customTargetTypeId to set. + * @return This builder for chaining. + */ + public Builder setCustomTargetTypeIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customTargetTypeId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
+     * Output only. Unique identifier of the `CustomTargetType`.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Unique identifier of the `CustomTargetType`.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Unique identifier of the `CustomTargetType`.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Unique identifier of the `CustomTargetType`.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Unique identifier of the `CustomTargetType`.
+     * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional. Description of the `CustomTargetType`. Max length is 255
+     * characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Description of the `CustomTargetType`. Max length is 255
+     * characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Description of the `CustomTargetType`. Max length is 255
+     * characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description of the `CustomTargetType`. Max length is 255
+     * characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description of the `CustomTargetType`. Max length is 255
+     * characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user, and not by Cloud Deploy. See
+     * https://google.aip.dev/128#annotations for more details such as format and
+     * size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user, and not by Cloud Deploy. See
+     * https://google.aip.dev/128#annotations for more details such as format and
+     * size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user, and not by Cloud Deploy. See
+     * https://google.aip.dev/128#annotations for more details such as format and
+     * size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user, and not by Cloud Deploy. See
+     * https://google.aip.dev/128#annotations for more details such as format and
+     * size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user, and not by Cloud Deploy. See
+     * https://google.aip.dev/128#annotations for more details such as format and
+     * size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00000010; + return internalGetMutableAnnotations().getMutableMap(); + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user, and not by Cloud Deploy. See
+     * https://google.aip.dev/128#annotations for more details such as format and
+     * size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + /** + * + * + *
+     * Optional. User annotations. These attributes can only be set and used by
+     * the user, and not by Cloud Deploy. See
+     * https://google.aip.dev/128#annotations for more details such as format and
+     * size limitations.
+     * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000020; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + /** + * + * + *
+     * Optional. Labels are attributes that can be set and used by both the
+     * user and by Cloud Deploy. Labels must meet the following constraints:
+     *
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     * underscores, and dashes.
+     * * All characters must use UTF-8 encoding, and international characters are
+     * allowed.
+     * * Keys must start with a lowercase letter or international character.
+     * * Each resource is limited to a maximum of 64 labels.
+     *
+     * Both keys and values are additionally constrained to be <= 128 bytes.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + * + * + *
+     * Optional. Labels are attributes that can be set and used by both the
+     * user and by Cloud Deploy. Labels must meet the following constraints:
+     *
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     * underscores, and dashes.
+     * * All characters must use UTF-8 encoding, and international characters are
+     * allowed.
+     * * Keys must start with a lowercase letter or international character.
+     * * Each resource is limited to a maximum of 64 labels.
+     *
+     * Both keys and values are additionally constrained to be <= 128 bytes.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + * + * + *
+     * Optional. Labels are attributes that can be set and used by both the
+     * user and by Cloud Deploy. Labels must meet the following constraints:
+     *
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     * underscores, and dashes.
+     * * All characters must use UTF-8 encoding, and international characters are
+     * allowed.
+     * * Keys must start with a lowercase letter or international character.
+     * * Each resource is limited to a maximum of 64 labels.
+     *
+     * Both keys and values are additionally constrained to be <= 128 bytes.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Optional. Labels are attributes that can be set and used by both the
+     * user and by Cloud Deploy. Labels must meet the following constraints:
+     *
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     * underscores, and dashes.
+     * * All characters must use UTF-8 encoding, and international characters are
+     * allowed.
+     * * Keys must start with a lowercase letter or international character.
+     * * Each resource is limited to a maximum of 64 labels.
+     *
+     * Both keys and values are additionally constrained to be <= 128 bytes.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Optional. Labels are attributes that can be set and used by both the
+     * user and by Cloud Deploy. Labels must meet the following constraints:
+     *
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     * underscores, and dashes.
+     * * All characters must use UTF-8 encoding, and international characters are
+     * allowed.
+     * * Keys must start with a lowercase letter or international character.
+     * * Each resource is limited to a maximum of 64 labels.
+     *
+     * Both keys and values are additionally constrained to be <= 128 bytes.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000020; + return internalGetMutableLabels().getMutableMap(); + } + /** + * + * + *
+     * Optional. Labels are attributes that can be set and used by both the
+     * user and by Cloud Deploy. Labels must meet the following constraints:
+     *
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     * underscores, and dashes.
+     * * All characters must use UTF-8 encoding, and international characters are
+     * allowed.
+     * * Keys must start with a lowercase letter or international character.
+     * * Each resource is limited to a maximum of 64 labels.
+     *
+     * Both keys and values are additionally constrained to be <= 128 bytes.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000020; + return this; + } + /** + * + * + *
+     * Optional. Labels are attributes that can be set and used by both the
+     * user and by Cloud Deploy. Labels must meet the following constraints:
+     *
+     * * Keys and values can contain only lowercase letters, numeric characters,
+     * underscores, and dashes.
+     * * All characters must use UTF-8 encoding, and international characters are
+     * allowed.
+     * * Keys must start with a lowercase letter or international character.
+     * * Each resource is limited to a maximum of 64 labels.
+     *
+     * Both keys and values are additionally constrained to be <= 128 bytes.
+     * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Time at which the `CustomTargetType` was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Output only. Time at which the `CustomTargetType` was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time at which the `CustomTargetType` was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time at which the `CustomTargetType` was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time at which the `CustomTargetType` was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time at which the `CustomTargetType` was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time at which the `CustomTargetType` was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time at which the `CustomTargetType` was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Time at which the `CustomTargetType` was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Most recent time at which the `CustomTargetType` was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Output only. Most recent time at which the `CustomTargetType` was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Most recent time at which the `CustomTargetType` was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Most recent time at which the `CustomTargetType` was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Most recent time at which the `CustomTargetType` was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Most recent time at which the `CustomTargetType` was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Most recent time at which the `CustomTargetType` was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Most recent time at which the `CustomTargetType` was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Most recent time at which the `CustomTargetType` was updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Optional. This checksum is computed by the server based on the value of
+     * other fields, and may be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. This checksum is computed by the server based on the value of
+     * other fields, and may be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. This checksum is computed by the server based on the value of
+     * other fields, and may be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This checksum is computed by the server based on the value of
+     * other fields, and may be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This checksum is computed by the server based on the value of
+     * other fields, and may be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTargetSkaffoldActions, + com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.Builder, + com.google.cloud.deploy.v1.CustomTargetSkaffoldActionsOrBuilder> + customActionsBuilder_; + /** + * + * + *
+     * Configures render and deploy for the `CustomTargetType` using Skaffold
+     * custom actions.
+     * 
+ * + * .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10; + * + * @return Whether the customActions field is set. + */ + @java.lang.Override + public boolean hasCustomActions() { + return definitionCase_ == 10; + } + /** + * + * + *
+     * Configures render and deploy for the `CustomTargetType` using Skaffold
+     * custom actions.
+     * 
+ * + * .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10; + * + * @return The customActions. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetSkaffoldActions getCustomActions() { + if (customActionsBuilder_ == null) { + if (definitionCase_ == 10) { + return (com.google.cloud.deploy.v1.CustomTargetSkaffoldActions) definition_; + } + return com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.getDefaultInstance(); + } else { + if (definitionCase_ == 10) { + return customActionsBuilder_.getMessage(); + } + return com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configures render and deploy for the `CustomTargetType` using Skaffold
+     * custom actions.
+     * 
+ * + * .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10; + */ + public Builder setCustomActions(com.google.cloud.deploy.v1.CustomTargetSkaffoldActions value) { + if (customActionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + definition_ = value; + onChanged(); + } else { + customActionsBuilder_.setMessage(value); + } + definitionCase_ = 10; + return this; + } + /** + * + * + *
+     * Configures render and deploy for the `CustomTargetType` using Skaffold
+     * custom actions.
+     * 
+ * + * .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10; + */ + public Builder setCustomActions( + com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.Builder builderForValue) { + if (customActionsBuilder_ == null) { + definition_ = builderForValue.build(); + onChanged(); + } else { + customActionsBuilder_.setMessage(builderForValue.build()); + } + definitionCase_ = 10; + return this; + } + /** + * + * + *
+     * Configures render and deploy for the `CustomTargetType` using Skaffold
+     * custom actions.
+     * 
+ * + * .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10; + */ + public Builder mergeCustomActions( + com.google.cloud.deploy.v1.CustomTargetSkaffoldActions value) { + if (customActionsBuilder_ == null) { + if (definitionCase_ == 10 + && definition_ + != com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.getDefaultInstance()) { + definition_ = + com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.newBuilder( + (com.google.cloud.deploy.v1.CustomTargetSkaffoldActions) definition_) + .mergeFrom(value) + .buildPartial(); + } else { + definition_ = value; + } + onChanged(); + } else { + if (definitionCase_ == 10) { + customActionsBuilder_.mergeFrom(value); + } else { + customActionsBuilder_.setMessage(value); + } + } + definitionCase_ = 10; + return this; + } + /** + * + * + *
+     * Configures render and deploy for the `CustomTargetType` using Skaffold
+     * custom actions.
+     * 
+ * + * .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10; + */ + public Builder clearCustomActions() { + if (customActionsBuilder_ == null) { + if (definitionCase_ == 10) { + definitionCase_ = 0; + definition_ = null; + onChanged(); + } + } else { + if (definitionCase_ == 10) { + definitionCase_ = 0; + definition_ = null; + } + customActionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Configures render and deploy for the `CustomTargetType` using Skaffold
+     * custom actions.
+     * 
+ * + * .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10; + */ + public com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.Builder + getCustomActionsBuilder() { + return getCustomActionsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configures render and deploy for the `CustomTargetType` using Skaffold
+     * custom actions.
+     * 
+ * + * .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10; + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetSkaffoldActionsOrBuilder + getCustomActionsOrBuilder() { + if ((definitionCase_ == 10) && (customActionsBuilder_ != null)) { + return customActionsBuilder_.getMessageOrBuilder(); + } else { + if (definitionCase_ == 10) { + return (com.google.cloud.deploy.v1.CustomTargetSkaffoldActions) definition_; + } + return com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configures render and deploy for the `CustomTargetType` using Skaffold
+     * custom actions.
+     * 
+ * + * .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTargetSkaffoldActions, + com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.Builder, + com.google.cloud.deploy.v1.CustomTargetSkaffoldActionsOrBuilder> + getCustomActionsFieldBuilder() { + if (customActionsBuilder_ == null) { + if (!(definitionCase_ == 10)) { + definition_ = com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.getDefaultInstance(); + } + customActionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTargetSkaffoldActions, + com.google.cloud.deploy.v1.CustomTargetSkaffoldActions.Builder, + com.google.cloud.deploy.v1.CustomTargetSkaffoldActionsOrBuilder>( + (com.google.cloud.deploy.v1.CustomTargetSkaffoldActions) definition_, + getParentForChildren(), + isClean()); + definition_ = null; + } + definitionCase_ = 10; + onChanged(); + return customActionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.CustomTargetType) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.CustomTargetType) + private static final com.google.cloud.deploy.v1.CustomTargetType DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.CustomTargetType(); + } + + public static com.google.cloud.deploy.v1.CustomTargetType getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomTargetType parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetType getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetTypeName.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetTypeName.java new file mode 100644 index 000000000000..94d0a157a5dd --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetTypeName.java @@ -0,0 +1,228 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class CustomTargetTypeName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CUSTOM_TARGET_TYPE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String customTargetType; + + @Deprecated + protected CustomTargetTypeName() { + project = null; + location = null; + customTargetType = null; + } + + private CustomTargetTypeName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + customTargetType = Preconditions.checkNotNull(builder.getCustomTargetType()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCustomTargetType() { + return customTargetType; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CustomTargetTypeName of(String project, String location, String customTargetType) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCustomTargetType(customTargetType) + .build(); + } + + public static String format(String project, String location, String customTargetType) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCustomTargetType(customTargetType) + .build() + .toString(); + } + + public static CustomTargetTypeName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CUSTOM_TARGET_TYPE.validatedMatch( + formattedString, "CustomTargetTypeName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("custom_target_type")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (CustomTargetTypeName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CUSTOM_TARGET_TYPE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (customTargetType != null) { + fieldMapBuilder.put("custom_target_type", customTargetType); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CUSTOM_TARGET_TYPE.instantiate( + "project", project, "location", location, "custom_target_type", customTargetType); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CustomTargetTypeName that = ((CustomTargetTypeName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.customTargetType, that.customTargetType); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(customTargetType); + return h; + } + + /** Builder for projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}. */ + public static class Builder { + private String project; + private String location; + private String customTargetType; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCustomTargetType() { + return customTargetType; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCustomTargetType(String customTargetType) { + this.customTargetType = customTargetType; + return this; + } + + private Builder(CustomTargetTypeName customTargetTypeName) { + this.project = customTargetTypeName.project; + this.location = customTargetTypeName.location; + this.customTargetType = customTargetTypeName.customTargetType; + } + + public CustomTargetTypeName build() { + return new CustomTargetTypeName(this); + } + } +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetTypeOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetTypeOrBuilder.java new file mode 100644 index 000000000000..7b13e14a6105 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CustomTargetTypeOrBuilder.java @@ -0,0 +1,460 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface CustomTargetTypeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.CustomTargetType) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Name of the `CustomTargetType`. Format is
+   * `projects/{project}/locations/{location}/customTargetTypes/[a-z][a-z0-9\-]{0,62}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Optional. Name of the `CustomTargetType`. Format is
+   * `projects/{project}/locations/{location}/customTargetTypes/[a-z][a-z0-9\-]{0,62}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Resource id of the `CustomTargetType`.
+   * 
+ * + * string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The customTargetTypeId. + */ + java.lang.String getCustomTargetTypeId(); + /** + * + * + *
+   * Output only. Resource id of the `CustomTargetType`.
+   * 
+ * + * string custom_target_type_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for customTargetTypeId. + */ + com.google.protobuf.ByteString getCustomTargetTypeIdBytes(); + + /** + * + * + *
+   * Output only. Unique identifier of the `CustomTargetType`.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
+   * Output only. Unique identifier of the `CustomTargetType`.
+   * 
+ * + * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * Optional. Description of the `CustomTargetType`. Max length is 255
+   * characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional. Description of the `CustomTargetType`. Max length is 255
+   * characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user, and not by Cloud Deploy. See
+   * https://google.aip.dev/128#annotations for more details such as format and
+   * size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user, and not by Cloud Deploy. See
+   * https://google.aip.dev/128#annotations for more details such as format and
+   * size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user, and not by Cloud Deploy. See
+   * https://google.aip.dev/128#annotations for more details such as format and
+   * size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user, and not by Cloud Deploy. See
+   * https://google.aip.dev/128#annotations for more details such as format and
+   * size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. User annotations. These attributes can only be set and used by
+   * the user, and not by Cloud Deploy. See
+   * https://google.aip.dev/128#annotations for more details such as format and
+   * size limitations.
+   * 
+ * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Optional. Labels are attributes that can be set and used by both the
+   * user and by Cloud Deploy. Labels must meet the following constraints:
+   *
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   * underscores, and dashes.
+   * * All characters must use UTF-8 encoding, and international characters are
+   * allowed.
+   * * Keys must start with a lowercase letter or international character.
+   * * Each resource is limited to a maximum of 64 labels.
+   *
+   * Both keys and values are additionally constrained to be <= 128 bytes.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + /** + * + * + *
+   * Optional. Labels are attributes that can be set and used by both the
+   * user and by Cloud Deploy. Labels must meet the following constraints:
+   *
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   * underscores, and dashes.
+   * * All characters must use UTF-8 encoding, and international characters are
+   * allowed.
+   * * Keys must start with a lowercase letter or international character.
+   * * Each resource is limited to a maximum of 64 labels.
+   *
+   * Both keys and values are additionally constrained to be <= 128 bytes.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + /** + * + * + *
+   * Optional. Labels are attributes that can be set and used by both the
+   * user and by Cloud Deploy. Labels must meet the following constraints:
+   *
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   * underscores, and dashes.
+   * * All characters must use UTF-8 encoding, and international characters are
+   * allowed.
+   * * Keys must start with a lowercase letter or international character.
+   * * Each resource is limited to a maximum of 64 labels.
+   *
+   * Both keys and values are additionally constrained to be <= 128 bytes.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + /** + * + * + *
+   * Optional. Labels are attributes that can be set and used by both the
+   * user and by Cloud Deploy. Labels must meet the following constraints:
+   *
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   * underscores, and dashes.
+   * * All characters must use UTF-8 encoding, and international characters are
+   * allowed.
+   * * Keys must start with a lowercase letter or international character.
+   * * Each resource is limited to a maximum of 64 labels.
+   *
+   * Both keys and values are additionally constrained to be <= 128 bytes.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + /** + * + * + *
+   * Optional. Labels are attributes that can be set and used by both the
+   * user and by Cloud Deploy. Labels must meet the following constraints:
+   *
+   * * Keys and values can contain only lowercase letters, numeric characters,
+   * underscores, and dashes.
+   * * All characters must use UTF-8 encoding, and international characters are
+   * allowed.
+   * * Keys must start with a lowercase letter or international character.
+   * * Each resource is limited to a maximum of 64 labels.
+   *
+   * Both keys and values are additionally constrained to be <= 128 bytes.
+   * 
+ * + * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Time at which the `CustomTargetType` was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Time at which the `CustomTargetType` was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Time at which the `CustomTargetType` was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Most recent time at which the `CustomTargetType` was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Most recent time at which the `CustomTargetType` was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Most recent time at which the `CustomTargetType` was updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. This checksum is computed by the server based on the value of
+   * other fields, and may be sent on update and delete requests to ensure the
+   * client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Optional. This checksum is computed by the server based on the value of
+   * other fields, and may be sent on update and delete requests to ensure the
+   * client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
+   * Configures render and deploy for the `CustomTargetType` using Skaffold
+   * custom actions.
+   * 
+ * + * .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10; + * + * @return Whether the customActions field is set. + */ + boolean hasCustomActions(); + /** + * + * + *
+   * Configures render and deploy for the `CustomTargetType` using Skaffold
+   * custom actions.
+   * 
+ * + * .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10; + * + * @return The customActions. + */ + com.google.cloud.deploy.v1.CustomTargetSkaffoldActions getCustomActions(); + /** + * + * + *
+   * Configures render and deploy for the `CustomTargetType` using Skaffold
+   * custom actions.
+   * 
+ * + * .google.cloud.deploy.v1.CustomTargetSkaffoldActions custom_actions = 10; + */ + com.google.cloud.deploy.v1.CustomTargetSkaffoldActionsOrBuilder getCustomActionsOrBuilder(); + + com.google.cloud.deploy.v1.CustomTargetType.DefinitionCase getDefinitionCase(); +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteCustomTargetTypeRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteCustomTargetTypeRequest.java new file mode 100644 index 000000000000..02a9f62c92fb --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteCustomTargetTypeRequest.java @@ -0,0 +1,1302 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +/** + * + * + *
+ * The request object for `DeleteCustomTargetType`.
+ * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.DeleteCustomTargetTypeRequest} + */ +public final class DeleteCustomTargetTypeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.DeleteCustomTargetTypeRequest) + DeleteCustomTargetTypeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteCustomTargetTypeRequest.newBuilder() to construct. + private DeleteCustomTargetTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteCustomTargetTypeRequest() { + name_ = ""; + requestId_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteCustomTargetTypeRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeleteCustomTargetTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeleteCustomTargetTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest.class, + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the `CustomTargetType` to delete. Format must be
+   * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the `CustomTargetType` to delete. Format must be
+   * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_MISSING_FIELD_NUMBER = 3; + private boolean allowMissing_ = false; + /** + * + * + *
+   * Optional. If set to true, then deleting an already deleted or non-existing
+   * `CustomTargetType` will succeed.
+   * 
+ * + * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_ = false; + /** + * + * + *
+   * Optional. If set to true, the request is validated but no actual change is
+   * made.
+   * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int ETAG_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + /** + * + * + *
+   * Optional. This checksum is computed by the server based on the value of
+   * other fields, and may be sent on update and delete requests to ensure the
+   * client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. This checksum is computed by the server based on the value of
+   * other fields, and may be sent on update and delete requests to ensure the
+   * client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + if (allowMissing_ != false) { + output.writeBool(3, allowMissing_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + if (allowMissing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, allowMissing_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest other = + (com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request object for `DeleteCustomTargetType`.
+   * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.DeleteCustomTargetTypeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.DeleteCustomTargetTypeRequest) + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeleteCustomTargetTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeleteCustomTargetTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest.class, + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + allowMissing_ = false; + validateOnly_ = false; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeleteCustomTargetTypeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest build() { + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest buildPartial() { + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest result = + new com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.allowMissing_ = allowMissing_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest) { + return mergeFrom((com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest other) { + if (other == com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getAllowMissing() != false) { + setAllowMissing(other.getAllowMissing()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the `CustomTargetType` to delete. Format must be
+     * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the `CustomTargetType` to delete. Format must be
+     * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the `CustomTargetType` to delete. Format must be
+     * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the `CustomTargetType` to delete. Format must be
+     * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the `CustomTargetType` to delete. Format must be
+     * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean allowMissing_; + /** + * + * + *
+     * Optional. If set to true, then deleting an already deleted or non-existing
+     * `CustomTargetType` will succeed.
+     * 
+ * + * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + /** + * + * + *
+     * Optional. If set to true, then deleting an already deleted or non-existing
+     * `CustomTargetType` will succeed.
+     * 
+ * + * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowMissing to set. + * @return This builder for chaining. + */ + public Builder setAllowMissing(boolean value) { + + allowMissing_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to true, then deleting an already deleted or non-existing
+     * `CustomTargetType` will succeed.
+     * 
+ * + * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowMissing() { + bitField0_ = (bitField0_ & ~0x00000004); + allowMissing_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_; + /** + * + * + *
+     * Optional. If set to true, the request is validated but no actual change is
+     * made.
+     * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + * + * + *
+     * Optional. If set to true, the request is validated but no actual change is
+     * made.
+     * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to true, the request is validated but no actual change is
+     * made.
+     * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + validateOnly_ = false; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + /** + * + * + *
+     * Optional. This checksum is computed by the server based on the value of
+     * other fields, and may be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. This checksum is computed by the server based on the value of
+     * other fields, and may be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. This checksum is computed by the server based on the value of
+     * other fields, and may be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This checksum is computed by the server based on the value of
+     * other fields, and may be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. This checksum is computed by the server based on the value of
+     * other fields, and may be sent on update and delete requests to ensure the
+     * client has an up-to-date value before proceeding.
+     * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.DeleteCustomTargetTypeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.DeleteCustomTargetTypeRequest) + private static final com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest(); + } + + public static com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCustomTargetTypeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteCustomTargetTypeRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteCustomTargetTypeRequestOrBuilder.java new file mode 100644 index 000000000000..69958f934e32 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteCustomTargetTypeRequestOrBuilder.java @@ -0,0 +1,162 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface DeleteCustomTargetTypeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.DeleteCustomTargetTypeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the `CustomTargetType` to delete. Format must be
+   * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the `CustomTargetType` to delete. Format must be
+   * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. If set to true, then deleting an already deleted or non-existing
+   * `CustomTargetType` will succeed.
+   * 
+ * + * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowMissing. + */ + boolean getAllowMissing(); + + /** + * + * + *
+   * Optional. If set to true, the request is validated but no actual change is
+   * made.
+   * 
+ * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
+   * Optional. This checksum is computed by the server based on the value of
+   * other fields, and may be sent on update and delete requests to ensure the
+   * client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + /** + * + * + *
+   * Optional. This checksum is computed by the server based on the value of
+   * other fields, and may be sent on update and delete requests to ensure the
+   * client has an up-to-date value before proceeding.
+   * 
+ * + * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRun.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRun.java index e352bd6a9c53..cda0257e2d03 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRun.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRun.java @@ -139,6 +139,16 @@ public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_BUILD_REQUEST_FAILED = 5; */ CLOUD_BUILD_REQUEST_FAILED(5), + /** + * + * + *
+     * The deploy operation had a feature configured that is not supported.
+     * 
+ * + * DEPLOY_FEATURE_NOT_SUPPORTED = 6; + */ + DEPLOY_FEATURE_NOT_SUPPORTED(6), UNRECOGNIZED(-1), ; @@ -207,6 +217,16 @@ public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_BUILD_REQUEST_FAILED = 5; */ public static final int CLOUD_BUILD_REQUEST_FAILED_VALUE = 5; + /** + * + * + *
+     * The deploy operation had a feature configured that is not supported.
+     * 
+ * + * DEPLOY_FEATURE_NOT_SUPPORTED = 6; + */ + public static final int DEPLOY_FEATURE_NOT_SUPPORTED_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -244,6 +264,8 @@ public static FailureCause forNumber(int value) { return MISSING_RESOURCES_FOR_CANARY; case 5: return CLOUD_BUILD_REQUEST_FAILED; + case 6: + return DEPLOY_FEATURE_NOT_SUPPORTED; default: return null; } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadata.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadata.java index 488722a2de54..321d3b0379f4 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadata.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadata.java @@ -120,6 +120,118 @@ public com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder getCloudRunOrBuilder : cloudRun_; } + public static final int CUSTOM_TARGET_FIELD_NUMBER = 2; + private com.google.cloud.deploy.v1.CustomTargetDeployMetadata customTarget_; + /** + * + * + *
+   * Output only. Custom Target metadata associated with a `DeployJobRun`.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the customTarget field is set. + */ + @java.lang.Override + public boolean hasCustomTarget() { + return customTarget_ != null; + } + /** + * + * + *
+   * Output only. Custom Target metadata associated with a `DeployJobRun`.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customTarget. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetDeployMetadata getCustomTarget() { + return customTarget_ == null + ? com.google.cloud.deploy.v1.CustomTargetDeployMetadata.getDefaultInstance() + : customTarget_; + } + /** + * + * + *
+   * Output only. Custom Target metadata associated with a `DeployJobRun`.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetDeployMetadataOrBuilder getCustomTargetOrBuilder() { + return customTarget_ == null + ? com.google.cloud.deploy.v1.CustomTargetDeployMetadata.getDefaultInstance() + : customTarget_; + } + + public static final int CUSTOM_FIELD_NUMBER = 3; + private com.google.cloud.deploy.v1.CustomMetadata custom_; + /** + * + * + *
+   * Output only. Custom metadata provided by user defined deploy operation.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the custom field is set. + */ + @java.lang.Override + public boolean hasCustom() { + return custom_ != null; + } + /** + * + * + *
+   * Output only. Custom metadata provided by user defined deploy operation.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The custom. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomMetadata getCustom() { + return custom_ == null + ? com.google.cloud.deploy.v1.CustomMetadata.getDefaultInstance() + : custom_; + } + /** + * + * + *
+   * Output only. Custom metadata provided by user defined deploy operation.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomMetadataOrBuilder getCustomOrBuilder() { + return custom_ == null + ? com.google.cloud.deploy.v1.CustomMetadata.getDefaultInstance() + : custom_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -137,6 +249,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (cloudRun_ != null) { output.writeMessage(1, getCloudRun()); } + if (customTarget_ != null) { + output.writeMessage(2, getCustomTarget()); + } + if (custom_ != null) { + output.writeMessage(3, getCustom()); + } getUnknownFields().writeTo(output); } @@ -149,6 +267,12 @@ public int getSerializedSize() { if (cloudRun_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCloudRun()); } + if (customTarget_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomTarget()); + } + if (custom_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCustom()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -169,6 +293,14 @@ public boolean equals(final java.lang.Object obj) { if (hasCloudRun()) { if (!getCloudRun().equals(other.getCloudRun())) return false; } + if (hasCustomTarget() != other.hasCustomTarget()) return false; + if (hasCustomTarget()) { + if (!getCustomTarget().equals(other.getCustomTarget())) return false; + } + if (hasCustom() != other.hasCustom()) return false; + if (hasCustom()) { + if (!getCustom().equals(other.getCustom())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,6 +316,14 @@ public int hashCode() { hash = (37 * hash) + CLOUD_RUN_FIELD_NUMBER; hash = (53 * hash) + getCloudRun().hashCode(); } + if (hasCustomTarget()) { + hash = (37 * hash) + CUSTOM_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getCustomTarget().hashCode(); + } + if (hasCustom()) { + hash = (37 * hash) + CUSTOM_FIELD_NUMBER; + hash = (53 * hash) + getCustom().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -329,6 +469,16 @@ public Builder clear() { cloudRunBuilder_.dispose(); cloudRunBuilder_ = null; } + customTarget_ = null; + if (customTargetBuilder_ != null) { + customTargetBuilder_.dispose(); + customTargetBuilder_ = null; + } + custom_ = null; + if (customBuilder_ != null) { + customBuilder_.dispose(); + customBuilder_ = null; + } return this; } @@ -368,6 +518,13 @@ private void buildPartial0(com.google.cloud.deploy.v1.DeployJobRunMetadata resul if (((from_bitField0_ & 0x00000001) != 0)) { result.cloudRun_ = cloudRunBuilder_ == null ? cloudRun_ : cloudRunBuilder_.build(); } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customTarget_ = + customTargetBuilder_ == null ? customTarget_ : customTargetBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.custom_ = customBuilder_ == null ? custom_ : customBuilder_.build(); + } } @java.lang.Override @@ -419,6 +576,12 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.DeployJobRunMetadata other) if (other.hasCloudRun()) { mergeCloudRun(other.getCloudRun()); } + if (other.hasCustomTarget()) { + mergeCustomTarget(other.getCustomTarget()); + } + if (other.hasCustom()) { + mergeCustom(other.getCustom()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -451,6 +614,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + input.readMessage(getCustomTargetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCustomFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -681,6 +856,411 @@ public com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder getCloudRunOrBuilder return cloudRunBuilder_; } + private com.google.cloud.deploy.v1.CustomTargetDeployMetadata customTarget_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTargetDeployMetadata, + com.google.cloud.deploy.v1.CustomTargetDeployMetadata.Builder, + com.google.cloud.deploy.v1.CustomTargetDeployMetadataOrBuilder> + customTargetBuilder_; + /** + * + * + *
+     * Output only. Custom Target metadata associated with a `DeployJobRun`.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the customTarget field is set. + */ + public boolean hasCustomTarget() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Output only. Custom Target metadata associated with a `DeployJobRun`.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customTarget. + */ + public com.google.cloud.deploy.v1.CustomTargetDeployMetadata getCustomTarget() { + if (customTargetBuilder_ == null) { + return customTarget_ == null + ? com.google.cloud.deploy.v1.CustomTargetDeployMetadata.getDefaultInstance() + : customTarget_; + } else { + return customTargetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Custom Target metadata associated with a `DeployJobRun`.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCustomTarget(com.google.cloud.deploy.v1.CustomTargetDeployMetadata value) { + if (customTargetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customTarget_ = value; + } else { + customTargetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Custom Target metadata associated with a `DeployJobRun`.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCustomTarget( + com.google.cloud.deploy.v1.CustomTargetDeployMetadata.Builder builderForValue) { + if (customTargetBuilder_ == null) { + customTarget_ = builderForValue.build(); + } else { + customTargetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Custom Target metadata associated with a `DeployJobRun`.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCustomTarget(com.google.cloud.deploy.v1.CustomTargetDeployMetadata value) { + if (customTargetBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && customTarget_ != null + && customTarget_ + != com.google.cloud.deploy.v1.CustomTargetDeployMetadata.getDefaultInstance()) { + getCustomTargetBuilder().mergeFrom(value); + } else { + customTarget_ = value; + } + } else { + customTargetBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Custom Target metadata associated with a `DeployJobRun`.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCustomTarget() { + bitField0_ = (bitField0_ & ~0x00000002); + customTarget_ = null; + if (customTargetBuilder_ != null) { + customTargetBuilder_.dispose(); + customTargetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Custom Target metadata associated with a `DeployJobRun`.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.CustomTargetDeployMetadata.Builder getCustomTargetBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCustomTargetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Custom Target metadata associated with a `DeployJobRun`.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.CustomTargetDeployMetadataOrBuilder + getCustomTargetOrBuilder() { + if (customTargetBuilder_ != null) { + return customTargetBuilder_.getMessageOrBuilder(); + } else { + return customTarget_ == null + ? com.google.cloud.deploy.v1.CustomTargetDeployMetadata.getDefaultInstance() + : customTarget_; + } + } + /** + * + * + *
+     * Output only. Custom Target metadata associated with a `DeployJobRun`.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTargetDeployMetadata, + com.google.cloud.deploy.v1.CustomTargetDeployMetadata.Builder, + com.google.cloud.deploy.v1.CustomTargetDeployMetadataOrBuilder> + getCustomTargetFieldBuilder() { + if (customTargetBuilder_ == null) { + customTargetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTargetDeployMetadata, + com.google.cloud.deploy.v1.CustomTargetDeployMetadata.Builder, + com.google.cloud.deploy.v1.CustomTargetDeployMetadataOrBuilder>( + getCustomTarget(), getParentForChildren(), isClean()); + customTarget_ = null; + } + return customTargetBuilder_; + } + + private com.google.cloud.deploy.v1.CustomMetadata custom_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomMetadata, + com.google.cloud.deploy.v1.CustomMetadata.Builder, + com.google.cloud.deploy.v1.CustomMetadataOrBuilder> + customBuilder_; + /** + * + * + *
+     * Output only. Custom metadata provided by user defined deploy operation.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the custom field is set. + */ + public boolean hasCustom() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined deploy operation.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The custom. + */ + public com.google.cloud.deploy.v1.CustomMetadata getCustom() { + if (customBuilder_ == null) { + return custom_ == null + ? com.google.cloud.deploy.v1.CustomMetadata.getDefaultInstance() + : custom_; + } else { + return customBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined deploy operation.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCustom(com.google.cloud.deploy.v1.CustomMetadata value) { + if (customBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + custom_ = value; + } else { + customBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined deploy operation.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCustom(com.google.cloud.deploy.v1.CustomMetadata.Builder builderForValue) { + if (customBuilder_ == null) { + custom_ = builderForValue.build(); + } else { + customBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined deploy operation.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCustom(com.google.cloud.deploy.v1.CustomMetadata value) { + if (customBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && custom_ != null + && custom_ != com.google.cloud.deploy.v1.CustomMetadata.getDefaultInstance()) { + getCustomBuilder().mergeFrom(value); + } else { + custom_ = value; + } + } else { + customBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined deploy operation.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCustom() { + bitField0_ = (bitField0_ & ~0x00000004); + custom_ = null; + if (customBuilder_ != null) { + customBuilder_.dispose(); + customBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined deploy operation.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.CustomMetadata.Builder getCustomBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCustomFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined deploy operation.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.CustomMetadataOrBuilder getCustomOrBuilder() { + if (customBuilder_ != null) { + return customBuilder_.getMessageOrBuilder(); + } else { + return custom_ == null + ? com.google.cloud.deploy.v1.CustomMetadata.getDefaultInstance() + : custom_; + } + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined deploy operation.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomMetadata, + com.google.cloud.deploy.v1.CustomMetadata.Builder, + com.google.cloud.deploy.v1.CustomMetadataOrBuilder> + getCustomFieldBuilder() { + if (customBuilder_ == null) { + customBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomMetadata, + com.google.cloud.deploy.v1.CustomMetadata.Builder, + com.google.cloud.deploy.v1.CustomMetadataOrBuilder>( + getCustom(), getParentForChildren(), isClean()); + custom_ = null; + } + return customBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadataOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadataOrBuilder.java index a6592cd23a5e..82cc77f94848 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadataOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadataOrBuilder.java @@ -66,4 +66,86 @@ public interface DeployJobRunMetadataOrBuilder *
*/ com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder getCloudRunOrBuilder(); + + /** + * + * + *
+   * Output only. Custom Target metadata associated with a `DeployJobRun`.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the customTarget field is set. + */ + boolean hasCustomTarget(); + /** + * + * + *
+   * Output only. Custom Target metadata associated with a `DeployJobRun`.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customTarget. + */ + com.google.cloud.deploy.v1.CustomTargetDeployMetadata getCustomTarget(); + /** + * + * + *
+   * Output only. Custom Target metadata associated with a `DeployJobRun`.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetDeployMetadata custom_target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.deploy.v1.CustomTargetDeployMetadataOrBuilder getCustomTargetOrBuilder(); + + /** + * + * + *
+   * Output only. Custom metadata provided by user defined deploy operation.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the custom field is set. + */ + boolean hasCustom(); + /** + * + * + *
+   * Output only. Custom metadata provided by user defined deploy operation.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The custom. + */ + com.google.cloud.deploy.v1.CustomMetadata getCustom(); + /** + * + * + *
+   * Output only. Custom metadata provided by user defined deploy operation.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.deploy.v1.CustomMetadataOrBuilder getCustomOrBuilder(); } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetCustomTargetTypeRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetCustomTargetTypeRequest.java new file mode 100644 index 000000000000..eeeba17aa3b5 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetCustomTargetTypeRequest.java @@ -0,0 +1,646 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +/** + * + * + *
+ * The request object for `GetCustomTargetType`.
+ * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.GetCustomTargetTypeRequest} + */ +public final class GetCustomTargetTypeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.GetCustomTargetTypeRequest) + GetCustomTargetTypeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetCustomTargetTypeRequest.newBuilder() to construct. + private GetCustomTargetTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCustomTargetTypeRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetCustomTargetTypeRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_GetCustomTargetTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_GetCustomTargetTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest.class, + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Name of the `CustomTargetType`. Format must be
+   * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the `CustomTargetType`. Format must be
+   * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.GetCustomTargetTypeRequest)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest other = + (com.google.cloud.deploy.v1.GetCustomTargetTypeRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.GetCustomTargetTypeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.GetCustomTargetTypeRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.GetCustomTargetTypeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.GetCustomTargetTypeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.GetCustomTargetTypeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.GetCustomTargetTypeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.GetCustomTargetTypeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.GetCustomTargetTypeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.GetCustomTargetTypeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.GetCustomTargetTypeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.GetCustomTargetTypeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.GetCustomTargetTypeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request object for `GetCustomTargetType`.
+   * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.GetCustomTargetTypeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.GetCustomTargetTypeRequest) + com.google.cloud.deploy.v1.GetCustomTargetTypeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_GetCustomTargetTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_GetCustomTargetTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest.class, + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.GetCustomTargetTypeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_GetCustomTargetTypeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.GetCustomTargetTypeRequest getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.GetCustomTargetTypeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.GetCustomTargetTypeRequest build() { + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.GetCustomTargetTypeRequest buildPartial() { + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest result = + new com.google.cloud.deploy.v1.GetCustomTargetTypeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.deploy.v1.GetCustomTargetTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.GetCustomTargetTypeRequest) { + return mergeFrom((com.google.cloud.deploy.v1.GetCustomTargetTypeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.GetCustomTargetTypeRequest other) { + if (other == com.google.cloud.deploy.v1.GetCustomTargetTypeRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Name of the `CustomTargetType`. Format must be
+     * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the `CustomTargetType`. Format must be
+     * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the `CustomTargetType`. Format must be
+     * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the `CustomTargetType`. Format must be
+     * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the `CustomTargetType`. Format must be
+     * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.GetCustomTargetTypeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.GetCustomTargetTypeRequest) + private static final com.google.cloud.deploy.v1.GetCustomTargetTypeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.GetCustomTargetTypeRequest(); + } + + public static com.google.cloud.deploy.v1.GetCustomTargetTypeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCustomTargetTypeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.GetCustomTargetTypeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetCustomTargetTypeRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetCustomTargetTypeRequestOrBuilder.java new file mode 100644 index 000000000000..9e2cac0697b1 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetCustomTargetTypeRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface GetCustomTargetTypeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.GetCustomTargetTypeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the `CustomTargetType`. Format must be
+   * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the `CustomTargetType`. Format must be
+   * `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationRunsRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationRunsRequest.java index 3026b17008ea..00d03c96f543 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationRunsRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationRunsRequest.java @@ -73,8 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The parent, which owns this collection of automationRuns. Format
-   * must be
+   * Required. The parent `Delivery Pipeline`, which owns this collection of
+   * automationRuns. Format must be
    * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`.
    * 
* @@ -100,8 +100,8 @@ public java.lang.String getParent() { * * *
-   * Required. The parent, which owns this collection of automationRuns. Format
-   * must be
+   * Required. The parent `Delivery Pipeline`, which owns this collection of
+   * automationRuns. Format must be
    * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`.
    * 
* @@ -749,8 +749,8 @@ public Builder mergeFrom( * * *
-     * Required. The parent, which owns this collection of automationRuns. Format
-     * must be
+     * Required. The parent `Delivery Pipeline`, which owns this collection of
+     * automationRuns. Format must be
      * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`.
      * 
* @@ -775,8 +775,8 @@ public java.lang.String getParent() { * * *
-     * Required. The parent, which owns this collection of automationRuns. Format
-     * must be
+     * Required. The parent `Delivery Pipeline`, which owns this collection of
+     * automationRuns. Format must be
      * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`.
      * 
* @@ -801,8 +801,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The parent, which owns this collection of automationRuns. Format
-     * must be
+     * Required. The parent `Delivery Pipeline`, which owns this collection of
+     * automationRuns. Format must be
      * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`.
      * 
* @@ -826,8 +826,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The parent, which owns this collection of automationRuns. Format
-     * must be
+     * Required. The parent `Delivery Pipeline`, which owns this collection of
+     * automationRuns. Format must be
      * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`.
      * 
* @@ -847,8 +847,8 @@ public Builder clearParent() { * * *
-     * Required. The parent, which owns this collection of automationRuns. Format
-     * must be
+     * Required. The parent `Delivery Pipeline`, which owns this collection of
+     * automationRuns. Format must be
      * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`.
      * 
* diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationRunsRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationRunsRequestOrBuilder.java index 64a13f9bc75e..f63a3529cb82 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationRunsRequestOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationRunsRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface ListAutomationRunsRequestOrBuilder * * *
-   * Required. The parent, which owns this collection of automationRuns. Format
-   * must be
+   * Required. The parent `Delivery Pipeline`, which owns this collection of
+   * automationRuns. Format must be
    * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`.
    * 
* @@ -43,8 +43,8 @@ public interface ListAutomationRunsRequestOrBuilder * * *
-   * Required. The parent, which owns this collection of automationRuns. Format
-   * must be
+   * Required. The parent `Delivery Pipeline`, which owns this collection of
+   * automationRuns. Format must be
    * `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`.
    * 
* diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationsRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationsRequest.java index 4606212e0595..6b1743d26a9b 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationsRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationsRequest.java @@ -73,8 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The parent, which owns this collection of automations. Format
-   * must be
+   * Required. The parent `Delivery Pipeline`, which owns this collection of
+   * automations. Format must be
    * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
    * 
* @@ -100,8 +100,8 @@ public java.lang.String getParent() { * * *
-   * Required. The parent, which owns this collection of automations. Format
-   * must be
+   * Required. The parent `Delivery Pipeline`, which owns this collection of
+   * automations. Format must be
    * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
    * 
* @@ -749,8 +749,8 @@ public Builder mergeFrom( * * *
-     * Required. The parent, which owns this collection of automations. Format
-     * must be
+     * Required. The parent `Delivery Pipeline`, which owns this collection of
+     * automations. Format must be
      * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
      * 
* @@ -775,8 +775,8 @@ public java.lang.String getParent() { * * *
-     * Required. The parent, which owns this collection of automations. Format
-     * must be
+     * Required. The parent `Delivery Pipeline`, which owns this collection of
+     * automations. Format must be
      * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
      * 
* @@ -801,8 +801,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The parent, which owns this collection of automations. Format
-     * must be
+     * Required. The parent `Delivery Pipeline`, which owns this collection of
+     * automations. Format must be
      * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
      * 
* @@ -826,8 +826,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The parent, which owns this collection of automations. Format
-     * must be
+     * Required. The parent `Delivery Pipeline`, which owns this collection of
+     * automations. Format must be
      * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
      * 
* @@ -847,8 +847,8 @@ public Builder clearParent() { * * *
-     * Required. The parent, which owns this collection of automations. Format
-     * must be
+     * Required. The parent `Delivery Pipeline`, which owns this collection of
+     * automations. Format must be
      * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
      * 
* diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationsRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationsRequestOrBuilder.java index 2cccbd27415d..b5c6f34383b3 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationsRequestOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationsRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface ListAutomationsRequestOrBuilder * * *
-   * Required. The parent, which owns this collection of automations. Format
-   * must be
+   * Required. The parent `Delivery Pipeline`, which owns this collection of
+   * automations. Format must be
    * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
    * 
* @@ -43,8 +43,8 @@ public interface ListAutomationsRequestOrBuilder * * *
-   * Required. The parent, which owns this collection of automations. Format
-   * must be
+   * Required. The parent `Delivery Pipeline`, which owns this collection of
+   * automations. Format must be
    * `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`.
    * 
* diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationsResponse.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationsResponse.java index 54fad3f6b54e..cb09dc850ca9 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationsResponse.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationsResponse.java @@ -72,7 +72,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The `Automations` objects.
+   * The `Automation` objects.
    * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -85,7 +85,7 @@ public java.util.List getAutomationsList( * * *
-   * The `Automations` objects.
+   * The `Automation` objects.
    * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -99,7 +99,7 @@ public java.util.List getAutomationsList( * * *
-   * The `Automations` objects.
+   * The `Automation` objects.
    * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -112,7 +112,7 @@ public int getAutomationsCount() { * * *
-   * The `Automations` objects.
+   * The `Automation` objects.
    * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -125,7 +125,7 @@ public com.google.cloud.deploy.v1.Automation getAutomations(int index) { * * *
-   * The `Automations` objects.
+   * The `Automation` objects.
    * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -724,7 +724,7 @@ private void ensureAutomationsIsMutable() { * * *
-     * The `Automations` objects.
+     * The `Automation` objects.
      * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -740,7 +740,7 @@ public java.util.List getAutomationsList( * * *
-     * The `Automations` objects.
+     * The `Automation` objects.
      * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -756,7 +756,7 @@ public int getAutomationsCount() { * * *
-     * The `Automations` objects.
+     * The `Automation` objects.
      * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -772,7 +772,7 @@ public com.google.cloud.deploy.v1.Automation getAutomations(int index) { * * *
-     * The `Automations` objects.
+     * The `Automation` objects.
      * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -794,7 +794,7 @@ public Builder setAutomations(int index, com.google.cloud.deploy.v1.Automation v * * *
-     * The `Automations` objects.
+     * The `Automation` objects.
      * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -814,7 +814,7 @@ public Builder setAutomations( * * *
-     * The `Automations` objects.
+     * The `Automation` objects.
      * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -836,7 +836,7 @@ public Builder addAutomations(com.google.cloud.deploy.v1.Automation value) { * * *
-     * The `Automations` objects.
+     * The `Automation` objects.
      * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -858,7 +858,7 @@ public Builder addAutomations(int index, com.google.cloud.deploy.v1.Automation v * * *
-     * The `Automations` objects.
+     * The `Automation` objects.
      * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -877,7 +877,7 @@ public Builder addAutomations(com.google.cloud.deploy.v1.Automation.Builder buil * * *
-     * The `Automations` objects.
+     * The `Automation` objects.
      * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -897,7 +897,7 @@ public Builder addAutomations( * * *
-     * The `Automations` objects.
+     * The `Automation` objects.
      * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -917,7 +917,7 @@ public Builder addAllAutomations( * * *
-     * The `Automations` objects.
+     * The `Automation` objects.
      * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -936,7 +936,7 @@ public Builder clearAutomations() { * * *
-     * The `Automations` objects.
+     * The `Automation` objects.
      * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -955,7 +955,7 @@ public Builder removeAutomations(int index) { * * *
-     * The `Automations` objects.
+     * The `Automation` objects.
      * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -967,7 +967,7 @@ public com.google.cloud.deploy.v1.Automation.Builder getAutomationsBuilder(int i * * *
-     * The `Automations` objects.
+     * The `Automation` objects.
      * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -983,7 +983,7 @@ public com.google.cloud.deploy.v1.AutomationOrBuilder getAutomationsOrBuilder(in * * *
-     * The `Automations` objects.
+     * The `Automation` objects.
      * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -1000,7 +1000,7 @@ public com.google.cloud.deploy.v1.AutomationOrBuilder getAutomationsOrBuilder(in * * *
-     * The `Automations` objects.
+     * The `Automation` objects.
      * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -1013,7 +1013,7 @@ public com.google.cloud.deploy.v1.Automation.Builder addAutomationsBuilder() { * * *
-     * The `Automations` objects.
+     * The `Automation` objects.
      * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -1026,7 +1026,7 @@ public com.google.cloud.deploy.v1.Automation.Builder addAutomationsBuilder(int i * * *
-     * The `Automations` objects.
+     * The `Automation` objects.
      * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationsResponseOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationsResponseOrBuilder.java index e7ea716299d1..6b480b2c9651 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationsResponseOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListAutomationsResponseOrBuilder.java @@ -27,7 +27,7 @@ public interface ListAutomationsResponseOrBuilder * * *
-   * The `Automations` objects.
+   * The `Automation` objects.
    * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -37,7 +37,7 @@ public interface ListAutomationsResponseOrBuilder * * *
-   * The `Automations` objects.
+   * The `Automation` objects.
    * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -47,7 +47,7 @@ public interface ListAutomationsResponseOrBuilder * * *
-   * The `Automations` objects.
+   * The `Automation` objects.
    * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -57,7 +57,7 @@ public interface ListAutomationsResponseOrBuilder * * *
-   * The `Automations` objects.
+   * The `Automation` objects.
    * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; @@ -68,7 +68,7 @@ public interface ListAutomationsResponseOrBuilder * * *
-   * The `Automations` objects.
+   * The `Automation` objects.
    * 
* * repeated .google.cloud.deploy.v1.Automation automations = 1; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListCustomTargetTypesRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListCustomTargetTypesRequest.java new file mode 100644 index 000000000000..7e15576603f5 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListCustomTargetTypesRequest.java @@ -0,0 +1,1339 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +/** + * + * + *
+ * The request object for `ListCustomTargetTypes`.
+ * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.ListCustomTargetTypesRequest} + */ +public final class ListCustomTargetTypesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.ListCustomTargetTypesRequest) + ListCustomTargetTypesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCustomTargetTypesRequest.newBuilder() to construct. + private ListCustomTargetTypesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCustomTargetTypesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCustomTargetTypesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListCustomTargetTypesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListCustomTargetTypesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest.class, + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent that owns this collection of custom target types.
+   * Format must be `projects/{project_id}/locations/{location_name}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent that owns this collection of custom target types.
+   * Format must be `projects/{project_id}/locations/{location_name}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of `CustomTargetType` objects to return. The
+   * service may return fewer than this value. If unspecified, at most 50
+   * `CustomTargetType` objects will be returned. The maximum value is 1000;
+   * values above 1000 will be set to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. A page token, received from a previous `ListCustomTargetTypes`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other provided parameters match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A page token, received from a previous `ListCustomTargetTypes`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other provided parameters match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Optional. Filter custom target types to be returned. See
+   * https://google.aip.dev/160 for more details.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Filter custom target types to be returned. See
+   * https://google.aip.dev/160 for more details.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + /** + * + * + *
+   * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
+   * more details.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
+   * more details.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.ListCustomTargetTypesRequest)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest other = + (com.google.cloud.deploy.v1.ListCustomTargetTypesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request object for `ListCustomTargetTypes`.
+   * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.ListCustomTargetTypesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.ListCustomTargetTypesRequest) + com.google.cloud.deploy.v1.ListCustomTargetTypesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListCustomTargetTypesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListCustomTargetTypesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest.class, + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.ListCustomTargetTypesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListCustomTargetTypesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.ListCustomTargetTypesRequest getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.ListCustomTargetTypesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.ListCustomTargetTypesRequest build() { + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.ListCustomTargetTypesRequest buildPartial() { + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest result = + new com.google.cloud.deploy.v1.ListCustomTargetTypesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.deploy.v1.ListCustomTargetTypesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.ListCustomTargetTypesRequest) { + return mergeFrom((com.google.cloud.deploy.v1.ListCustomTargetTypesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.ListCustomTargetTypesRequest other) { + if (other == com.google.cloud.deploy.v1.ListCustomTargetTypesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent that owns this collection of custom target types.
+     * Format must be `projects/{project_id}/locations/{location_name}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent that owns this collection of custom target types.
+     * Format must be `projects/{project_id}/locations/{location_name}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent that owns this collection of custom target types.
+     * Format must be `projects/{project_id}/locations/{location_name}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent that owns this collection of custom target types.
+     * Format must be `projects/{project_id}/locations/{location_name}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent that owns this collection of custom target types.
+     * Format must be `projects/{project_id}/locations/{location_name}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of `CustomTargetType` objects to return. The
+     * service may return fewer than this value. If unspecified, at most 50
+     * `CustomTargetType` objects will be returned. The maximum value is 1000;
+     * values above 1000 will be set to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of `CustomTargetType` objects to return. The
+     * service may return fewer than this value. If unspecified, at most 50
+     * `CustomTargetType` objects will be returned. The maximum value is 1000;
+     * values above 1000 will be set to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of `CustomTargetType` objects to return. The
+     * service may return fewer than this value. If unspecified, at most 50
+     * `CustomTargetType` objects will be returned. The maximum value is 1000;
+     * values above 1000 will be set to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A page token, received from a previous `ListCustomTargetTypes`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other provided parameters match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A page token, received from a previous `ListCustomTargetTypes`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other provided parameters match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A page token, received from a previous `ListCustomTargetTypes`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other provided parameters match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A page token, received from a previous `ListCustomTargetTypes`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other provided parameters match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A page token, received from a previous `ListCustomTargetTypes`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other provided parameters match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. Filter custom target types to be returned. See
+     * https://google.aip.dev/160 for more details.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Filter custom target types to be returned. See
+     * https://google.aip.dev/160 for more details.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Filter custom target types to be returned. See
+     * https://google.aip.dev/160 for more details.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Filter custom target types to be returned. See
+     * https://google.aip.dev/160 for more details.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Filter custom target types to be returned. See
+     * https://google.aip.dev/160 for more details.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + /** + * + * + *
+     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
+     * more details.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
+     * more details.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
+     * more details.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
+     * more details.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
+     * more details.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.ListCustomTargetTypesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.ListCustomTargetTypesRequest) + private static final com.google.cloud.deploy.v1.ListCustomTargetTypesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.ListCustomTargetTypesRequest(); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomTargetTypesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.ListCustomTargetTypesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListCustomTargetTypesRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListCustomTargetTypesRequestOrBuilder.java new file mode 100644 index 000000000000..a250e2570740 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListCustomTargetTypesRequestOrBuilder.java @@ -0,0 +1,159 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface ListCustomTargetTypesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.ListCustomTargetTypesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent that owns this collection of custom target types.
+   * Format must be `projects/{project_id}/locations/{location_name}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent that owns this collection of custom target types.
+   * Format must be `projects/{project_id}/locations/{location_name}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of `CustomTargetType` objects to return. The
+   * service may return fewer than this value. If unspecified, at most 50
+   * `CustomTargetType` objects will be returned. The maximum value is 1000;
+   * values above 1000 will be set to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListCustomTargetTypes`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other provided parameters match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A page token, received from a previous `ListCustomTargetTypes`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other provided parameters match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filter custom target types to be returned. See
+   * https://google.aip.dev/160 for more details.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. Filter custom target types to be returned. See
+   * https://google.aip.dev/160 for more details.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
+   * more details.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + /** + * + * + *
+   * Optional. Field to sort by. See https://google.aip.dev/132#ordering for
+   * more details.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListCustomTargetTypesResponse.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListCustomTargetTypesResponse.java new file mode 100644 index 000000000000..f44dd7e38e10 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListCustomTargetTypesResponse.java @@ -0,0 +1,1415 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +/** + * + * + *
+ * The response object from `ListCustomTargetTypes.`
+ * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.ListCustomTargetTypesResponse} + */ +public final class ListCustomTargetTypesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.ListCustomTargetTypesResponse) + ListCustomTargetTypesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCustomTargetTypesResponse.newBuilder() to construct. + private ListCustomTargetTypesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCustomTargetTypesResponse() { + customTargetTypes_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCustomTargetTypesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListCustomTargetTypesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListCustomTargetTypesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.ListCustomTargetTypesResponse.class, + com.google.cloud.deploy.v1.ListCustomTargetTypesResponse.Builder.class); + } + + public static final int CUSTOM_TARGET_TYPES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List customTargetTypes_; + /** + * + * + *
+   * The `CustomTargetType` objects.
+   * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + @java.lang.Override + public java.util.List getCustomTargetTypesList() { + return customTargetTypes_; + } + /** + * + * + *
+   * The `CustomTargetType` objects.
+   * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + @java.lang.Override + public java.util.List + getCustomTargetTypesOrBuilderList() { + return customTargetTypes_; + } + /** + * + * + *
+   * The `CustomTargetType` objects.
+   * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + @java.lang.Override + public int getCustomTargetTypesCount() { + return customTargetTypes_.size(); + } + /** + * + * + *
+   * The `CustomTargetType` objects.
+   * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetType getCustomTargetTypes(int index) { + return customTargetTypes_.get(index); + } + /** + * + * + *
+   * The `CustomTargetType` objects.
+   * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder getCustomTargetTypesOrBuilder( + int index) { + return customTargetTypes_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < customTargetTypes_.size(); i++) { + output.writeMessage(1, customTargetTypes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < customTargetTypes_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, customTargetTypes_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.ListCustomTargetTypesResponse)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.ListCustomTargetTypesResponse other = + (com.google.cloud.deploy.v1.ListCustomTargetTypesResponse) obj; + + if (!getCustomTargetTypesList().equals(other.getCustomTargetTypesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCustomTargetTypesCount() > 0) { + hash = (37 * hash) + CUSTOM_TARGET_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargetTypesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.deploy.v1.ListCustomTargetTypesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The response object from `ListCustomTargetTypes.`
+   * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.ListCustomTargetTypesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.ListCustomTargetTypesResponse) + com.google.cloud.deploy.v1.ListCustomTargetTypesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListCustomTargetTypesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListCustomTargetTypesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.ListCustomTargetTypesResponse.class, + com.google.cloud.deploy.v1.ListCustomTargetTypesResponse.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.ListCustomTargetTypesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (customTargetTypesBuilder_ == null) { + customTargetTypes_ = java.util.Collections.emptyList(); + } else { + customTargetTypes_ = null; + customTargetTypesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListCustomTargetTypesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.ListCustomTargetTypesResponse getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.ListCustomTargetTypesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.ListCustomTargetTypesResponse build() { + com.google.cloud.deploy.v1.ListCustomTargetTypesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.ListCustomTargetTypesResponse buildPartial() { + com.google.cloud.deploy.v1.ListCustomTargetTypesResponse result = + new com.google.cloud.deploy.v1.ListCustomTargetTypesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.deploy.v1.ListCustomTargetTypesResponse result) { + if (customTargetTypesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + customTargetTypes_ = java.util.Collections.unmodifiableList(customTargetTypes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.customTargetTypes_ = customTargetTypes_; + } else { + result.customTargetTypes_ = customTargetTypesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.deploy.v1.ListCustomTargetTypesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.ListCustomTargetTypesResponse) { + return mergeFrom((com.google.cloud.deploy.v1.ListCustomTargetTypesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.ListCustomTargetTypesResponse other) { + if (other == com.google.cloud.deploy.v1.ListCustomTargetTypesResponse.getDefaultInstance()) + return this; + if (customTargetTypesBuilder_ == null) { + if (!other.customTargetTypes_.isEmpty()) { + if (customTargetTypes_.isEmpty()) { + customTargetTypes_ = other.customTargetTypes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCustomTargetTypesIsMutable(); + customTargetTypes_.addAll(other.customTargetTypes_); + } + onChanged(); + } + } else { + if (!other.customTargetTypes_.isEmpty()) { + if (customTargetTypesBuilder_.isEmpty()) { + customTargetTypesBuilder_.dispose(); + customTargetTypesBuilder_ = null; + customTargetTypes_ = other.customTargetTypes_; + bitField0_ = (bitField0_ & ~0x00000001); + customTargetTypesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomTargetTypesFieldBuilder() + : null; + } else { + customTargetTypesBuilder_.addAllMessages(other.customTargetTypes_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.deploy.v1.CustomTargetType m = + input.readMessage( + com.google.cloud.deploy.v1.CustomTargetType.parser(), extensionRegistry); + if (customTargetTypesBuilder_ == null) { + ensureCustomTargetTypesIsMutable(); + customTargetTypes_.add(m); + } else { + customTargetTypesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List customTargetTypes_ = + java.util.Collections.emptyList(); + + private void ensureCustomTargetTypesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + customTargetTypes_ = + new java.util.ArrayList( + customTargetTypes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTargetType, + com.google.cloud.deploy.v1.CustomTargetType.Builder, + com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder> + customTargetTypesBuilder_; + + /** + * + * + *
+     * The `CustomTargetType` objects.
+     * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + public java.util.List getCustomTargetTypesList() { + if (customTargetTypesBuilder_ == null) { + return java.util.Collections.unmodifiableList(customTargetTypes_); + } else { + return customTargetTypesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The `CustomTargetType` objects.
+     * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + public int getCustomTargetTypesCount() { + if (customTargetTypesBuilder_ == null) { + return customTargetTypes_.size(); + } else { + return customTargetTypesBuilder_.getCount(); + } + } + /** + * + * + *
+     * The `CustomTargetType` objects.
+     * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + public com.google.cloud.deploy.v1.CustomTargetType getCustomTargetTypes(int index) { + if (customTargetTypesBuilder_ == null) { + return customTargetTypes_.get(index); + } else { + return customTargetTypesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The `CustomTargetType` objects.
+     * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + public Builder setCustomTargetTypes( + int index, com.google.cloud.deploy.v1.CustomTargetType value) { + if (customTargetTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetTypesIsMutable(); + customTargetTypes_.set(index, value); + onChanged(); + } else { + customTargetTypesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The `CustomTargetType` objects.
+     * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + public Builder setCustomTargetTypes( + int index, com.google.cloud.deploy.v1.CustomTargetType.Builder builderForValue) { + if (customTargetTypesBuilder_ == null) { + ensureCustomTargetTypesIsMutable(); + customTargetTypes_.set(index, builderForValue.build()); + onChanged(); + } else { + customTargetTypesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The `CustomTargetType` objects.
+     * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + public Builder addCustomTargetTypes(com.google.cloud.deploy.v1.CustomTargetType value) { + if (customTargetTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetTypesIsMutable(); + customTargetTypes_.add(value); + onChanged(); + } else { + customTargetTypesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The `CustomTargetType` objects.
+     * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + public Builder addCustomTargetTypes( + int index, com.google.cloud.deploy.v1.CustomTargetType value) { + if (customTargetTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetTypesIsMutable(); + customTargetTypes_.add(index, value); + onChanged(); + } else { + customTargetTypesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The `CustomTargetType` objects.
+     * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + public Builder addCustomTargetTypes( + com.google.cloud.deploy.v1.CustomTargetType.Builder builderForValue) { + if (customTargetTypesBuilder_ == null) { + ensureCustomTargetTypesIsMutable(); + customTargetTypes_.add(builderForValue.build()); + onChanged(); + } else { + customTargetTypesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The `CustomTargetType` objects.
+     * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + public Builder addCustomTargetTypes( + int index, com.google.cloud.deploy.v1.CustomTargetType.Builder builderForValue) { + if (customTargetTypesBuilder_ == null) { + ensureCustomTargetTypesIsMutable(); + customTargetTypes_.add(index, builderForValue.build()); + onChanged(); + } else { + customTargetTypesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The `CustomTargetType` objects.
+     * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + public Builder addAllCustomTargetTypes( + java.lang.Iterable values) { + if (customTargetTypesBuilder_ == null) { + ensureCustomTargetTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customTargetTypes_); + onChanged(); + } else { + customTargetTypesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The `CustomTargetType` objects.
+     * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + public Builder clearCustomTargetTypes() { + if (customTargetTypesBuilder_ == null) { + customTargetTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + customTargetTypesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The `CustomTargetType` objects.
+     * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + public Builder removeCustomTargetTypes(int index) { + if (customTargetTypesBuilder_ == null) { + ensureCustomTargetTypesIsMutable(); + customTargetTypes_.remove(index); + onChanged(); + } else { + customTargetTypesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The `CustomTargetType` objects.
+     * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + public com.google.cloud.deploy.v1.CustomTargetType.Builder getCustomTargetTypesBuilder( + int index) { + return getCustomTargetTypesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The `CustomTargetType` objects.
+     * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + public com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder getCustomTargetTypesOrBuilder( + int index) { + if (customTargetTypesBuilder_ == null) { + return customTargetTypes_.get(index); + } else { + return customTargetTypesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The `CustomTargetType` objects.
+     * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + public java.util.List + getCustomTargetTypesOrBuilderList() { + if (customTargetTypesBuilder_ != null) { + return customTargetTypesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customTargetTypes_); + } + } + /** + * + * + *
+     * The `CustomTargetType` objects.
+     * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + public com.google.cloud.deploy.v1.CustomTargetType.Builder addCustomTargetTypesBuilder() { + return getCustomTargetTypesFieldBuilder() + .addBuilder(com.google.cloud.deploy.v1.CustomTargetType.getDefaultInstance()); + } + /** + * + * + *
+     * The `CustomTargetType` objects.
+     * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + public com.google.cloud.deploy.v1.CustomTargetType.Builder addCustomTargetTypesBuilder( + int index) { + return getCustomTargetTypesFieldBuilder() + .addBuilder(index, com.google.cloud.deploy.v1.CustomTargetType.getDefaultInstance()); + } + /** + * + * + *
+     * The `CustomTargetType` objects.
+     * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + public java.util.List + getCustomTargetTypesBuilderList() { + return getCustomTargetTypesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTargetType, + com.google.cloud.deploy.v1.CustomTargetType.Builder, + com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder> + getCustomTargetTypesFieldBuilder() { + if (customTargetTypesBuilder_ == null) { + customTargetTypesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTargetType, + com.google.cloud.deploy.v1.CustomTargetType.Builder, + com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder>( + customTargetTypes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + customTargetTypes_ = null; + } + return customTargetTypesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.ListCustomTargetTypesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.ListCustomTargetTypesResponse) + private static final com.google.cloud.deploy.v1.ListCustomTargetTypesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.ListCustomTargetTypesResponse(); + } + + public static com.google.cloud.deploy.v1.ListCustomTargetTypesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomTargetTypesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.ListCustomTargetTypesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListCustomTargetTypesResponseOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListCustomTargetTypesResponseOrBuilder.java new file mode 100644 index 000000000000..7760b04f4259 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListCustomTargetTypesResponseOrBuilder.java @@ -0,0 +1,155 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface ListCustomTargetTypesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.ListCustomTargetTypesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The `CustomTargetType` objects.
+   * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + java.util.List getCustomTargetTypesList(); + /** + * + * + *
+   * The `CustomTargetType` objects.
+   * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + com.google.cloud.deploy.v1.CustomTargetType getCustomTargetTypes(int index); + /** + * + * + *
+   * The `CustomTargetType` objects.
+   * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + int getCustomTargetTypesCount(); + /** + * + * + *
+   * The `CustomTargetType` objects.
+   * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + java.util.List + getCustomTargetTypesOrBuilderList(); + /** + * + * + *
+   * The `CustomTargetType` objects.
+   * 
+ * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_types = 1; + */ + com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder getCustomTargetTypesOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + /** + * + * + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Metadata.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Metadata.java index 292a2753fa71..a4cacce5b009 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Metadata.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Metadata.java @@ -178,6 +178,62 @@ public com.google.cloud.deploy.v1.AutomationRolloutMetadataOrBuilder getAutomati : automation_; } + public static final int CUSTOM_FIELD_NUMBER = 3; + private com.google.cloud.deploy.v1.CustomMetadata custom_; + /** + * + * + *
+   * Output only. Custom metadata provided by user defined `Rollout` operations.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the custom field is set. + */ + @java.lang.Override + public boolean hasCustom() { + return custom_ != null; + } + /** + * + * + *
+   * Output only. Custom metadata provided by user defined `Rollout` operations.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The custom. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomMetadata getCustom() { + return custom_ == null + ? com.google.cloud.deploy.v1.CustomMetadata.getDefaultInstance() + : custom_; + } + /** + * + * + *
+   * Output only. Custom metadata provided by user defined `Rollout` operations.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomMetadataOrBuilder getCustomOrBuilder() { + return custom_ == null + ? com.google.cloud.deploy.v1.CustomMetadata.getDefaultInstance() + : custom_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -198,6 +254,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (automation_ != null) { output.writeMessage(2, getAutomation()); } + if (custom_ != null) { + output.writeMessage(3, getCustom()); + } getUnknownFields().writeTo(output); } @@ -213,6 +272,9 @@ public int getSerializedSize() { if (automation_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAutomation()); } + if (custom_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCustom()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -236,6 +298,10 @@ public boolean equals(final java.lang.Object obj) { if (hasAutomation()) { if (!getAutomation().equals(other.getAutomation())) return false; } + if (hasCustom() != other.hasCustom()) return false; + if (hasCustom()) { + if (!getCustom().equals(other.getCustom())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -255,6 +321,10 @@ public int hashCode() { hash = (37 * hash) + AUTOMATION_FIELD_NUMBER; hash = (53 * hash) + getAutomation().hashCode(); } + if (hasCustom()) { + hash = (37 * hash) + CUSTOM_FIELD_NUMBER; + hash = (53 * hash) + getCustom().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -403,6 +473,11 @@ public Builder clear() { automationBuilder_.dispose(); automationBuilder_ = null; } + custom_ = null; + if (customBuilder_ != null) { + customBuilder_.dispose(); + customBuilder_ = null; + } return this; } @@ -444,6 +519,9 @@ private void buildPartial0(com.google.cloud.deploy.v1.Metadata result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.automation_ = automationBuilder_ == null ? automation_ : automationBuilder_.build(); } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.custom_ = customBuilder_ == null ? custom_ : customBuilder_.build(); + } } @java.lang.Override @@ -497,6 +575,9 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.Metadata other) { if (other.hasAutomation()) { mergeAutomation(other.getAutomation()); } + if (other.hasCustom()) { + mergeCustom(other.getCustom()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -535,6 +616,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + input.readMessage(getCustomFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -977,6 +1064,207 @@ public com.google.cloud.deploy.v1.AutomationRolloutMetadataOrBuilder getAutomati return automationBuilder_; } + private com.google.cloud.deploy.v1.CustomMetadata custom_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomMetadata, + com.google.cloud.deploy.v1.CustomMetadata.Builder, + com.google.cloud.deploy.v1.CustomMetadataOrBuilder> + customBuilder_; + /** + * + * + *
+     * Output only. Custom metadata provided by user defined `Rollout` operations.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the custom field is set. + */ + public boolean hasCustom() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined `Rollout` operations.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The custom. + */ + public com.google.cloud.deploy.v1.CustomMetadata getCustom() { + if (customBuilder_ == null) { + return custom_ == null + ? com.google.cloud.deploy.v1.CustomMetadata.getDefaultInstance() + : custom_; + } else { + return customBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined `Rollout` operations.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCustom(com.google.cloud.deploy.v1.CustomMetadata value) { + if (customBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + custom_ = value; + } else { + customBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined `Rollout` operations.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCustom(com.google.cloud.deploy.v1.CustomMetadata.Builder builderForValue) { + if (customBuilder_ == null) { + custom_ = builderForValue.build(); + } else { + customBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined `Rollout` operations.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCustom(com.google.cloud.deploy.v1.CustomMetadata value) { + if (customBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && custom_ != null + && custom_ != com.google.cloud.deploy.v1.CustomMetadata.getDefaultInstance()) { + getCustomBuilder().mergeFrom(value); + } else { + custom_ = value; + } + } else { + customBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined `Rollout` operations.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCustom() { + bitField0_ = (bitField0_ & ~0x00000004); + custom_ = null; + if (customBuilder_ != null) { + customBuilder_.dispose(); + customBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined `Rollout` operations.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.CustomMetadata.Builder getCustomBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCustomFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined `Rollout` operations.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.CustomMetadataOrBuilder getCustomOrBuilder() { + if (customBuilder_ != null) { + return customBuilder_.getMessageOrBuilder(); + } else { + return custom_ == null + ? com.google.cloud.deploy.v1.CustomMetadata.getDefaultInstance() + : custom_; + } + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined `Rollout` operations.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomMetadata, + com.google.cloud.deploy.v1.CustomMetadata.Builder, + com.google.cloud.deploy.v1.CustomMetadataOrBuilder> + getCustomFieldBuilder() { + if (customBuilder_ == null) { + customBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomMetadata, + com.google.cloud.deploy.v1.CustomMetadata.Builder, + com.google.cloud.deploy.v1.CustomMetadataOrBuilder>( + getCustom(), getParentForChildren(), isClean()); + custom_ = null; + } + return customBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/MetadataOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/MetadataOrBuilder.java index 18ae06fdfc32..3e578524f8de 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/MetadataOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/MetadataOrBuilder.java @@ -110,4 +110,45 @@ public interface MetadataOrBuilder *
*/ com.google.cloud.deploy.v1.AutomationRolloutMetadataOrBuilder getAutomationOrBuilder(); + + /** + * + * + *
+   * Output only. Custom metadata provided by user defined `Rollout` operations.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the custom field is set. + */ + boolean hasCustom(); + /** + * + * + *
+   * Output only. Custom metadata provided by user defined `Rollout` operations.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The custom. + */ + com.google.cloud.deploy.v1.CustomMetadata getCustom(); + /** + * + * + *
+   * Output only. Custom metadata provided by user defined `Rollout` operations.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.deploy.v1.CustomMetadataOrBuilder getCustomOrBuilder(); } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PromoteReleaseRule.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PromoteReleaseRule.java index 6d708663a4de..20a0c1220c3c 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PromoteReleaseRule.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PromoteReleaseRule.java @@ -178,6 +178,7 @@ public com.google.protobuf.DurationOrBuilder getWaitOrBuilder() { * Optional. The ID of the stage in the pipeline to which this `Release` is * deploying. If unspecified, default it to the next stage in the promotion * flow. The value of this field could be one of the following: + * * * The last segment of a target name. It only needs the ID to determine * if the target is one of the stages in the promotion sequence defined * in the pipeline. @@ -207,6 +208,7 @@ public java.lang.String getDestinationTargetId() { * Optional. The ID of the stage in the pipeline to which this `Release` is * deploying. If unspecified, default it to the next stage in the promotion * flow. The value of this field could be one of the following: + * * * The last segment of a target name. It only needs the ID to determine * if the target is one of the stages in the promotion sequence defined * in the pipeline. @@ -1098,6 +1100,7 @@ public com.google.protobuf.DurationOrBuilder getWaitOrBuilder() { * Optional. The ID of the stage in the pipeline to which this `Release` is * deploying. If unspecified, default it to the next stage in the promotion * flow. The value of this field could be one of the following: + * * * The last segment of a target name. It only needs the ID to determine * if the target is one of the stages in the promotion sequence defined * in the pipeline. @@ -1126,6 +1129,7 @@ public java.lang.String getDestinationTargetId() { * Optional. The ID of the stage in the pipeline to which this `Release` is * deploying. If unspecified, default it to the next stage in the promotion * flow. The value of this field could be one of the following: + * * * The last segment of a target name. It only needs the ID to determine * if the target is one of the stages in the promotion sequence defined * in the pipeline. @@ -1154,6 +1158,7 @@ public com.google.protobuf.ByteString getDestinationTargetIdBytes() { * Optional. The ID of the stage in the pipeline to which this `Release` is * deploying. If unspecified, default it to the next stage in the promotion * flow. The value of this field could be one of the following: + * * * The last segment of a target name. It only needs the ID to determine * if the target is one of the stages in the promotion sequence defined * in the pipeline. @@ -1181,6 +1186,7 @@ public Builder setDestinationTargetId(java.lang.String value) { * Optional. The ID of the stage in the pipeline to which this `Release` is * deploying. If unspecified, default it to the next stage in the promotion * flow. The value of this field could be one of the following: + * * * The last segment of a target name. It only needs the ID to determine * if the target is one of the stages in the promotion sequence defined * in the pipeline. @@ -1204,6 +1210,7 @@ public Builder clearDestinationTargetId() { * Optional. The ID of the stage in the pipeline to which this `Release` is * deploying. If unspecified, default it to the next stage in the promotion * flow. The value of this field could be one of the following: + * * * The last segment of a target name. It only needs the ID to determine * if the target is one of the stages in the promotion sequence defined * in the pipeline. diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PromoteReleaseRuleOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PromoteReleaseRuleOrBuilder.java index 6f611a399a03..3a668cf78226 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PromoteReleaseRuleOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PromoteReleaseRuleOrBuilder.java @@ -95,6 +95,7 @@ public interface PromoteReleaseRuleOrBuilder * Optional. The ID of the stage in the pipeline to which this `Release` is * deploying. If unspecified, default it to the next stage in the promotion * flow. The value of this field could be one of the following: + * * * The last segment of a target name. It only needs the ID to determine * if the target is one of the stages in the promotion sequence defined * in the pipeline. @@ -113,6 +114,7 @@ public interface PromoteReleaseRuleOrBuilder * Optional. The ID of the stage in the pipeline to which this `Release` is * deploying. If unspecified, default it to the next stage in the promotion * flow. The value of this field could be one of the following: + * * * The last segment of a target name. It only needs the ID to determine * if the target is one of the stages in the promotion sequence defined * in the pipeline. diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Release.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Release.java index 7aefe8ccdbe4..d3b2eb01a7be 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Release.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Release.java @@ -48,6 +48,7 @@ private Release() { skaffoldConfigPath_ = ""; buildArtifacts_ = java.util.Collections.emptyList(); targetSnapshots_ = java.util.Collections.emptyList(); + customTargetTypeSnapshots_ = java.util.Collections.emptyList(); renderState_ = 0; etag_ = ""; skaffoldVersion_ = ""; @@ -728,7 +729,7 @@ public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum { * *
        * The render operation did not complete successfully because the
-       * verification stanza required for verify was not found on the skaffold
+       * verification stanza required for verify was not found on the Skaffold
        * configuration.
        * 
* @@ -741,12 +742,33 @@ public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum { *
        * The render operation did not complete successfully because the custom
        * action required for predeploy or postdeploy was not found in the
-       * skaffold configuration. See failure_message for additional details.
+       * Skaffold configuration. See failure_message for additional details.
        * 
* * CUSTOM_ACTION_NOT_FOUND = 5; */ CUSTOM_ACTION_NOT_FOUND(5), + /** + * + * + *
+       * Release failed during rendering because the release configuration is
+       * not supported with the specified deployment strategy.
+       * 
+ * + * DEPLOYMENT_STRATEGY_NOT_SUPPORTED = 6; + */ + DEPLOYMENT_STRATEGY_NOT_SUPPORTED(6), + /** + * + * + *
+       * The render operation had a feature configured that is not supported.
+       * 
+ * + * RENDER_FEATURE_NOT_SUPPORTED = 7; + */ + RENDER_FEATURE_NOT_SUPPORTED(7), UNRECOGNIZED(-1), ; @@ -799,7 +821,7 @@ public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum { * *
        * The render operation did not complete successfully because the
-       * verification stanza required for verify was not found on the skaffold
+       * verification stanza required for verify was not found on the Skaffold
        * configuration.
        * 
* @@ -812,12 +834,33 @@ public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum { *
        * The render operation did not complete successfully because the custom
        * action required for predeploy or postdeploy was not found in the
-       * skaffold configuration. See failure_message for additional details.
+       * Skaffold configuration. See failure_message for additional details.
        * 
* * CUSTOM_ACTION_NOT_FOUND = 5; */ public static final int CUSTOM_ACTION_NOT_FOUND_VALUE = 5; + /** + * + * + *
+       * Release failed during rendering because the release configuration is
+       * not supported with the specified deployment strategy.
+       * 
+ * + * DEPLOYMENT_STRATEGY_NOT_SUPPORTED = 6; + */ + public static final int DEPLOYMENT_STRATEGY_NOT_SUPPORTED_VALUE = 6; + /** + * + * + *
+       * The render operation had a feature configured that is not supported.
+       * 
+ * + * RENDER_FEATURE_NOT_SUPPORTED = 7; + */ + public static final int RENDER_FEATURE_NOT_SUPPORTED_VALUE = 7; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -855,6 +898,10 @@ public static FailureCause forNumber(int value) { return VERIFICATION_CONFIG_NOT_FOUND; case 5: return CUSTOM_ACTION_NOT_FOUND; + case 6: + return DEPLOYMENT_STRATEGY_NOT_SUPPORTED; + case 7: + return RENDER_FEATURE_NOT_SUPPORTED; default: return null; } @@ -2901,7 +2948,7 @@ public interface SkaffoldSupportedConditionOrBuilder * * *
-     * True if the version of skaffold used by this release is supported.
+     * True if the version of Skaffold used by this release is supported.
      * 
* * bool status = 1; @@ -2914,7 +2961,7 @@ public interface SkaffoldSupportedConditionOrBuilder * * *
-     * The skaffold support state for this release's version of skaffold.
+     * The Skaffold support state for this release's version of Skaffold.
      * 
* * .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2; @@ -2926,7 +2973,7 @@ public interface SkaffoldSupportedConditionOrBuilder * * *
-     * The skaffold support state for this release's version of skaffold.
+     * The Skaffold support state for this release's version of Skaffold.
      * 
* * .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2; @@ -2939,7 +2986,7 @@ public interface SkaffoldSupportedConditionOrBuilder * * *
-     * The time at which this release's version of skaffold will enter
+     * The time at which this release's version of Skaffold will enter
      * maintenance mode.
      * 
* @@ -2952,7 +2999,7 @@ public interface SkaffoldSupportedConditionOrBuilder * * *
-     * The time at which this release's version of skaffold will enter
+     * The time at which this release's version of Skaffold will enter
      * maintenance mode.
      * 
* @@ -2965,7 +3012,7 @@ public interface SkaffoldSupportedConditionOrBuilder * * *
-     * The time at which this release's version of skaffold will enter
+     * The time at which this release's version of Skaffold will enter
      * maintenance mode.
      * 
* @@ -2977,7 +3024,7 @@ public interface SkaffoldSupportedConditionOrBuilder * * *
-     * The time at which this release's version of skaffold will no longer be
+     * The time at which this release's version of Skaffold will no longer be
      * supported.
      * 
* @@ -2990,7 +3037,7 @@ public interface SkaffoldSupportedConditionOrBuilder * * *
-     * The time at which this release's version of skaffold will no longer be
+     * The time at which this release's version of Skaffold will no longer be
      * supported.
      * 
* @@ -3003,7 +3050,7 @@ public interface SkaffoldSupportedConditionOrBuilder * * *
-     * The time at which this release's version of skaffold will no longer be
+     * The time at which this release's version of Skaffold will no longer be
      * supported.
      * 
* @@ -3016,7 +3063,7 @@ public interface SkaffoldSupportedConditionOrBuilder * *
    * SkaffoldSupportedCondition contains information about when support for the
-   * release's version of skaffold ends.
+   * release's version of Skaffold ends.
    * 
* * Protobuf type {@code google.cloud.deploy.v1.Release.SkaffoldSupportedCondition} @@ -3063,7 +3110,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * True if the version of skaffold used by this release is supported.
+     * True if the version of Skaffold used by this release is supported.
      * 
* * bool status = 1; @@ -3081,7 +3128,7 @@ public boolean getStatus() { * * *
-     * The skaffold support state for this release's version of skaffold.
+     * The Skaffold support state for this release's version of Skaffold.
      * 
* * .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2; @@ -3096,7 +3143,7 @@ public int getSkaffoldSupportStateValue() { * * *
-     * The skaffold support state for this release's version of skaffold.
+     * The Skaffold support state for this release's version of Skaffold.
      * 
* * .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2; @@ -3116,7 +3163,7 @@ public com.google.cloud.deploy.v1.SkaffoldSupportState getSkaffoldSupportState() * * *
-     * The time at which this release's version of skaffold will enter
+     * The time at which this release's version of Skaffold will enter
      * maintenance mode.
      * 
* @@ -3132,7 +3179,7 @@ public boolean hasMaintenanceModeTime() { * * *
-     * The time at which this release's version of skaffold will enter
+     * The time at which this release's version of Skaffold will enter
      * maintenance mode.
      * 
* @@ -3150,7 +3197,7 @@ public com.google.protobuf.Timestamp getMaintenanceModeTime() { * * *
-     * The time at which this release's version of skaffold will enter
+     * The time at which this release's version of Skaffold will enter
      * maintenance mode.
      * 
* @@ -3169,7 +3216,7 @@ public com.google.protobuf.TimestampOrBuilder getMaintenanceModeTimeOrBuilder() * * *
-     * The time at which this release's version of skaffold will no longer be
+     * The time at which this release's version of Skaffold will no longer be
      * supported.
      * 
* @@ -3185,7 +3232,7 @@ public boolean hasSupportExpirationTime() { * * *
-     * The time at which this release's version of skaffold will no longer be
+     * The time at which this release's version of Skaffold will no longer be
      * supported.
      * 
* @@ -3203,7 +3250,7 @@ public com.google.protobuf.Timestamp getSupportExpirationTime() { * * *
-     * The time at which this release's version of skaffold will no longer be
+     * The time at which this release's version of Skaffold will no longer be
      * supported.
      * 
* @@ -3425,7 +3472,7 @@ protected Builder newBuilderForType( * *
      * SkaffoldSupportedCondition contains information about when support for the
-     * release's version of skaffold ends.
+     * release's version of Skaffold ends.
      * 
* * Protobuf type {@code google.cloud.deploy.v1.Release.SkaffoldSupportedCondition} @@ -3669,7 +3716,7 @@ public Builder mergeFrom( * * *
-       * True if the version of skaffold used by this release is supported.
+       * True if the version of Skaffold used by this release is supported.
        * 
* * bool status = 1; @@ -3684,7 +3731,7 @@ public boolean getStatus() { * * *
-       * True if the version of skaffold used by this release is supported.
+       * True if the version of Skaffold used by this release is supported.
        * 
* * bool status = 1; @@ -3703,7 +3750,7 @@ public Builder setStatus(boolean value) { * * *
-       * True if the version of skaffold used by this release is supported.
+       * True if the version of Skaffold used by this release is supported.
        * 
* * bool status = 1; @@ -3722,7 +3769,7 @@ public Builder clearStatus() { * * *
-       * The skaffold support state for this release's version of skaffold.
+       * The Skaffold support state for this release's version of Skaffold.
        * 
* * .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2; @@ -3737,7 +3784,7 @@ public int getSkaffoldSupportStateValue() { * * *
-       * The skaffold support state for this release's version of skaffold.
+       * The Skaffold support state for this release's version of Skaffold.
        * 
* * .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2; @@ -3755,7 +3802,7 @@ public Builder setSkaffoldSupportStateValue(int value) { * * *
-       * The skaffold support state for this release's version of skaffold.
+       * The Skaffold support state for this release's version of Skaffold.
        * 
* * .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2; @@ -3774,7 +3821,7 @@ public com.google.cloud.deploy.v1.SkaffoldSupportState getSkaffoldSupportState() * * *
-       * The skaffold support state for this release's version of skaffold.
+       * The Skaffold support state for this release's version of Skaffold.
        * 
* * .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2; @@ -3796,7 +3843,7 @@ public Builder setSkaffoldSupportState( * * *
-       * The skaffold support state for this release's version of skaffold.
+       * The Skaffold support state for this release's version of Skaffold.
        * 
* * .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2; @@ -3820,7 +3867,7 @@ public Builder clearSkaffoldSupportState() { * * *
-       * The time at which this release's version of skaffold will enter
+       * The time at which this release's version of Skaffold will enter
        * maintenance mode.
        * 
* @@ -3835,7 +3882,7 @@ public boolean hasMaintenanceModeTime() { * * *
-       * The time at which this release's version of skaffold will enter
+       * The time at which this release's version of Skaffold will enter
        * maintenance mode.
        * 
* @@ -3856,7 +3903,7 @@ public com.google.protobuf.Timestamp getMaintenanceModeTime() { * * *
-       * The time at which this release's version of skaffold will enter
+       * The time at which this release's version of Skaffold will enter
        * maintenance mode.
        * 
* @@ -3879,7 +3926,7 @@ public Builder setMaintenanceModeTime(com.google.protobuf.Timestamp value) { * * *
-       * The time at which this release's version of skaffold will enter
+       * The time at which this release's version of Skaffold will enter
        * maintenance mode.
        * 
* @@ -3899,7 +3946,7 @@ public Builder setMaintenanceModeTime(com.google.protobuf.Timestamp.Builder buil * * *
-       * The time at which this release's version of skaffold will enter
+       * The time at which this release's version of Skaffold will enter
        * maintenance mode.
        * 
* @@ -3925,7 +3972,7 @@ public Builder mergeMaintenanceModeTime(com.google.protobuf.Timestamp value) { * * *
-       * The time at which this release's version of skaffold will enter
+       * The time at which this release's version of Skaffold will enter
        * maintenance mode.
        * 
* @@ -3945,7 +3992,7 @@ public Builder clearMaintenanceModeTime() { * * *
-       * The time at which this release's version of skaffold will enter
+       * The time at which this release's version of Skaffold will enter
        * maintenance mode.
        * 
* @@ -3960,7 +4007,7 @@ public com.google.protobuf.Timestamp.Builder getMaintenanceModeTimeBuilder() { * * *
-       * The time at which this release's version of skaffold will enter
+       * The time at which this release's version of Skaffold will enter
        * maintenance mode.
        * 
* @@ -3979,7 +4026,7 @@ public com.google.protobuf.TimestampOrBuilder getMaintenanceModeTimeOrBuilder() * * *
-       * The time at which this release's version of skaffold will enter
+       * The time at which this release's version of Skaffold will enter
        * maintenance mode.
        * 
* @@ -4012,7 +4059,7 @@ public com.google.protobuf.TimestampOrBuilder getMaintenanceModeTimeOrBuilder() * * *
-       * The time at which this release's version of skaffold will no longer be
+       * The time at which this release's version of Skaffold will no longer be
        * supported.
        * 
* @@ -4027,7 +4074,7 @@ public boolean hasSupportExpirationTime() { * * *
-       * The time at which this release's version of skaffold will no longer be
+       * The time at which this release's version of Skaffold will no longer be
        * supported.
        * 
* @@ -4048,7 +4095,7 @@ public com.google.protobuf.Timestamp getSupportExpirationTime() { * * *
-       * The time at which this release's version of skaffold will no longer be
+       * The time at which this release's version of Skaffold will no longer be
        * supported.
        * 
* @@ -4071,7 +4118,7 @@ public Builder setSupportExpirationTime(com.google.protobuf.Timestamp value) { * * *
-       * The time at which this release's version of skaffold will no longer be
+       * The time at which this release's version of Skaffold will no longer be
        * supported.
        * 
* @@ -4092,7 +4139,7 @@ public Builder setSupportExpirationTime( * * *
-       * The time at which this release's version of skaffold will no longer be
+       * The time at which this release's version of Skaffold will no longer be
        * supported.
        * 
* @@ -4118,7 +4165,7 @@ public Builder mergeSupportExpirationTime(com.google.protobuf.Timestamp value) { * * *
-       * The time at which this release's version of skaffold will no longer be
+       * The time at which this release's version of Skaffold will no longer be
        * supported.
        * 
* @@ -4138,7 +4185,7 @@ public Builder clearSupportExpirationTime() { * * *
-       * The time at which this release's version of skaffold will no longer be
+       * The time at which this release's version of Skaffold will no longer be
        * supported.
        * 
* @@ -4153,7 +4200,7 @@ public com.google.protobuf.Timestamp.Builder getSupportExpirationTimeBuilder() { * * *
-       * The time at which this release's version of skaffold will no longer be
+       * The time at which this release's version of Skaffold will no longer be
        * supported.
        * 
* @@ -4172,7 +4219,7 @@ public com.google.protobuf.TimestampOrBuilder getSupportExpirationTimeOrBuilder( * * *
-       * The time at which this release's version of skaffold will no longer be
+       * The time at which this release's version of Skaffold will no longer be
        * supported.
        * 
* @@ -4310,7 +4357,7 @@ public interface ReleaseConditionOrBuilder * * *
-     * Details around the support state of the release's skaffold
+     * Details around the support state of the release's Skaffold
      * version.
      * 
* @@ -4325,7 +4372,7 @@ public interface ReleaseConditionOrBuilder * * *
-     * Details around the support state of the release's skaffold
+     * Details around the support state of the release's Skaffold
      * version.
      * 
* @@ -4340,7 +4387,7 @@ public interface ReleaseConditionOrBuilder * * *
-     * Details around the support state of the release's skaffold
+     * Details around the support state of the release's Skaffold
      * version.
      * 
* @@ -4454,7 +4501,7 @@ public com.google.cloud.deploy.v1.Release.ReleaseReadyCondition getReleaseReadyC * * *
-     * Details around the support state of the release's skaffold
+     * Details around the support state of the release's Skaffold
      * version.
      * 
* @@ -4472,7 +4519,7 @@ public boolean hasSkaffoldSupportedCondition() { * * *
-     * Details around the support state of the release's skaffold
+     * Details around the support state of the release's Skaffold
      * version.
      * 
* @@ -4493,7 +4540,7 @@ public boolean hasSkaffoldSupportedCondition() { * * *
-     * Details around the support state of the release's skaffold
+     * Details around the support state of the release's Skaffold
      * version.
      * 
* @@ -5116,7 +5163,7 @@ public Builder clearReleaseReadyCondition() { * * *
-       * Details around the support state of the release's skaffold
+       * Details around the support state of the release's Skaffold
        * version.
        * 
* @@ -5133,7 +5180,7 @@ public boolean hasSkaffoldSupportedCondition() { * * *
-       * Details around the support state of the release's skaffold
+       * Details around the support state of the release's Skaffold
        * version.
        * 
* @@ -5157,7 +5204,7 @@ public boolean hasSkaffoldSupportedCondition() { * * *
-       * Details around the support state of the release's skaffold
+       * Details around the support state of the release's Skaffold
        * version.
        * 
* @@ -5183,7 +5230,7 @@ public Builder setSkaffoldSupportedCondition( * * *
-       * Details around the support state of the release's skaffold
+       * Details around the support state of the release's Skaffold
        * version.
        * 
* @@ -5206,7 +5253,7 @@ public Builder setSkaffoldSupportedCondition( * * *
-       * Details around the support state of the release's skaffold
+       * Details around the support state of the release's Skaffold
        * version.
        * 
* @@ -5237,7 +5284,7 @@ public Builder mergeSkaffoldSupportedCondition( * * *
-       * Details around the support state of the release's skaffold
+       * Details around the support state of the release's Skaffold
        * version.
        * 
* @@ -5259,7 +5306,7 @@ public Builder clearSkaffoldSupportedCondition() { * * *
-       * Details around the support state of the release's skaffold
+       * Details around the support state of the release's Skaffold
        * version.
        * 
* @@ -5277,7 +5324,7 @@ public Builder clearSkaffoldSupportedCondition() { * * *
-       * Details around the support state of the release's skaffold
+       * Details around the support state of the release's Skaffold
        * version.
        * 
* @@ -5299,7 +5346,7 @@ public Builder clearSkaffoldSupportedCondition() { * * *
-       * Details around the support state of the release's skaffold
+       * Details around the support state of the release's Skaffold
        * version.
        * 
* @@ -6289,6 +6336,94 @@ public com.google.cloud.deploy.v1.TargetOrBuilder getTargetSnapshotsOrBuilder(in return targetSnapshots_.get(index); } + public static final int CUSTOM_TARGET_TYPE_SNAPSHOTS_FIELD_NUMBER = 27; + + @SuppressWarnings("serial") + private java.util.List customTargetTypeSnapshots_; + /** + * + * + *
+   * Output only. Snapshot of the custom target types referenced by the targets
+   * taken at release creation time.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCustomTargetTypeSnapshotsList() { + return customTargetTypeSnapshots_; + } + /** + * + * + *
+   * Output only. Snapshot of the custom target types referenced by the targets
+   * taken at release creation time.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCustomTargetTypeSnapshotsOrBuilderList() { + return customTargetTypeSnapshots_; + } + /** + * + * + *
+   * Output only. Snapshot of the custom target types referenced by the targets
+   * taken at release creation time.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getCustomTargetTypeSnapshotsCount() { + return customTargetTypeSnapshots_.size(); + } + /** + * + * + *
+   * Output only. Snapshot of the custom target types referenced by the targets
+   * taken at release creation time.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetType getCustomTargetTypeSnapshots(int index) { + return customTargetTypeSnapshots_.get(index); + } + /** + * + * + *
+   * Output only. Snapshot of the custom target types referenced by the targets
+   * taken at release creation time.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder getCustomTargetTypeSnapshotsOrBuilder( + int index) { + return customTargetTypeSnapshots_.get(index); + } + public static final int RENDER_STATE_FIELD_NUMBER = 13; private int renderState_ = 0; /** @@ -6935,6 +7070,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetDeployParameters(), DeployParametersDefaultEntryHolder.defaultEntry, 25); + for (int i = 0; i < customTargetTypeSnapshots_.size(); i++) { + output.writeMessage(27, customTargetTypeSnapshots_.get(i)); + } getUnknownFields().writeTo(output); } @@ -7048,6 +7186,11 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, deployParameters__); } + for (int i = 0; i < customTargetTypeSnapshots_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 27, customTargetTypeSnapshots_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -7089,6 +7232,8 @@ public boolean equals(final java.lang.Object obj) { if (!getDeliveryPipelineSnapshot().equals(other.getDeliveryPipelineSnapshot())) return false; } if (!getTargetSnapshotsList().equals(other.getTargetSnapshotsList())) return false; + if (!getCustomTargetTypeSnapshotsList().equals(other.getCustomTargetTypeSnapshotsList())) + return false; if (renderState_ != other.renderState_) return false; if (!getEtag().equals(other.getEtag())) return false; if (!getSkaffoldVersion().equals(other.getSkaffoldVersion())) return false; @@ -7154,6 +7299,10 @@ public int hashCode() { hash = (37 * hash) + TARGET_SNAPSHOTS_FIELD_NUMBER; hash = (53 * hash) + getTargetSnapshotsList().hashCode(); } + if (getCustomTargetTypeSnapshotsCount() > 0) { + hash = (37 * hash) + CUSTOM_TARGET_TYPE_SNAPSHOTS_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargetTypeSnapshotsList().hashCode(); + } hash = (37 * hash) + RENDER_STATE_FIELD_NUMBER; hash = (53 * hash) + renderState_; hash = (37 * hash) + ETAG_FIELD_NUMBER; @@ -7395,6 +7544,13 @@ public Builder clear() { targetSnapshotsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00002000); + if (customTargetTypeSnapshotsBuilder_ == null) { + customTargetTypeSnapshots_ = java.util.Collections.emptyList(); + } else { + customTargetTypeSnapshots_ = null; + customTargetTypeSnapshotsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00004000); renderState_ = 0; etag_ = ""; skaffoldVersion_ = ""; @@ -7459,6 +7615,16 @@ private void buildPartialRepeatedFields(com.google.cloud.deploy.v1.Release resul } else { result.targetSnapshots_ = targetSnapshotsBuilder_.build(); } + if (customTargetTypeSnapshotsBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0)) { + customTargetTypeSnapshots_ = + java.util.Collections.unmodifiableList(customTargetTypeSnapshots_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.customTargetTypeSnapshots_ = customTargetTypeSnapshots_; + } else { + result.customTargetTypeSnapshots_ = customTargetTypeSnapshotsBuilder_.build(); + } } private void buildPartial0(com.google.cloud.deploy.v1.Release result) { @@ -7506,27 +7672,27 @@ private void buildPartial0(com.google.cloud.deploy.v1.Release result) { ? deliveryPipelineSnapshot_ : deliveryPipelineSnapshotBuilder_.build(); } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.renderState_ = renderState_; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.etag_ = etag_; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.skaffoldVersion_ = skaffoldVersion_; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.targetArtifacts_ = internalGetTargetArtifacts(); result.targetArtifacts_.makeImmutable(); } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.targetRenders_ = internalGetTargetRenders(); result.targetRenders_.makeImmutable(); } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build(); } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.deployParameters_ = internalGetDeployParameters(); result.deployParameters_.makeImmutable(); } @@ -7675,28 +7841,55 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.Release other) { } } } + if (customTargetTypeSnapshotsBuilder_ == null) { + if (!other.customTargetTypeSnapshots_.isEmpty()) { + if (customTargetTypeSnapshots_.isEmpty()) { + customTargetTypeSnapshots_ = other.customTargetTypeSnapshots_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureCustomTargetTypeSnapshotsIsMutable(); + customTargetTypeSnapshots_.addAll(other.customTargetTypeSnapshots_); + } + onChanged(); + } + } else { + if (!other.customTargetTypeSnapshots_.isEmpty()) { + if (customTargetTypeSnapshotsBuilder_.isEmpty()) { + customTargetTypeSnapshotsBuilder_.dispose(); + customTargetTypeSnapshotsBuilder_ = null; + customTargetTypeSnapshots_ = other.customTargetTypeSnapshots_; + bitField0_ = (bitField0_ & ~0x00004000); + customTargetTypeSnapshotsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomTargetTypeSnapshotsFieldBuilder() + : null; + } else { + customTargetTypeSnapshotsBuilder_.addAllMessages(other.customTargetTypeSnapshots_); + } + } + } if (other.renderState_ != 0) { setRenderStateValue(other.getRenderStateValue()); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } if (!other.getSkaffoldVersion().isEmpty()) { skaffoldVersion_ = other.skaffoldVersion_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } internalGetMutableTargetArtifacts().mergeFrom(other.internalGetTargetArtifacts()); - bitField0_ |= 0x00020000; - internalGetMutableTargetRenders().mergeFrom(other.internalGetTargetRenders()); bitField0_ |= 0x00040000; + internalGetMutableTargetRenders().mergeFrom(other.internalGetTargetRenders()); + bitField0_ |= 0x00080000; if (other.hasCondition()) { mergeCondition(other.getCondition()); } internalGetMutableDeployParameters().mergeFrom(other.internalGetDeployParameters()); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -7825,13 +8018,13 @@ public Builder mergeFrom( case 104: { renderState_ = input.readEnum(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 104 case 130: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 130 case 138: @@ -7843,7 +8036,7 @@ public Builder mergeFrom( case 154: { skaffoldVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 154 case 162: @@ -7857,7 +8050,7 @@ public Builder mergeFrom( internalGetMutableTargetArtifacts() .getMutableMap() .put(targetArtifacts__.getKey(), targetArtifacts__.getValue()); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 162 case 178: @@ -7871,7 +8064,7 @@ public Builder mergeFrom( internalGetMutableTargetRenders() .getMutableMap() .put(targetRenders__.getKey(), targetRenders__.getValue()); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 178 case 184: @@ -7883,7 +8076,7 @@ public Builder mergeFrom( case 194: { input.readMessage(getConditionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 194 case 202: @@ -7896,9 +8089,22 @@ public Builder mergeFrom( internalGetMutableDeployParameters() .getMutableMap() .put(deployParameters__.getKey(), deployParameters__.getValue()); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 202 + case 218: + { + com.google.cloud.deploy.v1.CustomTargetType m = + input.readMessage( + com.google.cloud.deploy.v1.CustomTargetType.parser(), extensionRegistry); + if (customTargetTypeSnapshotsBuilder_ == null) { + ensureCustomTargetTypeSnapshotsIsMutable(); + customTargetTypeSnapshots_.add(m); + } else { + customTargetTypeSnapshotsBuilder_.addMessage(m); + } + break; + } // case 218 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -10480,6 +10686,422 @@ public com.google.cloud.deploy.v1.Target.Builder addTargetSnapshotsBuilder(int i return targetSnapshotsBuilder_; } + private java.util.List customTargetTypeSnapshots_ = + java.util.Collections.emptyList(); + + private void ensureCustomTargetTypeSnapshotsIsMutable() { + if (!((bitField0_ & 0x00004000) != 0)) { + customTargetTypeSnapshots_ = + new java.util.ArrayList( + customTargetTypeSnapshots_); + bitField0_ |= 0x00004000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTargetType, + com.google.cloud.deploy.v1.CustomTargetType.Builder, + com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder> + customTargetTypeSnapshotsBuilder_; + + /** + * + * + *
+     * Output only. Snapshot of the custom target types referenced by the targets
+     * taken at release creation time.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCustomTargetTypeSnapshotsList() { + if (customTargetTypeSnapshotsBuilder_ == null) { + return java.util.Collections.unmodifiableList(customTargetTypeSnapshots_); + } else { + return customTargetTypeSnapshotsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. Snapshot of the custom target types referenced by the targets
+     * taken at release creation time.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getCustomTargetTypeSnapshotsCount() { + if (customTargetTypeSnapshotsBuilder_ == null) { + return customTargetTypeSnapshots_.size(); + } else { + return customTargetTypeSnapshotsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. Snapshot of the custom target types referenced by the targets
+     * taken at release creation time.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.CustomTargetType getCustomTargetTypeSnapshots(int index) { + if (customTargetTypeSnapshotsBuilder_ == null) { + return customTargetTypeSnapshots_.get(index); + } else { + return customTargetTypeSnapshotsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. Snapshot of the custom target types referenced by the targets
+     * taken at release creation time.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCustomTargetTypeSnapshots( + int index, com.google.cloud.deploy.v1.CustomTargetType value) { + if (customTargetTypeSnapshotsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetTypeSnapshotsIsMutable(); + customTargetTypeSnapshots_.set(index, value); + onChanged(); + } else { + customTargetTypeSnapshotsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Snapshot of the custom target types referenced by the targets
+     * taken at release creation time.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCustomTargetTypeSnapshots( + int index, com.google.cloud.deploy.v1.CustomTargetType.Builder builderForValue) { + if (customTargetTypeSnapshotsBuilder_ == null) { + ensureCustomTargetTypeSnapshotsIsMutable(); + customTargetTypeSnapshots_.set(index, builderForValue.build()); + onChanged(); + } else { + customTargetTypeSnapshotsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Snapshot of the custom target types referenced by the targets
+     * taken at release creation time.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCustomTargetTypeSnapshots(com.google.cloud.deploy.v1.CustomTargetType value) { + if (customTargetTypeSnapshotsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetTypeSnapshotsIsMutable(); + customTargetTypeSnapshots_.add(value); + onChanged(); + } else { + customTargetTypeSnapshotsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. Snapshot of the custom target types referenced by the targets
+     * taken at release creation time.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCustomTargetTypeSnapshots( + int index, com.google.cloud.deploy.v1.CustomTargetType value) { + if (customTargetTypeSnapshotsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetTypeSnapshotsIsMutable(); + customTargetTypeSnapshots_.add(index, value); + onChanged(); + } else { + customTargetTypeSnapshotsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Snapshot of the custom target types referenced by the targets
+     * taken at release creation time.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCustomTargetTypeSnapshots( + com.google.cloud.deploy.v1.CustomTargetType.Builder builderForValue) { + if (customTargetTypeSnapshotsBuilder_ == null) { + ensureCustomTargetTypeSnapshotsIsMutable(); + customTargetTypeSnapshots_.add(builderForValue.build()); + onChanged(); + } else { + customTargetTypeSnapshotsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Snapshot of the custom target types referenced by the targets
+     * taken at release creation time.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCustomTargetTypeSnapshots( + int index, com.google.cloud.deploy.v1.CustomTargetType.Builder builderForValue) { + if (customTargetTypeSnapshotsBuilder_ == null) { + ensureCustomTargetTypeSnapshotsIsMutable(); + customTargetTypeSnapshots_.add(index, builderForValue.build()); + onChanged(); + } else { + customTargetTypeSnapshotsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Snapshot of the custom target types referenced by the targets
+     * taken at release creation time.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllCustomTargetTypeSnapshots( + java.lang.Iterable values) { + if (customTargetTypeSnapshotsBuilder_ == null) { + ensureCustomTargetTypeSnapshotsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customTargetTypeSnapshots_); + onChanged(); + } else { + customTargetTypeSnapshotsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. Snapshot of the custom target types referenced by the targets
+     * taken at release creation time.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCustomTargetTypeSnapshots() { + if (customTargetTypeSnapshotsBuilder_ == null) { + customTargetTypeSnapshots_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + } else { + customTargetTypeSnapshotsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Snapshot of the custom target types referenced by the targets
+     * taken at release creation time.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeCustomTargetTypeSnapshots(int index) { + if (customTargetTypeSnapshotsBuilder_ == null) { + ensureCustomTargetTypeSnapshotsIsMutable(); + customTargetTypeSnapshots_.remove(index); + onChanged(); + } else { + customTargetTypeSnapshotsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. Snapshot of the custom target types referenced by the targets
+     * taken at release creation time.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.CustomTargetType.Builder getCustomTargetTypeSnapshotsBuilder( + int index) { + return getCustomTargetTypeSnapshotsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. Snapshot of the custom target types referenced by the targets
+     * taken at release creation time.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder + getCustomTargetTypeSnapshotsOrBuilder(int index) { + if (customTargetTypeSnapshotsBuilder_ == null) { + return customTargetTypeSnapshots_.get(index); + } else { + return customTargetTypeSnapshotsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. Snapshot of the custom target types referenced by the targets
+     * taken at release creation time.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCustomTargetTypeSnapshotsOrBuilderList() { + if (customTargetTypeSnapshotsBuilder_ != null) { + return customTargetTypeSnapshotsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customTargetTypeSnapshots_); + } + } + /** + * + * + *
+     * Output only. Snapshot of the custom target types referenced by the targets
+     * taken at release creation time.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.CustomTargetType.Builder + addCustomTargetTypeSnapshotsBuilder() { + return getCustomTargetTypeSnapshotsFieldBuilder() + .addBuilder(com.google.cloud.deploy.v1.CustomTargetType.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Snapshot of the custom target types referenced by the targets
+     * taken at release creation time.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.CustomTargetType.Builder addCustomTargetTypeSnapshotsBuilder( + int index) { + return getCustomTargetTypeSnapshotsFieldBuilder() + .addBuilder(index, com.google.cloud.deploy.v1.CustomTargetType.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Snapshot of the custom target types referenced by the targets
+     * taken at release creation time.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCustomTargetTypeSnapshotsBuilderList() { + return getCustomTargetTypeSnapshotsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTargetType, + com.google.cloud.deploy.v1.CustomTargetType.Builder, + com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder> + getCustomTargetTypeSnapshotsFieldBuilder() { + if (customTargetTypeSnapshotsBuilder_ == null) { + customTargetTypeSnapshotsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTargetType, + com.google.cloud.deploy.v1.CustomTargetType.Builder, + com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder>( + customTargetTypeSnapshots_, + ((bitField0_ & 0x00004000) != 0), + getParentForChildren(), + isClean()); + customTargetTypeSnapshots_ = null; + } + return customTargetTypeSnapshotsBuilder_; + } + private int renderState_ = 0; /** * @@ -10514,7 +11136,7 @@ public int getRenderStateValue() { */ public Builder setRenderStateValue(int value) { renderState_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -10555,7 +11177,7 @@ public Builder setRenderState(com.google.cloud.deploy.v1.Release.RenderState val if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; renderState_ = value.getNumber(); onChanged(); return this; @@ -10574,7 +11196,7 @@ public Builder setRenderState(com.google.cloud.deploy.v1.Release.RenderState val * @return This builder for chaining. */ public Builder clearRenderState() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); renderState_ = 0; onChanged(); return this; @@ -10648,7 +11270,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -10667,7 +11289,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } @@ -10691,7 +11313,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -10770,7 +11392,7 @@ public Builder setSkaffoldVersion(java.lang.String value) { throw new NullPointerException(); } skaffoldVersion_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -10791,7 +11413,7 @@ public Builder setSkaffoldVersion(java.lang.String value) { */ public Builder clearSkaffoldVersion() { skaffoldVersion_ = getDefaultInstance().getSkaffoldVersion(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } @@ -10817,7 +11439,7 @@ public Builder setSkaffoldVersionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); skaffoldVersion_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -10847,7 +11469,7 @@ public Builder setSkaffoldVersionBytes(com.google.protobuf.ByteString value) { if (!targetArtifacts_.isMutable()) { targetArtifacts_ = targetArtifacts_.copy(); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return targetArtifacts_; } @@ -10949,7 +11571,7 @@ public com.google.cloud.deploy.v1.TargetArtifact getTargetArtifactsOrThrow( } public Builder clearTargetArtifacts() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); internalGetMutableTargetArtifacts().getMutableMap().clear(); return this; } @@ -10976,7 +11598,7 @@ public Builder removeTargetArtifacts(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableTargetArtifacts() { - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; return internalGetMutableTargetArtifacts().getMutableMap(); } /** @@ -11000,7 +11622,7 @@ public Builder putTargetArtifacts( throw new NullPointerException("map value"); } internalGetMutableTargetArtifacts().getMutableMap().put(key, value); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; return this; } /** @@ -11018,7 +11640,7 @@ public Builder putTargetArtifacts( public Builder putAllTargetArtifacts( java.util.Map values) { internalGetMutableTargetArtifacts().getMutableMap().putAll(values); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; return this; } @@ -11046,7 +11668,7 @@ public Builder putAllTargetArtifacts( if (!targetRenders_.isMutable()) { targetRenders_ = targetRenders_.copy(); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return targetRenders_; } @@ -11148,7 +11770,7 @@ public com.google.cloud.deploy.v1.Release.TargetRender getTargetRendersOrThrow( } public Builder clearTargetRenders() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); internalGetMutableTargetRenders().getMutableMap().clear(); return this; } @@ -11175,7 +11797,7 @@ public Builder removeTargetRenders(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableTargetRenders() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; return internalGetMutableTargetRenders().getMutableMap(); } /** @@ -11199,7 +11821,7 @@ public Builder putTargetRenders( throw new NullPointerException("map value"); } internalGetMutableTargetRenders().getMutableMap().put(key, value); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; return this; } /** @@ -11217,7 +11839,7 @@ public Builder putTargetRenders( public Builder putAllTargetRenders( java.util.Map values) { internalGetMutableTargetRenders().getMutableMap().putAll(values); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; return this; } @@ -11241,7 +11863,7 @@ public Builder putAllTargetRenders( * @return Whether the condition field is set. */ public boolean hasCondition() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** * @@ -11285,7 +11907,7 @@ public Builder setCondition(com.google.cloud.deploy.v1.Release.ReleaseCondition } else { conditionBuilder_.setMessage(value); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -11307,7 +11929,7 @@ public Builder setCondition( } else { conditionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -11324,7 +11946,7 @@ public Builder setCondition( */ public Builder mergeCondition(com.google.cloud.deploy.v1.Release.ReleaseCondition value) { if (conditionBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) + if (((bitField0_ & 0x00100000) != 0) && condition_ != null && condition_ != com.google.cloud.deploy.v1.Release.ReleaseCondition.getDefaultInstance()) { @@ -11335,7 +11957,7 @@ public Builder mergeCondition(com.google.cloud.deploy.v1.Release.ReleaseConditio } else { conditionBuilder_.mergeFrom(value); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -11351,7 +11973,7 @@ public Builder mergeCondition(com.google.cloud.deploy.v1.Release.ReleaseConditio * */ public Builder clearCondition() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); condition_ = null; if (conditionBuilder_ != null) { conditionBuilder_.dispose(); @@ -11372,7 +11994,7 @@ public Builder clearCondition() { * */ public com.google.cloud.deploy.v1.Release.ReleaseCondition.Builder getConditionBuilder() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return getConditionFieldBuilder().getBuilder(); } @@ -11445,7 +12067,7 @@ public com.google.cloud.deploy.v1.Release.ReleaseConditionOrBuilder getCondition if (!deployParameters_.isMutable()) { deployParameters_ = deployParameters_.copy(); } - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return deployParameters_; } @@ -11540,7 +12162,7 @@ public java.lang.String getDeployParametersOrThrow(java.lang.String key) { } public Builder clearDeployParameters() { - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); internalGetMutableDeployParameters().getMutableMap().clear(); return this; } @@ -11565,7 +12187,7 @@ public Builder removeDeployParameters(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableDeployParameters() { - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; return internalGetMutableDeployParameters().getMutableMap(); } /** @@ -11587,7 +12209,7 @@ public Builder putDeployParameters(java.lang.String key, java.lang.String value) throw new NullPointerException("map value"); } internalGetMutableDeployParameters().getMutableMap().put(key, value); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; return this; } /** @@ -11604,7 +12226,7 @@ public Builder putDeployParameters(java.lang.String key, java.lang.String value) public Builder putAllDeployParameters( java.util.Map values) { internalGetMutableDeployParameters().getMutableMap().putAll(values); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; return this; } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseOrBuilder.java index 116667d40d16..3b8af1765bad 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseOrBuilder.java @@ -617,6 +617,74 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.deploy.v1.TargetOrBuilder getTargetSnapshotsOrBuilder(int index); + /** + * + * + *
+   * Output only. Snapshot of the custom target types referenced by the targets
+   * taken at release creation time.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getCustomTargetTypeSnapshotsList(); + /** + * + * + *
+   * Output only. Snapshot of the custom target types referenced by the targets
+   * taken at release creation time.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.deploy.v1.CustomTargetType getCustomTargetTypeSnapshots(int index); + /** + * + * + *
+   * Output only. Snapshot of the custom target types referenced by the targets
+   * taken at release creation time.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getCustomTargetTypeSnapshotsCount(); + /** + * + * + *
+   * Output only. Snapshot of the custom target types referenced by the targets
+   * taken at release creation time.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCustomTargetTypeSnapshotsOrBuilderList(); + /** + * + * + *
+   * Output only. Snapshot of the custom target types referenced by the targets
+   * taken at release creation time.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder getCustomTargetTypeSnapshotsOrBuilder( + int index); + /** * * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RenderMetadata.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RenderMetadata.java index 443d0b80c686..2f1105f8e949 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RenderMetadata.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RenderMetadata.java @@ -116,6 +116,62 @@ public com.google.cloud.deploy.v1.CloudRunRenderMetadataOrBuilder getCloudRunOrB : cloudRun_; } + public static final int CUSTOM_FIELD_NUMBER = 2; + private com.google.cloud.deploy.v1.CustomMetadata custom_; + /** + * + * + *
+   * Output only. Custom metadata provided by user defined render operation.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the custom field is set. + */ + @java.lang.Override + public boolean hasCustom() { + return custom_ != null; + } + /** + * + * + *
+   * Output only. Custom metadata provided by user defined render operation.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The custom. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomMetadata getCustom() { + return custom_ == null + ? com.google.cloud.deploy.v1.CustomMetadata.getDefaultInstance() + : custom_; + } + /** + * + * + *
+   * Output only. Custom metadata provided by user defined render operation.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomMetadataOrBuilder getCustomOrBuilder() { + return custom_ == null + ? com.google.cloud.deploy.v1.CustomMetadata.getDefaultInstance() + : custom_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -133,6 +189,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (cloudRun_ != null) { output.writeMessage(1, getCloudRun()); } + if (custom_ != null) { + output.writeMessage(2, getCustom()); + } getUnknownFields().writeTo(output); } @@ -145,6 +204,9 @@ public int getSerializedSize() { if (cloudRun_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCloudRun()); } + if (custom_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustom()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -165,6 +227,10 @@ public boolean equals(final java.lang.Object obj) { if (hasCloudRun()) { if (!getCloudRun().equals(other.getCloudRun())) return false; } + if (hasCustom() != other.hasCustom()) return false; + if (hasCustom()) { + if (!getCustom().equals(other.getCustom())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -180,6 +246,10 @@ public int hashCode() { hash = (37 * hash) + CLOUD_RUN_FIELD_NUMBER; hash = (53 * hash) + getCloudRun().hashCode(); } + if (hasCustom()) { + hash = (37 * hash) + CUSTOM_FIELD_NUMBER; + hash = (53 * hash) + getCustom().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -324,6 +394,11 @@ public Builder clear() { cloudRunBuilder_.dispose(); cloudRunBuilder_ = null; } + custom_ = null; + if (customBuilder_ != null) { + customBuilder_.dispose(); + customBuilder_ = null; + } return this; } @@ -363,6 +438,9 @@ private void buildPartial0(com.google.cloud.deploy.v1.RenderMetadata result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.cloudRun_ = cloudRunBuilder_ == null ? cloudRun_ : cloudRunBuilder_.build(); } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.custom_ = customBuilder_ == null ? custom_ : customBuilder_.build(); + } } @java.lang.Override @@ -413,6 +491,9 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.RenderMetadata other) { if (other.hasCloudRun()) { mergeCloudRun(other.getCloudRun()); } + if (other.hasCustom()) { + mergeCustom(other.getCustom()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -445,6 +526,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + input.readMessage(getCustomFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -667,6 +754,207 @@ public com.google.cloud.deploy.v1.CloudRunRenderMetadataOrBuilder getCloudRunOrB return cloudRunBuilder_; } + private com.google.cloud.deploy.v1.CustomMetadata custom_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomMetadata, + com.google.cloud.deploy.v1.CustomMetadata.Builder, + com.google.cloud.deploy.v1.CustomMetadataOrBuilder> + customBuilder_; + /** + * + * + *
+     * Output only. Custom metadata provided by user defined render operation.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the custom field is set. + */ + public boolean hasCustom() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined render operation.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The custom. + */ + public com.google.cloud.deploy.v1.CustomMetadata getCustom() { + if (customBuilder_ == null) { + return custom_ == null + ? com.google.cloud.deploy.v1.CustomMetadata.getDefaultInstance() + : custom_; + } else { + return customBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined render operation.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCustom(com.google.cloud.deploy.v1.CustomMetadata value) { + if (customBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + custom_ = value; + } else { + customBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined render operation.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCustom(com.google.cloud.deploy.v1.CustomMetadata.Builder builderForValue) { + if (customBuilder_ == null) { + custom_ = builderForValue.build(); + } else { + customBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined render operation.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCustom(com.google.cloud.deploy.v1.CustomMetadata value) { + if (customBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && custom_ != null + && custom_ != com.google.cloud.deploy.v1.CustomMetadata.getDefaultInstance()) { + getCustomBuilder().mergeFrom(value); + } else { + custom_ = value; + } + } else { + customBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined render operation.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCustom() { + bitField0_ = (bitField0_ & ~0x00000002); + custom_ = null; + if (customBuilder_ != null) { + customBuilder_.dispose(); + customBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined render operation.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.CustomMetadata.Builder getCustomBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCustomFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined render operation.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.CustomMetadataOrBuilder getCustomOrBuilder() { + if (customBuilder_ != null) { + return customBuilder_.getMessageOrBuilder(); + } else { + return custom_ == null + ? com.google.cloud.deploy.v1.CustomMetadata.getDefaultInstance() + : custom_; + } + } + /** + * + * + *
+     * Output only. Custom metadata provided by user defined render operation.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomMetadata, + com.google.cloud.deploy.v1.CustomMetadata.Builder, + com.google.cloud.deploy.v1.CustomMetadataOrBuilder> + getCustomFieldBuilder() { + if (customBuilder_ == null) { + customBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomMetadata, + com.google.cloud.deploy.v1.CustomMetadata.Builder, + com.google.cloud.deploy.v1.CustomMetadataOrBuilder>( + getCustom(), getParentForChildren(), isClean()); + custom_ = null; + } + return customBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RenderMetadataOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RenderMetadataOrBuilder.java index 0c8867d4fff7..418cfc1e1613 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RenderMetadataOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RenderMetadataOrBuilder.java @@ -63,4 +63,45 @@ public interface RenderMetadataOrBuilder * */ com.google.cloud.deploy.v1.CloudRunRenderMetadataOrBuilder getCloudRunOrBuilder(); + + /** + * + * + *
+   * Output only. Custom metadata provided by user defined render operation.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the custom field is set. + */ + boolean hasCustom(); + /** + * + * + *
+   * Output only. Custom metadata provided by user defined render operation.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The custom. + */ + com.google.cloud.deploy.v1.CustomMetadata getCustom(); + /** + * + * + *
+   * Output only. Custom metadata provided by user defined render operation.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomMetadata custom = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.deploy.v1.CustomMetadataOrBuilder getCustomOrBuilder(); } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Retry.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Retry.java index c3f795f877ed..3ddb6769a619 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Retry.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Retry.java @@ -67,7 +67,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. Total number of retries. Retry will skipped if set to 0; The
+   * Required. Total number of retries. Retry is skipped if set to 0; The
    * minimum value is 1, and the maximum value is 10.
    * 
* @@ -566,7 +566,7 @@ public Builder mergeFrom( * * *
-     * Required. Total number of retries. Retry will skipped if set to 0; The
+     * Required. Total number of retries. Retry is skipped if set to 0; The
      * minimum value is 1, and the maximum value is 10.
      * 
* @@ -582,7 +582,7 @@ public long getAttempts() { * * *
-     * Required. Total number of retries. Retry will skipped if set to 0; The
+     * Required. Total number of retries. Retry is skipped if set to 0; The
      * minimum value is 1, and the maximum value is 10.
      * 
* @@ -602,7 +602,7 @@ public Builder setAttempts(long value) { * * *
-     * Required. Total number of retries. Retry will skipped if set to 0; The
+     * Required. Total number of retries. Retry is skipped if set to 0; The
      * minimum value is 1, and the maximum value is 10.
      * 
* diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryOrBuilder.java index 7d273f18611d..ddcbab63467e 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryOrBuilder.java @@ -27,7 +27,7 @@ public interface RetryOrBuilder * * *
-   * Required. Total number of retries. Retry will skipped if set to 0; The
+   * Required. Total number of retries. Retry is skipped if set to 0; The
    * minimum value is 1, and the maximum value is 10.
    * 
* diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Rollout.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Rollout.java index 3a072c50e16a..586d152df19b 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Rollout.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Rollout.java @@ -703,7 +703,7 @@ public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * No skaffold verify configuration was found.
+     * No Skaffold verify configuration was found.
      * 
* * VERIFICATION_CONFIG_NOT_FOUND = 6; @@ -720,6 +720,16 @@ public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_BUILD_REQUEST_FAILED = 7; */ CLOUD_BUILD_REQUEST_FAILED(7), + /** + * + * + *
+     * A Rollout operation had a feature configured that is not supported.
+     * 
+ * + * OPERATION_FEATURE_NOT_SUPPORTED = 8; + */ + OPERATION_FEATURE_NOT_SUPPORTED(8), UNRECOGNIZED(-1), ; @@ -790,7 +800,7 @@ public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * No skaffold verify configuration was found.
+     * No Skaffold verify configuration was found.
      * 
* * VERIFICATION_CONFIG_NOT_FOUND = 6; @@ -807,6 +817,16 @@ public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_BUILD_REQUEST_FAILED = 7; */ public static final int CLOUD_BUILD_REQUEST_FAILED_VALUE = 7; + /** + * + * + *
+     * A Rollout operation had a feature configured that is not supported.
+     * 
+ * + * OPERATION_FEATURE_NOT_SUPPORTED = 8; + */ + public static final int OPERATION_FEATURE_NOT_SUPPORTED_VALUE = 8; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -848,6 +868,8 @@ public static FailureCause forNumber(int value) { return VERIFICATION_CONFIG_NOT_FOUND; case 7: return CLOUD_BUILD_REQUEST_FAILED; + case 8: + return OPERATION_FEATURE_NOT_SUPPORTED; default: return null; } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldModules.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldModules.java new file mode 100644 index 000000000000..34ed70f2db62 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldModules.java @@ -0,0 +1,3349 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +/** + * + * + *
+ * Skaffold Config modules and their remote source.
+ * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.SkaffoldModules} + */ +public final class SkaffoldModules extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.SkaffoldModules) + SkaffoldModulesOrBuilder { + private static final long serialVersionUID = 0L; + // Use SkaffoldModules.newBuilder() to construct. + private SkaffoldModules(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SkaffoldModules() { + configs_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SkaffoldModules(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_SkaffoldModules_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_SkaffoldModules_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.SkaffoldModules.class, + com.google.cloud.deploy.v1.SkaffoldModules.Builder.class); + } + + public interface SkaffoldGitSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Git repository the package should be cloned from.
+     * 
+ * + * string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The repo. + */ + java.lang.String getRepo(); + /** + * + * + *
+     * Required. Git repository the package should be cloned from.
+     * 
+ * + * string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for repo. + */ + com.google.protobuf.ByteString getRepoBytes(); + + /** + * + * + *
+     * Optional. Relative path from the repository root to the Skaffold file.
+     * 
+ * + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The path. + */ + java.lang.String getPath(); + /** + * + * + *
+     * Optional. Relative path from the repository root to the Skaffold file.
+     * 
+ * + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + + /** + * + * + *
+     * Optional. Git ref the package should be cloned from.
+     * 
+ * + * string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ref. + */ + java.lang.String getRef(); + /** + * + * + *
+     * Optional. Git ref the package should be cloned from.
+     * 
+ * + * string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for ref. + */ + com.google.protobuf.ByteString getRefBytes(); + } + /** + * + * + *
+   * Git repository containing Skaffold Config modules.
+   * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource} + */ + public static final class SkaffoldGitSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource) + SkaffoldGitSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use SkaffoldGitSource.newBuilder() to construct. + private SkaffoldGitSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SkaffoldGitSource() { + repo_ = ""; + path_ = ""; + ref_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SkaffoldGitSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGitSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGitSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.class, + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.Builder.class); + } + + public static final int REPO_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object repo_ = ""; + /** + * + * + *
+     * Required. Git repository the package should be cloned from.
+     * 
+ * + * string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The repo. + */ + @java.lang.Override + public java.lang.String getRepo() { + java.lang.Object ref = repo_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repo_ = s; + return s; + } + } + /** + * + * + *
+     * Required. Git repository the package should be cloned from.
+     * 
+ * + * string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for repo. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRepoBytes() { + java.lang.Object ref = repo_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATH_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; + /** + * + * + *
+     * Optional. Relative path from the repository root to the Skaffold file.
+     * 
+ * + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The path. + */ + @java.lang.Override + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. Relative path from the repository root to the Skaffold file.
+     * 
+ * + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for path. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REF_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object ref_ = ""; + /** + * + * + *
+     * Optional. Git ref the package should be cloned from.
+     * 
+ * + * string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ref. + */ + @java.lang.Override + public java.lang.String getRef() { + java.lang.Object ref = ref_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ref_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. Git ref the package should be cloned from.
+     * 
+ * + * string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for ref. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRefBytes() { + java.lang.Object ref = ref_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ref_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repo_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, repo_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ref_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ref_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(repo_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, repo_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ref_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ref_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource other = + (com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource) obj; + + if (!getRepo().equals(other.getRepo())) return false; + if (!getPath().equals(other.getPath())) return false; + if (!getRef().equals(other.getRef())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REPO_FIELD_NUMBER; + hash = (53 * hash) + getRepo().hashCode(); + hash = (37 * hash) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (37 * hash) + REF_FIELD_NUMBER; + hash = (53 * hash) + getRef().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Git repository containing Skaffold Config modules.
+     * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource) + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGitSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGitSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.class, + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + repo_ = ""; + path_ = ""; + ref_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGitSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource + getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource build() { + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource buildPartial() { + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource result = + new com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.repo_ = repo_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.path_ = path_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ref_ = ref_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource) { + return mergeFrom((com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource other) { + if (other + == com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.getDefaultInstance()) + return this; + if (!other.getRepo().isEmpty()) { + repo_ = other.repo_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRef().isEmpty()) { + ref_ = other.ref_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + repo_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + ref_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object repo_ = ""; + /** + * + * + *
+       * Required. Git repository the package should be cloned from.
+       * 
+ * + * string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The repo. + */ + public java.lang.String getRepo() { + java.lang.Object ref = repo_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + repo_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Git repository the package should be cloned from.
+       * 
+ * + * string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for repo. + */ + public com.google.protobuf.ByteString getRepoBytes() { + java.lang.Object ref = repo_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + repo_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Git repository the package should be cloned from.
+       * 
+ * + * string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The repo to set. + * @return This builder for chaining. + */ + public Builder setRepo(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + repo_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Git repository the package should be cloned from.
+       * 
+ * + * string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRepo() { + repo_ = getDefaultInstance().getRepo(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Git repository the package should be cloned from.
+       * 
+ * + * string repo = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for repo to set. + * @return This builder for chaining. + */ + public Builder setRepoBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + repo_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object path_ = ""; + /** + * + * + *
+       * Optional. Relative path from the repository root to the Skaffold file.
+       * 
+ * + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. Relative path from the repository root to the Skaffold file.
+       * 
+ * + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for path. + */ + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. Relative path from the repository root to the Skaffold file.
+       * 
+ * + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + path_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Relative path from the repository root to the Skaffold file.
+       * 
+ * + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Relative path from the repository root to the Skaffold file.
+       * 
+ * + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for path to set. + * @return This builder for chaining. + */ + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object ref_ = ""; + /** + * + * + *
+       * Optional. Git ref the package should be cloned from.
+       * 
+ * + * string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ref. + */ + public java.lang.String getRef() { + java.lang.Object ref = ref_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ref_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. Git ref the package should be cloned from.
+       * 
+ * + * string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for ref. + */ + public com.google.protobuf.ByteString getRefBytes() { + java.lang.Object ref = ref_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ref_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. Git ref the package should be cloned from.
+       * 
+ * + * string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ref to set. + * @return This builder for chaining. + */ + public Builder setRef(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ref_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Git ref the package should be cloned from.
+       * 
+ * + * string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRef() { + ref_ = getDefaultInstance().getRef(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Git ref the package should be cloned from.
+       * 
+ * + * string ref = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for ref to set. + * @return This builder for chaining. + */ + public Builder setRefBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ref_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource) + private static final com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource(); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SkaffoldGitSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SkaffoldGCSSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Cloud Storage source paths to copy recursively. For example,
+     * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying
+     * all files within the "dir/configs" directory in the bucket "my-bucket".
+     * 
+ * + * string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The source. + */ + java.lang.String getSource(); + /** + * + * + *
+     * Required. Cloud Storage source paths to copy recursively. For example,
+     * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying
+     * all files within the "dir/configs" directory in the bucket "my-bucket".
+     * 
+ * + * string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for source. + */ + com.google.protobuf.ByteString getSourceBytes(); + + /** + * + * + *
+     * Optional. Relative path from the source to the Skaffold file.
+     * 
+ * + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The path. + */ + java.lang.String getPath(); + /** + * + * + *
+     * Optional. Relative path from the source to the Skaffold file.
+     * 
+ * + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for path. + */ + com.google.protobuf.ByteString getPathBytes(); + } + /** + * + * + *
+   * Cloud Storage bucket containing Skaffold Config modules.
+   * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource} + */ + public static final class SkaffoldGCSSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource) + SkaffoldGCSSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use SkaffoldGCSSource.newBuilder() to construct. + private SkaffoldGCSSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SkaffoldGCSSource() { + source_ = ""; + path_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SkaffoldGCSSource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGCSSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGCSSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.class, + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.Builder.class); + } + + public static final int SOURCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + /** + * + * + *
+     * Required. Cloud Storage source paths to copy recursively. For example,
+     * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying
+     * all files within the "dir/configs" directory in the bucket "my-bucket".
+     * 
+ * + * string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + /** + * + * + *
+     * Required. Cloud Storage source paths to copy recursively. For example,
+     * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying
+     * all files within the "dir/configs" directory in the bucket "my-bucket".
+     * 
+ * + * string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PATH_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object path_ = ""; + /** + * + * + *
+     * Optional. Relative path from the source to the Skaffold file.
+     * 
+ * + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The path. + */ + @java.lang.Override + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } + } + /** + * + * + *
+     * Optional. Relative path from the source to the Skaffold file.
+     * 
+ * + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for path. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource other = + (com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource) obj; + + if (!getSource().equals(other.getSource())) return false; + if (!getPath().equals(other.getPath())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (37 * hash) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Cloud Storage bucket containing Skaffold Config modules.
+     * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource) + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGCSSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGCSSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.class, + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + source_ = ""; + path_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_SkaffoldModules_SkaffoldGCSSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource + getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource build() { + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource buildPartial() { + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource result = + new com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.source_ = source_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.path_ = path_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource) { + return mergeFrom((com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource other) { + if (other + == com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.getDefaultInstance()) + return this; + if (!other.getSource().isEmpty()) { + source_ = other.source_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPath().isEmpty()) { + path_ = other.path_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + source_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + path_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object source_ = ""; + /** + * + * + *
+       * Required. Cloud Storage source paths to copy recursively. For example,
+       * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying
+       * all files within the "dir/configs" directory in the bucket "my-bucket".
+       * 
+ * + * string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The source. + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Cloud Storage source paths to copy recursively. For example,
+       * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying
+       * all files within the "dir/configs" directory in the bucket "my-bucket".
+       * 
+ * + * string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for source. + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Cloud Storage source paths to copy recursively. For example,
+       * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying
+       * all files within the "dir/configs" directory in the bucket "my-bucket".
+       * 
+ * + * string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Cloud Storage source paths to copy recursively. For example,
+       * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying
+       * all files within the "dir/configs" directory in the bucket "my-bucket".
+       * 
+ * + * string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Cloud Storage source paths to copy recursively. For example,
+       * providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying
+       * all files within the "dir/configs" directory in the bucket "my-bucket".
+       * 
+ * + * string source = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for source to set. + * @return This builder for chaining. + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object path_ = ""; + /** + * + * + *
+       * Optional. Relative path from the source to the Skaffold file.
+       * 
+ * + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The path. + */ + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Optional. Relative path from the source to the Skaffold file.
+       * 
+ * + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for path. + */ + public com.google.protobuf.ByteString getPathBytes() { + java.lang.Object ref = path_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Optional. Relative path from the source to the Skaffold file.
+       * 
+ * + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + path_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Relative path from the source to the Skaffold file.
+       * 
+ * + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPath() { + path_ = getDefaultInstance().getPath(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Relative path from the source to the Skaffold file.
+       * 
+ * + * string path = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for path to set. + * @return This builder for chaining. + */ + public Builder setPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource) + private static final com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource(); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SkaffoldGCSSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GIT(2), + GOOGLE_CLOUD_STORAGE(3), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: + return GIT; + case 3: + return GOOGLE_CLOUD_STORAGE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public static final int CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList configs_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Optional. The Skaffold Config modules to use from the specified source.
+   * 
+ * + * repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the configs. + */ + public com.google.protobuf.ProtocolStringList getConfigsList() { + return configs_; + } + /** + * + * + *
+   * Optional. The Skaffold Config modules to use from the specified source.
+   * 
+ * + * repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of configs. + */ + public int getConfigsCount() { + return configs_.size(); + } + /** + * + * + *
+   * Optional. The Skaffold Config modules to use from the specified source.
+   * 
+ * + * repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The configs at the given index. + */ + public java.lang.String getConfigs(int index) { + return configs_.get(index); + } + /** + * + * + *
+   * Optional. The Skaffold Config modules to use from the specified source.
+   * 
+ * + * repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the configs at the given index. + */ + public com.google.protobuf.ByteString getConfigsBytes(int index) { + return configs_.getByteString(index); + } + + public static final int GIT_FIELD_NUMBER = 2; + /** + * + * + *
+   * Remote git repository containing the Skaffold Config modules.
+   * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2; + * + * @return Whether the git field is set. + */ + @java.lang.Override + public boolean hasGit() { + return sourceCase_ == 2; + } + /** + * + * + *
+   * Remote git repository containing the Skaffold Config modules.
+   * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2; + * + * @return The git. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource getGit() { + if (sourceCase_ == 2) { + return (com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource) source_; + } + return com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.getDefaultInstance(); + } + /** + * + * + *
+   * Remote git repository containing the Skaffold Config modules.
+   * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2; + */ + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSourceOrBuilder getGitOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource) source_; + } + return com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.getDefaultInstance(); + } + + public static final int GOOGLE_CLOUD_STORAGE_FIELD_NUMBER = 3; + /** + * + * + *
+   * Cloud Storage bucket containing the Skaffold Config modules.
+   * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3; + * + * + * @return Whether the googleCloudStorage field is set. + */ + @java.lang.Override + public boolean hasGoogleCloudStorage() { + return sourceCase_ == 3; + } + /** + * + * + *
+   * Cloud Storage bucket containing the Skaffold Config modules.
+   * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3; + * + * + * @return The googleCloudStorage. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource getGoogleCloudStorage() { + if (sourceCase_ == 3) { + return (com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource) source_; + } + return com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.getDefaultInstance(); + } + /** + * + * + *
+   * Cloud Storage bucket containing the Skaffold Config modules.
+   * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3; + * + */ + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSourceOrBuilder + getGoogleCloudStorageOrBuilder() { + if (sourceCase_ == 3) { + return (com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource) source_; + } + return com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < configs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, configs_.getRaw(i)); + } + if (sourceCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource) source_); + } + if (sourceCase_ == 3) { + output.writeMessage( + 3, (com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource) source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < configs_.size(); i++) { + dataSize += computeStringSizeNoTag(configs_.getRaw(i)); + } + size += dataSize; + size += 1 * getConfigsList().size(); + } + if (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource) source_); + } + if (sourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource) source_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.SkaffoldModules)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.SkaffoldModules other = + (com.google.cloud.deploy.v1.SkaffoldModules) obj; + + if (!getConfigsList().equals(other.getConfigsList())) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getGit().equals(other.getGit())) return false; + break; + case 3: + if (!getGoogleCloudStorage().equals(other.getGoogleCloudStorage())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getConfigsCount() > 0) { + hash = (37 * hash) + CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getConfigsList().hashCode(); + } + switch (sourceCase_) { + case 2: + hash = (37 * hash) + GIT_FIELD_NUMBER; + hash = (53 * hash) + getGit().hashCode(); + break; + case 3: + hash = (37 * hash) + GOOGLE_CLOUD_STORAGE_FIELD_NUMBER; + hash = (53 * hash) + getGoogleCloudStorage().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.SkaffoldModules parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.deploy.v1.SkaffoldModules prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Skaffold Config modules and their remote source.
+   * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.SkaffoldModules} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.SkaffoldModules) + com.google.cloud.deploy.v1.SkaffoldModulesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_SkaffoldModules_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_SkaffoldModules_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.SkaffoldModules.class, + com.google.cloud.deploy.v1.SkaffoldModules.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.SkaffoldModules.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + configs_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (gitBuilder_ != null) { + gitBuilder_.clear(); + } + if (googleCloudStorageBuilder_ != null) { + googleCloudStorageBuilder_.clear(); + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_SkaffoldModules_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.SkaffoldModules.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules build() { + com.google.cloud.deploy.v1.SkaffoldModules result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules buildPartial() { + com.google.cloud.deploy.v1.SkaffoldModules result = + new com.google.cloud.deploy.v1.SkaffoldModules(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.deploy.v1.SkaffoldModules result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + configs_.makeImmutable(); + result.configs_ = configs_; + } + } + + private void buildPartialOneofs(com.google.cloud.deploy.v1.SkaffoldModules result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 2 && gitBuilder_ != null) { + result.source_ = gitBuilder_.build(); + } + if (sourceCase_ == 3 && googleCloudStorageBuilder_ != null) { + result.source_ = googleCloudStorageBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.SkaffoldModules) { + return mergeFrom((com.google.cloud.deploy.v1.SkaffoldModules) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.SkaffoldModules other) { + if (other == com.google.cloud.deploy.v1.SkaffoldModules.getDefaultInstance()) return this; + if (!other.configs_.isEmpty()) { + if (configs_.isEmpty()) { + configs_ = other.configs_; + bitField0_ |= 0x00000001; + } else { + ensureConfigsIsMutable(); + configs_.addAll(other.configs_); + } + onChanged(); + } + switch (other.getSourceCase()) { + case GIT: + { + mergeGit(other.getGit()); + break; + } + case GOOGLE_CLOUD_STORAGE: + { + mergeGoogleCloudStorage(other.getGoogleCloudStorage()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureConfigsIsMutable(); + configs_.add(s); + break; + } // case 10 + case 18: + { + input.readMessage(getGitFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getGoogleCloudStorageFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList configs_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureConfigsIsMutable() { + if (!configs_.isModifiable()) { + configs_ = new com.google.protobuf.LazyStringArrayList(configs_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+     * Optional. The Skaffold Config modules to use from the specified source.
+     * 
+ * + * repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the configs. + */ + public com.google.protobuf.ProtocolStringList getConfigsList() { + configs_.makeImmutable(); + return configs_; + } + /** + * + * + *
+     * Optional. The Skaffold Config modules to use from the specified source.
+     * 
+ * + * repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of configs. + */ + public int getConfigsCount() { + return configs_.size(); + } + /** + * + * + *
+     * Optional. The Skaffold Config modules to use from the specified source.
+     * 
+ * + * repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The configs at the given index. + */ + public java.lang.String getConfigs(int index) { + return configs_.get(index); + } + /** + * + * + *
+     * Optional. The Skaffold Config modules to use from the specified source.
+     * 
+ * + * repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the configs at the given index. + */ + public com.google.protobuf.ByteString getConfigsBytes(int index) { + return configs_.getByteString(index); + } + /** + * + * + *
+     * Optional. The Skaffold Config modules to use from the specified source.
+     * 
+ * + * repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The configs to set. + * @return This builder for chaining. + */ + public Builder setConfigs(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigsIsMutable(); + configs_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Skaffold Config modules to use from the specified source.
+     * 
+ * + * repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The configs to add. + * @return This builder for chaining. + */ + public Builder addConfigs(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigsIsMutable(); + configs_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Skaffold Config modules to use from the specified source.
+     * 
+ * + * repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The configs to add. + * @return This builder for chaining. + */ + public Builder addAllConfigs(java.lang.Iterable values) { + ensureConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, configs_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Skaffold Config modules to use from the specified source.
+     * 
+ * + * repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearConfigs() { + configs_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Skaffold Config modules to use from the specified source.
+     * 
+ * + * repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the configs to add. + * @return This builder for chaining. + */ + public Builder addConfigsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureConfigsIsMutable(); + configs_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource, + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.Builder, + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSourceOrBuilder> + gitBuilder_; + /** + * + * + *
+     * Remote git repository containing the Skaffold Config modules.
+     * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2; + * + * @return Whether the git field is set. + */ + @java.lang.Override + public boolean hasGit() { + return sourceCase_ == 2; + } + /** + * + * + *
+     * Remote git repository containing the Skaffold Config modules.
+     * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2; + * + * @return The git. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource getGit() { + if (gitBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource) source_; + } + return com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return gitBuilder_.getMessage(); + } + return com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Remote git repository containing the Skaffold Config modules.
+     * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2; + */ + public Builder setGit(com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource value) { + if (gitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + gitBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
+     * Remote git repository containing the Skaffold Config modules.
+     * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2; + */ + public Builder setGit( + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.Builder builderForValue) { + if (gitBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + gitBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
+     * Remote git repository containing the Skaffold Config modules.
+     * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2; + */ + public Builder mergeGit(com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource value) { + if (gitBuilder_ == null) { + if (sourceCase_ == 2 + && source_ + != com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource + .getDefaultInstance()) { + source_ = + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.newBuilder( + (com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + gitBuilder_.mergeFrom(value); + } else { + gitBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
+     * Remote git repository containing the Skaffold Config modules.
+     * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2; + */ + public Builder clearGit() { + if (gitBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + gitBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Remote git repository containing the Skaffold Config modules.
+     * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2; + */ + public com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.Builder getGitBuilder() { + return getGitFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Remote git repository containing the Skaffold Config modules.
+     * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2; + */ + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSourceOrBuilder getGitOrBuilder() { + if ((sourceCase_ == 2) && (gitBuilder_ != null)) { + return gitBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource) source_; + } + return com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Remote git repository containing the Skaffold Config modules.
+     * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource, + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.Builder, + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSourceOrBuilder> + getGitFieldBuilder() { + if (gitBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.getDefaultInstance(); + } + gitBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource, + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource.Builder, + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSourceOrBuilder>( + (com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return gitBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource, + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.Builder, + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSourceOrBuilder> + googleCloudStorageBuilder_; + /** + * + * + *
+     * Cloud Storage bucket containing the Skaffold Config modules.
+     * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3; + * + * + * @return Whether the googleCloudStorage field is set. + */ + @java.lang.Override + public boolean hasGoogleCloudStorage() { + return sourceCase_ == 3; + } + /** + * + * + *
+     * Cloud Storage bucket containing the Skaffold Config modules.
+     * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3; + * + * + * @return The googleCloudStorage. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource getGoogleCloudStorage() { + if (googleCloudStorageBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource) source_; + } + return com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return googleCloudStorageBuilder_.getMessage(); + } + return com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Cloud Storage bucket containing the Skaffold Config modules.
+     * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3; + * + */ + public Builder setGoogleCloudStorage( + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource value) { + if (googleCloudStorageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + googleCloudStorageBuilder_.setMessage(value); + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
+     * Cloud Storage bucket containing the Skaffold Config modules.
+     * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3; + * + */ + public Builder setGoogleCloudStorage( + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.Builder builderForValue) { + if (googleCloudStorageBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + googleCloudStorageBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
+     * Cloud Storage bucket containing the Skaffold Config modules.
+     * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3; + * + */ + public Builder mergeGoogleCloudStorage( + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource value) { + if (googleCloudStorageBuilder_ == null) { + if (sourceCase_ == 3 + && source_ + != com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource + .getDefaultInstance()) { + source_ = + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.newBuilder( + (com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 3) { + googleCloudStorageBuilder_.mergeFrom(value); + } else { + googleCloudStorageBuilder_.setMessage(value); + } + } + sourceCase_ = 3; + return this; + } + /** + * + * + *
+     * Cloud Storage bucket containing the Skaffold Config modules.
+     * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3; + * + */ + public Builder clearGoogleCloudStorage() { + if (googleCloudStorageBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + googleCloudStorageBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Cloud Storage bucket containing the Skaffold Config modules.
+     * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3; + * + */ + public com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.Builder + getGoogleCloudStorageBuilder() { + return getGoogleCloudStorageFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Cloud Storage bucket containing the Skaffold Config modules.
+     * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3; + * + */ + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSourceOrBuilder + getGoogleCloudStorageOrBuilder() { + if ((sourceCase_ == 3) && (googleCloudStorageBuilder_ != null)) { + return googleCloudStorageBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource) source_; + } + return com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.getDefaultInstance(); + } + } + /** + * + * + *
+     * Cloud Storage bucket containing the Skaffold Config modules.
+     * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource, + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.Builder, + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSourceOrBuilder> + getGoogleCloudStorageFieldBuilder() { + if (googleCloudStorageBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.getDefaultInstance(); + } + googleCloudStorageBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource, + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource.Builder, + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSourceOrBuilder>( + (com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; + onChanged(); + return googleCloudStorageBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.SkaffoldModules) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.SkaffoldModules) + private static final com.google.cloud.deploy.v1.SkaffoldModules DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.SkaffoldModules(); + } + + public static com.google.cloud.deploy.v1.SkaffoldModules getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SkaffoldModules parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.SkaffoldModules getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldModulesOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldModulesOrBuilder.java new file mode 100644 index 000000000000..fa3ef30ba544 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldModulesOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface SkaffoldModulesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.SkaffoldModules) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The Skaffold Config modules to use from the specified source.
+   * 
+ * + * repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the configs. + */ + java.util.List getConfigsList(); + /** + * + * + *
+   * Optional. The Skaffold Config modules to use from the specified source.
+   * 
+ * + * repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of configs. + */ + int getConfigsCount(); + /** + * + * + *
+   * Optional. The Skaffold Config modules to use from the specified source.
+   * 
+ * + * repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The configs at the given index. + */ + java.lang.String getConfigs(int index); + /** + * + * + *
+   * Optional. The Skaffold Config modules to use from the specified source.
+   * 
+ * + * repeated string configs = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the configs at the given index. + */ + com.google.protobuf.ByteString getConfigsBytes(int index); + + /** + * + * + *
+   * Remote git repository containing the Skaffold Config modules.
+   * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2; + * + * @return Whether the git field is set. + */ + boolean hasGit(); + /** + * + * + *
+   * Remote git repository containing the Skaffold Config modules.
+   * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2; + * + * @return The git. + */ + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource getGit(); + /** + * + * + *
+   * Remote git repository containing the Skaffold Config modules.
+   * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSource git = 2; + */ + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGitSourceOrBuilder getGitOrBuilder(); + + /** + * + * + *
+   * Cloud Storage bucket containing the Skaffold Config modules.
+   * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3; + * + * + * @return Whether the googleCloudStorage field is set. + */ + boolean hasGoogleCloudStorage(); + /** + * + * + *
+   * Cloud Storage bucket containing the Skaffold Config modules.
+   * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3; + * + * + * @return The googleCloudStorage. + */ + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource getGoogleCloudStorage(); + /** + * + * + *
+   * Cloud Storage bucket containing the Skaffold Config modules.
+   * 
+ * + * .google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSource google_cloud_storage = 3; + * + */ + com.google.cloud.deploy.v1.SkaffoldModules.SkaffoldGCSSourceOrBuilder + getGoogleCloudStorageOrBuilder(); + + com.google.cloud.deploy.v1.SkaffoldModules.SourceCase getSourceCase(); +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldSupportState.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldSupportState.java index c560a80b92c4..0d60f220079b 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldSupportState.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldSupportState.java @@ -42,7 +42,7 @@ public enum SkaffoldSupportState implements com.google.protobuf.ProtocolMessageE * * *
-   * This skaffold version is currently supported.
+   * This Skaffold version is currently supported.
    * 
* * SKAFFOLD_SUPPORT_STATE_SUPPORTED = 1; @@ -52,7 +52,7 @@ public enum SkaffoldSupportState implements com.google.protobuf.ProtocolMessageE * * *
-   * This skaffold version is in maintenance mode.
+   * This Skaffold version is in maintenance mode.
    * 
* * SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE = 2; @@ -62,7 +62,7 @@ public enum SkaffoldSupportState implements com.google.protobuf.ProtocolMessageE * * *
-   * This skaffold version is no longer supported.
+   * This Skaffold version is no longer supported.
    * 
* * SKAFFOLD_SUPPORT_STATE_UNSUPPORTED = 3; @@ -85,7 +85,7 @@ public enum SkaffoldSupportState implements com.google.protobuf.ProtocolMessageE * * *
-   * This skaffold version is currently supported.
+   * This Skaffold version is currently supported.
    * 
* * SKAFFOLD_SUPPORT_STATE_SUPPORTED = 1; @@ -95,7 +95,7 @@ public enum SkaffoldSupportState implements com.google.protobuf.ProtocolMessageE * * *
-   * This skaffold version is in maintenance mode.
+   * This Skaffold version is in maintenance mode.
    * 
* * SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE = 2; @@ -105,7 +105,7 @@ public enum SkaffoldSupportState implements com.google.protobuf.ProtocolMessageE * * *
-   * This skaffold version is no longer supported.
+   * This Skaffold version is no longer supported.
    * 
* * SKAFFOLD_SUPPORT_STATE_UNSUPPORTED = 3; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldVersion.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldVersion.java index 5f2416dc6db8..c5750afaea0c 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldVersion.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldVersion.java @@ -119,7 +119,7 @@ public com.google.protobuf.ByteString getVersionBytes() { * * *
-   * The time at which this version of skaffold will enter maintenance mode.
+   * The time at which this version of Skaffold will enter maintenance mode.
    * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; @@ -134,7 +134,7 @@ public boolean hasMaintenanceModeTime() { * * *
-   * The time at which this version of skaffold will enter maintenance mode.
+   * The time at which this version of Skaffold will enter maintenance mode.
    * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; @@ -151,7 +151,7 @@ public com.google.protobuf.Timestamp getMaintenanceModeTime() { * * *
-   * The time at which this version of skaffold will enter maintenance mode.
+   * The time at which this version of Skaffold will enter maintenance mode.
    * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; @@ -169,7 +169,7 @@ public com.google.protobuf.TimestampOrBuilder getMaintenanceModeTimeOrBuilder() * * *
-   * The time at which this version of skaffold will no longer be supported.
+   * The time at which this version of Skaffold will no longer be supported.
    * 
* * .google.protobuf.Timestamp support_expiration_time = 4; @@ -184,7 +184,7 @@ public boolean hasSupportExpirationTime() { * * *
-   * The time at which this version of skaffold will no longer be supported.
+   * The time at which this version of Skaffold will no longer be supported.
    * 
* * .google.protobuf.Timestamp support_expiration_time = 4; @@ -201,7 +201,7 @@ public com.google.protobuf.Timestamp getSupportExpirationTime() { * * *
-   * The time at which this version of skaffold will no longer be supported.
+   * The time at which this version of Skaffold will no longer be supported.
    * 
* * .google.protobuf.Timestamp support_expiration_time = 4; @@ -819,7 +819,7 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { * * *
-     * The time at which this version of skaffold will enter maintenance mode.
+     * The time at which this version of Skaffold will enter maintenance mode.
      * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; @@ -833,7 +833,7 @@ public boolean hasMaintenanceModeTime() { * * *
-     * The time at which this version of skaffold will enter maintenance mode.
+     * The time at which this version of Skaffold will enter maintenance mode.
      * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; @@ -853,7 +853,7 @@ public com.google.protobuf.Timestamp getMaintenanceModeTime() { * * *
-     * The time at which this version of skaffold will enter maintenance mode.
+     * The time at which this version of Skaffold will enter maintenance mode.
      * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; @@ -875,7 +875,7 @@ public Builder setMaintenanceModeTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which this version of skaffold will enter maintenance mode.
+     * The time at which this version of Skaffold will enter maintenance mode.
      * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; @@ -894,7 +894,7 @@ public Builder setMaintenanceModeTime(com.google.protobuf.Timestamp.Builder buil * * *
-     * The time at which this version of skaffold will enter maintenance mode.
+     * The time at which this version of Skaffold will enter maintenance mode.
      * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; @@ -919,7 +919,7 @@ public Builder mergeMaintenanceModeTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which this version of skaffold will enter maintenance mode.
+     * The time at which this version of Skaffold will enter maintenance mode.
      * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; @@ -938,7 +938,7 @@ public Builder clearMaintenanceModeTime() { * * *
-     * The time at which this version of skaffold will enter maintenance mode.
+     * The time at which this version of Skaffold will enter maintenance mode.
      * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; @@ -952,7 +952,7 @@ public com.google.protobuf.Timestamp.Builder getMaintenanceModeTimeBuilder() { * * *
-     * The time at which this version of skaffold will enter maintenance mode.
+     * The time at which this version of Skaffold will enter maintenance mode.
      * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; @@ -970,7 +970,7 @@ public com.google.protobuf.TimestampOrBuilder getMaintenanceModeTimeOrBuilder() * * *
-     * The time at which this version of skaffold will enter maintenance mode.
+     * The time at which this version of Skaffold will enter maintenance mode.
      * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; @@ -1002,7 +1002,7 @@ public com.google.protobuf.TimestampOrBuilder getMaintenanceModeTimeOrBuilder() * * *
-     * The time at which this version of skaffold will no longer be supported.
+     * The time at which this version of Skaffold will no longer be supported.
      * 
* * .google.protobuf.Timestamp support_expiration_time = 4; @@ -1016,7 +1016,7 @@ public boolean hasSupportExpirationTime() { * * *
-     * The time at which this version of skaffold will no longer be supported.
+     * The time at which this version of Skaffold will no longer be supported.
      * 
* * .google.protobuf.Timestamp support_expiration_time = 4; @@ -1036,7 +1036,7 @@ public com.google.protobuf.Timestamp getSupportExpirationTime() { * * *
-     * The time at which this version of skaffold will no longer be supported.
+     * The time at which this version of Skaffold will no longer be supported.
      * 
* * .google.protobuf.Timestamp support_expiration_time = 4; @@ -1058,7 +1058,7 @@ public Builder setSupportExpirationTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which this version of skaffold will no longer be supported.
+     * The time at which this version of Skaffold will no longer be supported.
      * 
* * .google.protobuf.Timestamp support_expiration_time = 4; @@ -1077,7 +1077,7 @@ public Builder setSupportExpirationTime(com.google.protobuf.Timestamp.Builder bu * * *
-     * The time at which this version of skaffold will no longer be supported.
+     * The time at which this version of Skaffold will no longer be supported.
      * 
* * .google.protobuf.Timestamp support_expiration_time = 4; @@ -1102,7 +1102,7 @@ public Builder mergeSupportExpirationTime(com.google.protobuf.Timestamp value) { * * *
-     * The time at which this version of skaffold will no longer be supported.
+     * The time at which this version of Skaffold will no longer be supported.
      * 
* * .google.protobuf.Timestamp support_expiration_time = 4; @@ -1121,7 +1121,7 @@ public Builder clearSupportExpirationTime() { * * *
-     * The time at which this version of skaffold will no longer be supported.
+     * The time at which this version of Skaffold will no longer be supported.
      * 
* * .google.protobuf.Timestamp support_expiration_time = 4; @@ -1135,7 +1135,7 @@ public com.google.protobuf.Timestamp.Builder getSupportExpirationTimeBuilder() { * * *
-     * The time at which this version of skaffold will no longer be supported.
+     * The time at which this version of Skaffold will no longer be supported.
      * 
* * .google.protobuf.Timestamp support_expiration_time = 4; @@ -1153,7 +1153,7 @@ public com.google.protobuf.TimestampOrBuilder getSupportExpirationTimeOrBuilder( * * *
-     * The time at which this version of skaffold will no longer be supported.
+     * The time at which this version of Skaffold will no longer be supported.
      * 
* * .google.protobuf.Timestamp support_expiration_time = 4; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldVersionOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldVersionOrBuilder.java index c34d6b4f04fe..a3df63e95560 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldVersionOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldVersionOrBuilder.java @@ -52,7 +52,7 @@ public interface SkaffoldVersionOrBuilder * * *
-   * The time at which this version of skaffold will enter maintenance mode.
+   * The time at which this version of Skaffold will enter maintenance mode.
    * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; @@ -64,7 +64,7 @@ public interface SkaffoldVersionOrBuilder * * *
-   * The time at which this version of skaffold will enter maintenance mode.
+   * The time at which this version of Skaffold will enter maintenance mode.
    * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; @@ -76,7 +76,7 @@ public interface SkaffoldVersionOrBuilder * * *
-   * The time at which this version of skaffold will enter maintenance mode.
+   * The time at which this version of Skaffold will enter maintenance mode.
    * 
* * .google.protobuf.Timestamp maintenance_mode_time = 3; @@ -87,7 +87,7 @@ public interface SkaffoldVersionOrBuilder * * *
-   * The time at which this version of skaffold will no longer be supported.
+   * The time at which this version of Skaffold will no longer be supported.
    * 
* * .google.protobuf.Timestamp support_expiration_time = 4; @@ -99,7 +99,7 @@ public interface SkaffoldVersionOrBuilder * * *
-   * The time at which this version of skaffold will no longer be supported.
+   * The time at which this version of Skaffold will no longer be supported.
    * 
* * .google.protobuf.Timestamp support_expiration_time = 4; @@ -111,7 +111,7 @@ public interface SkaffoldVersionOrBuilder * * *
-   * The time at which this version of skaffold will no longer be supported.
+   * The time at which this version of Skaffold will no longer be supported.
    * 
* * .google.protobuf.Timestamp support_expiration_time = 4; diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Target.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Target.java index 3d761dbfa5d7..732b8dcc0d0a 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Target.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Target.java @@ -98,6 +98,7 @@ public enum DeploymentTargetCase ANTHOS_CLUSTER(17), RUN(18), MULTI_TARGET(19), + CUSTOM_TARGET(21), DEPLOYMENTTARGET_NOT_SET(0); private final int value; @@ -124,6 +125,8 @@ public static DeploymentTargetCase forNumber(int value) { return RUN; case 19: return MULTI_TARGET; + case 21: + return CUSTOM_TARGET; case 0: return DEPLOYMENTTARGET_NOT_SET; default: @@ -948,6 +951,63 @@ public com.google.cloud.deploy.v1.MultiTargetOrBuilder getMultiTargetOrBuilder() return com.google.cloud.deploy.v1.MultiTarget.getDefaultInstance(); } + public static final int CUSTOM_TARGET_FIELD_NUMBER = 21; + /** + * + * + *
+   * Optional. Information specifying a Custom Target.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customTarget field is set. + */ + @java.lang.Override + public boolean hasCustomTarget() { + return deploymentTargetCase_ == 21; + } + /** + * + * + *
+   * Optional. Information specifying a Custom Target.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customTarget. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTarget getCustomTarget() { + if (deploymentTargetCase_ == 21) { + return (com.google.cloud.deploy.v1.CustomTarget) deploymentTarget_; + } + return com.google.cloud.deploy.v1.CustomTarget.getDefaultInstance(); + } + /** + * + * + *
+   * Optional. Information specifying a Custom Target.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetOrBuilder getCustomTargetOrBuilder() { + if (deploymentTargetCase_ == 21) { + return (com.google.cloud.deploy.v1.CustomTarget) deploymentTarget_; + } + return com.google.cloud.deploy.v1.CustomTarget.getDefaultInstance(); + } + public static final int ETAG_FIELD_NUMBER = 12; @SuppressWarnings("serial") @@ -1276,6 +1336,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetDeployParameters(), DeployParametersDefaultEntryHolder.defaultEntry, 20); + if (deploymentTargetCase_ == 21) { + output.writeMessage(21, (com.google.cloud.deploy.v1.CustomTarget) deploymentTarget_); + } getUnknownFields().writeTo(output); } @@ -1363,6 +1426,11 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, deployParameters__); } + if (deploymentTargetCase_ == 21) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, (com.google.cloud.deploy.v1.CustomTarget) deploymentTarget_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1410,6 +1478,9 @@ public boolean equals(final java.lang.Object obj) { case 19: if (!getMultiTarget().equals(other.getMultiTarget())) return false; break; + case 21: + if (!getCustomTarget().equals(other.getCustomTarget())) return false; + break; case 0: default: } @@ -1477,6 +1548,10 @@ public int hashCode() { hash = (37 * hash) + MULTI_TARGET_FIELD_NUMBER; hash = (53 * hash) + getMultiTarget().hashCode(); break; + case 21: + hash = (37 * hash) + CUSTOM_TARGET_FIELD_NUMBER; + hash = (53 * hash) + getCustomTarget().hashCode(); + break; case 0: default: } @@ -1678,6 +1753,9 @@ public Builder clear() { if (multiTargetBuilder_ != null) { multiTargetBuilder_.clear(); } + if (customTargetBuilder_ != null) { + customTargetBuilder_.clear(); + } etag_ = ""; if (executionConfigsBuilder_ == null) { executionConfigs_ = java.util.Collections.emptyList(); @@ -1685,7 +1763,7 @@ public Builder clear() { executionConfigs_ = null; executionConfigsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); internalGetMutableDeployParameters().clear(); deploymentTargetCase_ = 0; deploymentTarget_ = null; @@ -1726,9 +1804,9 @@ public com.google.cloud.deploy.v1.Target buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.deploy.v1.Target result) { if (executionConfigsBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { executionConfigs_ = java.util.Collections.unmodifiableList(executionConfigs_); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } result.executionConfigs_ = executionConfigs_; } else { @@ -1767,10 +1845,10 @@ private void buildPartial0(com.google.cloud.deploy.v1.Target result) { if (((from_bitField0_ & 0x00000100) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.etag_ = etag_; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.deployParameters_ = internalGetDeployParameters(); result.deployParameters_.makeImmutable(); } @@ -1791,6 +1869,9 @@ private void buildPartialOneofs(com.google.cloud.deploy.v1.Target result) { if (deploymentTargetCase_ == 19 && multiTargetBuilder_ != null) { result.deploymentTarget_ = multiTargetBuilder_.build(); } + if (deploymentTargetCase_ == 21 && customTargetBuilder_ != null) { + result.deploymentTarget_ = customTargetBuilder_.build(); + } } @java.lang.Override @@ -1873,14 +1954,14 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.Target other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } if (executionConfigsBuilder_ == null) { if (!other.executionConfigs_.isEmpty()) { if (executionConfigs_.isEmpty()) { executionConfigs_ = other.executionConfigs_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } else { ensureExecutionConfigsIsMutable(); executionConfigs_.addAll(other.executionConfigs_); @@ -1893,7 +1974,7 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.Target other) { executionConfigsBuilder_.dispose(); executionConfigsBuilder_ = null; executionConfigs_ = other.executionConfigs_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); executionConfigsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExecutionConfigsFieldBuilder() @@ -1904,7 +1985,7 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.Target other) { } } internalGetMutableDeployParameters().mergeFrom(other.internalGetDeployParameters()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; switch (other.getDeploymentTargetCase()) { case GKE: { @@ -1926,6 +2007,11 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.Target other) { mergeMultiTarget(other.getMultiTarget()); break; } + case CUSTOM_TARGET: + { + mergeCustomTarget(other.getCustomTarget()); + break; + } case DEPLOYMENTTARGET_NOT_SET: { break; @@ -2020,7 +2106,7 @@ public Builder mergeFrom( case 98: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 98 case 104: @@ -2076,9 +2162,15 @@ public Builder mergeFrom( internalGetMutableDeployParameters() .getMutableMap() .put(deployParameters__.getKey(), deployParameters__.getValue()); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 162 + case 170: + { + input.readMessage(getCustomTargetFieldBuilder().getBuilder(), extensionRegistry); + deploymentTargetCase_ = 21; + break; + } // case 170 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4320,6 +4412,233 @@ public com.google.cloud.deploy.v1.MultiTargetOrBuilder getMultiTargetOrBuilder() return multiTargetBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTarget, + com.google.cloud.deploy.v1.CustomTarget.Builder, + com.google.cloud.deploy.v1.CustomTargetOrBuilder> + customTargetBuilder_; + /** + * + * + *
+     * Optional. Information specifying a Custom Target.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customTarget field is set. + */ + @java.lang.Override + public boolean hasCustomTarget() { + return deploymentTargetCase_ == 21; + } + /** + * + * + *
+     * Optional. Information specifying a Custom Target.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customTarget. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTarget getCustomTarget() { + if (customTargetBuilder_ == null) { + if (deploymentTargetCase_ == 21) { + return (com.google.cloud.deploy.v1.CustomTarget) deploymentTarget_; + } + return com.google.cloud.deploy.v1.CustomTarget.getDefaultInstance(); + } else { + if (deploymentTargetCase_ == 21) { + return customTargetBuilder_.getMessage(); + } + return com.google.cloud.deploy.v1.CustomTarget.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Information specifying a Custom Target.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomTarget(com.google.cloud.deploy.v1.CustomTarget value) { + if (customTargetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deploymentTarget_ = value; + onChanged(); + } else { + customTargetBuilder_.setMessage(value); + } + deploymentTargetCase_ = 21; + return this; + } + /** + * + * + *
+     * Optional. Information specifying a Custom Target.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomTarget( + com.google.cloud.deploy.v1.CustomTarget.Builder builderForValue) { + if (customTargetBuilder_ == null) { + deploymentTarget_ = builderForValue.build(); + onChanged(); + } else { + customTargetBuilder_.setMessage(builderForValue.build()); + } + deploymentTargetCase_ = 21; + return this; + } + /** + * + * + *
+     * Optional. Information specifying a Custom Target.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCustomTarget(com.google.cloud.deploy.v1.CustomTarget value) { + if (customTargetBuilder_ == null) { + if (deploymentTargetCase_ == 21 + && deploymentTarget_ != com.google.cloud.deploy.v1.CustomTarget.getDefaultInstance()) { + deploymentTarget_ = + com.google.cloud.deploy.v1.CustomTarget.newBuilder( + (com.google.cloud.deploy.v1.CustomTarget) deploymentTarget_) + .mergeFrom(value) + .buildPartial(); + } else { + deploymentTarget_ = value; + } + onChanged(); + } else { + if (deploymentTargetCase_ == 21) { + customTargetBuilder_.mergeFrom(value); + } else { + customTargetBuilder_.setMessage(value); + } + } + deploymentTargetCase_ = 21; + return this; + } + /** + * + * + *
+     * Optional. Information specifying a Custom Target.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomTarget() { + if (customTargetBuilder_ == null) { + if (deploymentTargetCase_ == 21) { + deploymentTargetCase_ = 0; + deploymentTarget_ = null; + onChanged(); + } + } else { + if (deploymentTargetCase_ == 21) { + deploymentTargetCase_ = 0; + deploymentTarget_ = null; + } + customTargetBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Optional. Information specifying a Custom Target.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.deploy.v1.CustomTarget.Builder getCustomTargetBuilder() { + return getCustomTargetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Information specifying a Custom Target.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetOrBuilder getCustomTargetOrBuilder() { + if ((deploymentTargetCase_ == 21) && (customTargetBuilder_ != null)) { + return customTargetBuilder_.getMessageOrBuilder(); + } else { + if (deploymentTargetCase_ == 21) { + return (com.google.cloud.deploy.v1.CustomTarget) deploymentTarget_; + } + return com.google.cloud.deploy.v1.CustomTarget.getDefaultInstance(); + } + } + /** + * + * + *
+     * Optional. Information specifying a Custom Target.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTarget, + com.google.cloud.deploy.v1.CustomTarget.Builder, + com.google.cloud.deploy.v1.CustomTargetOrBuilder> + getCustomTargetFieldBuilder() { + if (customTargetBuilder_ == null) { + if (!(deploymentTargetCase_ == 21)) { + deploymentTarget_ = com.google.cloud.deploy.v1.CustomTarget.getDefaultInstance(); + } + customTargetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTarget, + com.google.cloud.deploy.v1.CustomTarget.Builder, + com.google.cloud.deploy.v1.CustomTargetOrBuilder>( + (com.google.cloud.deploy.v1.CustomTarget) deploymentTarget_, + getParentForChildren(), + isClean()); + deploymentTarget_ = null; + } + deploymentTargetCase_ = 21; + onChanged(); + return customTargetBuilder_; + } + private java.lang.Object etag_ = ""; /** * @@ -4388,7 +4707,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4407,7 +4726,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -4431,7 +4750,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4440,10 +4759,10 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureExecutionConfigsIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { + if (!((bitField0_ & 0x00008000) != 0)) { executionConfigs_ = new java.util.ArrayList(executionConfigs_); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; } } @@ -4727,7 +5046,7 @@ public Builder addAllExecutionConfigs( public Builder clearExecutionConfigs() { if (executionConfigsBuilder_ == null) { executionConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); } else { executionConfigsBuilder_.clear(); @@ -4895,7 +5214,7 @@ public com.google.cloud.deploy.v1.ExecutionConfig.Builder addExecutionConfigsBui com.google.cloud.deploy.v1.ExecutionConfig.Builder, com.google.cloud.deploy.v1.ExecutionConfigOrBuilder>( executionConfigs_, - ((bitField0_ & 0x00004000) != 0), + ((bitField0_ & 0x00008000) != 0), getParentForChildren(), isClean()); executionConfigs_ = null; @@ -4924,7 +5243,7 @@ public com.google.cloud.deploy.v1.ExecutionConfig.Builder addExecutionConfigsBui if (!deployParameters_.isMutable()) { deployParameters_ = deployParameters_.copy(); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return deployParameters_; } @@ -5019,7 +5338,7 @@ public java.lang.String getDeployParametersOrThrow(java.lang.String key) { } public Builder clearDeployParameters() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); internalGetMutableDeployParameters().getMutableMap().clear(); return this; } @@ -5044,7 +5363,7 @@ public Builder removeDeployParameters(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableDeployParameters() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return internalGetMutableDeployParameters().getMutableMap(); } /** @@ -5066,7 +5385,7 @@ public Builder putDeployParameters(java.lang.String key, java.lang.String value) throw new NullPointerException("map value"); } internalGetMutableDeployParameters().getMutableMap().put(key, value); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return this; } /** @@ -5083,7 +5402,7 @@ public Builder putDeployParameters(java.lang.String key, java.lang.String value) public Builder putAllDeployParameters( java.util.Map values) { internalGetMutableDeployParameters().getMutableMap().putAll(values); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; return this; } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetOrBuilder.java index 89ca1b8d003d..d35b0c2b4725 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetOrBuilder.java @@ -561,6 +561,47 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.deploy.v1.MultiTargetOrBuilder getMultiTargetOrBuilder(); + /** + * + * + *
+   * Optional. Information specifying a Custom Target.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customTarget field is set. + */ + boolean hasCustomTarget(); + /** + * + * + *
+   * Optional. Information specifying a Custom Target.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customTarget. + */ + com.google.cloud.deploy.v1.CustomTarget getCustomTarget(); + /** + * + * + *
+   * Optional. Information specifying a Custom Target.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTarget custom_target = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.deploy.v1.CustomTargetOrBuilder getCustomTargetOrBuilder(); + /** * * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetsPresentCondition.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetsPresentCondition.java index 03cfeeb7ad37..58fa18f589b1 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetsPresentCondition.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetsPresentCondition.java @@ -22,7 +22,7 @@ * * *
- * TargetsPresentCondition contains information on any Targets defined in
+ * `TargetsPresentCondition` contains information on any Targets referenced in
  * the Delivery Pipeline that do not actually exist.
  * 
* @@ -388,7 +388,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * TargetsPresentCondition contains information on any Targets defined in
+   * `TargetsPresentCondition` contains information on any Targets referenced in
    * the Delivery Pipeline that do not actually exist.
    * 
* diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateCustomTargetTypeRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateCustomTargetTypeRequest.java new file mode 100644 index 000000000000..c69510420421 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateCustomTargetTypeRequest.java @@ -0,0 +1,1515 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +/** + * + * + *
+ * The request object for `UpdateCustomTargetType`.
+ * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.UpdateCustomTargetTypeRequest} + */ +public final class UpdateCustomTargetTypeRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.UpdateCustomTargetTypeRequest) + UpdateCustomTargetTypeRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateCustomTargetTypeRequest.newBuilder() to construct. + private UpdateCustomTargetTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateCustomTargetTypeRequest() { + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateCustomTargetTypeRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_UpdateCustomTargetTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_UpdateCustomTargetTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest.class, + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest.Builder.class); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `CustomTargetType` resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `CustomTargetType` resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `CustomTargetType` resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int CUSTOM_TARGET_TYPE_FIELD_NUMBER = 2; + private com.google.cloud.deploy.v1.CustomTargetType customTargetType_; + /** + * + * + *
+   * Required. The `CustomTargetType` to update.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customTargetType field is set. + */ + @java.lang.Override + public boolean hasCustomTargetType() { + return customTargetType_ != null; + } + /** + * + * + *
+   * Required. The `CustomTargetType` to update.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customTargetType. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetType getCustomTargetType() { + return customTargetType_ == null + ? com.google.cloud.deploy.v1.CustomTargetType.getDefaultInstance() + : customTargetType_; + } + /** + * + * + *
+   * Required. The `CustomTargetType` to update.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder getCustomTargetTypeOrBuilder() { + return customTargetType_ == null + ? com.google.cloud.deploy.v1.CustomTargetType.getDefaultInstance() + : customTargetType_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_MISSING_FIELD_NUMBER = 4; + private boolean allowMissing_ = false; + /** + * + * + *
+   * Optional. If set to true, updating a `CustomTargetType` that does not exist
+   * will result in the creation of a new `CustomTargetType`.
+   * 
+ * + * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; + private boolean validateOnly_ = false; + /** + * + * + *
+   * Optional. If set to true, the request is validated and the user is provided
+   * with an expected result, but no actual change is made.
+   * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (customTargetType_ != null) { + output.writeMessage(2, getCustomTargetType()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + if (allowMissing_ != false) { + output.writeBool(4, allowMissing_); + } + if (validateOnly_ != false) { + output.writeBool(5, validateOnly_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (customTargetType_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomTargetType()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); + } + if (allowMissing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, allowMissing_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, validateOnly_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest)) { + return super.equals(obj); + } + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest other = + (com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasCustomTargetType() != other.hasCustomTargetType()) return false; + if (hasCustomTargetType()) { + if (!getCustomTargetType().equals(other.getCustomTargetType())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (getAllowMissing() != other.getAllowMissing()) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasCustomTargetType()) { + hash = (37 * hash) + CUSTOM_TARGET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargetType().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMissing()); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request object for `UpdateCustomTargetType`.
+   * 
+ * + * Protobuf type {@code google.cloud.deploy.v1.UpdateCustomTargetTypeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.UpdateCustomTargetTypeRequest) + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_UpdateCustomTargetTypeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_UpdateCustomTargetTypeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest.class, + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest.Builder.class); + } + + // Construct using com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + customTargetType_ = null; + if (customTargetTypeBuilder_ != null) { + customTargetTypeBuilder_.dispose(); + customTargetTypeBuilder_ = null; + } + requestId_ = ""; + allowMissing_ = false; + validateOnly_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_UpdateCustomTargetTypeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest getDefaultInstanceForType() { + return com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest build() { + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest buildPartial() { + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest result = + new com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customTargetType_ = + customTargetTypeBuilder_ == null ? customTargetType_ : customTargetTypeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.allowMissing_ = allowMissing_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.validateOnly_ = validateOnly_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest) { + return mergeFrom((com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest other) { + if (other == com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasCustomTargetType()) { + mergeCustomTargetType(other.getCustomTargetType()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getAllowMissing() != false) { + setAllowMissing(other.getAllowMissing()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getCustomTargetTypeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + allowMissing_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `CustomTargetType` resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `CustomTargetType` resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `CustomTargetType` resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `CustomTargetType` resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `CustomTargetType` resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `CustomTargetType` resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `CustomTargetType` resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `CustomTargetType` resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. Field mask is used to specify the fields to be overwritten in the
+     * `CustomTargetType` resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.deploy.v1.CustomTargetType customTargetType_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTargetType, + com.google.cloud.deploy.v1.CustomTargetType.Builder, + com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder> + customTargetTypeBuilder_; + /** + * + * + *
+     * Required. The `CustomTargetType` to update.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customTargetType field is set. + */ + public boolean hasCustomTargetType() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The `CustomTargetType` to update.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customTargetType. + */ + public com.google.cloud.deploy.v1.CustomTargetType getCustomTargetType() { + if (customTargetTypeBuilder_ == null) { + return customTargetType_ == null + ? com.google.cloud.deploy.v1.CustomTargetType.getDefaultInstance() + : customTargetType_; + } else { + return customTargetTypeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The `CustomTargetType` to update.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomTargetType(com.google.cloud.deploy.v1.CustomTargetType value) { + if (customTargetTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customTargetType_ = value; + } else { + customTargetTypeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `CustomTargetType` to update.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomTargetType( + com.google.cloud.deploy.v1.CustomTargetType.Builder builderForValue) { + if (customTargetTypeBuilder_ == null) { + customTargetType_ = builderForValue.build(); + } else { + customTargetTypeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `CustomTargetType` to update.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCustomTargetType(com.google.cloud.deploy.v1.CustomTargetType value) { + if (customTargetTypeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && customTargetType_ != null + && customTargetType_ + != com.google.cloud.deploy.v1.CustomTargetType.getDefaultInstance()) { + getCustomTargetTypeBuilder().mergeFrom(value); + } else { + customTargetType_ = value; + } + } else { + customTargetTypeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `CustomTargetType` to update.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCustomTargetType() { + bitField0_ = (bitField0_ & ~0x00000002); + customTargetType_ = null; + if (customTargetTypeBuilder_ != null) { + customTargetTypeBuilder_.dispose(); + customTargetTypeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The `CustomTargetType` to update.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.deploy.v1.CustomTargetType.Builder getCustomTargetTypeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCustomTargetTypeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The `CustomTargetType` to update.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder getCustomTargetTypeOrBuilder() { + if (customTargetTypeBuilder_ != null) { + return customTargetTypeBuilder_.getMessageOrBuilder(); + } else { + return customTargetType_ == null + ? com.google.cloud.deploy.v1.CustomTargetType.getDefaultInstance() + : customTargetType_; + } + } + /** + * + * + *
+     * Required. The `CustomTargetType` to update.
+     * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTargetType, + com.google.cloud.deploy.v1.CustomTargetType.Builder, + com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder> + getCustomTargetTypeFieldBuilder() { + if (customTargetTypeBuilder_ == null) { + customTargetTypeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CustomTargetType, + com.google.cloud.deploy.v1.CustomTargetType.Builder, + com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder>( + getCustomTargetType(), getParentForChildren(), isClean()); + customTargetType_ = null; + } + return customTargetTypeBuilder_; + } + + private java.lang.Object requestId_ = ""; + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean allowMissing_; + /** + * + * + *
+     * Optional. If set to true, updating a `CustomTargetType` that does not exist
+     * will result in the creation of a new `CustomTargetType`.
+     * 
+ * + * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowMissing. + */ + @java.lang.Override + public boolean getAllowMissing() { + return allowMissing_; + } + /** + * + * + *
+     * Optional. If set to true, updating a `CustomTargetType` that does not exist
+     * will result in the creation of a new `CustomTargetType`.
+     * 
+ * + * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowMissing to set. + * @return This builder for chaining. + */ + public Builder setAllowMissing(boolean value) { + + allowMissing_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to true, updating a `CustomTargetType` that does not exist
+     * will result in the creation of a new `CustomTargetType`.
+     * 
+ * + * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowMissing() { + bitField0_ = (bitField0_ & ~0x00000008); + allowMissing_ = false; + onChanged(); + return this; + } + + private boolean validateOnly_; + /** + * + * + *
+     * Optional. If set to true, the request is validated and the user is provided
+     * with an expected result, but no actual change is made.
+     * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + /** + * + * + *
+     * Optional. If set to true, the request is validated and the user is provided
+     * with an expected result, but no actual change is made.
+     * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to true, the request is validated and the user is provided
+     * with an expected result, but no actual change is made.
+     * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000010); + validateOnly_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.UpdateCustomTargetTypeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.UpdateCustomTargetTypeRequest) + private static final com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest(); + } + + public static com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomTargetTypeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateCustomTargetTypeRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateCustomTargetTypeRequestOrBuilder.java new file mode 100644 index 000000000000..27908e06c6a7 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateCustomTargetTypeRequestOrBuilder.java @@ -0,0 +1,193 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface UpdateCustomTargetTypeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.UpdateCustomTargetTypeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `CustomTargetType` resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `CustomTargetType` resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. Field mask is used to specify the fields to be overwritten in the
+   * `CustomTargetType` resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The `CustomTargetType` to update.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customTargetType field is set. + */ + boolean hasCustomTargetType(); + /** + * + * + *
+   * Required. The `CustomTargetType` to update.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customTargetType. + */ + com.google.cloud.deploy.v1.CustomTargetType getCustomTargetType(); + /** + * + * + *
+   * Required. The `CustomTargetType` to update.
+   * 
+ * + * + * .google.cloud.deploy.v1.CustomTargetType custom_target_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder getCustomTargetTypeOrBuilder(); + + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requestId. + */ + java.lang.String getRequestId(); + /** + * + * + *
+   * Optional. A request ID to identify requests. Specify a unique request ID
+   * so that if you must retry your request, the server will know to ignore
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
+   * Optional. If set to true, updating a `CustomTargetType` that does not exist
+   * will result in the creation of a new `CustomTargetType`.
+   * 
+ * + * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowMissing. + */ + boolean getAllowMissing(); + + /** + * + * + *
+   * Optional. If set to true, the request is validated and the user is provided
+   * with an expected result, but no actual change is made.
+   * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto b/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto index c6e5782a37c1..48d403670ab8 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto @@ -190,6 +190,66 @@ service CloudDeploy { }; } + // Lists CustomTargetTypes in a given project and location. + rpc ListCustomTargetTypes(ListCustomTargetTypesRequest) + returns (ListCustomTargetTypesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/customTargetTypes" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single CustomTargetType. + rpc GetCustomTargetType(GetCustomTargetTypeRequest) + returns (CustomTargetType) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/customTargetTypes/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new CustomTargetType in a given project and location. + rpc CreateCustomTargetType(CreateCustomTargetTypeRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/customTargetTypes" + body: "custom_target_type" + }; + option (google.api.method_signature) = + "parent,custom_target_type,custom_target_type_id"; + option (google.longrunning.operation_info) = { + response_type: "CustomTargetType" + metadata_type: "OperationMetadata" + }; + } + + // Updates a single CustomTargetType. + rpc UpdateCustomTargetType(UpdateCustomTargetTypeRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{custom_target_type.name=projects/*/locations/*/customTargetTypes/*}" + body: "custom_target_type" + }; + option (google.api.method_signature) = "custom_target_type,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "CustomTargetType" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single CustomTargetType. + rpc DeleteCustomTargetType(DeleteCustomTargetTypeRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/customTargetTypes/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + // Lists Releases in a given project and location. rpc ListReleases(ListReleasesRequest) returns (ListReleasesResponse) { option (google.api.http) = { @@ -707,6 +767,21 @@ message CloudRunConfig { // required to be true for CanaryDeployments, but optional for // CustomCanaryDeployments. bool automatic_traffic_control = 1; + + // Optional. A list of tags that are added to the canary revision while the + // canary deployment is in progress. + repeated string canary_revision_tags = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of tags that are added to the prior revision while the + // canary deployment is in progress. + repeated string prior_revision_tags = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of tags that are added to the final stable revision after + // the canary deployment is completed. + repeated string stable_revision_tags = 4 + [(google.api.field_behavior) = OPTIONAL]; } // RuntimeConfig contains the runtime specific configurations for a deployment @@ -735,7 +810,7 @@ message PipelineReadyCondition { google.protobuf.Timestamp update_time = 4; } -// TargetsPresentCondition contains information on any Targets defined in +// `TargetsPresentCondition` contains information on any Targets referenced in // the Delivery Pipeline that do not actually exist. message TargetsPresentCondition { // True if there aren't any missing Targets. @@ -1074,6 +1149,9 @@ message Target { // Optional. Information specifying a multiTarget. MultiTarget multi_target = 19 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Information specifying a Custom Target. + CustomTarget custom_target = 21 [(google.api.field_behavior) = OPTIONAL]; } // Optional. This checksum is computed by the server based on the value of @@ -1244,6 +1322,18 @@ message MultiTarget { repeated string target_ids = 1 [(google.api.field_behavior) = REQUIRED]; } +// Information specifying a Custom Target. +message CustomTarget { + // Required. The name of the CustomTargetType. Format must be + // `projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}`. + string custom_target_type = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "clouddeploy.googleapis.com/CustomTargetType" + } + ]; +} + // The request object for `ListTargets`. message ListTargetsRequest { // Required. The parent, which owns this collection of targets. Format must be @@ -1417,6 +1507,301 @@ message DeleteTargetRequest { string etag = 5 [(google.api.field_behavior) = OPTIONAL]; } +// A `CustomTargetType` resource in the Cloud Deploy API. +// +// A `CustomTargetType` defines a type of custom target that can be referenced +// in a `Target` in order to facilitate deploying to a runtime that does not +// have a 1P integration with Cloud Deploy. +message CustomTargetType { + option (google.api.resource) = { + type: "clouddeploy.googleapis.com/CustomTargetType" + pattern: "projects/{project}/locations/{location}/customTargetTypes/{custom_target_type}" + }; + + // Optional. Name of the `CustomTargetType`. Format is + // `projects/{project}/locations/{location}/customTargetTypes/[a-z][a-z0-9\-]{0,62}`. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Resource id of the `CustomTargetType`. + string custom_target_type_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Unique identifier of the `CustomTargetType`. + string uid = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Description of the `CustomTargetType`. Max length is 255 + // characters. + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. User annotations. These attributes can only be set and used by + // the user, and not by Cloud Deploy. See + // https://google.aip.dev/128#annotations for more details such as format and + // size limitations. + map annotations = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Labels are attributes that can be set and used by both the + // user and by Cloud Deploy. Labels must meet the following constraints: + // + // * Keys and values can contain only lowercase letters, numeric characters, + // underscores, and dashes. + // * All characters must use UTF-8 encoding, and international characters are + // allowed. + // * Keys must start with a lowercase letter or international character. + // * Each resource is limited to a maximum of 64 labels. + // + // Both keys and values are additionally constrained to be <= 128 bytes. + map labels = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Time at which the `CustomTargetType` was created. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Most recent time at which the `CustomTargetType` was updated. + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. This checksum is computed by the server based on the value of + // other fields, and may be sent on update and delete requests to ensure the + // client has an up-to-date value before proceeding. + string etag = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Defines the `CustomTargetType` renderer and deployer. + oneof definition { + // Configures render and deploy for the `CustomTargetType` using Skaffold + // custom actions. + CustomTargetSkaffoldActions custom_actions = 10; + } +} + +// CustomTargetSkaffoldActions represents the `CustomTargetType` configuration +// using Skaffold custom actions. +message CustomTargetSkaffoldActions { + // Optional. The Skaffold custom action responsible for render operations. If + // not provided then Cloud Deploy will perform the render operations via + // `skaffold render`. + string render_action = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The Skaffold custom action responsible for deploy operations. + string deploy_action = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. List of Skaffold modules Cloud Deploy will include in the + // Skaffold Config as required before performing diagnose. + repeated SkaffoldModules include_skaffold_modules = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Skaffold Config modules and their remote source. +message SkaffoldModules { + // Git repository containing Skaffold Config modules. + message SkaffoldGitSource { + // Required. Git repository the package should be cloned from. + string repo = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Relative path from the repository root to the Skaffold file. + string path = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Git ref the package should be cloned from. + string ref = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Cloud Storage bucket containing Skaffold Config modules. + message SkaffoldGCSSource { + // Required. Cloud Storage source paths to copy recursively. For example, + // providing "gs://my-bucket/dir/configs/*" will result in Skaffold copying + // all files within the "dir/configs" directory in the bucket "my-bucket". + string source = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Relative path from the source to the Skaffold file. + string path = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The Skaffold Config modules to use from the specified source. + repeated string configs = 1 [(google.api.field_behavior) = OPTIONAL]; + + // The source that contains the Skaffold Config modules. + oneof source { + // Remote git repository containing the Skaffold Config modules. + SkaffoldGitSource git = 2; + + // Cloud Storage bucket containing the Skaffold Config modules. + SkaffoldGCSSource google_cloud_storage = 3; + } +} + +// The request object for `ListCustomTargetTypes`. +message ListCustomTargetTypesRequest { + // Required. The parent that owns this collection of custom target types. + // Format must be `projects/{project_id}/locations/{location_name}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "clouddeploy.googleapis.com/CustomTargetType" + } + ]; + + // Optional. The maximum number of `CustomTargetType` objects to return. The + // service may return fewer than this value. If unspecified, at most 50 + // `CustomTargetType` objects will be returned. The maximum value is 1000; + // values above 1000 will be set to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListCustomTargetTypes` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other provided parameters match + // the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter custom target types to be returned. See + // https://google.aip.dev/160 for more details. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to sort by. See https://google.aip.dev/132#ordering for + // more details. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response object from `ListCustomTargetTypes.` +message ListCustomTargetTypesResponse { + // The `CustomTargetType` objects. + repeated CustomTargetType custom_target_types = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// The request object for `GetCustomTargetType`. +message GetCustomTargetTypeRequest { + // Required. Name of the `CustomTargetType`. Format must be + // `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "clouddeploy.googleapis.com/CustomTargetType" + } + ]; +} + +// The request object for `CreateCustomTargetType`. +message CreateCustomTargetTypeRequest { + // Required. The parent collection in which the `CustomTargetType` should be + // created in. Format should be + // `projects/{project_id}/locations/{location_name}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "clouddeploy.googleapis.com/CustomTargetType" + } + ]; + + // Required. ID of the `CustomTargetType`. + string custom_target_type_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The `CustomTargetType` to create. + CustomTargetType custom_target_type = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, the request is validated and the user is provided + // with an expected result, but no actual change is made. + bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request object for `UpdateCustomTargetType`. +message UpdateCustomTargetTypeRequest { + // Required. Field mask is used to specify the fields to be overwritten in the + // `CustomTargetType` resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The `CustomTargetType` to update. + CustomTargetType custom_target_type = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, updating a `CustomTargetType` that does not exist + // will result in the creation of a new `CustomTargetType`. + bool allow_missing = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, the request is validated and the user is provided + // with an expected result, but no actual change is made. + bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// The request object for `DeleteCustomTargetType`. +message DeleteCustomTargetTypeRequest { + // Required. The name of the `CustomTargetType` to delete. Format must be + // `projects/{project_id}/locations/{location_name}/customTargetTypes/{custom_target_type}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "clouddeploy.googleapis.com/CustomTargetType" + } + ]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, then deleting an already deleted or non-existing + // `CustomTargetType` will succeed. + bool allow_missing = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, the request is validated but no actual change is + // made. + bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This checksum is computed by the server based on the value of + // other fields, and may be sent on update and delete requests to ensure the + // client has an up-to-date value before proceeding. + string etag = 5 [(google.api.field_behavior) = OPTIONAL]; +} + // Contains criteria for selecting Targets. Attributes provided must match the // target resource in order for policy restrictions to apply. E.g. if id "prod" // and labels "foo: bar" are given the target resource must match both that id @@ -1494,14 +1879,21 @@ message Release { CLOUD_BUILD_REQUEST_FAILED = 3; // The render operation did not complete successfully because the - // verification stanza required for verify was not found on the skaffold + // verification stanza required for verify was not found on the Skaffold // configuration. VERIFICATION_CONFIG_NOT_FOUND = 4; // The render operation did not complete successfully because the custom // action required for predeploy or postdeploy was not found in the - // skaffold configuration. See failure_message for additional details. + // Skaffold configuration. See failure_message for additional details. CUSTOM_ACTION_NOT_FOUND = 5; + + // Release failed during rendering because the release configuration is + // not supported with the specified deployment strategy. + DEPLOYMENT_STRATEGY_NOT_SUPPORTED = 6; + + // The render operation had a feature configured that is not supported. + RENDER_FEATURE_NOT_SUPPORTED = 7; } // Output only. The resource name of the Cloud Build `Build` object that is @@ -1542,19 +1934,19 @@ message Release { } // SkaffoldSupportedCondition contains information about when support for the - // release's version of skaffold ends. + // release's version of Skaffold ends. message SkaffoldSupportedCondition { - // True if the version of skaffold used by this release is supported. + // True if the version of Skaffold used by this release is supported. bool status = 1; - // The skaffold support state for this release's version of skaffold. + // The Skaffold support state for this release's version of Skaffold. SkaffoldSupportState skaffold_support_state = 2; - // The time at which this release's version of skaffold will enter + // The time at which this release's version of Skaffold will enter // maintenance mode. google.protobuf.Timestamp maintenance_mode_time = 3; - // The time at which this release's version of skaffold will no longer be + // The time at which this release's version of Skaffold will no longer be // supported. google.protobuf.Timestamp support_expiration_time = 4; } @@ -1564,7 +1956,7 @@ message Release { // Details around the Releases's overall status. ReleaseReadyCondition release_ready_condition = 1; - // Details around the support state of the release's skaffold + // Details around the support state of the release's Skaffold // version. SkaffoldSupportedCondition skaffold_supported_condition = 2; } @@ -1630,6 +2022,11 @@ message Release { repeated Target target_snapshots = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Snapshot of the custom target types referenced by the targets + // taken at release creation time. + repeated CustomTargetType custom_target_type_snapshots = 27 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Current state of the render operation. RenderState render_state = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -1737,6 +2134,9 @@ message RenderMetadata { // Output only. Metadata associated with rendering for Cloud Run. CloudRunRenderMetadata cloud_run = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Custom metadata provided by user defined render operation. + CustomMetadata custom = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The request object for `ListReleases`. @@ -1922,12 +2322,15 @@ message Rollout { // Release is abandoned. RELEASE_ABANDONED = 5; - // No skaffold verify configuration was found. + // No Skaffold verify configuration was found. VERIFICATION_CONFIG_NOT_FOUND = 6; // Cloud Build failed to fulfill Cloud Deploy's request. See failure_message // for additional details. CLOUD_BUILD_REQUEST_FAILED = 7; + + // A Rollout operation had a feature configured that is not supported. + OPERATION_FEATURE_NOT_SUPPORTED = 8; } // Optional. Name of the `Rollout`. Format is @@ -2041,6 +2444,9 @@ message Metadata { // interactions between Automation service and this rollout. AutomationRolloutMetadata automation = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Custom metadata provided by user defined `Rollout` operations. + CustomMetadata custom = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } // DeployJobRunMetadata surfaces information associated with a `DeployJobRun` to @@ -2049,6 +2455,13 @@ message DeployJobRunMetadata { // Output only. The name of the Cloud Run Service that is associated with a // `DeployJobRun`. CloudRunMetadata cloud_run = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Custom Target metadata associated with a `DeployJobRun`. + CustomTargetDeployMetadata custom_target = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Custom metadata provided by user defined deploy operation. + CustomMetadata custom = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } // CloudRunMetadata contains information from a Cloud Run deployment. @@ -2077,6 +2490,14 @@ message CloudRunMetadata { ]; } +// CustomTargetDeployMetadata contains information from a Custom Target +// deploy operation. +message CustomTargetDeployMetadata { + // Output only. Skip message provided in the results of a custom deploy + // operation. + string skip_message = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // AutomationRolloutMetadata contains Automation-related actions that // were performed on a rollout. message AutomationRolloutMetadata { @@ -2095,6 +2516,12 @@ message AutomationRolloutMetadata { [(google.api.field_behavior) = OUTPUT_ONLY]; } +// CustomMetadata contains information from a user defined operation. +message CustomMetadata { + // Output only. Key-value pairs provided by the user defined operation. + map values = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Phase represents a collection of jobs that are logically grouped together // for a `Rollout`. message Phase { @@ -2623,6 +3050,9 @@ message DeployJobRun { // Cloud Build failed to fulfill Cloud Deploy's request. See failure_message // for additional details. CLOUD_BUILD_REQUEST_FAILED = 5; + + // The deploy operation had a feature configured that is not supported. + DEPLOY_FEATURE_NOT_SUPPORTED = 6; } // Output only. The resource name of the Cloud Build `Build` object that is @@ -2905,10 +3335,10 @@ message SkaffoldVersion { // Release version number. For example, "1.20.3". string version = 1; - // The time at which this version of skaffold will enter maintenance mode. + // The time at which this version of Skaffold will enter maintenance mode. google.protobuf.Timestamp maintenance_mode_time = 3; - // The time at which this version of skaffold will no longer be supported. + // The time at which this version of Skaffold will no longer be supported. google.protobuf.Timestamp support_expiration_time = 4; // Date when this version is expected to no longer be supported. @@ -2929,7 +3359,7 @@ message GetConfigRequest { // An `Automation` resource in the Cloud Deploy API. // // An `Automation` enables the automation of manually driven actions for -// a Delivery Pipeline, which includes Release promotion amongst Targets, +// a Delivery Pipeline, which includes Release promotion among Targets, // Rollout repair and Rollout deployment strategy advancement. The intention // of Automation is to reduce manual intervention in the continuous delivery // process. @@ -3056,6 +3486,7 @@ message PromoteReleaseRule { // Optional. The ID of the stage in the pipeline to which this `Release` is // deploying. If unspecified, default it to the next stage in the promotion // flow. The value of this field could be one of the following: + // // * The last segment of a target name. It only needs the ID to determine // if the target is one of the stages in the promotion sequence defined // in the pipeline. @@ -3139,7 +3570,7 @@ message RepairMode { // Retries the failed job. message Retry { - // Required. Total number of retries. Retry will skipped if set to 0; The + // Required. Total number of retries. Retry is skipped if set to 0; The // minimum value is 1, and the maximum value is 10. int64 attempts = 1 [(google.api.field_behavior) = REQUIRED]; @@ -3285,8 +3716,8 @@ message DeleteAutomationRequest { // The request object for `ListAutomations`. message ListAutomationsRequest { - // Required. The parent, which owns this collection of automations. Format - // must be + // Required. The parent `Delivery Pipeline`, which owns this collection of + // automations. Format must be // `projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -3318,7 +3749,7 @@ message ListAutomationsRequest { // The response object from `ListAutomations`. message ListAutomationsResponse { - // The `Automations` objects. + // The `Automation` objects. repeated Automation automations = 1; // A token, which can be sent as `page_token` to retrieve the next page. @@ -3343,7 +3774,7 @@ message GetAutomationRequest { // An `AutomationRun` resource in the Cloud Deploy API. // -// An `AutomationRun` represents an automation execution instance of an +// An `AutomationRun` represents an execution instance of an // automation rule. message AutomationRun { option (google.api.resource) = { @@ -3408,11 +3839,11 @@ message AutomationRun { State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Explains the current state of the `AutomationRun`. Present - // only an explanation is needed. + // only when an explanation is needed. string state_description = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Time the `AutomationRun` will expire. An `AutomationRun` will - // expire after 14 days from its creation date. + // Output only. Time the `AutomationRun` expires. An `AutomationRun` expires + // after 14 days from its creation date. google.protobuf.Timestamp expire_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -3471,7 +3902,7 @@ message AdvanceRolloutOperation { // Output only. The name of the rollout that initiates the `AutomationRun`. string rollout = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The phase to which the rollout will be advanced to. + // Output only. The phase the rollout will be advanced to. string destination_phase = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -3555,8 +3986,8 @@ message RollbackAttempt { // The request object for `ListAutomationRuns`. message ListAutomationRunsRequest { - // Required. The parent, which owns this collection of automationRuns. Format - // must be + // Required. The parent `Delivery Pipeline`, which owns this collection of + // automationRuns. Format must be // `projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -3631,13 +4062,13 @@ enum SkaffoldSupportState { // Default value. This value is unused. SKAFFOLD_SUPPORT_STATE_UNSPECIFIED = 0; - // This skaffold version is currently supported. + // This Skaffold version is currently supported. SKAFFOLD_SUPPORT_STATE_SUPPORTED = 1; - // This skaffold version is in maintenance mode. + // This Skaffold version is in maintenance mode. SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE = 2; - // This skaffold version is no longer supported. + // This Skaffold version is no longer supported. SKAFFOLD_SUPPORT_STATE_UNSUPPORTED = 3; } diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/createcustomtargettype/AsyncCreateCustomTargetType.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/createcustomtargettype/AsyncCreateCustomTargetType.java new file mode 100644 index 000000000000..3acdfbb59b6d --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/createcustomtargettype/AsyncCreateCustomTargetType.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_CreateCustomTargetType_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest; +import com.google.cloud.deploy.v1.CustomTargetType; +import com.google.cloud.deploy.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateCustomTargetType { + + public static void main(String[] args) throws Exception { + asyncCreateCustomTargetType(); + } + + public static void asyncCreateCustomTargetType() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + CreateCustomTargetTypeRequest request = + CreateCustomTargetTypeRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCustomTargetTypeId("customTargetTypeId1451302135") + .setCustomTargetType(CustomTargetType.newBuilder().build()) + .setRequestId("requestId693933066") + .setValidateOnly(true) + .build(); + ApiFuture future = + cloudDeployClient.createCustomTargetTypeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_CreateCustomTargetType_async] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/createcustomtargettype/AsyncCreateCustomTargetTypeLRO.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/createcustomtargettype/AsyncCreateCustomTargetTypeLRO.java new file mode 100644 index 000000000000..a951f0261fd0 --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/createcustomtargettype/AsyncCreateCustomTargetTypeLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_CreateCustomTargetType_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest; +import com.google.cloud.deploy.v1.CustomTargetType; +import com.google.cloud.deploy.v1.LocationName; +import com.google.cloud.deploy.v1.OperationMetadata; + +public class AsyncCreateCustomTargetTypeLRO { + + public static void main(String[] args) throws Exception { + asyncCreateCustomTargetTypeLRO(); + } + + public static void asyncCreateCustomTargetTypeLRO() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + CreateCustomTargetTypeRequest request = + CreateCustomTargetTypeRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCustomTargetTypeId("customTargetTypeId1451302135") + .setCustomTargetType(CustomTargetType.newBuilder().build()) + .setRequestId("requestId693933066") + .setValidateOnly(true) + .build(); + OperationFuture future = + cloudDeployClient.createCustomTargetTypeOperationCallable().futureCall(request); + // Do something. + CustomTargetType response = future.get(); + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_CreateCustomTargetType_LRO_async] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/createcustomtargettype/SyncCreateCustomTargetType.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/createcustomtargettype/SyncCreateCustomTargetType.java new file mode 100644 index 000000000000..8682693e14dd --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/createcustomtargettype/SyncCreateCustomTargetType.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_CreateCustomTargetType_sync] +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest; +import com.google.cloud.deploy.v1.CustomTargetType; +import com.google.cloud.deploy.v1.LocationName; + +public class SyncCreateCustomTargetType { + + public static void main(String[] args) throws Exception { + syncCreateCustomTargetType(); + } + + public static void syncCreateCustomTargetType() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + CreateCustomTargetTypeRequest request = + CreateCustomTargetTypeRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCustomTargetTypeId("customTargetTypeId1451302135") + .setCustomTargetType(CustomTargetType.newBuilder().build()) + .setRequestId("requestId693933066") + .setValidateOnly(true) + .build(); + CustomTargetType response = cloudDeployClient.createCustomTargetTypeAsync(request).get(); + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_CreateCustomTargetType_sync] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/createcustomtargettype/SyncCreateCustomTargetTypeLocationnameCustomtargettypeString.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/createcustomtargettype/SyncCreateCustomTargetTypeLocationnameCustomtargettypeString.java new file mode 100644 index 000000000000..dab8ebbee67d --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/createcustomtargettype/SyncCreateCustomTargetTypeLocationnameCustomtargettypeString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_CreateCustomTargetType_LocationnameCustomtargettypeString_sync] +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetType; +import com.google.cloud.deploy.v1.LocationName; + +public class SyncCreateCustomTargetTypeLocationnameCustomtargettypeString { + + public static void main(String[] args) throws Exception { + syncCreateCustomTargetTypeLocationnameCustomtargettypeString(); + } + + public static void syncCreateCustomTargetTypeLocationnameCustomtargettypeString() + throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CustomTargetType customTargetType = CustomTargetType.newBuilder().build(); + String customTargetTypeId = "customTargetTypeId1451302135"; + CustomTargetType response = + cloudDeployClient + .createCustomTargetTypeAsync(parent, customTargetType, customTargetTypeId) + .get(); + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_CreateCustomTargetType_LocationnameCustomtargettypeString_sync] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/createcustomtargettype/SyncCreateCustomTargetTypeStringCustomtargettypeString.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/createcustomtargettype/SyncCreateCustomTargetTypeStringCustomtargettypeString.java new file mode 100644 index 000000000000..a99fcf3362f8 --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/createcustomtargettype/SyncCreateCustomTargetTypeStringCustomtargettypeString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_CreateCustomTargetType_StringCustomtargettypeString_sync] +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetType; +import com.google.cloud.deploy.v1.LocationName; + +public class SyncCreateCustomTargetTypeStringCustomtargettypeString { + + public static void main(String[] args) throws Exception { + syncCreateCustomTargetTypeStringCustomtargettypeString(); + } + + public static void syncCreateCustomTargetTypeStringCustomtargettypeString() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + CustomTargetType customTargetType = CustomTargetType.newBuilder().build(); + String customTargetTypeId = "customTargetTypeId1451302135"; + CustomTargetType response = + cloudDeployClient + .createCustomTargetTypeAsync(parent, customTargetType, customTargetTypeId) + .get(); + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_CreateCustomTargetType_StringCustomtargettypeString_sync] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/deletecustomtargettype/AsyncDeleteCustomTargetType.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/deletecustomtargettype/AsyncDeleteCustomTargetType.java new file mode 100644 index 000000000000..334cf83564f6 --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/deletecustomtargettype/AsyncDeleteCustomTargetType.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_DeleteCustomTargetType_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetTypeName; +import com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteCustomTargetType { + + public static void main(String[] args) throws Exception { + asyncDeleteCustomTargetType(); + } + + public static void asyncDeleteCustomTargetType() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + DeleteCustomTargetTypeRequest request = + DeleteCustomTargetTypeRequest.newBuilder() + .setName( + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") + .toString()) + .setRequestId("requestId693933066") + .setAllowMissing(true) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + ApiFuture future = + cloudDeployClient.deleteCustomTargetTypeCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_DeleteCustomTargetType_async] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/deletecustomtargettype/AsyncDeleteCustomTargetTypeLRO.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/deletecustomtargettype/AsyncDeleteCustomTargetTypeLRO.java new file mode 100644 index 000000000000..59a50863b136 --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/deletecustomtargettype/AsyncDeleteCustomTargetTypeLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_DeleteCustomTargetType_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetTypeName; +import com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest; +import com.google.cloud.deploy.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteCustomTargetTypeLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteCustomTargetTypeLRO(); + } + + public static void asyncDeleteCustomTargetTypeLRO() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + DeleteCustomTargetTypeRequest request = + DeleteCustomTargetTypeRequest.newBuilder() + .setName( + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") + .toString()) + .setRequestId("requestId693933066") + .setAllowMissing(true) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + OperationFuture future = + cloudDeployClient.deleteCustomTargetTypeOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_DeleteCustomTargetType_LRO_async] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/deletecustomtargettype/SyncDeleteCustomTargetType.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/deletecustomtargettype/SyncDeleteCustomTargetType.java new file mode 100644 index 000000000000..291763c995e8 --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/deletecustomtargettype/SyncDeleteCustomTargetType.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_DeleteCustomTargetType_sync] +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetTypeName; +import com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteCustomTargetType { + + public static void main(String[] args) throws Exception { + syncDeleteCustomTargetType(); + } + + public static void syncDeleteCustomTargetType() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + DeleteCustomTargetTypeRequest request = + DeleteCustomTargetTypeRequest.newBuilder() + .setName( + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") + .toString()) + .setRequestId("requestId693933066") + .setAllowMissing(true) + .setValidateOnly(true) + .setEtag("etag3123477") + .build(); + cloudDeployClient.deleteCustomTargetTypeAsync(request).get(); + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_DeleteCustomTargetType_sync] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/deletecustomtargettype/SyncDeleteCustomTargetTypeCustomtargettypename.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/deletecustomtargettype/SyncDeleteCustomTargetTypeCustomtargettypename.java new file mode 100644 index 000000000000..b614a8c76a95 --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/deletecustomtargettype/SyncDeleteCustomTargetTypeCustomtargettypename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_DeleteCustomTargetType_Customtargettypename_sync] +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetTypeName; +import com.google.protobuf.Empty; + +public class SyncDeleteCustomTargetTypeCustomtargettypename { + + public static void main(String[] args) throws Exception { + syncDeleteCustomTargetTypeCustomtargettypename(); + } + + public static void syncDeleteCustomTargetTypeCustomtargettypename() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + CustomTargetTypeName name = + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]"); + cloudDeployClient.deleteCustomTargetTypeAsync(name).get(); + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_DeleteCustomTargetType_Customtargettypename_sync] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/deletecustomtargettype/SyncDeleteCustomTargetTypeString.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/deletecustomtargettype/SyncDeleteCustomTargetTypeString.java new file mode 100644 index 000000000000..460b42308d73 --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/deletecustomtargettype/SyncDeleteCustomTargetTypeString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_DeleteCustomTargetType_String_sync] +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetTypeName; +import com.google.protobuf.Empty; + +public class SyncDeleteCustomTargetTypeString { + + public static void main(String[] args) throws Exception { + syncDeleteCustomTargetTypeString(); + } + + public static void syncDeleteCustomTargetTypeString() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + String name = + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]").toString(); + cloudDeployClient.deleteCustomTargetTypeAsync(name).get(); + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_DeleteCustomTargetType_String_sync] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/getcustomtargettype/AsyncGetCustomTargetType.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/getcustomtargettype/AsyncGetCustomTargetType.java new file mode 100644 index 000000000000..dbd93a7bb1bc --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/getcustomtargettype/AsyncGetCustomTargetType.java @@ -0,0 +1,52 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_GetCustomTargetType_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetType; +import com.google.cloud.deploy.v1.CustomTargetTypeName; +import com.google.cloud.deploy.v1.GetCustomTargetTypeRequest; + +public class AsyncGetCustomTargetType { + + public static void main(String[] args) throws Exception { + asyncGetCustomTargetType(); + } + + public static void asyncGetCustomTargetType() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + GetCustomTargetTypeRequest request = + GetCustomTargetTypeRequest.newBuilder() + .setName( + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") + .toString()) + .build(); + ApiFuture future = + cloudDeployClient.getCustomTargetTypeCallable().futureCall(request); + // Do something. + CustomTargetType response = future.get(); + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_GetCustomTargetType_async] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/getcustomtargettype/SyncGetCustomTargetType.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/getcustomtargettype/SyncGetCustomTargetType.java new file mode 100644 index 000000000000..43ea55ab0a3d --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/getcustomtargettype/SyncGetCustomTargetType.java @@ -0,0 +1,48 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_GetCustomTargetType_sync] +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetType; +import com.google.cloud.deploy.v1.CustomTargetTypeName; +import com.google.cloud.deploy.v1.GetCustomTargetTypeRequest; + +public class SyncGetCustomTargetType { + + public static void main(String[] args) throws Exception { + syncGetCustomTargetType(); + } + + public static void syncGetCustomTargetType() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + GetCustomTargetTypeRequest request = + GetCustomTargetTypeRequest.newBuilder() + .setName( + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]") + .toString()) + .build(); + CustomTargetType response = cloudDeployClient.getCustomTargetType(request); + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_GetCustomTargetType_sync] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/getcustomtargettype/SyncGetCustomTargetTypeCustomtargettypename.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/getcustomtargettype/SyncGetCustomTargetTypeCustomtargettypename.java new file mode 100644 index 000000000000..98e1692d0c4b --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/getcustomtargettype/SyncGetCustomTargetTypeCustomtargettypename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_GetCustomTargetType_Customtargettypename_sync] +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetType; +import com.google.cloud.deploy.v1.CustomTargetTypeName; + +public class SyncGetCustomTargetTypeCustomtargettypename { + + public static void main(String[] args) throws Exception { + syncGetCustomTargetTypeCustomtargettypename(); + } + + public static void syncGetCustomTargetTypeCustomtargettypename() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + CustomTargetTypeName name = + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]"); + CustomTargetType response = cloudDeployClient.getCustomTargetType(name); + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_GetCustomTargetType_Customtargettypename_sync] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/getcustomtargettype/SyncGetCustomTargetTypeString.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/getcustomtargettype/SyncGetCustomTargetTypeString.java new file mode 100644 index 000000000000..15b768d7d59d --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/getcustomtargettype/SyncGetCustomTargetTypeString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_GetCustomTargetType_String_sync] +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetType; +import com.google.cloud.deploy.v1.CustomTargetTypeName; + +public class SyncGetCustomTargetTypeString { + + public static void main(String[] args) throws Exception { + syncGetCustomTargetTypeString(); + } + + public static void syncGetCustomTargetTypeString() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + String name = + CustomTargetTypeName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_TARGET_TYPE]").toString(); + CustomTargetType response = cloudDeployClient.getCustomTargetType(name); + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_GetCustomTargetType_String_sync] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/listcustomtargettypes/AsyncListCustomTargetTypes.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/listcustomtargettypes/AsyncListCustomTargetTypes.java new file mode 100644 index 000000000000..115f23324caa --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/listcustomtargettypes/AsyncListCustomTargetTypes.java @@ -0,0 +1,56 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_ListCustomTargetTypes_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetType; +import com.google.cloud.deploy.v1.ListCustomTargetTypesRequest; +import com.google.cloud.deploy.v1.LocationName; + +public class AsyncListCustomTargetTypes { + + public static void main(String[] args) throws Exception { + asyncListCustomTargetTypes(); + } + + public static void asyncListCustomTargetTypes() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + ListCustomTargetTypesRequest request = + ListCustomTargetTypesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + cloudDeployClient.listCustomTargetTypesPagedCallable().futureCall(request); + // Do something. + for (CustomTargetType element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_ListCustomTargetTypes_async] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/listcustomtargettypes/AsyncListCustomTargetTypesPaged.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/listcustomtargettypes/AsyncListCustomTargetTypesPaged.java new file mode 100644 index 000000000000..dd9652f80ce4 --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/listcustomtargettypes/AsyncListCustomTargetTypesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_ListCustomTargetTypes_Paged_async] +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetType; +import com.google.cloud.deploy.v1.ListCustomTargetTypesRequest; +import com.google.cloud.deploy.v1.ListCustomTargetTypesResponse; +import com.google.cloud.deploy.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListCustomTargetTypesPaged { + + public static void main(String[] args) throws Exception { + asyncListCustomTargetTypesPaged(); + } + + public static void asyncListCustomTargetTypesPaged() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + ListCustomTargetTypesRequest request = + ListCustomTargetTypesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListCustomTargetTypesResponse response = + cloudDeployClient.listCustomTargetTypesCallable().call(request); + for (CustomTargetType element : response.getCustomTargetTypesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_ListCustomTargetTypes_Paged_async] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/listcustomtargettypes/SyncListCustomTargetTypes.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/listcustomtargettypes/SyncListCustomTargetTypes.java new file mode 100644 index 000000000000..c335bdbd1554 --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/listcustomtargettypes/SyncListCustomTargetTypes.java @@ -0,0 +1,53 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_ListCustomTargetTypes_sync] +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetType; +import com.google.cloud.deploy.v1.ListCustomTargetTypesRequest; +import com.google.cloud.deploy.v1.LocationName; + +public class SyncListCustomTargetTypes { + + public static void main(String[] args) throws Exception { + syncListCustomTargetTypes(); + } + + public static void syncListCustomTargetTypes() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + ListCustomTargetTypesRequest request = + ListCustomTargetTypesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (CustomTargetType element : + cloudDeployClient.listCustomTargetTypes(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_ListCustomTargetTypes_sync] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/listcustomtargettypes/SyncListCustomTargetTypesLocationname.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/listcustomtargettypes/SyncListCustomTargetTypesLocationname.java new file mode 100644 index 000000000000..b7f6808bf9da --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/listcustomtargettypes/SyncListCustomTargetTypesLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_ListCustomTargetTypes_Locationname_sync] +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetType; +import com.google.cloud.deploy.v1.LocationName; + +public class SyncListCustomTargetTypesLocationname { + + public static void main(String[] args) throws Exception { + syncListCustomTargetTypesLocationname(); + } + + public static void syncListCustomTargetTypesLocationname() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (CustomTargetType element : + cloudDeployClient.listCustomTargetTypes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_ListCustomTargetTypes_Locationname_sync] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/listcustomtargettypes/SyncListCustomTargetTypesString.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/listcustomtargettypes/SyncListCustomTargetTypesString.java new file mode 100644 index 000000000000..5732f46eb42b --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/listcustomtargettypes/SyncListCustomTargetTypesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_ListCustomTargetTypes_String_sync] +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetType; +import com.google.cloud.deploy.v1.LocationName; + +public class SyncListCustomTargetTypesString { + + public static void main(String[] args) throws Exception { + syncListCustomTargetTypesString(); + } + + public static void syncListCustomTargetTypesString() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (CustomTargetType element : + cloudDeployClient.listCustomTargetTypes(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_ListCustomTargetTypes_String_sync] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/updatecustomtargettype/AsyncUpdateCustomTargetType.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/updatecustomtargettype/AsyncUpdateCustomTargetType.java new file mode 100644 index 000000000000..403fb0ef4563 --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/updatecustomtargettype/AsyncUpdateCustomTargetType.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_UpdateCustomTargetType_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetType; +import com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCustomTargetType { + + public static void main(String[] args) throws Exception { + asyncUpdateCustomTargetType(); + } + + public static void asyncUpdateCustomTargetType() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + UpdateCustomTargetTypeRequest request = + UpdateCustomTargetTypeRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setCustomTargetType(CustomTargetType.newBuilder().build()) + .setRequestId("requestId693933066") + .setAllowMissing(true) + .setValidateOnly(true) + .build(); + ApiFuture future = + cloudDeployClient.updateCustomTargetTypeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_UpdateCustomTargetType_async] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/updatecustomtargettype/AsyncUpdateCustomTargetTypeLRO.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/updatecustomtargettype/AsyncUpdateCustomTargetTypeLRO.java new file mode 100644 index 000000000000..bfe738f84ecf --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/updatecustomtargettype/AsyncUpdateCustomTargetTypeLRO.java @@ -0,0 +1,55 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_UpdateCustomTargetType_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetType; +import com.google.cloud.deploy.v1.OperationMetadata; +import com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCustomTargetTypeLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateCustomTargetTypeLRO(); + } + + public static void asyncUpdateCustomTargetTypeLRO() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + UpdateCustomTargetTypeRequest request = + UpdateCustomTargetTypeRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setCustomTargetType(CustomTargetType.newBuilder().build()) + .setRequestId("requestId693933066") + .setAllowMissing(true) + .setValidateOnly(true) + .build(); + OperationFuture future = + cloudDeployClient.updateCustomTargetTypeOperationCallable().futureCall(request); + // Do something. + CustomTargetType response = future.get(); + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_UpdateCustomTargetType_LRO_async] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/updatecustomtargettype/SyncUpdateCustomTargetType.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/updatecustomtargettype/SyncUpdateCustomTargetType.java new file mode 100644 index 000000000000..6dd56f552b6a --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/updatecustomtargettype/SyncUpdateCustomTargetType.java @@ -0,0 +1,50 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_UpdateCustomTargetType_sync] +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetType; +import com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCustomTargetType { + + public static void main(String[] args) throws Exception { + syncUpdateCustomTargetType(); + } + + public static void syncUpdateCustomTargetType() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + UpdateCustomTargetTypeRequest request = + UpdateCustomTargetTypeRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setCustomTargetType(CustomTargetType.newBuilder().build()) + .setRequestId("requestId693933066") + .setAllowMissing(true) + .setValidateOnly(true) + .build(); + CustomTargetType response = cloudDeployClient.updateCustomTargetTypeAsync(request).get(); + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_UpdateCustomTargetType_sync] diff --git a/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/updatecustomtargettype/SyncUpdateCustomTargetTypeCustomtargettypeFieldmask.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/updatecustomtargettype/SyncUpdateCustomTargetTypeCustomtargettypeFieldmask.java new file mode 100644 index 000000000000..196dbbad9526 --- /dev/null +++ b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploy/updatecustomtargettype/SyncUpdateCustomTargetTypeCustomtargettypeFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.deploy.v1.samples; + +// [START clouddeploy_v1_generated_CloudDeploy_UpdateCustomTargetType_CustomtargettypeFieldmask_sync] +import com.google.cloud.deploy.v1.CloudDeployClient; +import com.google.cloud.deploy.v1.CustomTargetType; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCustomTargetTypeCustomtargettypeFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCustomTargetTypeCustomtargettypeFieldmask(); + } + + public static void syncUpdateCustomTargetTypeCustomtargettypeFieldmask() throws Exception { + // 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 (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { + CustomTargetType customTargetType = CustomTargetType.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + CustomTargetType response = + cloudDeployClient.updateCustomTargetTypeAsync(customTargetType, updateMask).get(); + } + } +} +// [END clouddeploy_v1_generated_CloudDeploy_UpdateCustomTargetType_CustomtargettypeFieldmask_sync]