From 903257b703b2cb059001c97e20bed9647c2383b3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 24 Aug 2022 19:02:18 +0000 Subject: [PATCH] feat: Updated v1beta1 analyzeWorkloadMove documentation (#473) - [ ] Regenerate this pull request now. Committer: @ketanbshah PiperOrigin-RevId: 469606602 Source-Link: https://github.com/googleapis/googleapis/commit/32d2f9baba398950771969e8cef4d96560a0600c Source-Link: https://github.com/googleapis/googleapis-gen/commit/f87e8520136640f768cc2e42d9c56ca4def229f4 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjg3ZTg1MjAxMzY2NDBmNzY4Y2MyZTQyZDljNTZjYTRkZWYyMjlmNCJ9 --- .../AssuredWorkloadsServiceClient.java | 84 +- .../AssuredWorkloadsServiceSettings.java | 14 - .../v1beta1/gapic_metadata.json | 3 - .../stub/AssuredWorkloadsServiceStub.java | 7 - .../AssuredWorkloadsServiceStubSettings.java | 30 - .../stub/GrpcAssuredWorkloadsServiceStub.java | 41 - .../HttpJsonAssuredWorkloadsServiceStub.java | 55 - ...redWorkloadsServiceClientHttpJsonTest.java | 90 +- .../AssuredWorkloadsServiceClientTest.java | 40 - .../MockAssuredWorkloadsServiceImpl.java | 22 - .../v1beta1/AssuredWorkloadsServiceGrpc.java | 179 +-- .../v1beta1/AnalyzeWorkloadMoveRequest.java | 299 +++-- .../AnalyzeWorkloadMoveRequestOrBuilder.java | 94 +- .../v1beta1/AnalyzeWorkloadMoveResponse.java | 58 +- .../AnalyzeWorkloadMoveResponseOrBuilder.java | 16 +- .../v1beta1/AssuredworkloadsProto.java | 303 +++-- .../v1beta1/AssuredworkloadsServiceProto.java | 76 +- .../RestrictAllowedServicesRequest.java | 1037 ----------------- ...strictAllowedServicesRequestOrBuilder.java | 88 -- .../RestrictAllowedServicesResponse.java | 479 -------- ...trictAllowedServicesResponseOrBuilder.java | 24 - .../assuredworkloads/v1beta1/Workload.java | 90 +- .../v1beta1/WorkloadOrBuilder.java | 28 +- .../v1beta1/assuredworkloads.proto | 88 +- .../v1beta1/assuredworkloads_service.proto | 29 +- .../AsyncRestrictAllowedServices.java | 45 - .../SyncRestrictAllowedServices.java | 42 - 27 files changed, 533 insertions(+), 2828 deletions(-) delete mode 100644 java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/RestrictAllowedServicesRequest.java delete mode 100644 java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/RestrictAllowedServicesRequestOrBuilder.java delete mode 100644 java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/RestrictAllowedServicesResponse.java delete mode 100644 java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/RestrictAllowedServicesResponseOrBuilder.java delete mode 100644 java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/restrictallowedservices/AsyncRestrictAllowedServices.java delete mode 100644 java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/restrictallowedservices/SyncRestrictAllowedServices.java diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java index 34b4eef7cd9a..907cb482bef8 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClient.java @@ -438,63 +438,6 @@ public final UnaryCallable updateWorkloadCallab return stub.updateWorkloadCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Restrict the list of services allowed in the Workload environment. The current list of allowed - * services can be found at https://cloud.google.com/assured-workloads/docs/supported-products In - * addition to assuredworkloads.workload.update permission, the user should also have - * orgpolicy.policy.set permission on the folder resource to use this functionality. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient =
-   *     AssuredWorkloadsServiceClient.create()) {
-   *   RestrictAllowedServicesRequest request =
-   *       RestrictAllowedServicesRequest.newBuilder().setName("name3373707").build();
-   *   RestrictAllowedServicesResponse response =
-   *       assuredWorkloadsServiceClient.restrictAllowedServices(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 RestrictAllowedServicesResponse restrictAllowedServices( - RestrictAllowedServicesRequest request) { - return restrictAllowedServicesCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Restrict the list of services allowed in the Workload environment. The current list of allowed - * services can be found at https://cloud.google.com/assured-workloads/docs/supported-products In - * addition to assuredworkloads.workload.update permission, the user should also have - * orgpolicy.policy.set permission on the folder resource to use this functionality. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
-   * try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient =
-   *     AssuredWorkloadsServiceClient.create()) {
-   *   RestrictAllowedServicesRequest request =
-   *       RestrictAllowedServicesRequest.newBuilder().setName("name3373707").build();
-   *   ApiFuture future =
-   *       assuredWorkloadsServiceClient.restrictAllowedServicesCallable().futureCall(request);
-   *   // Do something.
-   *   RestrictAllowedServicesResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - restrictAllowedServicesCallable() { - return stub.restrictAllowedServicesCallable(); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Restrict the list of resources allowed in the Workload environment. The current list of allowed @@ -778,7 +721,8 @@ public final UnaryCallable getWorkloadCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Analyze if the source Assured Workloads can be moved to the target Assured Workload + * A request to analyze a hypothetical move of a source project or project-based workload to a + * target (destination) folder-based workload. * *

Sample code: * @@ -794,15 +738,15 @@ public final UnaryCallable getWorkloadCallable() { * } * } * - * @param project The Source is a project based to be moved. This is the project's relative path - * in the API, formatted as "cloudresourcemanager.googleapis.com/projects/{project_number}" - * "projects/{project_number}" "cloudresourcemanager.googleapis.com/projects/{project_id}" - * "projects/{project_id}" For example, - * "organizations/123/locations/us-east1/workloads/assured-workload-1". - * @param target Required. The resource name of the Workload to fetch. This is the workloads's - * relative path in the API, formatted as - * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". For - * example, "organizations/123/locations/us-east1/workloads/assured-workload-2". + * @param project The source type is a project. Specify the project's relative resource name, + * formatted as either a project number or a project ID: "projects/{PROJECT_NUMBER}" or + * "projects/{PROJECT_ID}" For example: "projects/951040570662" when specifying a project + * number, or "projects/my-project-123" when specifying a project ID. + * @param target Required. The resource ID of the folder-based destination workload. This workload + * is where the source project will hypothetically be moved to. Specify the workload's + * relative resource name, formatted as: + * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" For + * example: "organizations/123/locations/us-east1/workloads/assured-workload-2" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final AnalyzeWorkloadMoveResponse analyzeWorkloadMove(String project, String target) { @@ -813,7 +757,8 @@ public final AnalyzeWorkloadMoveResponse analyzeWorkloadMove(String project, Str // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Analyze if the source Assured Workloads can be moved to the target Assured Workload + * A request to analyze a hypothetical move of a source project or project-based workload to a + * target (destination) folder-based workload. * *

Sample code: * @@ -838,7 +783,8 @@ public final AnalyzeWorkloadMoveResponse analyzeWorkloadMove(AnalyzeWorkloadMove // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Analyze if the source Assured Workloads can be moved to the target Assured Workload + * A request to analyze a hypothetical move of a source project or project-based workload to a + * target (destination) folder-based workload. * *

Sample code: * diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java index 742112371287..4b13ad8f47ea 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceSettings.java @@ -96,13 +96,6 @@ public UnaryCallSettings updateWorkloadSettings return ((AssuredWorkloadsServiceStubSettings) getStubSettings()).updateWorkloadSettings(); } - /** Returns the object with the settings used for calls to restrictAllowedServices. */ - public UnaryCallSettings - restrictAllowedServicesSettings() { - return ((AssuredWorkloadsServiceStubSettings) getStubSettings()) - .restrictAllowedServicesSettings(); - } - /** Returns the object with the settings used for calls to restrictAllowedResources. */ public UnaryCallSettings restrictAllowedResourcesSettings() { @@ -265,13 +258,6 @@ public UnaryCallSettings.Builder updateWorkload return getStubSettingsBuilder().updateWorkloadSettings(); } - /** Returns the builder for the settings used for calls to restrictAllowedServices. */ - public UnaryCallSettings.Builder< - RestrictAllowedServicesRequest, RestrictAllowedServicesResponse> - restrictAllowedServicesSettings() { - return getStubSettingsBuilder().restrictAllowedServicesSettings(); - } - /** Returns the builder for the settings used for calls to restrictAllowedResources. */ public UnaryCallSettings.Builder< RestrictAllowedResourcesRequest, RestrictAllowedResourcesResponse> diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/gapic_metadata.json b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/gapic_metadata.json index 821a4bcbcc15..843d0d0559eb 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/gapic_metadata.json +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/gapic_metadata.json @@ -28,9 +28,6 @@ "RestrictAllowedResources": { "methods": ["restrictAllowedResources", "restrictAllowedResourcesCallable"] }, - "RestrictAllowedServices": { - "methods": ["restrictAllowedServices", "restrictAllowedServicesCallable"] - }, "UpdateWorkload": { "methods": ["updateWorkload", "updateWorkload", "updateWorkloadCallable"] } diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java index ee8504c71a5c..8579f31a825b 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStub.java @@ -32,8 +32,6 @@ import com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse; import com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest; import com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesResponse; -import com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest; -import com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse; import com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest; import com.google.cloud.assuredworkloads.v1beta1.Workload; import com.google.longrunning.Operation; @@ -72,11 +70,6 @@ public UnaryCallable updateWorkloadCallable() { throw new UnsupportedOperationException("Not implemented: updateWorkloadCallable()"); } - public UnaryCallable - restrictAllowedServicesCallable() { - throw new UnsupportedOperationException("Not implemented: restrictAllowedServicesCallable()"); - } - public UnaryCallable restrictAllowedResourcesCallable() { throw new UnsupportedOperationException("Not implemented: restrictAllowedResourcesCallable()"); diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java index 587491e2bf80..b341bf73cc72 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/AssuredWorkloadsServiceStubSettings.java @@ -57,8 +57,6 @@ import com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse; import com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest; import com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesResponse; -import com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest; -import com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse; import com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest; import com.google.cloud.assuredworkloads.v1beta1.Workload; import com.google.common.collect.ImmutableList; @@ -121,8 +119,6 @@ public class AssuredWorkloadsServiceStubSettings CreateWorkloadRequest, Workload, CreateWorkloadOperationMetadata> createWorkloadOperationSettings; private final UnaryCallSettings updateWorkloadSettings; - private final UnaryCallSettings - restrictAllowedServicesSettings; private final UnaryCallSettings restrictAllowedResourcesSettings; private final UnaryCallSettings deleteWorkloadSettings; @@ -202,12 +198,6 @@ public UnaryCallSettings updateWorkloadSettings return updateWorkloadSettings; } - /** Returns the object with the settings used for calls to restrictAllowedServices. */ - public UnaryCallSettings - restrictAllowedServicesSettings() { - return restrictAllowedServicesSettings; - } - /** Returns the object with the settings used for calls to restrictAllowedResources. */ public UnaryCallSettings restrictAllowedResourcesSettings() { @@ -345,7 +335,6 @@ protected AssuredWorkloadsServiceStubSettings(Builder settingsBuilder) throws IO createWorkloadSettings = settingsBuilder.createWorkloadSettings().build(); createWorkloadOperationSettings = settingsBuilder.createWorkloadOperationSettings().build(); updateWorkloadSettings = settingsBuilder.updateWorkloadSettings().build(); - restrictAllowedServicesSettings = settingsBuilder.restrictAllowedServicesSettings().build(); restrictAllowedResourcesSettings = settingsBuilder.restrictAllowedResourcesSettings().build(); deleteWorkloadSettings = settingsBuilder.deleteWorkloadSettings().build(); getWorkloadSettings = settingsBuilder.getWorkloadSettings().build(); @@ -363,9 +352,6 @@ public static class Builder CreateWorkloadRequest, Workload, CreateWorkloadOperationMetadata> createWorkloadOperationSettings; private final UnaryCallSettings.Builder updateWorkloadSettings; - private final UnaryCallSettings.Builder< - RestrictAllowedServicesRequest, RestrictAllowedServicesResponse> - restrictAllowedServicesSettings; private final UnaryCallSettings.Builder< RestrictAllowedResourcesRequest, RestrictAllowedResourcesResponse> restrictAllowedResourcesSettings; @@ -430,7 +416,6 @@ protected Builder(ClientContext clientContext) { createWorkloadSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createWorkloadOperationSettings = OperationCallSettings.newBuilder(); updateWorkloadSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - restrictAllowedServicesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); restrictAllowedResourcesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteWorkloadSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getWorkloadSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -441,7 +426,6 @@ protected Builder(ClientContext clientContext) { ImmutableList.>of( createWorkloadSettings, updateWorkloadSettings, - restrictAllowedServicesSettings, restrictAllowedResourcesSettings, deleteWorkloadSettings, getWorkloadSettings, @@ -456,7 +440,6 @@ protected Builder(AssuredWorkloadsServiceStubSettings settings) { createWorkloadSettings = settings.createWorkloadSettings.toBuilder(); createWorkloadOperationSettings = settings.createWorkloadOperationSettings.toBuilder(); updateWorkloadSettings = settings.updateWorkloadSettings.toBuilder(); - restrictAllowedServicesSettings = settings.restrictAllowedServicesSettings.toBuilder(); restrictAllowedResourcesSettings = settings.restrictAllowedResourcesSettings.toBuilder(); deleteWorkloadSettings = settings.deleteWorkloadSettings.toBuilder(); getWorkloadSettings = settings.getWorkloadSettings.toBuilder(); @@ -467,7 +450,6 @@ protected Builder(AssuredWorkloadsServiceStubSettings settings) { ImmutableList.>of( createWorkloadSettings, updateWorkloadSettings, - restrictAllowedServicesSettings, restrictAllowedResourcesSettings, deleteWorkloadSettings, getWorkloadSettings, @@ -512,11 +494,6 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); - builder - .restrictAllowedServicesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - builder .restrictAllowedResourcesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -604,13 +581,6 @@ public UnaryCallSettings.Builder updateWorkload return updateWorkloadSettings; } - /** Returns the builder for the settings used for calls to restrictAllowedServices. */ - public UnaryCallSettings.Builder< - RestrictAllowedServicesRequest, RestrictAllowedServicesResponse> - restrictAllowedServicesSettings() { - return restrictAllowedServicesSettings; - } - /** Returns the builder for the settings used for calls to restrictAllowedResources. */ public UnaryCallSettings.Builder< RestrictAllowedResourcesRequest, RestrictAllowedResourcesResponse> diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceStub.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceStub.java index 86b6de72dbbd..eb27ddb80f54 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceStub.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/GrpcAssuredWorkloadsServiceStub.java @@ -36,8 +36,6 @@ import com.google.cloud.assuredworkloads.v1beta1.ListWorkloadsResponse; import com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest; import com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesResponse; -import com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest; -import com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse; import com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest; import com.google.cloud.assuredworkloads.v1beta1.Workload; import com.google.common.collect.ImmutableMap; @@ -81,20 +79,6 @@ public class GrpcAssuredWorkloadsServiceStub extends AssuredWorkloadsServiceStub .setResponseMarshaller(ProtoUtils.marshaller(Workload.getDefaultInstance())) .build(); - private static final MethodDescriptor< - RestrictAllowedServicesRequest, RestrictAllowedServicesResponse> - restrictAllowedServicesMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService/RestrictAllowedServices") - .setRequestMarshaller( - ProtoUtils.marshaller(RestrictAllowedServicesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(RestrictAllowedServicesResponse.getDefaultInstance())) - .build(); - private static final MethodDescriptor< RestrictAllowedResourcesRequest, RestrictAllowedResourcesResponse> restrictAllowedResourcesMethodDescriptor = @@ -157,8 +141,6 @@ public class GrpcAssuredWorkloadsServiceStub extends AssuredWorkloadsServiceStub private final OperationCallable createWorkloadOperationCallable; private final UnaryCallable updateWorkloadCallable; - private final UnaryCallable - restrictAllowedServicesCallable; private final UnaryCallable restrictAllowedResourcesCallable; private final UnaryCallable deleteWorkloadCallable; @@ -227,19 +209,7 @@ protected GrpcAssuredWorkloadsServiceStub( GrpcCallSettings updateWorkloadTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateWorkloadMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("workload.name", String.valueOf(request.getWorkload().getName())); - return params.build(); - }) .build(); - GrpcCallSettings - restrictAllowedServicesTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(restrictAllowedServicesMethodDescriptor) - .build(); GrpcCallSettings restrictAllowedResourcesTransportSettings = GrpcCallSettings @@ -288,11 +258,6 @@ protected GrpcAssuredWorkloadsServiceStub( this.updateWorkloadCallable = callableFactory.createUnaryCallable( updateWorkloadTransportSettings, settings.updateWorkloadSettings(), clientContext); - this.restrictAllowedServicesCallable = - callableFactory.createUnaryCallable( - restrictAllowedServicesTransportSettings, - settings.restrictAllowedServicesSettings(), - clientContext); this.restrictAllowedResourcesCallable = callableFactory.createUnaryCallable( restrictAllowedResourcesTransportSettings, @@ -340,12 +305,6 @@ public UnaryCallable updateWorkloadCallable() { return updateWorkloadCallable; } - @Override - public UnaryCallable - restrictAllowedServicesCallable() { - return restrictAllowedServicesCallable; - } - @Override public UnaryCallable restrictAllowedResourcesCallable() { diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceStub.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceStub.java index 8ff7687ff649..aa601c44e27e 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceStub.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/HttpJsonAssuredWorkloadsServiceStub.java @@ -36,7 +36,6 @@ import com.google.cloud.assuredworkloads.v1beta1.DeleteWorkloadRequest; import com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest; import com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesResponse; -import com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest; import com.google.cloud.assuredworkloads.v1beta1.Workload; import com.google.longrunning.Operation; import com.google.protobuf.Empty; @@ -105,45 +104,6 @@ public class HttpJsonAssuredWorkloadsServiceStub extends AssuredWorkloadsService HttpJsonOperationSnapshot.create(response)) .build(); - private static final ApiMethodDescriptor - updateWorkloadMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsService/UpdateWorkload") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{workload.name=organizations/*/locations/*/workloads/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "workload.name", request.getWorkload().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("workload", request.getWorkload())) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Workload.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - private static final ApiMethodDescriptor< RestrictAllowedResourcesRequest, RestrictAllowedResourcesResponse> restrictAllowedResourcesMethodDescriptor = @@ -221,7 +181,6 @@ public class HttpJsonAssuredWorkloadsServiceStub extends AssuredWorkloadsService private final UnaryCallable createWorkloadCallable; private final OperationCallable createWorkloadOperationCallable; - private final UnaryCallable updateWorkloadCallable; private final UnaryCallable restrictAllowedResourcesCallable; private final UnaryCallable deleteWorkloadCallable; @@ -279,11 +238,6 @@ protected HttpJsonAssuredWorkloadsServiceStub( .setMethodDescriptor(createWorkloadMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); - HttpJsonCallSettings updateWorkloadTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateWorkloadMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); HttpJsonCallSettings restrictAllowedResourcesTransportSettings = HttpJsonCallSettings @@ -306,9 +260,6 @@ protected HttpJsonAssuredWorkloadsServiceStub( settings.createWorkloadOperationSettings(), clientContext, httpJsonOperationsStub); - this.updateWorkloadCallable = - callableFactory.createUnaryCallable( - updateWorkloadTransportSettings, settings.updateWorkloadSettings(), clientContext); this.restrictAllowedResourcesCallable = callableFactory.createUnaryCallable( restrictAllowedResourcesTransportSettings, @@ -326,7 +277,6 @@ protected HttpJsonAssuredWorkloadsServiceStub( public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(createWorkloadMethodDescriptor); - methodDescriptors.add(updateWorkloadMethodDescriptor); methodDescriptors.add(restrictAllowedResourcesMethodDescriptor); methodDescriptors.add(deleteWorkloadMethodDescriptor); return methodDescriptors; @@ -347,11 +297,6 @@ public UnaryCallable createWorkloadCallable() return createWorkloadOperationCallable; } - @Override - public UnaryCallable updateWorkloadCallable() { - return updateWorkloadCallable; - } - @Override public UnaryCallable restrictAllowedResourcesCallable() { diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientHttpJsonTest.java b/java-assured-workloads/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientHttpJsonTest.java index f8daf86ce7fb..878854e397bd 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientHttpJsonTest.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientHttpJsonTest.java @@ -29,7 +29,6 @@ import com.google.longrunning.Operation; import com.google.protobuf.Any; import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import java.io.IOException; import java.util.ArrayList; @@ -204,93 +203,8 @@ public void createWorkloadExceptionTest2() throws Exception { } @Test - public void updateWorkloadTest() throws Exception { - Workload expectedResponse = - Workload.newBuilder() - .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) - .setDisplayName("displayName1714148973") - .addAllResources(new ArrayList()) - .setCreateTime(Timestamp.newBuilder().build()) - .setBillingAccount("billingAccount708726578") - .setEtag("etag3123477") - .putAllLabels(new HashMap()) - .setProvisionedResourcesParent("provisionedResourcesParent1733249115") - .setKmsSettings(Workload.KMSSettings.newBuilder().build()) - .addAllResourceSettings(new ArrayList()) - .setEnableSovereignControls(true) - .setSaaEnrollmentResponse(Workload.SaaEnrollmentResponse.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - Workload workload = - Workload.newBuilder() - .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) - .setDisplayName("displayName1714148973") - .addAllResources(new ArrayList()) - .setCreateTime(Timestamp.newBuilder().build()) - .setBillingAccount("billingAccount708726578") - .setEtag("etag3123477") - .putAllLabels(new HashMap()) - .setProvisionedResourcesParent("provisionedResourcesParent1733249115") - .setKmsSettings(Workload.KMSSettings.newBuilder().build()) - .addAllResourceSettings(new ArrayList()) - .setEnableSovereignControls(true) - .setSaaEnrollmentResponse(Workload.SaaEnrollmentResponse.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Workload actualResponse = client.updateWorkload(workload, updateMask); - 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 updateWorkloadExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Workload workload = - Workload.newBuilder() - .setName(WorkloadName.of("[ORGANIZATION]", "[LOCATION]", "[WORKLOAD]").toString()) - .setDisplayName("displayName1714148973") - .addAllResources(new ArrayList()) - .setCreateTime(Timestamp.newBuilder().build()) - .setBillingAccount("billingAccount708726578") - .setEtag("etag3123477") - .putAllLabels(new HashMap()) - .setProvisionedResourcesParent("provisionedResourcesParent1733249115") - .setKmsSettings(Workload.KMSSettings.newBuilder().build()) - .addAllResourceSettings(new ArrayList()) - .setEnableSovereignControls(true) - .setSaaEnrollmentResponse(Workload.SaaEnrollmentResponse.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateWorkload(workload, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void restrictAllowedServicesUnsupportedMethodTest() throws Exception { - // The restrictAllowedServices() method is not supported in REST transport. + public void updateWorkloadUnsupportedMethodTest() throws Exception { + // The updateWorkload() method is not supported in REST transport. // This empty test is generated for technical reasons. } diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientTest.java b/java-assured-workloads/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientTest.java index b85c8bf3755b..05cbd44c3933 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientTest.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceClientTest.java @@ -260,46 +260,6 @@ public void updateWorkloadExceptionTest() throws Exception { } } - @Test - public void restrictAllowedServicesTest() throws Exception { - RestrictAllowedServicesResponse expectedResponse = - RestrictAllowedServicesResponse.newBuilder().build(); - mockAssuredWorkloadsService.addResponse(expectedResponse); - - RestrictAllowedServicesRequest request = - RestrictAllowedServicesRequest.newBuilder().setName("name3373707").build(); - - RestrictAllowedServicesResponse actualResponse = client.restrictAllowedServices(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAssuredWorkloadsService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RestrictAllowedServicesRequest actualRequest = - ((RestrictAllowedServicesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getRestrictionType(), actualRequest.getRestrictionType()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void restrictAllowedServicesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAssuredWorkloadsService.addException(exception); - - try { - RestrictAllowedServicesRequest request = - RestrictAllowedServicesRequest.newBuilder().setName("name3373707").build(); - client.restrictAllowedServices(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - @Test public void restrictAllowedResourcesTest() throws Exception { RestrictAllowedResourcesResponse expectedResponse = diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsServiceImpl.java b/java-assured-workloads/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsServiceImpl.java index 1bb4022cadcb..4b428f4dbe8b 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsServiceImpl.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/test/java/com/google/cloud/assuredworkloads/v1beta1/MockAssuredWorkloadsServiceImpl.java @@ -102,28 +102,6 @@ public void updateWorkload( } } - @Override - public void restrictAllowedServices( - RestrictAllowedServicesRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof RestrictAllowedServicesResponse) { - requests.add(request); - responseObserver.onNext(((RestrictAllowedServicesResponse) 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 RestrictAllowedServices, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - RestrictAllowedServicesResponse.class.getName(), - Exception.class.getName()))); - } - } - @Override public void restrictAllowedResources( RestrictAllowedResourcesRequest request, diff --git a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java index 882edeebb205..34f43801242e 100644 --- a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java +++ b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredWorkloadsServiceGrpc.java @@ -131,60 +131,6 @@ private AssuredWorkloadsServiceGrpc() {} return getUpdateWorkloadMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest, - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse> - getRestrictAllowedServicesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RestrictAllowedServices", - requestType = com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.class, - responseType = - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest, - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse> - getRestrictAllowedServicesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest, - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse> - getRestrictAllowedServicesMethod; - if ((getRestrictAllowedServicesMethod = - AssuredWorkloadsServiceGrpc.getRestrictAllowedServicesMethod) - == null) { - synchronized (AssuredWorkloadsServiceGrpc.class) { - if ((getRestrictAllowedServicesMethod = - AssuredWorkloadsServiceGrpc.getRestrictAllowedServicesMethod) - == null) { - AssuredWorkloadsServiceGrpc.getRestrictAllowedServicesMethod = - getRestrictAllowedServicesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RestrictAllowedServices")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1beta1 - .RestrictAllowedServicesRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.assuredworkloads.v1beta1 - .RestrictAllowedServicesResponse.getDefaultInstance())) - .setSchemaDescriptor( - new AssuredWorkloadsServiceMethodDescriptorSupplier( - "RestrictAllowedServices")) - .build(); - } - } - } - return getRestrictAllowedServicesMethod; - } - private static volatile io.grpc.MethodDescriptor< com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest, com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesResponse> @@ -515,27 +461,6 @@ public void updateWorkload( getUpdateWorkloadMethod(), responseObserver); } - /** - * - * - *

-     * Restrict the list of services allowed in the Workload environment.
-     * The current list of allowed services can be found at
-     * https://cloud.google.com/assured-workloads/docs/supported-products
-     * In addition to assuredworkloads.workload.update permission, the user should
-     * also have orgpolicy.policy.set permission on the folder resource
-     * to use this functionality.
-     * 
- */ - public void restrictAllowedServices( - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRestrictAllowedServicesMethod(), responseObserver); - } - /** * * @@ -595,8 +520,8 @@ public void getWorkload( * * *
-     * Analyze if the source Assured Workloads can be moved to the target Assured
-     * Workload
+     * A request to analyze a hypothetical move of a source project or
+     * project-based workload to a target (destination) folder-based workload.
      * 
*/ public void analyzeWorkloadMove( @@ -639,13 +564,6 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.assuredworkloads.v1beta1.UpdateWorkloadRequest, com.google.cloud.assuredworkloads.v1beta1.Workload>( this, METHODID_UPDATE_WORKLOAD))) - .addMethod( - getRestrictAllowedServicesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest, - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse>( - this, METHODID_RESTRICT_ALLOWED_SERVICES))) .addMethod( getRestrictAllowedResourcesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -739,29 +657,6 @@ public void updateWorkload( responseObserver); } - /** - * - * - *
-     * Restrict the list of services allowed in the Workload environment.
-     * The current list of allowed services can be found at
-     * https://cloud.google.com/assured-workloads/docs/supported-products
-     * In addition to assuredworkloads.workload.update permission, the user should
-     * also have orgpolicy.policy.set permission on the folder resource
-     * to use this functionality.
-     * 
- */ - public void restrictAllowedServices( - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRestrictAllowedServicesMethod(), getCallOptions()), - request, - responseObserver); - } - /** * * @@ -827,8 +722,8 @@ public void getWorkload( * * *
-     * Analyze if the source Assured Workloads can be moved to the target Assured
-     * Workload
+     * A request to analyze a hypothetical move of a source project or
+     * project-based workload to a target (destination) folder-based workload.
      * 
*/ public void analyzeWorkloadMove( @@ -909,25 +804,6 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload updateWorkload( getChannel(), getUpdateWorkloadMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Restrict the list of services allowed in the Workload environment.
-     * The current list of allowed services can be found at
-     * https://cloud.google.com/assured-workloads/docs/supported-products
-     * In addition to assuredworkloads.workload.update permission, the user should
-     * also have orgpolicy.policy.set permission on the folder resource
-     * to use this functionality.
-     * 
- */ - public com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse - restrictAllowedServices( - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRestrictAllowedServicesMethod(), getCallOptions(), request); - } - /** * * @@ -982,8 +858,8 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload getWorkload( * * *
-     * Analyze if the source Assured Workloads can be moved to the target Assured
-     * Workload
+     * A request to analyze a hypothetical move of a source project or
+     * project-based workload to a target (destination) folder-based workload.
      * 
*/ public com.google.cloud.assuredworkloads.v1beta1.AnalyzeWorkloadMoveResponse @@ -1057,26 +933,6 @@ protected AssuredWorkloadsServiceFutureStub build( getChannel().newCall(getUpdateWorkloadMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Restrict the list of services allowed in the Workload environment.
-     * The current list of allowed services can be found at
-     * https://cloud.google.com/assured-workloads/docs/supported-products
-     * In addition to assuredworkloads.workload.update permission, the user should
-     * also have orgpolicy.policy.set permission on the folder resource
-     * to use this functionality.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse> - restrictAllowedServices( - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRestrictAllowedServicesMethod(), getCallOptions()), request); - } - /** * * @@ -1133,8 +989,8 @@ protected AssuredWorkloadsServiceFutureStub build( * * *
-     * Analyze if the source Assured Workloads can be moved to the target Assured
-     * Workload
+     * A request to analyze a hypothetical move of a source project or
+     * project-based workload to a target (destination) folder-based workload.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1162,12 +1018,11 @@ protected AssuredWorkloadsServiceFutureStub build( private static final int METHODID_CREATE_WORKLOAD = 0; private static final int METHODID_UPDATE_WORKLOAD = 1; - private static final int METHODID_RESTRICT_ALLOWED_SERVICES = 2; - private static final int METHODID_RESTRICT_ALLOWED_RESOURCES = 3; - private static final int METHODID_DELETE_WORKLOAD = 4; - private static final int METHODID_GET_WORKLOAD = 5; - private static final int METHODID_ANALYZE_WORKLOAD_MOVE = 6; - private static final int METHODID_LIST_WORKLOADS = 7; + private static final int METHODID_RESTRICT_ALLOWED_RESOURCES = 2; + private static final int METHODID_DELETE_WORKLOAD = 3; + private static final int METHODID_GET_WORKLOAD = 4; + private static final int METHODID_ANALYZE_WORKLOAD_MOVE = 5; + private static final int METHODID_LIST_WORKLOADS = 6; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1197,13 +1052,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_RESTRICT_ALLOWED_SERVICES: - serviceImpl.restrictAllowedServices( - (com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse>) - responseObserver); - break; case METHODID_RESTRICT_ALLOWED_RESOURCES: serviceImpl.restrictAllowedResources( (com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedResourcesRequest) request, @@ -1302,7 +1150,6 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .setSchemaDescriptor(new AssuredWorkloadsServiceFileDescriptorSupplier()) .addMethod(getCreateWorkloadMethod()) .addMethod(getUpdateWorkloadMethod()) - .addMethod(getRestrictAllowedServicesMethod()) .addMethod(getRestrictAllowedResourcesMethod()) .addMethod(getDeleteWorkloadMethod()) .addMethod(getGetWorkloadMethod()) diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AnalyzeWorkloadMoveRequest.java b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AnalyzeWorkloadMoveRequest.java index ef2937ff1385..0b2d21837859 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AnalyzeWorkloadMoveRequest.java +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AnalyzeWorkloadMoveRequest.java @@ -22,7 +22,8 @@ * * *
- * Request to check if source workload can be moved to target workload.
+ * A request to analyze a hypothetical move of a source project or project-based
+ * workload to a target (destination) folder-based workload.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.AnalyzeWorkloadMoveRequest} @@ -179,11 +180,11 @@ public ProjectOrWorkloadResourceCase getProjectOrWorkloadResourceCase() { * * *
-   * The Source is project based Workload to be moved. This is the workloads's
-   * relative path in the API, formatted as
-   * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+   * The source type is a project-based workload. Specify the workloads's
+   * relative resource name, formatted as:
+   * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+   * For example:
+   * "organizations/123/locations/us-east1/workloads/assured-workload-1"
    * 
* * string source = 1; @@ -197,11 +198,11 @@ public boolean hasSource() { * * *
-   * The Source is project based Workload to be moved. This is the workloads's
-   * relative path in the API, formatted as
-   * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+   * The source type is a project-based workload. Specify the workloads's
+   * relative resource name, formatted as:
+   * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+   * For example:
+   * "organizations/123/locations/us-east1/workloads/assured-workload-1"
    * 
* * string source = 1; @@ -228,11 +229,11 @@ public java.lang.String getSource() { * * *
-   * The Source is project based Workload to be moved. This is the workloads's
-   * relative path in the API, formatted as
-   * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+   * The source type is a project-based workload. Specify the workloads's
+   * relative resource name, formatted as:
+   * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+   * For example:
+   * "organizations/123/locations/us-east1/workloads/assured-workload-1"
    * 
* * string source = 1; @@ -261,14 +262,12 @@ public com.google.protobuf.ByteString getSourceBytes() { * * *
-   * The Source is a project based to be moved.
-   * This is the project's relative path in the API, formatted as
-   * "cloudresourcemanager.googleapis.com/projects/{project_number}"
-   * "projects/{project_number}"
-   * "cloudresourcemanager.googleapis.com/projects/{project_id}"
-   * "projects/{project_id}"
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+   * The source type is a project. Specify the project's relative resource
+   * name, formatted as either a project number or a project ID:
+   * "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
+   * For example:
+   * "projects/951040570662" when specifying a project number, or
+   * "projects/my-project-123" when specifying a project ID.
    * 
* * string project = 3; @@ -282,14 +281,12 @@ public boolean hasProject() { * * *
-   * The Source is a project based to be moved.
-   * This is the project's relative path in the API, formatted as
-   * "cloudresourcemanager.googleapis.com/projects/{project_number}"
-   * "projects/{project_number}"
-   * "cloudresourcemanager.googleapis.com/projects/{project_id}"
-   * "projects/{project_id}"
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+   * The source type is a project. Specify the project's relative resource
+   * name, formatted as either a project number or a project ID:
+   * "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
+   * For example:
+   * "projects/951040570662" when specifying a project number, or
+   * "projects/my-project-123" when specifying a project ID.
    * 
* * string project = 3; @@ -316,14 +313,12 @@ public java.lang.String getProject() { * * *
-   * The Source is a project based to be moved.
-   * This is the project's relative path in the API, formatted as
-   * "cloudresourcemanager.googleapis.com/projects/{project_number}"
-   * "projects/{project_number}"
-   * "cloudresourcemanager.googleapis.com/projects/{project_id}"
-   * "projects/{project_id}"
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+   * The source type is a project. Specify the project's relative resource
+   * name, formatted as either a project number or a project ID:
+   * "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
+   * For example:
+   * "projects/951040570662" when specifying a project number, or
+   * "projects/my-project-123" when specifying a project ID.
    * 
* * string project = 3; @@ -353,11 +348,12 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
-   * Required. The resource name of the Workload to fetch. This is the workloads's
-   * relative path in the API, formatted as
-   * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-2".
+   * Required. The resource ID of the folder-based destination workload. This workload is
+   * where the source project will hypothetically be moved to. Specify the
+   * workload's relative resource name, formatted as:
+   * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+   * For example:
+   * "organizations/123/locations/us-east1/workloads/assured-workload-2"
    * 
* * string target = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -380,11 +376,12 @@ public java.lang.String getTarget() { * * *
-   * Required. The resource name of the Workload to fetch. This is the workloads's
-   * relative path in the API, formatted as
-   * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-2".
+   * Required. The resource ID of the folder-based destination workload. This workload is
+   * where the source project will hypothetically be moved to. Specify the
+   * workload's relative resource name, formatted as:
+   * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+   * For example:
+   * "organizations/123/locations/us-east1/workloads/assured-workload-2"
    * 
* * string target = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -607,7 +604,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request to check if source workload can be moved to target workload.
+   * A request to analyze a hypothetical move of a source project or project-based
+   * workload to a target (destination) folder-based workload.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.AnalyzeWorkloadMoveRequest} @@ -816,11 +814,11 @@ public Builder clearProjectOrWorkloadResource() { * * *
-     * The Source is project based Workload to be moved. This is the workloads's
-     * relative path in the API, formatted as
-     * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+     * The source type is a project-based workload. Specify the workloads's
+     * relative resource name, formatted as:
+     * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+     * For example:
+     * "organizations/123/locations/us-east1/workloads/assured-workload-1"
      * 
* * string source = 1; @@ -835,11 +833,11 @@ public boolean hasSource() { * * *
-     * The Source is project based Workload to be moved. This is the workloads's
-     * relative path in the API, formatted as
-     * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+     * The source type is a project-based workload. Specify the workloads's
+     * relative resource name, formatted as:
+     * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+     * For example:
+     * "organizations/123/locations/us-east1/workloads/assured-workload-1"
      * 
* * string source = 1; @@ -867,11 +865,11 @@ public java.lang.String getSource() { * * *
-     * The Source is project based Workload to be moved. This is the workloads's
-     * relative path in the API, formatted as
-     * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+     * The source type is a project-based workload. Specify the workloads's
+     * relative resource name, formatted as:
+     * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+     * For example:
+     * "organizations/123/locations/us-east1/workloads/assured-workload-1"
      * 
* * string source = 1; @@ -899,11 +897,11 @@ public com.google.protobuf.ByteString getSourceBytes() { * * *
-     * The Source is project based Workload to be moved. This is the workloads's
-     * relative path in the API, formatted as
-     * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+     * The source type is a project-based workload. Specify the workloads's
+     * relative resource name, formatted as:
+     * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+     * For example:
+     * "organizations/123/locations/us-east1/workloads/assured-workload-1"
      * 
* * string source = 1; @@ -924,11 +922,11 @@ public Builder setSource(java.lang.String value) { * * *
-     * The Source is project based Workload to be moved. This is the workloads's
-     * relative path in the API, formatted as
-     * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+     * The source type is a project-based workload. Specify the workloads's
+     * relative resource name, formatted as:
+     * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+     * For example:
+     * "organizations/123/locations/us-east1/workloads/assured-workload-1"
      * 
* * string source = 1; @@ -947,11 +945,11 @@ public Builder clearSource() { * * *
-     * The Source is project based Workload to be moved. This is the workloads's
-     * relative path in the API, formatted as
-     * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+     * The source type is a project-based workload. Specify the workloads's
+     * relative resource name, formatted as:
+     * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+     * For example:
+     * "organizations/123/locations/us-east1/workloads/assured-workload-1"
      * 
* * string source = 1; @@ -974,14 +972,12 @@ public Builder setSourceBytes(com.google.protobuf.ByteString value) { * * *
-     * The Source is a project based to be moved.
-     * This is the project's relative path in the API, formatted as
-     * "cloudresourcemanager.googleapis.com/projects/{project_number}"
-     * "projects/{project_number}"
-     * "cloudresourcemanager.googleapis.com/projects/{project_id}"
-     * "projects/{project_id}"
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+     * The source type is a project. Specify the project's relative resource
+     * name, formatted as either a project number or a project ID:
+     * "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
+     * For example:
+     * "projects/951040570662" when specifying a project number, or
+     * "projects/my-project-123" when specifying a project ID.
      * 
* * string project = 3; @@ -996,14 +992,12 @@ public boolean hasProject() { * * *
-     * The Source is a project based to be moved.
-     * This is the project's relative path in the API, formatted as
-     * "cloudresourcemanager.googleapis.com/projects/{project_number}"
-     * "projects/{project_number}"
-     * "cloudresourcemanager.googleapis.com/projects/{project_id}"
-     * "projects/{project_id}"
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+     * The source type is a project. Specify the project's relative resource
+     * name, formatted as either a project number or a project ID:
+     * "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
+     * For example:
+     * "projects/951040570662" when specifying a project number, or
+     * "projects/my-project-123" when specifying a project ID.
      * 
* * string project = 3; @@ -1031,14 +1025,12 @@ public java.lang.String getProject() { * * *
-     * The Source is a project based to be moved.
-     * This is the project's relative path in the API, formatted as
-     * "cloudresourcemanager.googleapis.com/projects/{project_number}"
-     * "projects/{project_number}"
-     * "cloudresourcemanager.googleapis.com/projects/{project_id}"
-     * "projects/{project_id}"
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+     * The source type is a project. Specify the project's relative resource
+     * name, formatted as either a project number or a project ID:
+     * "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
+     * For example:
+     * "projects/951040570662" when specifying a project number, or
+     * "projects/my-project-123" when specifying a project ID.
      * 
* * string project = 3; @@ -1066,14 +1058,12 @@ public com.google.protobuf.ByteString getProjectBytes() { * * *
-     * The Source is a project based to be moved.
-     * This is the project's relative path in the API, formatted as
-     * "cloudresourcemanager.googleapis.com/projects/{project_number}"
-     * "projects/{project_number}"
-     * "cloudresourcemanager.googleapis.com/projects/{project_id}"
-     * "projects/{project_id}"
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+     * The source type is a project. Specify the project's relative resource
+     * name, formatted as either a project number or a project ID:
+     * "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
+     * For example:
+     * "projects/951040570662" when specifying a project number, or
+     * "projects/my-project-123" when specifying a project ID.
      * 
* * string project = 3; @@ -1094,14 +1084,12 @@ public Builder setProject(java.lang.String value) { * * *
-     * The Source is a project based to be moved.
-     * This is the project's relative path in the API, formatted as
-     * "cloudresourcemanager.googleapis.com/projects/{project_number}"
-     * "projects/{project_number}"
-     * "cloudresourcemanager.googleapis.com/projects/{project_id}"
-     * "projects/{project_id}"
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+     * The source type is a project. Specify the project's relative resource
+     * name, formatted as either a project number or a project ID:
+     * "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
+     * For example:
+     * "projects/951040570662" when specifying a project number, or
+     * "projects/my-project-123" when specifying a project ID.
      * 
* * string project = 3; @@ -1120,14 +1108,12 @@ public Builder clearProject() { * * *
-     * The Source is a project based to be moved.
-     * This is the project's relative path in the API, formatted as
-     * "cloudresourcemanager.googleapis.com/projects/{project_number}"
-     * "projects/{project_number}"
-     * "cloudresourcemanager.googleapis.com/projects/{project_id}"
-     * "projects/{project_id}"
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+     * The source type is a project. Specify the project's relative resource
+     * name, formatted as either a project number or a project ID:
+     * "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
+     * For example:
+     * "projects/951040570662" when specifying a project number, or
+     * "projects/my-project-123" when specifying a project ID.
      * 
* * string project = 3; @@ -1151,11 +1137,12 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The resource name of the Workload to fetch. This is the workloads's
-     * relative path in the API, formatted as
-     * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-2".
+     * Required. The resource ID of the folder-based destination workload. This workload is
+     * where the source project will hypothetically be moved to. Specify the
+     * workload's relative resource name, formatted as:
+     * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+     * For example:
+     * "organizations/123/locations/us-east1/workloads/assured-workload-2"
      * 
* * string target = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1177,11 +1164,12 @@ public java.lang.String getTarget() { * * *
-     * Required. The resource name of the Workload to fetch. This is the workloads's
-     * relative path in the API, formatted as
-     * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-2".
+     * Required. The resource ID of the folder-based destination workload. This workload is
+     * where the source project will hypothetically be moved to. Specify the
+     * workload's relative resource name, formatted as:
+     * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+     * For example:
+     * "organizations/123/locations/us-east1/workloads/assured-workload-2"
      * 
* * string target = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1203,11 +1191,12 @@ public com.google.protobuf.ByteString getTargetBytes() { * * *
-     * Required. The resource name of the Workload to fetch. This is the workloads's
-     * relative path in the API, formatted as
-     * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-2".
+     * Required. The resource ID of the folder-based destination workload. This workload is
+     * where the source project will hypothetically be moved to. Specify the
+     * workload's relative resource name, formatted as:
+     * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+     * For example:
+     * "organizations/123/locations/us-east1/workloads/assured-workload-2"
      * 
* * string target = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1228,11 +1217,12 @@ public Builder setTarget(java.lang.String value) { * * *
-     * Required. The resource name of the Workload to fetch. This is the workloads's
-     * relative path in the API, formatted as
-     * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-2".
+     * Required. The resource ID of the folder-based destination workload. This workload is
+     * where the source project will hypothetically be moved to. Specify the
+     * workload's relative resource name, formatted as:
+     * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+     * For example:
+     * "organizations/123/locations/us-east1/workloads/assured-workload-2"
      * 
* * string target = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1249,11 +1239,12 @@ public Builder clearTarget() { * * *
-     * Required. The resource name of the Workload to fetch. This is the workloads's
-     * relative path in the API, formatted as
-     * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-2".
+     * Required. The resource ID of the folder-based destination workload. This workload is
+     * where the source project will hypothetically be moved to. Specify the
+     * workload's relative resource name, formatted as:
+     * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+     * For example:
+     * "organizations/123/locations/us-east1/workloads/assured-workload-2"
      * 
* * string target = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AnalyzeWorkloadMoveRequestOrBuilder.java b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AnalyzeWorkloadMoveRequestOrBuilder.java index b7bb1fabf95e..c364a945fbae 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AnalyzeWorkloadMoveRequestOrBuilder.java +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AnalyzeWorkloadMoveRequestOrBuilder.java @@ -27,11 +27,11 @@ public interface AnalyzeWorkloadMoveRequestOrBuilder * * *
-   * The Source is project based Workload to be moved. This is the workloads's
-   * relative path in the API, formatted as
-   * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+   * The source type is a project-based workload. Specify the workloads's
+   * relative resource name, formatted as:
+   * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+   * For example:
+   * "organizations/123/locations/us-east1/workloads/assured-workload-1"
    * 
* * string source = 1; @@ -43,11 +43,11 @@ public interface AnalyzeWorkloadMoveRequestOrBuilder * * *
-   * The Source is project based Workload to be moved. This is the workloads's
-   * relative path in the API, formatted as
-   * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+   * The source type is a project-based workload. Specify the workloads's
+   * relative resource name, formatted as:
+   * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+   * For example:
+   * "organizations/123/locations/us-east1/workloads/assured-workload-1"
    * 
* * string source = 1; @@ -59,11 +59,11 @@ public interface AnalyzeWorkloadMoveRequestOrBuilder * * *
-   * The Source is project based Workload to be moved. This is the workloads's
-   * relative path in the API, formatted as
-   * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+   * The source type is a project-based workload. Specify the workloads's
+   * relative resource name, formatted as:
+   * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+   * For example:
+   * "organizations/123/locations/us-east1/workloads/assured-workload-1"
    * 
* * string source = 1; @@ -76,14 +76,12 @@ public interface AnalyzeWorkloadMoveRequestOrBuilder * * *
-   * The Source is a project based to be moved.
-   * This is the project's relative path in the API, formatted as
-   * "cloudresourcemanager.googleapis.com/projects/{project_number}"
-   * "projects/{project_number}"
-   * "cloudresourcemanager.googleapis.com/projects/{project_id}"
-   * "projects/{project_id}"
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+   * The source type is a project. Specify the project's relative resource
+   * name, formatted as either a project number or a project ID:
+   * "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
+   * For example:
+   * "projects/951040570662" when specifying a project number, or
+   * "projects/my-project-123" when specifying a project ID.
    * 
* * string project = 3; @@ -95,14 +93,12 @@ public interface AnalyzeWorkloadMoveRequestOrBuilder * * *
-   * The Source is a project based to be moved.
-   * This is the project's relative path in the API, formatted as
-   * "cloudresourcemanager.googleapis.com/projects/{project_number}"
-   * "projects/{project_number}"
-   * "cloudresourcemanager.googleapis.com/projects/{project_id}"
-   * "projects/{project_id}"
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+   * The source type is a project. Specify the project's relative resource
+   * name, formatted as either a project number or a project ID:
+   * "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
+   * For example:
+   * "projects/951040570662" when specifying a project number, or
+   * "projects/my-project-123" when specifying a project ID.
    * 
* * string project = 3; @@ -114,14 +110,12 @@ public interface AnalyzeWorkloadMoveRequestOrBuilder * * *
-   * The Source is a project based to be moved.
-   * This is the project's relative path in the API, formatted as
-   * "cloudresourcemanager.googleapis.com/projects/{project_number}"
-   * "projects/{project_number}"
-   * "cloudresourcemanager.googleapis.com/projects/{project_id}"
-   * "projects/{project_id}"
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-1".
+   * The source type is a project. Specify the project's relative resource
+   * name, formatted as either a project number or a project ID:
+   * "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}"
+   * For example:
+   * "projects/951040570662" when specifying a project number, or
+   * "projects/my-project-123" when specifying a project ID.
    * 
* * string project = 3; @@ -134,11 +128,12 @@ public interface AnalyzeWorkloadMoveRequestOrBuilder * * *
-   * Required. The resource name of the Workload to fetch. This is the workloads's
-   * relative path in the API, formatted as
-   * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-2".
+   * Required. The resource ID of the folder-based destination workload. This workload is
+   * where the source project will hypothetically be moved to. Specify the
+   * workload's relative resource name, formatted as:
+   * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+   * For example:
+   * "organizations/123/locations/us-east1/workloads/assured-workload-2"
    * 
* * string target = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -150,11 +145,12 @@ public interface AnalyzeWorkloadMoveRequestOrBuilder * * *
-   * Required. The resource name of the Workload to fetch. This is the workloads's
-   * relative path in the API, formatted as
-   * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-2".
+   * Required. The resource ID of the folder-based destination workload. This workload is
+   * where the source project will hypothetically be moved to. Specify the
+   * workload's relative resource name, formatted as:
+   * "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}"
+   * For example:
+   * "organizations/123/locations/us-east1/workloads/assured-workload-2"
    * 
* * string target = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AnalyzeWorkloadMoveResponse.java b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AnalyzeWorkloadMoveResponse.java index 59bb8c6a4785..451540968fb2 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AnalyzeWorkloadMoveResponse.java +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AnalyzeWorkloadMoveResponse.java @@ -22,8 +22,7 @@ * * *
- * Response with the analysis if the source workload can be moved to the target
- * workload
+ * A response that includes the analysis of the hypothetical resource move.
  * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.AnalyzeWorkloadMoveResponse} @@ -127,8 +126,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * List of blockers that prevent moving the source workload to the target
-   * workload
+   * A list of blockers that should be addressed before moving the source
+   * project or project-based workload to the destination folder-based workload.
    * 
* * repeated string blockers = 1; @@ -142,8 +141,8 @@ public com.google.protobuf.ProtocolStringList getBlockersList() { * * *
-   * List of blockers that prevent moving the source workload to the target
-   * workload
+   * A list of blockers that should be addressed before moving the source
+   * project or project-based workload to the destination folder-based workload.
    * 
* * repeated string blockers = 1; @@ -157,8 +156,8 @@ public int getBlockersCount() { * * *
-   * List of blockers that prevent moving the source workload to the target
-   * workload
+   * A list of blockers that should be addressed before moving the source
+   * project or project-based workload to the destination folder-based workload.
    * 
* * repeated string blockers = 1; @@ -173,8 +172,8 @@ public java.lang.String getBlockers(int index) { * * *
-   * List of blockers that prevent moving the source workload to the target
-   * workload
+   * A list of blockers that should be addressed before moving the source
+   * project or project-based workload to the destination folder-based workload.
    * 
* * repeated string blockers = 1; @@ -358,8 +357,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Response with the analysis if the source workload can be moved to the target
-   * workload
+   * A response that includes the analysis of the hypothetical resource move.
    * 
* * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.AnalyzeWorkloadMoveResponse} @@ -547,8 +545,8 @@ private void ensureBlockersIsMutable() { * * *
-     * List of blockers that prevent moving the source workload to the target
-     * workload
+     * A list of blockers that should be addressed before moving the source
+     * project or project-based workload to the destination folder-based workload.
      * 
* * repeated string blockers = 1; @@ -562,8 +560,8 @@ public com.google.protobuf.ProtocolStringList getBlockersList() { * * *
-     * List of blockers that prevent moving the source workload to the target
-     * workload
+     * A list of blockers that should be addressed before moving the source
+     * project or project-based workload to the destination folder-based workload.
      * 
* * repeated string blockers = 1; @@ -577,8 +575,8 @@ public int getBlockersCount() { * * *
-     * List of blockers that prevent moving the source workload to the target
-     * workload
+     * A list of blockers that should be addressed before moving the source
+     * project or project-based workload to the destination folder-based workload.
      * 
* * repeated string blockers = 1; @@ -593,8 +591,8 @@ public java.lang.String getBlockers(int index) { * * *
-     * List of blockers that prevent moving the source workload to the target
-     * workload
+     * A list of blockers that should be addressed before moving the source
+     * project or project-based workload to the destination folder-based workload.
      * 
* * repeated string blockers = 1; @@ -609,8 +607,8 @@ public com.google.protobuf.ByteString getBlockersBytes(int index) { * * *
-     * List of blockers that prevent moving the source workload to the target
-     * workload
+     * A list of blockers that should be addressed before moving the source
+     * project or project-based workload to the destination folder-based workload.
      * 
* * repeated string blockers = 1; @@ -632,8 +630,8 @@ public Builder setBlockers(int index, java.lang.String value) { * * *
-     * List of blockers that prevent moving the source workload to the target
-     * workload
+     * A list of blockers that should be addressed before moving the source
+     * project or project-based workload to the destination folder-based workload.
      * 
* * repeated string blockers = 1; @@ -654,8 +652,8 @@ public Builder addBlockers(java.lang.String value) { * * *
-     * List of blockers that prevent moving the source workload to the target
-     * workload
+     * A list of blockers that should be addressed before moving the source
+     * project or project-based workload to the destination folder-based workload.
      * 
* * repeated string blockers = 1; @@ -673,8 +671,8 @@ public Builder addAllBlockers(java.lang.Iterable values) { * * *
-     * List of blockers that prevent moving the source workload to the target
-     * workload
+     * A list of blockers that should be addressed before moving the source
+     * project or project-based workload to the destination folder-based workload.
      * 
* * repeated string blockers = 1; @@ -691,8 +689,8 @@ public Builder clearBlockers() { * * *
-     * List of blockers that prevent moving the source workload to the target
-     * workload
+     * A list of blockers that should be addressed before moving the source
+     * project or project-based workload to the destination folder-based workload.
      * 
* * repeated string blockers = 1; diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AnalyzeWorkloadMoveResponseOrBuilder.java b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AnalyzeWorkloadMoveResponseOrBuilder.java index 49f53517d557..c8a5abeb4bb0 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AnalyzeWorkloadMoveResponseOrBuilder.java +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AnalyzeWorkloadMoveResponseOrBuilder.java @@ -27,8 +27,8 @@ public interface AnalyzeWorkloadMoveResponseOrBuilder * * *
-   * List of blockers that prevent moving the source workload to the target
-   * workload
+   * A list of blockers that should be addressed before moving the source
+   * project or project-based workload to the destination folder-based workload.
    * 
* * repeated string blockers = 1; @@ -40,8 +40,8 @@ public interface AnalyzeWorkloadMoveResponseOrBuilder * * *
-   * List of blockers that prevent moving the source workload to the target
-   * workload
+   * A list of blockers that should be addressed before moving the source
+   * project or project-based workload to the destination folder-based workload.
    * 
* * repeated string blockers = 1; @@ -53,8 +53,8 @@ public interface AnalyzeWorkloadMoveResponseOrBuilder * * *
-   * List of blockers that prevent moving the source workload to the target
-   * workload
+   * A list of blockers that should be addressed before moving the source
+   * project or project-based workload to the destination folder-based workload.
    * 
* * repeated string blockers = 1; @@ -67,8 +67,8 @@ public interface AnalyzeWorkloadMoveResponseOrBuilder * * *
-   * List of blockers that prevent moving the source workload to the target
-   * workload
+   * A list of blockers that should be addressed before moving the source
+   * project or project-based workload to the destination folder-based workload.
    * 
* * repeated string blockers = 1; diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java index d2c704b0398d..802a8fc38e91 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsProto.java @@ -35,14 +35,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_assuredworkloads_v1beta1_UpdateWorkloadRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedResourcesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -143,143 +135,136 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "workload\030\001 \001(\0132/.google.cloud.assuredwor" + "kloads.v1beta1.WorkloadB\003\340A\002\0224\n\013update_m" + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340" - + "A\002\"\230\002\n\036RestrictAllowedServicesRequest\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\022t\n\020restriction_type\030\002 \001" - + "(\0162U.google.cloud.assuredworkloads.v1bet" - + "a1.RestrictAllowedServicesRequest.Restri" - + "ctionTypeB\003\340A\002\"m\n\017RestrictionType\022 \n\034RES" - + "TRICTION_TYPE_UNSPECIFIED\020\000\022\032\n\026ALLOW_ALL" - + "_GCP_SERVICES\020\001\022\034\n\030ALLOW_COMPLIANT_SERVI" - + "CES\020\002\"!\n\037RestrictAllowedServicesResponse" - + "\"\234\002\n\037RestrictAllowedResourcesRequest\022\021\n\004" - + "name\030\001 \001(\tB\003\340A\002\022u\n\020restriction_type\030\002 \001(" - + "\0162V.google.cloud.assuredworkloads.v1beta" - + "1.RestrictAllowedResourcesRequest.Restri" - + "ctionTypeB\003\340A\002\"o\n\017RestrictionType\022 \n\034RES" - + "TRICTION_TYPE_UNSPECIFIED\020\000\022\033\n\027ALLOW_ALL" - + "_GCP_RESOURCES\020\001\022\035\n\031ALLOW_COMPLIANT_RESO" - + "URCES\020\002\"\"\n RestrictAllowedResourcesRespo" - + "nse\"j\n\025DeleteWorkloadRequest\022>\n\004name\030\001 \001" - + "(\tB0\340A\002\372A*\n(assuredworkloads.googleapis." - + "com/Workload\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"T\n\022GetWo" - + "rkloadRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(ass" - + "uredworkloads.googleapis.com/Workload\"s\n" - + "\032AnalyzeWorkloadMoveRequest\022\020\n\006source\030\001 " - + "\001(\tH\000\022\021\n\007project\030\003 \001(\tH\000\022\023\n\006target\030\002 \001(\t" - + "B\003\340A\002B\033\n\031projectOrWorkloadResource\"/\n\033An" - + "alyzeWorkloadMoveResponse\022\020\n\010blockers\030\001 " - + "\003(\t\"\217\001\n\024ListWorkloadsRequest\022@\n\006parent\030\001" - + " \001(\tB0\340A\002\372A*\022(assuredworkloads.googleapi" - + "s.com/Workload\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" - + "e_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"t\n\025ListWor" - + "kloadsResponse\022B\n\tworkloads\030\001 \003(\0132/.goog" - + "le.cloud.assuredworkloads.v1beta1.Worklo" - + "ad\022\027\n\017next_page_token\030\002 \001(\t\"\203\033\n\010Workload" - + "\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\031\n\014display_name\030\002 \001(" - + "\tB\003\340A\002\022T\n\tresources\030\003 \003(\0132<.google.cloud" - + ".assuredworkloads.v1beta1.Workload.Resou" - + "rceInfoB\003\340A\003\022c\n\021compliance_regime\030\004 \001(\0162" - + "@.google.cloud.assuredworkloads.v1beta1." - + "Workload.ComplianceRegimeB\006\340A\002\340A\005\0227\n\013cre" - + "ate_time\030\005 \001(\0132\032.google.protobuf.Timesta" - + "mpB\006\340A\003\340A\005\022\034\n\017billing_account\030\006 \001(\tB\003\340A\004" - + "\022]\n\014il4_settings\030\007 \001(\0132;.google.cloud.as" - + "suredworkloads.v1beta1.Workload.IL4Setti" - + "ngsB\010\030\001\340A\004\340A\005H\000\022_\n\rcjis_settings\030\010 \001(\0132<" - + ".google.cloud.assuredworkloads.v1beta1.W" - + "orkload.CJISSettingsB\010\030\001\340A\004\340A\005H\000\022n\n\025fedr" - + "amp_high_settings\030\013 \001(\0132C.google.cloud.a" - + "ssuredworkloads.v1beta1.Workload.Fedramp" - + "HighSettingsB\010\030\001\340A\004\340A\005H\000\022v\n\031fedramp_mode" - + "rate_settings\030\014 \001(\0132G.google.cloud.assur" - + "edworkloads.v1beta1.Workload.FedrampMode" - + "rateSettingsB\010\030\001\340A\004\340A\005H\000\022\021\n\004etag\030\t \001(\tB\003" - + "\340A\001\022P\n\006labels\030\n \003(\0132;.google.cloud.assur" - + "edworkloads.v1beta1.Workload.LabelsEntry" - + "B\003\340A\001\022)\n\034provisioned_resources_parent\030\r " - + "\001(\tB\003\340A\004\022X\n\014kms_settings\030\016 \001(\0132;.google." + + "A\002\"\234\002\n\037RestrictAllowedResourcesRequest\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\002\022u\n\020restriction_type\030\002 " + + "\001(\0162V.google.cloud.assuredworkloads.v1be" + + "ta1.RestrictAllowedResourcesRequest.Rest" + + "rictionTypeB\003\340A\002\"o\n\017RestrictionType\022 \n\034R" + + "ESTRICTION_TYPE_UNSPECIFIED\020\000\022\033\n\027ALLOW_A" + + "LL_GCP_RESOURCES\020\001\022\035\n\031ALLOW_COMPLIANT_RE" + + "SOURCES\020\002\"\"\n RestrictAllowedResourcesRes" + + "ponse\"j\n\025DeleteWorkloadRequest\022>\n\004name\030\001" + + " \001(\tB0\340A\002\372A*\n(assuredworkloads.googleapi" + + "s.com/Workload\022\021\n\004etag\030\002 \001(\tB\003\340A\001\"T\n\022Get" + + "WorkloadRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(a" + + "ssuredworkloads.googleapis.com/Workload\"" + + "s\n\032AnalyzeWorkloadMoveRequest\022\020\n\006source\030" + + "\001 \001(\tH\000\022\021\n\007project\030\003 \001(\tH\000\022\023\n\006target\030\002 \001" + + "(\tB\003\340A\002B\033\n\031projectOrWorkloadResource\"/\n\033" + + "AnalyzeWorkloadMoveResponse\022\020\n\010blockers\030" + + "\001 \003(\t\"\217\001\n\024ListWorkloadsRequest\022@\n\006parent" + + "\030\001 \001(\tB0\340A\002\372A*\022(assuredworkloads.googlea" + + "pis.com/Workload\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" + + "age_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"t\n\025ListW" + + "orkloadsResponse\022B\n\tworkloads\030\001 \003(\0132/.go" + + "ogle.cloud.assuredworkloads.v1beta1.Work" + + "load\022\027\n\017next_page_token\030\002 \001(\t\"\242\033\n\010Worklo" + + "ad\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\031\n\014display_name\030\002 " + + "\001(\tB\003\340A\002\022T\n\tresources\030\003 \003(\0132<.google.clo" + + "ud.assuredworkloads.v1beta1.Workload.Res" + + "ourceInfoB\003\340A\003\022c\n\021compliance_regime\030\004 \001(" + + "\0162@.google.cloud.assuredworkloads.v1beta" + + "1.Workload.ComplianceRegimeB\006\340A\002\340A\005\0227\n\013c" + + "reate_time\030\005 \001(\0132\032.google.protobuf.Times" + + "tampB\006\340A\003\340A\005\022\034\n\017billing_account\030\006 \001(\tB\003\340" + + "A\003\022]\n\014il4_settings\030\007 \001(\0132;.google.cloud." + + "assuredworkloads.v1beta1.Workload.IL4Set" + + "tingsB\010\030\001\340A\004\340A\005H\000\022_\n\rcjis_settings\030\010 \001(\013" + + "2<.google.cloud.assuredworkloads.v1beta1" + + ".Workload.CJISSettingsB\010\030\001\340A\004\340A\005H\000\022n\n\025fe" + + "dramp_high_settings\030\013 \001(\0132C.google.cloud" + + ".assuredworkloads.v1beta1.Workload.Fedra" + + "mpHighSettingsB\010\030\001\340A\004\340A\005H\000\022v\n\031fedramp_mo" + + "derate_settings\030\014 \001(\0132G.google.cloud.ass" + + "uredworkloads.v1beta1.Workload.FedrampMo" + + "derateSettingsB\010\030\001\340A\004\340A\005H\000\022\021\n\004etag\030\t \001(\t" + + "B\003\340A\001\022P\n\006labels\030\n \003(\0132;.google.cloud.ass" + + "uredworkloads.v1beta1.Workload.LabelsEnt" + + "ryB\003\340A\001\022)\n\034provisioned_resources_parent\030" + + "\r \001(\tB\003\340A\004\022X\n\014kms_settings\030\016 \001(\0132;.googl" + + "e.cloud.assuredworkloads.v1beta1.Workloa" + + "d.KMSSettingsB\005\030\001\340A\004\022`\n\021resource_setting" + + "s\030\017 \003(\0132@.google.cloud.assuredworkloads." + + "v1beta1.Workload.ResourceSettingsB\003\340A\004\022e" + + "\n\024kaj_enrollment_state\030\021 \001(\0162B.google.cl" + + "oud.assuredworkloads.v1beta1.Workload.Ka" + + "jEnrollmentStateB\003\340A\003\022&\n\031enable_sovereig" + + "n_controls\030\022 \001(\010B\003\340A\001\022k\n\027saa_enrollment_" + + "response\030\024 \001(\0132E.google.cloud.assuredwor" + + "kloads.v1beta1.Workload.SaaEnrollmentRes" + + "ponseB\003\340A\003\032\216\002\n\014ResourceInfo\022\023\n\013resource_" + + "id\030\001 \001(\003\022`\n\rresource_type\030\002 \001(\0162I.google" + + ".cloud.assuredworkloads.v1beta1.Workload" + + ".ResourceInfo.ResourceType\"\206\001\n\014ResourceT" + + "ype\022\035\n\031RESOURCE_TYPE_UNSPECIFIED\020\000\022\030\n\020CO" + + "NSUMER_PROJECT\020\001\032\002\010\001\022\023\n\017CONSUMER_FOLDER\020" + + "\004\022\033\n\027ENCRYPTION_KEYS_PROJECT\020\002\022\013\n\007KEYRIN" + + "G\020\003\032\223\001\n\013KMSSettings\022A\n\022next_rotation_tim" + + "e\030\001 \001(\0132\032.google.protobuf.TimestampB\t\340A\002" + + "\340A\004\340A\005\022=\n\017rotation_period\030\002 \001(\0132\031.google" + + ".protobuf.DurationB\t\340A\002\340A\004\340A\005:\002\030\001\032l\n\013IL4" + + "Settings\022Y\n\014kms_settings\030\001 \001(\0132;.google." + "cloud.assuredworkloads.v1beta1.Workload." - + "KMSSettingsB\005\030\001\340A\004\022`\n\021resource_settings\030" - + "\017 \003(\0132@.google.cloud.assuredworkloads.v1" - + "beta1.Workload.ResourceSettingsB\003\340A\004\022e\n\024" - + "kaj_enrollment_state\030\021 \001(\0162B.google.clou" - + "d.assuredworkloads.v1beta1.Workload.KajE" - + "nrollmentStateB\003\340A\003\022&\n\031enable_sovereign_" - + "controls\030\022 \001(\010B\003\340A\001\022k\n\027saa_enrollment_re" - + "sponse\030\024 \001(\0132E.google.cloud.assuredworkl" - + "oads.v1beta1.Workload.SaaEnrollmentRespo" - + "nseB\003\340A\003\032\216\002\n\014ResourceInfo\022\023\n\013resource_id" - + "\030\001 \001(\003\022`\n\rresource_type\030\002 \001(\0162I.google.c" - + "loud.assuredworkloads.v1beta1.Workload.R" - + "esourceInfo.ResourceType\"\206\001\n\014ResourceTyp" - + "e\022\035\n\031RESOURCE_TYPE_UNSPECIFIED\020\000\022\030\n\020CONS" - + "UMER_PROJECT\020\001\032\002\010\001\022\023\n\017CONSUMER_FOLDER\020\004\022" - + "\033\n\027ENCRYPTION_KEYS_PROJECT\020\002\022\013\n\007KEYRING\020" - + "\003\032\223\001\n\013KMSSettings\022A\n\022next_rotation_time\030" - + "\001 \001(\0132\032.google.protobuf.TimestampB\t\340A\002\340A" - + "\004\340A\005\022=\n\017rotation_period\030\002 \001(\0132\031.google.p" - + "rotobuf.DurationB\t\340A\002\340A\004\340A\005:\002\030\001\032l\n\013IL4Se" - + "ttings\022Y\n\014kms_settings\030\001 \001(\0132;.google.cl" - + "oud.assuredworkloads.v1beta1.Workload.KM" - + "SSettingsB\006\340A\004\340A\005:\002\030\001\032m\n\014CJISSettings\022Y\n" - + "\014kms_settings\030\001 \001(\0132;.google.cloud.assur" - + "edworkloads.v1beta1.Workload.KMSSettings" - + "B\006\340A\004\340A\005:\002\030\001\032t\n\023FedrampHighSettings\022Y\n\014k" - + "ms_settings\030\001 \001(\0132;.google.cloud.assured" - + "workloads.v1beta1.Workload.KMSSettingsB\006" - + "\340A\004\340A\005:\002\030\001\032x\n\027FedrampModerateSettings\022Y\n" + + "KMSSettingsB\006\340A\004\340A\005:\002\030\001\032m\n\014CJISSettings\022" + + "Y\n\014kms_settings\030\001 \001(\0132;.google.cloud.ass" + + "uredworkloads.v1beta1.Workload.KMSSettin" + + "gsB\006\340A\004\340A\005:\002\030\001\032t\n\023FedrampHighSettings\022Y\n" + "\014kms_settings\030\001 \001(\0132;.google.cloud.assur" + "edworkloads.v1beta1.Workload.KMSSettings" - + "B\006\340A\004\340A\005:\002\030\001\032\237\001\n\020ResourceSettings\022\023\n\013res" - + "ource_id\030\001 \001(\t\022`\n\rresource_type\030\002 \001(\0162I." - + "google.cloud.assuredworkloads.v1beta1.Wo" - + "rkload.ResourceInfo.ResourceType\022\024\n\014disp" - + "lay_name\030\003 \001(\t\032\206\004\n\025SaaEnrollmentResponse" - + "\022k\n\014setup_status\030\001 \001(\0162P.google.cloud.as" - + "suredworkloads.v1beta1.Workload.SaaEnrol" - + "lmentResponse.SetupStateH\000\210\001\001\022f\n\014setup_e" - + "rrors\030\002 \003(\0162P.google.cloud.assuredworklo" - + "ads.v1beta1.Workload.SaaEnrollmentRespon" - + "se.SetupError\"R\n\nSetupState\022\033\n\027SETUP_STA" - + "TE_UNSPECIFIED\020\000\022\022\n\016STATUS_PENDING\020\001\022\023\n\017" - + "STATUS_COMPLETE\020\002\"\262\001\n\nSetupError\022\033\n\027SETU" - + "P_ERROR_UNSPECIFIED\020\000\022\034\n\030ERROR_INVALID_B" - + "ASE_SETUP\020\001\022&\n\"ERROR_MISSING_EXTERNAL_SI" - + "GNING_KEY\020\002\022#\n\037ERROR_NOT_ALL_SERVICES_EN" - + "ROLLED\020\003\022\034\n\030ERROR_SETUP_CHECK_FAILED\020\004B\017" - + "\n\r_setup_status\032-\n\013LabelsEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\342\001\n\020ComplianceReg" - + "ime\022!\n\035COMPLIANCE_REGIME_UNSPECIFIED\020\000\022\007" - + "\n\003IL4\020\001\022\010\n\004CJIS\020\002\022\020\n\014FEDRAMP_HIGH\020\003\022\024\n\020F" - + "EDRAMP_MODERATE\020\004\022\026\n\022US_REGIONAL_ACCESS\020" - + "\005\022\t\n\005HIPAA\020\006\022\013\n\007HITRUST\020\007\022\032\n\026EU_REGIONS_" - + "AND_SUPPORT\020\010\022\032\n\026CA_REGIONS_AND_SUPPORT\020" - + "\t\022\010\n\004ITAR\020\n\"\177\n\022KajEnrollmentState\022$\n KAJ" - + "_ENROLLMENT_STATE_UNSPECIFIED\020\000\022 \n\034KAJ_E" - + "NROLLMENT_STATE_PENDING\020\001\022!\n\035KAJ_ENROLLM" - + "ENT_STATE_COMPLETE\020\002:u\352Ar\n(assuredworklo" - + "ads.googleapis.com/Workload\022Forganizatio" - + "ns/{organization}/locations/{location}/w" - + "orkloads/{workload}B\034\n\032compliance_regime" - + "_settings\"\313\002\n\037CreateWorkloadOperationMet" - + "adata\0224\n\013create_time\030\001 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\001\022\031\n\014display_name\030\002 \001(" - + "\tB\003\340A\001\022\023\n\006parent\030\003 \001(\tB\003\340A\001\022`\n\021complianc" - + "e_regime\030\004 \001(\0162@.google.cloud.assuredwor" - + "kloads.v1beta1.Workload.ComplianceRegime" - + "B\003\340A\001\022`\n\021resource_settings\030\005 \003(\0132@.googl" - + "e.cloud.assuredworkloads.v1beta1.Workloa" - + "d.ResourceSettingsB\003\340A\001B\366\002\n)com.google.c" - + "loud.assuredworkloads.v1beta1B\025Assuredwo" - + "rkloadsProtoP\001ZUgoogle.golang.org/genpro" - + "to/googleapis/cloud/assuredworkloads/v1b" - + "eta1;assuredworkloads\252\002%Google.Cloud.Ass" - + "uredWorkloads.V1Beta1\312\002%Google\\Cloud\\Ass" - + "uredWorkloads\\V1beta1\352\002(Google::Cloud::A" - + "ssuredWorkloads::V1beta1\352A]\n(assuredwork" - + "loads.googleapis.com/Location\0221organizat" - + "ions/{organization}/locations/{location}" - + "b\006proto3" + + "B\006\340A\004\340A\005:\002\030\001\032x\n\027FedrampModerateSettings\022" + + "Y\n\014kms_settings\030\001 \001(\0132;.google.cloud.ass" + + "uredworkloads.v1beta1.Workload.KMSSettin" + + "gsB\006\340A\004\340A\005:\002\030\001\032\237\001\n\020ResourceSettings\022\023\n\013r" + + "esource_id\030\001 \001(\t\022`\n\rresource_type\030\002 \001(\0162" + + "I.google.cloud.assuredworkloads.v1beta1." + + "Workload.ResourceInfo.ResourceType\022\024\n\014di" + + "splay_name\030\003 \001(\t\032\206\004\n\025SaaEnrollmentRespon" + + "se\022k\n\014setup_status\030\001 \001(\0162P.google.cloud." + + "assuredworkloads.v1beta1.Workload.SaaEnr" + + "ollmentResponse.SetupStateH\000\210\001\001\022f\n\014setup" + + "_errors\030\002 \003(\0162P.google.cloud.assuredwork" + + "loads.v1beta1.Workload.SaaEnrollmentResp" + + "onse.SetupError\"R\n\nSetupState\022\033\n\027SETUP_S" + + "TATE_UNSPECIFIED\020\000\022\022\n\016STATUS_PENDING\020\001\022\023" + + "\n\017STATUS_COMPLETE\020\002\"\262\001\n\nSetupError\022\033\n\027SE" + + "TUP_ERROR_UNSPECIFIED\020\000\022\034\n\030ERROR_INVALID" + + "_BASE_SETUP\020\001\022&\n\"ERROR_MISSING_EXTERNAL_" + + "SIGNING_KEY\020\002\022#\n\037ERROR_NOT_ALL_SERVICES_" + + "ENROLLED\020\003\022\034\n\030ERROR_SETUP_CHECK_FAILED\020\004" + + "B\017\n\r_setup_status\032-\n\013LabelsEntry\022\013\n\003key\030" + + "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\201\002\n\020ComplianceR" + + "egime\022!\n\035COMPLIANCE_REGIME_UNSPECIFIED\020\000" + + "\022\007\n\003IL4\020\001\022\010\n\004CJIS\020\002\022\020\n\014FEDRAMP_HIGH\020\003\022\024\n" + + "\020FEDRAMP_MODERATE\020\004\022\026\n\022US_REGIONAL_ACCES" + + "S\020\005\022\t\n\005HIPAA\020\006\022\013\n\007HITRUST\020\007\022\032\n\026EU_REGION" + + "S_AND_SUPPORT\020\010\022\032\n\026CA_REGIONS_AND_SUPPOR" + + "T\020\t\022\010\n\004ITAR\020\n\022\035\n\031AU_REGIONS_AND_US_SUPPO" + + "RT\020\013\"\177\n\022KajEnrollmentState\022$\n KAJ_ENROLL" + + "MENT_STATE_UNSPECIFIED\020\000\022 \n\034KAJ_ENROLLME" + + "NT_STATE_PENDING\020\001\022!\n\035KAJ_ENROLLMENT_STA" + + "TE_COMPLETE\020\002:u\352Ar\n(assuredworkloads.goo" + + "gleapis.com/Workload\022Forganizations/{org" + + "anization}/locations/{location}/workload" + + "s/{workload}B\034\n\032compliance_regime_settin" + + "gs\"\313\002\n\037CreateWorkloadOperationMetadata\0224" + + "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\001\022\031\n\014display_name\030\002 \001(\tB\003\340A\001\022" + + "\023\n\006parent\030\003 \001(\tB\003\340A\001\022`\n\021compliance_regim" + + "e\030\004 \001(\0162@.google.cloud.assuredworkloads." + + "v1beta1.Workload.ComplianceRegimeB\003\340A\001\022`" + + "\n\021resource_settings\030\005 \003(\0132@.google.cloud" + + ".assuredworkloads.v1beta1.Workload.Resou" + + "rceSettingsB\003\340A\001B\366\002\n)com.google.cloud.as" + + "suredworkloads.v1beta1B\025Assuredworkloads" + + "ProtoP\001ZUgoogle.golang.org/genproto/goog" + + "leapis/cloud/assuredworkloads/v1beta1;as" + + "suredworkloads\252\002%Google.Cloud.AssuredWor" + + "kloads.V1Beta1\312\002%Google\\Cloud\\AssuredWor" + + "kloads\\V1beta1\352\002(Google::Cloud::AssuredW" + + "orkloads::V1beta1\352A]\n(assuredworkloads.g" + + "oogleapis.com/Location\0221organizations/{o" + + "rganization}/locations/{location}b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -307,22 +292,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Workload", "UpdateMask", }); - internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesRequest_descriptor, - new java.lang.String[] { - "Name", "RestrictionType", - }); - internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesResponse_descriptor, - new java.lang.String[] {}); internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedResourcesRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(2); internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedResourcesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedResourcesRequest_descriptor, @@ -330,13 +301,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RestrictionType", }); internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedResourcesResponse_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(3); internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedResourcesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedResourcesResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(4); internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_assuredworkloads_v1beta1_DeleteWorkloadRequest_descriptor, @@ -344,7 +315,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Etag", }); internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_assuredworkloads_v1beta1_GetWorkloadRequest_descriptor, @@ -352,7 +323,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_assuredworkloads_v1beta1_AnalyzeWorkloadMoveRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_assuredworkloads_v1beta1_AnalyzeWorkloadMoveRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_assuredworkloads_v1beta1_AnalyzeWorkloadMoveRequest_descriptor, @@ -360,7 +331,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Source", "Project", "Target", "ProjectOrWorkloadResource", }); internal_static_google_cloud_assuredworkloads_v1beta1_AnalyzeWorkloadMoveResponse_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_assuredworkloads_v1beta1_AnalyzeWorkloadMoveResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_assuredworkloads_v1beta1_AnalyzeWorkloadMoveResponse_descriptor, @@ -368,7 +339,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Blockers", }); internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsRequest_descriptor, @@ -376,7 +347,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_assuredworkloads_v1beta1_ListWorkloadsResponse_descriptor, @@ -384,7 +355,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workloads", "NextPageToken", }); internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_assuredworkloads_v1beta1_Workload_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_assuredworkloads_v1beta1_Workload_descriptor, @@ -500,7 +471,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_assuredworkloads_v1beta1_CreateWorkloadOperationMetadata_descriptor, diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsServiceProto.java b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsServiceProto.java index 8a3c47a05d73..77555dfb3cdd 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsServiceProto.java +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/AssuredworkloadsServiceProto.java @@ -42,56 +42,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "roto\032 - * Request for restricting list of available services in Workload environment. - * - * - * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest} - */ -public final class RestrictAllowedServicesRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest) - RestrictAllowedServicesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RestrictAllowedServicesRequest.newBuilder() to construct. - private RestrictAllowedServicesRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RestrictAllowedServicesRequest() { - name_ = ""; - restrictionType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RestrictAllowedServicesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private RestrictAllowedServicesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - 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(); - - name_ = s; - break; - } - case 16: - { - int rawValue = input.readEnum(); - - restrictionType_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.class, - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.Builder.class); - } - - /** - * - * - *
-   * The type of restriction.
-   * 
- * - * Protobuf enum {@code - * google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType} - */ - public enum RestrictionType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unknown restriction type.
-     * 
- * - * RESTRICTION_TYPE_UNSPECIFIED = 0; - */ - RESTRICTION_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Allow the use all services. This effectively remove all restrictions
-     * placed on the Folder.
-     * 
- * - * ALLOW_ALL_GCP_SERVICES = 1; - */ - ALLOW_ALL_GCP_SERVICES(1), - /** - * - * - *
-     * Based on Workload's compliance regime, allowed list changes.
-     * See - https://cloud.google.com/assured-workloads/docs/supported-products
-     * for the list of allowed services.
-     * 
- * - * ALLOW_COMPLIANT_SERVICES = 2; - */ - ALLOW_COMPLIANT_SERVICES(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Unknown restriction type.
-     * 
- * - * RESTRICTION_TYPE_UNSPECIFIED = 0; - */ - public static final int RESTRICTION_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * Allow the use all services. This effectively remove all restrictions
-     * placed on the Folder.
-     * 
- * - * ALLOW_ALL_GCP_SERVICES = 1; - */ - public static final int ALLOW_ALL_GCP_SERVICES_VALUE = 1; - /** - * - * - *
-     * Based on Workload's compliance regime, allowed list changes.
-     * See - https://cloud.google.com/assured-workloads/docs/supported-products
-     * for the list of allowed services.
-     * 
- * - * ALLOW_COMPLIANT_SERVICES = 2; - */ - public static final int ALLOW_COMPLIANT_SERVICES_VALUE = 2; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RestrictionType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static RestrictionType forNumber(int value) { - switch (value) { - case 0: - return RESTRICTION_TYPE_UNSPECIFIED; - case 1: - return ALLOW_ALL_GCP_SERVICES; - case 2: - return ALLOW_COMPLIANT_SERVICES; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RestrictionType findValueByNumber(int number) { - return RestrictionType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest - .getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final RestrictionType[] VALUES = values(); - - public static RestrictionType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private RestrictionType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * Required. The resource name of the Workload. This is the workloads's
-   * relative path in the API, formatted as
-   * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-1".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 resource name of the Workload. This is the workloads's
-   * relative path in the API, formatted as
-   * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-1".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 RESTRICTION_TYPE_FIELD_NUMBER = 2; - private int restrictionType_; - /** - * - * - *
-   * Required. The type of restriction for using gcp services in the Workload environment.
-   * 
- * - * - * .google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for restrictionType. - */ - @java.lang.Override - public int getRestrictionTypeValue() { - return restrictionType_; - } - /** - * - * - *
-   * Required. The type of restriction for using gcp services in the Workload environment.
-   * 
- * - * - * .google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The restrictionType. - */ - @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType - getRestrictionType() { - @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType - result = - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType - .valueOf(restrictionType_); - return result == null - ? com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType - .UNRECOGNIZED - : result; - } - - 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 (restrictionType_ - != com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType - .RESTRICTION_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, restrictionType_); - } - unknownFields.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 (restrictionType_ - != com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType - .RESTRICTION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, restrictionType_); - } - size += unknownFields.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.assuredworkloads.v1beta1.RestrictAllowedServicesRequest)) { - return super.equals(obj); - } - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest other = - (com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (restrictionType_ != other.restrictionType_) return false; - if (!unknownFields.equals(other.unknownFields)) 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) + RESTRICTION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + restrictionType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest 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.assuredworkloads.v1beta1.RestrictAllowedServicesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest 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.assuredworkloads.v1beta1.RestrictAllowedServicesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest 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.assuredworkloads.v1beta1.RestrictAllowedServicesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest - 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.assuredworkloads.v1beta1.RestrictAllowedServicesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest 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.assuredworkloads.v1beta1.RestrictAllowedServicesRequest 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; - } - /** - * - * - *
-   * Request for restricting list of available services in Workload environment.
-   * 
- * - * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest) - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.class, - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.Builder - .class); - } - - // Construct using - // com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - restrictionType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest - getDefaultInstanceForType() { - return com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest build() { - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest result = - new com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest(this); - result.name_ = name_; - result.restrictionType_ = restrictionType_; - onBuilt(); - return result; - } - - @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.assuredworkloads.v1beta1.RestrictAllowedServicesRequest) { - return mergeFrom( - (com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest other) { - if (other - == com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest - .getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.restrictionType_ != 0) { - setRestrictionTypeValue(other.getRestrictionTypeValue()); - } - this.mergeUnknownFields(other.unknownFields); - 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 { - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The resource name of the Workload. This is the workloads's
-     * relative path in the API, formatted as
-     * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-1".
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 resource name of the Workload. This is the workloads's
-     * relative path in the API, formatted as
-     * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-1".
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 resource name of the Workload. This is the workloads's
-     * relative path in the API, formatted as
-     * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-1".
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name of the Workload. This is the workloads's
-     * relative path in the API, formatted as
-     * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-1".
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The resource name of the Workload. This is the workloads's
-     * relative path in the API, formatted as
-     * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-     * For example,
-     * "organizations/123/locations/us-east1/workloads/assured-workload-1".
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - onChanged(); - return this; - } - - private int restrictionType_ = 0; - /** - * - * - *
-     * Required. The type of restriction for using gcp services in the Workload environment.
-     * 
- * - * - * .google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for restrictionType. - */ - @java.lang.Override - public int getRestrictionTypeValue() { - return restrictionType_; - } - /** - * - * - *
-     * Required. The type of restriction for using gcp services in the Workload environment.
-     * 
- * - * - * .google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The enum numeric value on the wire for restrictionType to set. - * @return This builder for chaining. - */ - public Builder setRestrictionTypeValue(int value) { - - restrictionType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The type of restriction for using gcp services in the Workload environment.
-     * 
- * - * - * .google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The restrictionType. - */ - @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType - getRestrictionType() { - @SuppressWarnings("deprecation") - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType - result = - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest - .RestrictionType.valueOf(restrictionType_); - return result == null - ? com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType - .UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Required. The type of restriction for using gcp services in the Workload environment.
-     * 
- * - * - * .google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The restrictionType to set. - * @return This builder for chaining. - */ - public Builder setRestrictionType( - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType - value) { - if (value == null) { - throw new NullPointerException(); - } - - restrictionType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The type of restriction for using gcp services in the Workload environment.
-     * 
- * - * - * .google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearRestrictionType() { - - restrictionType_ = 0; - 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.assuredworkloads.v1beta1.RestrictAllowedServicesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest) - private static final com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest(); - } - - public static com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestrictAllowedServicesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RestrictAllowedServicesRequest(input, extensionRegistry); - } - }; - - 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.assuredworkloads.v1beta1.RestrictAllowedServicesRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/RestrictAllowedServicesRequestOrBuilder.java b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/RestrictAllowedServicesRequestOrBuilder.java deleted file mode 100644 index 085fd18e90b7..000000000000 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/RestrictAllowedServicesRequestOrBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2020 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/assuredworkloads/v1beta1/assuredworkloads.proto - -package com.google.cloud.assuredworkloads.v1beta1; - -public interface RestrictAllowedServicesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the Workload. This is the workloads's
-   * relative path in the API, formatted as
-   * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-1".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The resource name of the Workload. This is the workloads's
-   * relative path in the API, formatted as
-   * "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}".
-   * For example,
-   * "organizations/123/locations/us-east1/workloads/assured-workload-1".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The type of restriction for using gcp services in the Workload environment.
-   * 
- * - * - * .google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for restrictionType. - */ - int getRestrictionTypeValue(); - /** - * - * - *
-   * Required. The type of restriction for using gcp services in the Workload environment.
-   * 
- * - * - * .google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType restriction_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The restrictionType. - */ - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest.RestrictionType - getRestrictionType(); -} diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/RestrictAllowedServicesResponse.java b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/RestrictAllowedServicesResponse.java deleted file mode 100644 index dd4b6e224840..000000000000 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/RestrictAllowedServicesResponse.java +++ /dev/null @@ -1,479 +0,0 @@ -/* - * Copyright 2020 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/assuredworkloads/v1beta1/assuredworkloads.proto - -package com.google.cloud.assuredworkloads.v1beta1; - -/** - * - * - *
- * Response for restricting the list of allowed services.
- * 
- * - * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse} - */ -public final class RestrictAllowedServicesResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse) - RestrictAllowedServicesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use RestrictAllowedServicesResponse.newBuilder() to construct. - private RestrictAllowedServicesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RestrictAllowedServicesResponse() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RestrictAllowedServicesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private RestrictAllowedServicesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse.class, - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse.Builder - .class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.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.assuredworkloads.v1beta1.RestrictAllowedServicesResponse)) { - return super.equals(obj); - } - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse other = - (com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse 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.assuredworkloads.v1beta1.RestrictAllowedServicesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse 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.assuredworkloads.v1beta1.RestrictAllowedServicesResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse 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.assuredworkloads.v1beta1.RestrictAllowedServicesResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse - 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.assuredworkloads.v1beta1.RestrictAllowedServicesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse 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.assuredworkloads.v1beta1.RestrictAllowedServicesResponse 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; - } - /** - * - * - *
-   * Response for restricting the list of allowed services.
-   * 
- * - * Protobuf type {@code google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse) - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse.class, - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse.Builder - .class); - } - - // Construct using - // com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.assuredworkloads.v1beta1.AssuredworkloadsProto - .internal_static_google_cloud_assuredworkloads_v1beta1_RestrictAllowedServicesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse - getDefaultInstanceForType() { - return com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse build() { - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse - buildPartial() { - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse result = - new com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse(this); - onBuilt(); - return result; - } - - @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.assuredworkloads.v1beta1.RestrictAllowedServicesResponse) { - return mergeFrom( - (com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse other) { - if (other - == com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse - .getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - 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 { - com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - 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.assuredworkloads.v1beta1.RestrictAllowedServicesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse) - private static final com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse(); - } - - public static com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RestrictAllowedServicesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RestrictAllowedServicesResponse(input, extensionRegistry); - } - }; - - 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.assuredworkloads.v1beta1.RestrictAllowedServicesResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/RestrictAllowedServicesResponseOrBuilder.java b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/RestrictAllowedServicesResponseOrBuilder.java deleted file mode 100644 index b4493a99479d..000000000000 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/RestrictAllowedServicesResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 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/assuredworkloads/v1beta1/assuredworkloads.proto - -package com.google.cloud.assuredworkloads.v1beta1; - -public interface RestrictAllowedServicesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/Workload.java b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/Workload.java index c63dbd5a017e..b1a4ff93adbd 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/Workload.java +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/Workload.java @@ -494,6 +494,16 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum * ITAR = 10; */ ITAR(10), + /** + * + * + *
+     * Assured Workloads for Australia Regions and Support controls
+     * 
+ * + * AU_REGIONS_AND_US_SUPPORT = 11; + */ + AU_REGIONS_AND_US_SUPPORT(11), UNRECOGNIZED(-1), ; @@ -607,6 +617,16 @@ public enum ComplianceRegime implements com.google.protobuf.ProtocolMessageEnum * ITAR = 10; */ public static final int ITAR_VALUE = 10; + /** + * + * + *
+     * Assured Workloads for Australia Regions and Support controls
+     * 
+ * + * AU_REGIONS_AND_US_SUPPORT = 11; + */ + public static final int AU_REGIONS_AND_US_SUPPORT_VALUE = 11; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -654,6 +674,8 @@ public static ComplianceRegime forNumber(int value) { return CA_REGIONS_AND_SUPPORT; case 10: return ITAR; + case 11: + return AU_REGIONS_AND_US_SUPPORT; default: return null; } @@ -9479,7 +9501,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-   * Input only. The billing account used for the resources which are
+   * Output only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
    * with the resources created as part of Workload creation.
    * After the initial creation of these resources, the customer can change
@@ -9489,7 +9511,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * string billing_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The billingAccount. */ @@ -9509,7 +9531,7 @@ public java.lang.String getBillingAccount() { * * *
-   * Input only. The billing account used for the resources which are
+   * Output only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
    * with the resources created as part of Workload creation.
    * After the initial creation of these resources, the customer can change
@@ -9519,7 +9541,7 @@ public java.lang.String getBillingAccount() {
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * string billing_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for billingAccount. */ @@ -9549,7 +9571,7 @@ public com.google.protobuf.ByteString getBillingAccountBytes() { * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=498 + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=468 * @return Whether the il4Settings field is set. */ @java.lang.Override @@ -9569,7 +9591,7 @@ public boolean hasIl4Settings() { * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=498 + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=468 * @return The il4Settings. */ @java.lang.Override @@ -9616,7 +9638,7 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.IL4Settings getIl4Sett * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=505 + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=475 * @return Whether the cjisSettings field is set. */ @java.lang.Override @@ -9636,7 +9658,7 @@ public boolean hasCjisSettings() { * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=505 + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=475 * @return The cjisSettings. */ @java.lang.Override @@ -9683,7 +9705,7 @@ public com.google.cloud.assuredworkloads.v1beta1.Workload.CJISSettings getCjisSe * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=512 + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 * @return Whether the fedrampHighSettings field is set. */ @java.lang.Override @@ -9703,7 +9725,7 @@ public boolean hasFedrampHighSettings() { * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=512 + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 * @return The fedrampHighSettings. */ @java.lang.Override @@ -9753,7 +9775,7 @@ public boolean hasFedrampHighSettings() { * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is - * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=519 + * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=489 * @return Whether the fedrampModerateSettings field is set. */ @java.lang.Override @@ -9773,7 +9795,7 @@ public boolean hasFedrampModerateSettings() { * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is - * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=519 + * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=489 * @return The fedrampModerateSettings. */ @java.lang.Override @@ -10038,7 +10060,7 @@ public com.google.protobuf.ByteString getProvisionedResourcesParentBytes() { * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.kms_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=546 + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=516 * @return Whether the kmsSettings field is set. */ @java.lang.Override @@ -10062,7 +10084,7 @@ public boolean hasKmsSettings() { * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.kms_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=546 + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=516 * @return The kmsSettings. */ @java.lang.Override @@ -12174,7 +12196,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Input only. The billing account used for the resources which are
+     * Output only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
      * with the resources created as part of Workload creation.
      * After the initial creation of these resources, the customer can change
@@ -12184,7 +12206,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * string billing_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The billingAccount. */ @@ -12203,7 +12225,7 @@ public java.lang.String getBillingAccount() { * * *
-     * Input only. The billing account used for the resources which are
+     * Output only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
      * with the resources created as part of Workload creation.
      * After the initial creation of these resources, the customer can change
@@ -12213,7 +12235,7 @@ public java.lang.String getBillingAccount() {
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * string billing_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for billingAccount. */ @@ -12232,7 +12254,7 @@ public com.google.protobuf.ByteString getBillingAccountBytes() { * * *
-     * Input only. The billing account used for the resources which are
+     * Output only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
      * with the resources created as part of Workload creation.
      * After the initial creation of these resources, the customer can change
@@ -12242,7 +12264,7 @@ public com.google.protobuf.ByteString getBillingAccountBytes() {
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * string billing_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The billingAccount to set. * @return This builder for chaining. @@ -12260,7 +12282,7 @@ public Builder setBillingAccount(java.lang.String value) { * * *
-     * Input only. The billing account used for the resources which are
+     * Output only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
      * with the resources created as part of Workload creation.
      * After the initial creation of these resources, the customer can change
@@ -12270,7 +12292,7 @@ public Builder setBillingAccount(java.lang.String value) {
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * string billing_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -12284,7 +12306,7 @@ public Builder clearBillingAccount() { * * *
-     * Input only. The billing account used for the resources which are
+     * Output only. The billing account used for the resources which are
      * direct children of workload. This billing account is initially associated
      * with the resources created as part of Workload creation.
      * After the initial creation of these resources, the customer can change
@@ -12294,7 +12316,7 @@ public Builder clearBillingAccount() {
      * `billingAccounts/012345-567890-ABCDEF`.
      * 
* - * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * string billing_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for billingAccount to set. * @return This builder for chaining. @@ -12327,7 +12349,7 @@ public Builder setBillingAccountBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=498 + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=468 * @return Whether the il4Settings field is set. */ @java.lang.Override @@ -12347,7 +12369,7 @@ public boolean hasIl4Settings() { * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=498 + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=468 * @return The il4Settings. */ @java.lang.Override @@ -12578,7 +12600,7 @@ public Builder clearIl4Settings() { * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=505 + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=475 * @return Whether the cjisSettings field is set. */ @java.lang.Override @@ -12598,7 +12620,7 @@ public boolean hasCjisSettings() { * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=505 + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=475 * @return The cjisSettings. */ @java.lang.Override @@ -12829,7 +12851,7 @@ public Builder clearCjisSettings() { * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is - * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=512 + * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 * @return Whether the fedrampHighSettings field is set. */ @java.lang.Override @@ -12849,7 +12871,7 @@ public boolean hasFedrampHighSettings() { * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is - * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=512 + * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 * @return The fedrampHighSettings. */ @java.lang.Override @@ -13086,7 +13108,7 @@ public Builder clearFedrampHighSettings() { * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is - * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=519 + * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=489 * @return Whether the fedrampModerateSettings field is set. */ @java.lang.Override @@ -13106,7 +13128,7 @@ public boolean hasFedrampModerateSettings() { * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is - * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=519 + * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=489 * @return The fedrampModerateSettings. */ @java.lang.Override @@ -13754,7 +13776,7 @@ public Builder setProvisionedResourcesParentBytes(com.google.protobuf.ByteString * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.kms_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=546 + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=516 * @return Whether the kmsSettings field is set. */ @java.lang.Deprecated @@ -13777,7 +13799,7 @@ public boolean hasKmsSettings() { * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.kms_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=546 + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=516 * @return The kmsSettings. */ @java.lang.Deprecated diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadOrBuilder.java b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadOrBuilder.java index 4d7d691f21e7..a3f9129e9ebb 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadOrBuilder.java +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/java/com/google/cloud/assuredworkloads/v1beta1/WorkloadOrBuilder.java @@ -240,7 +240,7 @@ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getReso * * *
-   * Input only. The billing account used for the resources which are
+   * Output only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
    * with the resources created as part of Workload creation.
    * After the initial creation of these resources, the customer can change
@@ -250,7 +250,7 @@ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getReso
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * string billing_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The billingAccount. */ @@ -259,7 +259,7 @@ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getReso * * *
-   * Input only. The billing account used for the resources which are
+   * Output only. The billing account used for the resources which are
    * direct children of workload. This billing account is initially associated
    * with the resources created as part of Workload creation.
    * After the initial creation of these resources, the customer can change
@@ -269,7 +269,7 @@ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getReso
    * `billingAccounts/012345-567890-ABCDEF`.
    * 
* - * string billing_account = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * string billing_account = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for billingAccount. */ @@ -287,7 +287,7 @@ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getReso * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=498 + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=468 * @return Whether the il4Settings field is set. */ @java.lang.Deprecated @@ -304,7 +304,7 @@ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getReso * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.il4_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=498 + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=468 * @return The il4Settings. */ @java.lang.Deprecated @@ -335,7 +335,7 @@ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getReso * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=505 + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=475 * @return Whether the cjisSettings field is set. */ @java.lang.Deprecated @@ -352,7 +352,7 @@ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getReso * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.cjis_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=505 + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=475 * @return The cjisSettings. */ @java.lang.Deprecated @@ -384,7 +384,7 @@ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getReso * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=512 + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 * @return Whether the fedrampHighSettings field is set. */ @java.lang.Deprecated @@ -401,7 +401,7 @@ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getReso * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_high_settings is deprecated. - * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=512 + * See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=482 * @return The fedrampHighSettings. */ @java.lang.Deprecated @@ -433,7 +433,7 @@ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getReso * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is - * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=519 + * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=489 * @return Whether the fedrampModerateSettings field is set. */ @java.lang.Deprecated @@ -450,7 +450,7 @@ com.google.cloud.assuredworkloads.v1beta1.Workload.ResourceInfoOrBuilder getReso * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.fedramp_moderate_settings is - * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=519 + * deprecated. See google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=489 * @return The fedrampModerateSettings. */ @java.lang.Deprecated @@ -610,7 +610,7 @@ java.lang.String getLabelsOrDefault( * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.kms_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=546 + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=516 * @return Whether the kmsSettings field is set. */ @java.lang.Deprecated @@ -631,7 +631,7 @@ java.lang.String getLabelsOrDefault( * * * @deprecated google.cloud.assuredworkloads.v1beta1.Workload.kms_settings is deprecated. See - * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=546 + * google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto;l=516 * @return The kmsSettings. */ @java.lang.Deprecated diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/proto/google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/proto/google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto index 5967dd884fd2..589010c9ac1a 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/proto/google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/proto/google/cloud/assuredworkloads/v1beta1/assuredworkloads.proto @@ -67,39 +67,6 @@ message UpdateWorkloadRequest { google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request for restricting list of available services in Workload environment. -message RestrictAllowedServicesRequest { - // The type of restriction. - enum RestrictionType { - // Unknown restriction type. - RESTRICTION_TYPE_UNSPECIFIED = 0; - - // Allow the use all services. This effectively remove all restrictions - // placed on the Folder. - ALLOW_ALL_GCP_SERVICES = 1; - - // Based on Workload's compliance regime, allowed list changes. - // See - https://cloud.google.com/assured-workloads/docs/supported-products - // for the list of allowed services. - ALLOW_COMPLIANT_SERVICES = 2; - } - - // Required. The resource name of the Workload. This is the workloads's - // relative path in the API, formatted as - // "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - // For example, - // "organizations/123/locations/us-east1/workloads/assured-workload-1". - string name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The type of restriction for using gcp services in the Workload environment. - RestrictionType restriction_type = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Response for restricting the list of allowed services. -message RestrictAllowedServicesResponse { - -} - // Request for restricting list of available resources in Workload environment. message RestrictAllowedResourcesRequest { // The type of restriction. @@ -166,41 +133,41 @@ message GetWorkloadRequest { ]; } -// Request to check if source workload can be moved to target workload. +// A request to analyze a hypothetical move of a source project or project-based +// workload to a target (destination) folder-based workload. message AnalyzeWorkloadMoveRequest { - // Kind of resource to be moved to the destination workload + // The resource type to be moved to the destination workload. It can be either + // an existing project or a project-based workload. oneof projectOrWorkloadResource { - // The Source is project based Workload to be moved. This is the workloads's - // relative path in the API, formatted as - // "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - // For example, - // "organizations/123/locations/us-east1/workloads/assured-workload-1". + // The source type is a project-based workload. Specify the workloads's + // relative resource name, formatted as: + // "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" + // For example: + // "organizations/123/locations/us-east1/workloads/assured-workload-1" string source = 1; - // The Source is a project based to be moved. - // This is the project's relative path in the API, formatted as - // "cloudresourcemanager.googleapis.com/projects/{project_number}" - // "projects/{project_number}" - // "cloudresourcemanager.googleapis.com/projects/{project_id}" - // "projects/{project_id}" - // For example, - // "organizations/123/locations/us-east1/workloads/assured-workload-1". + // The source type is a project. Specify the project's relative resource + // name, formatted as either a project number or a project ID: + // "projects/{PROJECT_NUMBER}" or "projects/{PROJECT_ID}" + // For example: + // "projects/951040570662" when specifying a project number, or + // "projects/my-project-123" when specifying a project ID. string project = 3; } - // Required. The resource name of the Workload to fetch. This is the workloads's - // relative path in the API, formatted as - // "organizations/{organization_id}/locations/{location_id}/workloads/{workload_id}". - // For example, - // "organizations/123/locations/us-east1/workloads/assured-workload-2". + // Required. The resource ID of the folder-based destination workload. This workload is + // where the source project will hypothetically be moved to. Specify the + // workload's relative resource name, formatted as: + // "organizations/{ORGANIZATION_ID}/locations/{LOCATION_ID}/workloads/{WORKLOAD_ID}" + // For example: + // "organizations/123/locations/us-east1/workloads/assured-workload-2" string target = 2 [(google.api.field_behavior) = REQUIRED]; } -// Response with the analysis if the source workload can be moved to the target -// workload +// A response that includes the analysis of the hypothetical resource move. message AnalyzeWorkloadMoveResponse { - // List of blockers that prevent moving the source workload to the target - // workload + // A list of blockers that should be addressed before moving the source + // project or project-based workload to the destination folder-based workload. repeated string blockers = 1; } @@ -308,6 +275,9 @@ message Workload { // International Traffic in Arms Regulations ITAR = 10; + + // Assured Workloads for Australia Regions and Support controls + AU_REGIONS_AND_US_SUPPORT = 11; } // Settings specific to the Key Management Service. @@ -483,7 +453,7 @@ message Workload { (google.api.field_behavior) = IMMUTABLE ]; - // Input only. The billing account used for the resources which are + // Output only. The billing account used for the resources which are // direct children of workload. This billing account is initially associated // with the resources created as part of Workload creation. // After the initial creation of these resources, the customer can change @@ -491,7 +461,7 @@ message Workload { // The resource name has the form // `billingAccounts/{billing_account_id}`. For example, // `billingAccounts/012345-567890-ABCDEF`. - string billing_account = 6 [(google.api.field_behavior) = INPUT_ONLY]; + string billing_account = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Settings specific to the selected [compliance_regime] oneof compliance_regime_settings { diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/proto/google/cloud/assuredworkloads/v1beta1/assuredworkloads_service.proto b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/proto/google/cloud/assuredworkloads/v1beta1/assuredworkloads_service.proto index fff7655f664c..9fbedf47b10e 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/proto/google/cloud/assuredworkloads/v1beta1/assuredworkloads_service.proto +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/src/main/proto/google/cloud/assuredworkloads/v1beta1/assuredworkloads_service.proto @@ -33,12 +33,10 @@ option ruby_package = "Google::Cloud::AssuredWorkloads::V1beta1"; // Service to manage AssuredWorkloads. service AssuredWorkloadsService { option (google.api.default_host) = "assuredworkloads.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; // Creates Assured Workload. - rpc CreateWorkload(CreateWorkloadRequest) - returns (google.longrunning.Operation) { + rpc CreateWorkload(CreateWorkloadRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta1/{parent=organizations/*/locations/*}/workloads" body: "workload" @@ -55,30 +53,16 @@ service AssuredWorkloadsService { // For force updates don't set etag field in the Workload. // Only one update operation per workload can be in progress. rpc UpdateWorkload(UpdateWorkloadRequest) returns (Workload) { - option (google.api.http) = { - patch: "/v1beta1/{workload.name=organizations/*/locations/*/workloads/*}" - body: "workload" - }; option (google.api.method_signature) = "workload,update_mask"; } - // Restrict the list of services allowed in the Workload environment. - // The current list of allowed services can be found at - // https://cloud.google.com/assured-workloads/docs/supported-products - // In addition to assuredworkloads.workload.update permission, the user should - // also have orgpolicy.policy.set permission on the folder resource - // to use this functionality. - rpc RestrictAllowedServices(RestrictAllowedServicesRequest) - returns (RestrictAllowedServicesResponse) {} - // Restrict the list of resources allowed in the Workload environment. // The current list of allowed products can be found at // https://cloud.google.com/assured-workloads/docs/supported-products // In addition to assuredworkloads.workload.update permission, the user should // also have orgpolicy.policy.set permission on the folder resource // to use this functionality. - rpc RestrictAllowedResources(RestrictAllowedResourcesRequest) - returns (RestrictAllowedResourcesResponse) { + rpc RestrictAllowedResources(RestrictAllowedResourcesRequest) returns (RestrictAllowedResourcesResponse) { option (google.api.http) = { post: "/v1beta1/{name=organizations/*/locations/*/workloads/*}:restrictAllowedResources" body: "*" @@ -103,10 +87,9 @@ service AssuredWorkloadsService { option (google.api.method_signature) = "name"; } - // Analyze if the source Assured Workloads can be moved to the target Assured - // Workload - rpc AnalyzeWorkloadMove(AnalyzeWorkloadMoveRequest) - returns (AnalyzeWorkloadMoveResponse) { + // A request to analyze a hypothetical move of a source project or + // project-based workload to a target (destination) folder-based workload. + rpc AnalyzeWorkloadMove(AnalyzeWorkloadMoveRequest) returns (AnalyzeWorkloadMoveResponse) { option (google.api.method_signature) = "project,target"; } diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/restrictallowedservices/AsyncRestrictAllowedServices.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/restrictallowedservices/AsyncRestrictAllowedServices.java deleted file mode 100644 index 131260a6aa25..000000000000 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/restrictallowedservices/AsyncRestrictAllowedServices.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 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.assuredworkloads.v1beta1.samples; - -// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_restrictallowedservices_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; -import com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest; -import com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse; - -public class AsyncRestrictAllowedServices { - - public static void main(String[] args) throws Exception { - asyncRestrictAllowedServices(); - } - - public static void asyncRestrictAllowedServices() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. - try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = - AssuredWorkloadsServiceClient.create()) { - RestrictAllowedServicesRequest request = - RestrictAllowedServicesRequest.newBuilder().setName("name3373707").build(); - ApiFuture future = - assuredWorkloadsServiceClient.restrictAllowedServicesCallable().futureCall(request); - // Do something. - RestrictAllowedServicesResponse response = future.get(); - } - } -} -// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_restrictallowedservices_async] diff --git a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/restrictallowedservices/SyncRestrictAllowedServices.java b/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/restrictallowedservices/SyncRestrictAllowedServices.java deleted file mode 100644 index 6da89ca270fc..000000000000 --- a/java-assured-workloads/samples/snippets/generated/com/google/cloud/assuredworkloads/v1beta1/assuredworkloadsserviceclient/restrictallowedservices/SyncRestrictAllowedServices.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.assuredworkloads.v1beta1.samples; - -// [START assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_restrictallowedservices_sync] -import com.google.cloud.assuredworkloads.v1beta1.AssuredWorkloadsServiceClient; -import com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesRequest; -import com.google.cloud.assuredworkloads.v1beta1.RestrictAllowedServicesResponse; - -public class SyncRestrictAllowedServices { - - public static void main(String[] args) throws Exception { - syncRestrictAllowedServices(); - } - - public static void syncRestrictAllowedServices() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. - try (AssuredWorkloadsServiceClient assuredWorkloadsServiceClient = - AssuredWorkloadsServiceClient.create()) { - RestrictAllowedServicesRequest request = - RestrictAllowedServicesRequest.newBuilder().setName("name3373707").build(); - RestrictAllowedServicesResponse response = - assuredWorkloadsServiceClient.restrictAllowedServices(request); - } - } -} -// [END assuredworkloads_v1beta1_generated_assuredworkloadsserviceclient_restrictallowedservices_sync]