diff --git a/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/OsConfigZonalServiceClient.java b/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/OsConfigZonalServiceClient.java index bea51b3b..4fd1566b 100644 --- a/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/OsConfigZonalServiceClient.java +++ b/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/OsConfigZonalServiceClient.java @@ -1190,7 +1190,9 @@ public final ListOSPolicyAssignmentRevisionsPagedResponse listOSPolicyAssignment *
For `{project}`, either Compute Engine project-number or project-id can be provided. For * `{instance}`, either Compute Engine VM instance-id or instance-name can be provided. * @throws com.google.api.gax.rpc.ApiException if the remote call fails + * @deprecated This method is deprecated and will be removed in the next major version update. */ + @Deprecated public final InstanceOSPoliciesCompliance getInstanceOSPoliciesCompliance( InstanceOSPoliciesComplianceName name) { GetInstanceOSPoliciesComplianceRequest request = @@ -1222,7 +1224,9 @@ public final InstanceOSPoliciesCompliance getInstanceOSPoliciesCompliance( *
For `{project}`, either Compute Engine project-number or project-id can be provided. For
* `{instance}`, either Compute Engine VM instance-id or instance-name can be provided.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final InstanceOSPoliciesCompliance getInstanceOSPoliciesCompliance(String name) {
GetInstanceOSPoliciesComplianceRequest request =
GetInstanceOSPoliciesComplianceRequest.newBuilder().setName(name).build();
@@ -1251,7 +1255,9 @@ public final InstanceOSPoliciesCompliance getInstanceOSPoliciesCompliance(String
*
* @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
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final InstanceOSPoliciesCompliance getInstanceOSPoliciesCompliance(
GetInstanceOSPoliciesComplianceRequest request) {
return getInstanceOSPoliciesComplianceCallable().call(request);
@@ -1278,7 +1284,10 @@ public final InstanceOSPoliciesCompliance getInstanceOSPoliciesCompliance(
* InstanceOSPoliciesCompliance response = future.get();
* }
* }
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final UnaryCallable Format: `projects/{project}/locations/{location}`
* For `{project}`, either Compute Engine project-number or project-id can be provided.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final ListInstanceOSPoliciesCompliancesPagedResponse listInstanceOSPoliciesCompliances(
LocationName parent) {
ListInstanceOSPoliciesCompliancesRequest request =
@@ -1336,7 +1347,9 @@ public final ListInstanceOSPoliciesCompliancesPagedResponse listInstanceOSPolici
* Format: `projects/{project}/locations/{location}`
* For `{project}`, either Compute Engine project-number or project-id can be provided.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final ListInstanceOSPoliciesCompliancesPagedResponse listInstanceOSPoliciesCompliances(
String parent) {
ListInstanceOSPoliciesCompliancesRequest request =
@@ -1369,7 +1382,9 @@ public final ListInstanceOSPoliciesCompliancesPagedResponse listInstanceOSPolici
*
* @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
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final ListInstanceOSPoliciesCompliancesPagedResponse listInstanceOSPoliciesCompliances(
ListInstanceOSPoliciesCompliancesRequest request) {
return listInstanceOSPoliciesCompliancesPagedCallable().call(request);
@@ -1401,7 +1416,10 @@ public final ListInstanceOSPoliciesCompliancesPagedResponse listInstanceOSPolici
* }
* }
* }
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final UnaryCallable<
ListInstanceOSPoliciesCompliancesRequest, ListInstanceOSPoliciesCompliancesPagedResponse>
listInstanceOSPoliciesCompliancesPagedCallable() {
@@ -1439,13 +1457,338 @@ public final ListInstanceOSPoliciesCompliancesPagedResponse listInstanceOSPolici
* }
* }
* }
+ *
+ * @deprecated This method is deprecated and will be removed in the next major version update.
*/
+ @Deprecated
public final UnaryCallable<
ListInstanceOSPoliciesCompliancesRequest, ListInstanceOSPoliciesCompliancesResponse>
listInstanceOSPoliciesCompliancesCallable() {
return stub.listInstanceOSPoliciesCompliancesCallable();
}
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get the OS policy asssignment report for the specified Compute Engine VM instance.
+ *
+ * Sample code:
+ *
+ * Format:
+ * `/projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report`
+ * For `{project}`, either `project-number` or `project-id` can be provided. For
+ * `{instance_id}`, either Compute Engine `instance-id` or `instance-name` can be provided.
+ * For `{assignment_id}`, the OSPolicyAssignment id must be provided.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OSPolicyAssignmentReport getOSPolicyAssignmentReport(
+ OSPolicyAssignmentReportName name) {
+ GetOSPolicyAssignmentReportRequest request =
+ GetOSPolicyAssignmentReportRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getOSPolicyAssignmentReport(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get the OS policy asssignment report for the specified Compute Engine VM instance.
+ *
+ * Sample code:
+ *
+ * Format:
+ * `/projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report`
+ * For `{project}`, either `project-number` or `project-id` can be provided. For
+ * `{instance_id}`, either Compute Engine `instance-id` or `instance-name` can be provided.
+ * For `{assignment_id}`, the OSPolicyAssignment id must be provided.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OSPolicyAssignmentReport getOSPolicyAssignmentReport(String name) {
+ GetOSPolicyAssignmentReportRequest request =
+ GetOSPolicyAssignmentReportRequest.newBuilder().setName(name).build();
+ return getOSPolicyAssignmentReport(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get the OS policy asssignment report for the specified Compute Engine VM instance.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Format:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports`
+ * For `{project}`, either `project-number` or `project-id` can be provided. For
+ * `{instance}`, either `instance-name`, `instance-id`, or `-` can be provided. If '-' is
+ * provided, the response will include OSPolicyAssignmentReports for all instances in the
+ * project/location. For `{assignment}`, either `assignment-id` or `-` can be provided. If '-'
+ * is provided, the response will include OSPolicyAssignmentReports for all
+ * OSPolicyAssignments in the project/location. Either {instance} or {assignment} must be `-`.
+ * For example:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports`
+ * returns all reports for the instance
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports`
+ * returns all the reports for the given assignment across all instances.
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports` returns
+ * all the reports for all assignments across all instances.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListOSPolicyAssignmentReportsPagedResponse listOSPolicyAssignmentReports(
+ InstanceOSPolicyAssignmentName parent) {
+ ListOSPolicyAssignmentReportsRequest request =
+ ListOSPolicyAssignmentReportsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listOSPolicyAssignmentReports(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.
+ *
+ * Sample code:
+ *
+ * Format:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports`
+ * For `{project}`, either `project-number` or `project-id` can be provided. For
+ * `{instance}`, either `instance-name`, `instance-id`, or `-` can be provided. If '-' is
+ * provided, the response will include OSPolicyAssignmentReports for all instances in the
+ * project/location. For `{assignment}`, either `assignment-id` or `-` can be provided. If '-'
+ * is provided, the response will include OSPolicyAssignmentReports for all
+ * OSPolicyAssignments in the project/location. Either {instance} or {assignment} must be `-`.
+ * For example:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports`
+ * returns all reports for the instance
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports`
+ * returns all the reports for the given assignment across all instances.
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports` returns
+ * all the reports for all assignments across all instances.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListOSPolicyAssignmentReportsPagedResponse listOSPolicyAssignmentReports(
+ String parent) {
+ ListOSPolicyAssignmentReportsRequest request =
+ ListOSPolicyAssignmentReportsRequest.newBuilder().setParent(parent).build();
+ return listOSPolicyAssignmentReports(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Format: `projects/{project}/locations/{location}/instances/{instance}`
- * For `{project}`, either `project-number` or `project-id` can be provided. For
- * `{instance}`, only hyphen or dash character is supported to list inventories across VMs.
+ * Format: `projects/{project}/locations/{location}/instances/-`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListInventoriesPagedResponse listInventories(InstanceName parent) {
@@ -1598,9 +1940,8 @@ public final ListInventoriesPagedResponse listInventories(InstanceName parent) {
* }
*
* @param parent Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
- * For `{project}`, either `project-number` or `project-id` can be provided. For
- * `{instance}`, only hyphen or dash character is supported to list inventories across VMs.
+ * Format: `projects/{project}/locations/{location}/instances/-`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListInventoriesPagedResponse listInventories(String parent) {
@@ -1837,9 +2178,8 @@ public final VulnerabilityReport getVulnerabilityReport(GetVulnerabilityReportRe
* }
*
* @param parent Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
- * For `{project}`, either `project-number` or `project-id` can be provided. For
- * `{instance}`, only `-` character is supported to list vulnerability reports across VMs.
+ * Format: `projects/{project}/locations/{location}/instances/-`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListVulnerabilityReportsPagedResponse listVulnerabilityReports(InstanceName parent) {
@@ -1868,9 +2208,8 @@ public final ListVulnerabilityReportsPagedResponse listVulnerabilityReports(Inst
* }
*
* @param parent Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
- * For `{project}`, either `project-number` or `project-id` can be provided. For
- * `{instance}`, only `-` character is supported to list vulnerability reports across VMs.
+ * Format: `projects/{project}/locations/{location}/instances/-`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListVulnerabilityReportsPagedResponse listVulnerabilityReports(String parent) {
@@ -2290,6 +2629,103 @@ protected ListInstanceOSPoliciesCompliancesFixedSizeCollection createCollection(
}
}
+ public static class ListOSPolicyAssignmentReportsPagedResponse
+ extends AbstractPagedListResponse<
+ ListOSPolicyAssignmentReportsRequest,
+ ListOSPolicyAssignmentReportsResponse,
+ OSPolicyAssignmentReport,
+ ListOSPolicyAssignmentReportsPage,
+ ListOSPolicyAssignmentReportsFixedSizeCollection> {
+
+ public static ApiFuture The interfaces provided are listed below, along with usage samples.
*
* ======================= OsConfigZonalServiceClient =======================
*
diff --git a/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/GrpcOsConfigZonalServiceStub.java b/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/GrpcOsConfigZonalServiceStub.java
index eb0ddbe1..a8a3cc04 100644
--- a/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/GrpcOsConfigZonalServiceStub.java
+++ b/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/GrpcOsConfigZonalServiceStub.java
@@ -18,6 +18,7 @@
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListInstanceOSPoliciesCompliancesPagedResponse;
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListInventoriesPagedResponse;
+import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListOSPolicyAssignmentReportsPagedResponse;
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListOSPolicyAssignmentRevisionsPagedResponse;
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListOSPolicyAssignmentsPagedResponse;
import static com.google.cloud.osconfig.v1alpha.OsConfigZonalServiceClient.ListVulnerabilityReportsPagedResponse;
@@ -34,6 +35,7 @@
import com.google.cloud.osconfig.v1alpha.DeleteOSPolicyAssignmentRequest;
import com.google.cloud.osconfig.v1alpha.GetInstanceOSPoliciesComplianceRequest;
import com.google.cloud.osconfig.v1alpha.GetInventoryRequest;
+import com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest;
import com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentRequest;
import com.google.cloud.osconfig.v1alpha.GetVulnerabilityReportRequest;
import com.google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance;
@@ -42,6 +44,8 @@
import com.google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse;
import com.google.cloud.osconfig.v1alpha.ListInventoriesRequest;
import com.google.cloud.osconfig.v1alpha.ListInventoriesResponse;
+import com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest;
+import com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse;
import com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsRequest;
import com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsResponse;
import com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsRequest;
@@ -50,6 +54,7 @@
import com.google.cloud.osconfig.v1alpha.ListVulnerabilityReportsResponse;
import com.google.cloud.osconfig.v1alpha.OSPolicyAssignment;
import com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata;
+import com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport;
import com.google.cloud.osconfig.v1alpha.UpdateOSPolicyAssignmentRequest;
import com.google.cloud.osconfig.v1alpha.VulnerabilityReport;
import com.google.common.collect.ImmutableMap;
@@ -178,6 +183,35 @@ public class GrpcOsConfigZonalServiceStub extends OsConfigZonalServiceStub {
ListInstanceOSPoliciesCompliancesResponse.getDefaultInstance()))
.build();
+ private static final MethodDescriptor<
+ GetOSPolicyAssignmentReportRequest, OSPolicyAssignmentReport>
+ getOSPolicyAssignmentReportMethodDescriptor =
+ MethodDescriptor
+ . Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * The interfaces provided are listed below, along with usage samples.
*
* ======================= OsConfigServiceClient =======================
*
@@ -37,6 +39,7 @@
* .setDuration(Duration.newBuilder().build())
* .setDryRun(true)
* .setDisplayName("displayName1714148973")
+ * .setRollout(PatchJobs.PatchRollout.newBuilder().build())
* .build();
* PatchJobs.PatchJob response = osConfigServiceClient.executePatchJob(request);
* }
diff --git a/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/stub/GrpcOsConfigServiceStub.java b/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/stub/GrpcOsConfigServiceStub.java
index b2e8c4d6..09fbd728 100644
--- a/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/stub/GrpcOsConfigServiceStub.java
+++ b/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/stub/GrpcOsConfigServiceStub.java
@@ -173,6 +173,54 @@ public class GrpcOsConfigServiceStub extends OsConfigServiceStub {
.setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
.build();
+ private static final MethodDescriptor<
+ PatchDeployments.UpdatePatchDeploymentRequest, PatchDeployments.PatchDeployment>
+ updatePatchDeploymentMethodDescriptor =
+ MethodDescriptor
+ .{@code
+ * try (OsConfigZonalServiceClient osConfigZonalServiceClient =
+ * OsConfigZonalServiceClient.create()) {
+ * OSPolicyAssignmentReportName name =
+ * OSPolicyAssignmentReportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[ASSIGNMENT]");
+ * OSPolicyAssignmentReport response =
+ * osConfigZonalServiceClient.getOSPolicyAssignmentReport(name);
+ * }
+ * }
+ *
+ * @param name Required. API resource name for OS policy assignment report.
+ * {@code
+ * try (OsConfigZonalServiceClient osConfigZonalServiceClient =
+ * OsConfigZonalServiceClient.create()) {
+ * String name =
+ * OSPolicyAssignmentReportName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[ASSIGNMENT]")
+ * .toString();
+ * OSPolicyAssignmentReport response =
+ * osConfigZonalServiceClient.getOSPolicyAssignmentReport(name);
+ * }
+ * }
+ *
+ * @param name Required. API resource name for OS policy assignment report.
+ * {@code
+ * try (OsConfigZonalServiceClient osConfigZonalServiceClient =
+ * OsConfigZonalServiceClient.create()) {
+ * GetOSPolicyAssignmentReportRequest request =
+ * GetOSPolicyAssignmentReportRequest.newBuilder()
+ * .setName(
+ * OSPolicyAssignmentReportName.of(
+ * "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[ASSIGNMENT]")
+ * .toString())
+ * .build();
+ * OSPolicyAssignmentReport response =
+ * osConfigZonalServiceClient.getOSPolicyAssignmentReport(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 OSPolicyAssignmentReport getOSPolicyAssignmentReport(
+ GetOSPolicyAssignmentReportRequest request) {
+ return getOSPolicyAssignmentReportCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Get the OS policy asssignment report for the specified Compute Engine VM instance.
+ *
+ * {@code
+ * try (OsConfigZonalServiceClient osConfigZonalServiceClient =
+ * OsConfigZonalServiceClient.create()) {
+ * GetOSPolicyAssignmentReportRequest request =
+ * GetOSPolicyAssignmentReportRequest.newBuilder()
+ * .setName(
+ * OSPolicyAssignmentReportName.of(
+ * "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[ASSIGNMENT]")
+ * .toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (OsConfigZonalServiceClient osConfigZonalServiceClient =
+ * OsConfigZonalServiceClient.create()) {
+ * InstanceOSPolicyAssignmentName parent =
+ * InstanceOSPolicyAssignmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[ASSIGNMENT]");
+ * for (OSPolicyAssignmentReport element :
+ * osConfigZonalServiceClient.listOSPolicyAssignmentReports(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource name.
+ * {@code
+ * try (OsConfigZonalServiceClient osConfigZonalServiceClient =
+ * OsConfigZonalServiceClient.create()) {
+ * String parent =
+ * InstanceOSPolicyAssignmentName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[ASSIGNMENT]")
+ * .toString();
+ * for (OSPolicyAssignmentReport element :
+ * osConfigZonalServiceClient.listOSPolicyAssignmentReports(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The parent resource name.
+ * {@code
+ * try (OsConfigZonalServiceClient osConfigZonalServiceClient =
+ * OsConfigZonalServiceClient.create()) {
+ * ListOSPolicyAssignmentReportsRequest request =
+ * ListOSPolicyAssignmentReportsRequest.newBuilder()
+ * .setParent(
+ * InstanceOSPolicyAssignmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[ASSIGNMENT]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setFilter("filter-1274492040")
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (OSPolicyAssignmentReport element :
+ * osConfigZonalServiceClient.listOSPolicyAssignmentReports(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListOSPolicyAssignmentReportsPagedResponse listOSPolicyAssignmentReports(
+ ListOSPolicyAssignmentReportsRequest request) {
+ return listOSPolicyAssignmentReportsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.
+ *
+ * {@code
+ * try (OsConfigZonalServiceClient osConfigZonalServiceClient =
+ * OsConfigZonalServiceClient.create()) {
+ * ListOSPolicyAssignmentReportsRequest request =
+ * ListOSPolicyAssignmentReportsRequest.newBuilder()
+ * .setParent(
+ * InstanceOSPolicyAssignmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[ASSIGNMENT]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setFilter("filter-1274492040")
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsPagedResponse>
+ listOSPolicyAssignmentReportsPagedCallable() {
+ return stub.listOSPolicyAssignmentReportsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * List OS policy asssignment reports for all Compute Engine VM instances in the specified zone.
+ *
+ * {@code
+ * try (OsConfigZonalServiceClient osConfigZonalServiceClient =
+ * OsConfigZonalServiceClient.create()) {
+ * ListOSPolicyAssignmentReportsRequest request =
+ * ListOSPolicyAssignmentReportsRequest.newBuilder()
+ * .setParent(
+ * InstanceOSPolicyAssignmentName.of(
+ * "[PROJECT]", "[LOCATION]", "[INSTANCE]", "[ASSIGNMENT]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setFilter("filter-1274492040")
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListOSPolicyAssignmentReportsResponse response =
+ * osConfigZonalServiceClient.listOSPolicyAssignmentReportsCallable().call(request);
+ * for (OSPolicyAssignmentReport element : response.getResponsesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse>
+ listOSPolicyAssignmentReportsCallable() {
+ return stub.listOSPolicyAssignmentReportsCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Get inventory data for the specified VM instance. If the VM has no associated inventory, the
@@ -1568,9 +1911,8 @@ public final UnaryCallable{@code
+ * try (OsConfigServiceClient osConfigServiceClient = OsConfigServiceClient.create()) {
+ * PatchDeployments.PatchDeployment patchDeployment =
+ * PatchDeployments.PatchDeployment.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * PatchDeployments.PatchDeployment response =
+ * osConfigServiceClient.updatePatchDeployment(patchDeployment, updateMask);
+ * }
+ * }
+ *
+ * @param patchDeployment Required. The patch deployment to Update.
+ * @param updateMask Optional. Field mask that controls which fields of the patch deployment
+ * should be updated.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PatchDeployments.PatchDeployment updatePatchDeployment(
+ PatchDeployments.PatchDeployment patchDeployment, FieldMask updateMask) {
+ PatchDeployments.UpdatePatchDeploymentRequest request =
+ PatchDeployments.UpdatePatchDeploymentRequest.newBuilder()
+ .setPatchDeployment(patchDeployment)
+ .setUpdateMask(updateMask)
+ .build();
+ return updatePatchDeployment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update an OS Config patch deployment.
+ *
+ * {@code
+ * try (OsConfigServiceClient osConfigServiceClient = OsConfigServiceClient.create()) {
+ * PatchDeployments.UpdatePatchDeploymentRequest request =
+ * PatchDeployments.UpdatePatchDeploymentRequest.newBuilder()
+ * .setPatchDeployment(PatchDeployments.PatchDeployment.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * PatchDeployments.PatchDeployment response =
+ * osConfigServiceClient.updatePatchDeployment(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 PatchDeployments.PatchDeployment updatePatchDeployment(
+ PatchDeployments.UpdatePatchDeploymentRequest request) {
+ return updatePatchDeploymentCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Update an OS Config patch deployment.
+ *
+ * {@code
+ * try (OsConfigServiceClient osConfigServiceClient = OsConfigServiceClient.create()) {
+ * PatchDeployments.UpdatePatchDeploymentRequest request =
+ * PatchDeployments.UpdatePatchDeploymentRequest.newBuilder()
+ * .setPatchDeployment(PatchDeployments.PatchDeployment.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ PatchDeployments.UpdatePatchDeploymentRequest, PatchDeployments.PatchDeployment>
+ updatePatchDeploymentCallable() {
+ return stub.updatePatchDeploymentCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Change state of patch deployment to "PAUSED". Patch deployment in paused state doesn't generate
+ * patch jobs.
+ *
+ * {@code
+ * try (OsConfigServiceClient osConfigServiceClient = OsConfigServiceClient.create()) {
+ * PatchDeploymentName name = PatchDeploymentName.of("[PROJECT]", "[PATCH_DEPLOYMENT]");
+ * PatchDeployments.PatchDeployment response = osConfigServiceClient.pausePatchDeployment(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the patch deployment in the form
+ * `projects/*/patchDeployments/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PatchDeployments.PatchDeployment pausePatchDeployment(PatchDeploymentName name) {
+ PatchDeployments.PausePatchDeploymentRequest request =
+ PatchDeployments.PausePatchDeploymentRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return pausePatchDeployment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Change state of patch deployment to "PAUSED". Patch deployment in paused state doesn't generate
+ * patch jobs.
+ *
+ * {@code
+ * try (OsConfigServiceClient osConfigServiceClient = OsConfigServiceClient.create()) {
+ * String name = PatchDeploymentName.of("[PROJECT]", "[PATCH_DEPLOYMENT]").toString();
+ * PatchDeployments.PatchDeployment response = osConfigServiceClient.pausePatchDeployment(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the patch deployment in the form
+ * `projects/*/patchDeployments/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PatchDeployments.PatchDeployment pausePatchDeployment(String name) {
+ PatchDeployments.PausePatchDeploymentRequest request =
+ PatchDeployments.PausePatchDeploymentRequest.newBuilder().setName(name).build();
+ return pausePatchDeployment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Change state of patch deployment to "PAUSED". Patch deployment in paused state doesn't generate
+ * patch jobs.
+ *
+ * {@code
+ * try (OsConfigServiceClient osConfigServiceClient = OsConfigServiceClient.create()) {
+ * PatchDeployments.PausePatchDeploymentRequest request =
+ * PatchDeployments.PausePatchDeploymentRequest.newBuilder()
+ * .setName(PatchDeploymentName.of("[PROJECT]", "[PATCH_DEPLOYMENT]").toString())
+ * .build();
+ * PatchDeployments.PatchDeployment response =
+ * osConfigServiceClient.pausePatchDeployment(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 PatchDeployments.PatchDeployment pausePatchDeployment(
+ PatchDeployments.PausePatchDeploymentRequest request) {
+ return pausePatchDeploymentCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Change state of patch deployment to "PAUSED". Patch deployment in paused state doesn't generate
+ * patch jobs.
+ *
+ * {@code
+ * try (OsConfigServiceClient osConfigServiceClient = OsConfigServiceClient.create()) {
+ * PatchDeployments.PausePatchDeploymentRequest request =
+ * PatchDeployments.PausePatchDeploymentRequest.newBuilder()
+ * .setName(PatchDeploymentName.of("[PROJECT]", "[PATCH_DEPLOYMENT]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ PatchDeployments.PausePatchDeploymentRequest, PatchDeployments.PatchDeployment>
+ pausePatchDeploymentCallable() {
+ return stub.pausePatchDeploymentCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Change state of patch deployment back to "ACTIVE". Patch deployment in active state continues
+ * to generate patch jobs.
+ *
+ * {@code
+ * try (OsConfigServiceClient osConfigServiceClient = OsConfigServiceClient.create()) {
+ * PatchDeploymentName name = PatchDeploymentName.of("[PROJECT]", "[PATCH_DEPLOYMENT]");
+ * PatchDeployments.PatchDeployment response = osConfigServiceClient.resumePatchDeployment(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the patch deployment in the form
+ * `projects/*/patchDeployments/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PatchDeployments.PatchDeployment resumePatchDeployment(PatchDeploymentName name) {
+ PatchDeployments.ResumePatchDeploymentRequest request =
+ PatchDeployments.ResumePatchDeploymentRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return resumePatchDeployment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Change state of patch deployment back to "ACTIVE". Patch deployment in active state continues
+ * to generate patch jobs.
+ *
+ * {@code
+ * try (OsConfigServiceClient osConfigServiceClient = OsConfigServiceClient.create()) {
+ * String name = PatchDeploymentName.of("[PROJECT]", "[PATCH_DEPLOYMENT]").toString();
+ * PatchDeployments.PatchDeployment response = osConfigServiceClient.resumePatchDeployment(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the patch deployment in the form
+ * `projects/*/patchDeployments/*`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PatchDeployments.PatchDeployment resumePatchDeployment(String name) {
+ PatchDeployments.ResumePatchDeploymentRequest request =
+ PatchDeployments.ResumePatchDeploymentRequest.newBuilder().setName(name).build();
+ return resumePatchDeployment(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Change state of patch deployment back to "ACTIVE". Patch deployment in active state continues
+ * to generate patch jobs.
+ *
+ * {@code
+ * try (OsConfigServiceClient osConfigServiceClient = OsConfigServiceClient.create()) {
+ * PatchDeployments.ResumePatchDeploymentRequest request =
+ * PatchDeployments.ResumePatchDeploymentRequest.newBuilder()
+ * .setName(PatchDeploymentName.of("[PROJECT]", "[PATCH_DEPLOYMENT]").toString())
+ * .build();
+ * PatchDeployments.PatchDeployment response =
+ * osConfigServiceClient.resumePatchDeployment(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 PatchDeployments.PatchDeployment resumePatchDeployment(
+ PatchDeployments.ResumePatchDeploymentRequest request) {
+ return resumePatchDeploymentCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Change state of patch deployment back to "ACTIVE". Patch deployment in active state continues
+ * to generate patch jobs.
+ *
+ * {@code
+ * try (OsConfigServiceClient osConfigServiceClient = OsConfigServiceClient.create()) {
+ * PatchDeployments.ResumePatchDeploymentRequest request =
+ * PatchDeployments.ResumePatchDeploymentRequest.newBuilder()
+ * .setName(PatchDeploymentName.of("[PROJECT]", "[PATCH_DEPLOYMENT]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable<
+ PatchDeployments.ResumePatchDeploymentRequest, PatchDeployments.PatchDeployment>
+ resumePatchDeploymentCallable() {
+ return stub.resumePatchDeploymentCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Create an OS Config guest policy.
diff --git a/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/OsConfigServiceSettings.java b/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/OsConfigServiceSettings.java
index 943553f9..689a899c 100644
--- a/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/OsConfigServiceSettings.java
+++ b/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/OsConfigServiceSettings.java
@@ -138,6 +138,27 @@ public UnaryCallSettings
+ * Get the OS policy asssignment report for the specified Compute Engine VM
+ * instance.
+ *
+ */
+ public void getOSPolicyAssignmentReport(
+ com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest request,
+ io.grpc.stub.StreamObserver
+ * List OS policy asssignment reports for all Compute Engine VM instances in
+ * the specified zone.
+ *
+ */
+ public void listOSPolicyAssignmentReports(
+ com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse>
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getListOSPolicyAssignmentReportsMethod(), responseObserver);
+ }
+
/**
*
*
@@ -972,6 +1113,20 @@ public final io.grpc.ServerServiceDefinition bindService() {
com.google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesRequest,
com.google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse>(
this, METHODID_LIST_INSTANCE_OSPOLICIES_COMPLIANCES)))
+ .addMethod(
+ getGetOSPolicyAssignmentReportMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport>(
+ this, METHODID_GET_OSPOLICY_ASSIGNMENT_REPORT)))
+ .addMethod(
+ getListOSPolicyAssignmentReportsMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest,
+ com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse>(
+ this, METHODID_LIST_OSPOLICY_ASSIGNMENT_REPORTS)))
.addMethod(
getGetInventoryMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
@@ -1154,6 +1309,7 @@ public void deleteOSPolicyAssignment(
* instance.
*
*/
+ @java.lang.Deprecated
public void getInstanceOSPoliciesCompliance(
com.google.cloud.osconfig.v1alpha.GetInstanceOSPoliciesComplianceRequest request,
io.grpc.stub.StreamObserver
+ * Get the OS policy asssignment report for the specified Compute Engine VM
+ * instance.
+ *
+ */
+ public void getOSPolicyAssignmentReport(
+ com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest request,
+ io.grpc.stub.StreamObserver
+ * List OS policy asssignment reports for all Compute Engine VM instances in
+ * the specified zone.
+ *
+ */
+ public void listOSPolicyAssignmentReports(
+ com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse>
+ responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getListOSPolicyAssignmentReportsMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+
/**
*
*
@@ -1385,6 +1579,7 @@ public com.google.longrunning.Operation deleteOSPolicyAssignment(
* instance.
*
*/
+ @java.lang.Deprecated
public com.google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance
getInstanceOSPoliciesCompliance(
com.google.cloud.osconfig.v1alpha.GetInstanceOSPoliciesComplianceRequest request) {
@@ -1400,6 +1595,7 @@ public com.google.longrunning.Operation deleteOSPolicyAssignment(
* specified zone.
*
*/
+ @java.lang.Deprecated
public com.google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse
listInstanceOSPoliciesCompliances(
com.google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesRequest request) {
@@ -1407,6 +1603,35 @@ public com.google.longrunning.Operation deleteOSPolicyAssignment(
getChannel(), getListInstanceOSPoliciesCompliancesMethod(), getCallOptions(), request);
}
+ /**
+ *
+ *
+ *
+ * Get the OS policy asssignment report for the specified Compute Engine VM
+ * instance.
+ *
+ */
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport getOSPolicyAssignmentReport(
+ com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetOSPolicyAssignmentReportMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * List OS policy asssignment reports for all Compute Engine VM instances in
+ * the specified zone.
+ *
+ */
+ public com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse
+ listOSPolicyAssignmentReports(
+ com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getListOSPolicyAssignmentReportsMethod(), getCallOptions(), request);
+ }
+
/**
*
*
@@ -1602,6 +1827,7 @@ protected OsConfigZonalServiceFutureStub build(
* instance.
*
*/
+ @java.lang.Deprecated
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance>
getInstanceOSPoliciesCompliance(
@@ -1619,6 +1845,7 @@ protected OsConfigZonalServiceFutureStub build(
* specified zone.
*
*/
+ @java.lang.Deprecated
public com.google.common.util.concurrent.ListenableFuture<
com.google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse>
listInstanceOSPoliciesCompliances(
@@ -1628,6 +1855,39 @@ protected OsConfigZonalServiceFutureStub build(
request);
}
+ /**
+ *
+ *
+ *
+ * Get the OS policy asssignment report for the specified Compute Engine VM
+ * instance.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport>
+ getOSPolicyAssignmentReport(
+ com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getGetOSPolicyAssignmentReportMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * List OS policy asssignment reports for all Compute Engine VM instances in
+ * the specified zone.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse>
+ listOSPolicyAssignmentReports(
+ com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getListOSPolicyAssignmentReportsMethod(), getCallOptions()),
+ request);
+ }
+
/**
*
*
@@ -1697,10 +1957,12 @@ protected OsConfigZonalServiceFutureStub build(
private static final int METHODID_DELETE_OSPOLICY_ASSIGNMENT = 5;
private static final int METHODID_GET_INSTANCE_OSPOLICIES_COMPLIANCE = 6;
private static final int METHODID_LIST_INSTANCE_OSPOLICIES_COMPLIANCES = 7;
- private static final int METHODID_GET_INVENTORY = 8;
- private static final int METHODID_LIST_INVENTORIES = 9;
- private static final int METHODID_GET_VULNERABILITY_REPORT = 10;
- private static final int METHODID_LIST_VULNERABILITY_REPORTS = 11;
+ private static final int METHODID_GET_OSPOLICY_ASSIGNMENT_REPORT = 8;
+ private static final int METHODID_LIST_OSPOLICY_ASSIGNMENT_REPORTS = 9;
+ private static final int METHODID_GET_INVENTORY = 10;
+ private static final int METHODID_LIST_INVENTORIES = 11;
+ private static final int METHODID_GET_VULNERABILITY_REPORT = 12;
+ private static final int METHODID_LIST_VULNERABILITY_REPORTS = 13;
private static final class MethodHandlers
+ * Update an OS Config patch deployment.
+ *
+ */
+ public void updatePatchDeployment(
+ com.google.cloud.osconfig.v1beta.PatchDeployments.UpdatePatchDeploymentRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment>
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getUpdatePatchDeploymentMethod(), responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Change state of patch deployment to "PAUSED".
+ * Patch deployment in paused state doesn't generate patch jobs.
+ *
+ */
+ public void pausePatchDeployment(
+ com.google.cloud.osconfig.v1beta.PatchDeployments.PausePatchDeploymentRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment>
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getPausePatchDeploymentMethod(), responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Change state of patch deployment back to "ACTIVE".
+ * Patch deployment in active state continues to generate patch jobs.
+ *
+ */
+ public void resumePatchDeployment(
+ com.google.cloud.osconfig.v1beta.PatchDeployments.ResumePatchDeploymentRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment>
+ responseObserver) {
+ io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
+ getResumePatchDeploymentMethod(), responseObserver);
+ }
+
/**
*
*
@@ -1129,6 +1335,29 @@ public final io.grpc.ServerServiceDefinition bindService() {
com.google.cloud.osconfig.v1beta.PatchDeployments
.DeletePatchDeploymentRequest,
com.google.protobuf.Empty>(this, METHODID_DELETE_PATCH_DEPLOYMENT)))
+ .addMethod(
+ getUpdatePatchDeploymentMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.osconfig.v1beta.PatchDeployments
+ .UpdatePatchDeploymentRequest,
+ com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment>(
+ this, METHODID_UPDATE_PATCH_DEPLOYMENT)))
+ .addMethod(
+ getPausePatchDeploymentMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.osconfig.v1beta.PatchDeployments.PausePatchDeploymentRequest,
+ com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment>(
+ this, METHODID_PAUSE_PATCH_DEPLOYMENT)))
+ .addMethod(
+ getResumePatchDeploymentMethod(),
+ io.grpc.stub.ServerCalls.asyncUnaryCall(
+ new MethodHandlers<
+ com.google.cloud.osconfig.v1beta.PatchDeployments
+ .ResumePatchDeploymentRequest,
+ com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment>(
+ this, METHODID_RESUME_PATCH_DEPLOYMENT)))
.addMethod(
getCreateGuestPolicyMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
@@ -1354,6 +1583,62 @@ public void deletePatchDeployment(
responseObserver);
}
+ /**
+ *
+ *
+ *
+ * Update an OS Config patch deployment.
+ *
+ */
+ public void updatePatchDeployment(
+ com.google.cloud.osconfig.v1beta.PatchDeployments.UpdatePatchDeploymentRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment>
+ responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getUpdatePatchDeploymentMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Change state of patch deployment to "PAUSED".
+ * Patch deployment in paused state doesn't generate patch jobs.
+ *
+ */
+ public void pausePatchDeployment(
+ com.google.cloud.osconfig.v1beta.PatchDeployments.PausePatchDeploymentRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment>
+ responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getPausePatchDeploymentMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+
+ /**
+ *
+ *
+ *
+ * Change state of patch deployment back to "ACTIVE".
+ * Patch deployment in active state continues to generate patch jobs.
+ *
+ */
+ public void resumePatchDeployment(
+ com.google.cloud.osconfig.v1beta.PatchDeployments.ResumePatchDeploymentRequest request,
+ io.grpc.stub.StreamObserver<
+ com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment>
+ responseObserver) {
+ io.grpc.stub.ClientCalls.asyncUnaryCall(
+ getChannel().newCall(getResumePatchDeploymentMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
+
/**
*
*
@@ -1601,6 +1886,47 @@ public com.google.protobuf.Empty deletePatchDeployment(
getChannel(), getDeletePatchDeploymentMethod(), getCallOptions(), request);
}
+ /**
+ *
+ *
+ *
+ * Update an OS Config patch deployment.
+ *
+ */
+ public com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment updatePatchDeployment(
+ com.google.cloud.osconfig.v1beta.PatchDeployments.UpdatePatchDeploymentRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getUpdatePatchDeploymentMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Change state of patch deployment to "PAUSED".
+ * Patch deployment in paused state doesn't generate patch jobs.
+ *
+ */
+ public com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment pausePatchDeployment(
+ com.google.cloud.osconfig.v1beta.PatchDeployments.PausePatchDeploymentRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getPausePatchDeploymentMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Change state of patch deployment back to "ACTIVE".
+ * Patch deployment in active state continues to generate patch jobs.
+ *
+ */
+ public com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment resumePatchDeployment(
+ com.google.cloud.osconfig.v1beta.PatchDeployments.ResumePatchDeploymentRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getResumePatchDeploymentMethod(), getCallOptions(), request);
+ }
+
/**
*
*
@@ -1839,6 +2165,55 @@ protected OsConfigServiceFutureStub build(
getChannel().newCall(getDeletePatchDeploymentMethod(), getCallOptions()), request);
}
+ /**
+ *
+ *
+ *
+ * Update an OS Config patch deployment.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment>
+ updatePatchDeployment(
+ com.google.cloud.osconfig.v1beta.PatchDeployments.UpdatePatchDeploymentRequest
+ request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getUpdatePatchDeploymentMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Change state of patch deployment to "PAUSED".
+ * Patch deployment in paused state doesn't generate patch jobs.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment>
+ pausePatchDeployment(
+ com.google.cloud.osconfig.v1beta.PatchDeployments.PausePatchDeploymentRequest request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getPausePatchDeploymentMethod(), getCallOptions()), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Change state of patch deployment back to "ACTIVE".
+ * Patch deployment in active state continues to generate patch jobs.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.cloud.osconfig.v1beta.PatchDeployments.PatchDeployment>
+ resumePatchDeployment(
+ com.google.cloud.osconfig.v1beta.PatchDeployments.ResumePatchDeploymentRequest
+ request) {
+ return io.grpc.stub.ClientCalls.futureUnaryCall(
+ getChannel().newCall(getResumePatchDeploymentMethod(), getCallOptions()), request);
+ }
+
/**
*
*
@@ -1940,12 +2315,15 @@ protected OsConfigServiceFutureStub build(
private static final int METHODID_GET_PATCH_DEPLOYMENT = 6;
private static final int METHODID_LIST_PATCH_DEPLOYMENTS = 7;
private static final int METHODID_DELETE_PATCH_DEPLOYMENT = 8;
- private static final int METHODID_CREATE_GUEST_POLICY = 9;
- private static final int METHODID_GET_GUEST_POLICY = 10;
- private static final int METHODID_LIST_GUEST_POLICIES = 11;
- private static final int METHODID_UPDATE_GUEST_POLICY = 12;
- private static final int METHODID_DELETE_GUEST_POLICY = 13;
- private static final int METHODID_LOOKUP_EFFECTIVE_GUEST_POLICY = 14;
+ private static final int METHODID_UPDATE_PATCH_DEPLOYMENT = 9;
+ private static final int METHODID_PAUSE_PATCH_DEPLOYMENT = 10;
+ private static final int METHODID_RESUME_PATCH_DEPLOYMENT = 11;
+ private static final int METHODID_CREATE_GUEST_POLICY = 12;
+ private static final int METHODID_GET_GUEST_POLICY = 13;
+ private static final int METHODID_LIST_GUEST_POLICIES = 14;
+ private static final int METHODID_UPDATE_GUEST_POLICY = 15;
+ private static final int METHODID_DELETE_GUEST_POLICY = 16;
+ private static final int METHODID_LOOKUP_EFFECTIVE_GUEST_POLICY = 17;
private static final class MethodHandlers
- * Defaults to NONE.
+ * Invalid value, the request will return validation error.
*
*
* INTERPRETER_UNSPECIFIED = 0;
@@ -22994,7 +22994,7 @@ public enum Interpreter implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Defaults to NONE.
+ * Invalid value, the request will return validation error.
*
*
* INTERPRETER_UNSPECIFIED = 0;
diff --git a/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/os_policy.proto b/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/os_policy.proto
index 7b113f91..de0db191 100644
--- a/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/os_policy.proto
+++ b/proto-google-cloud-os-config-v1/src/main/proto/google/cloud/osconfig/v1/os_policy.proto
@@ -354,7 +354,7 @@ message OSPolicy {
message Exec {
// The interpreter to use.
enum Interpreter {
- // Defaults to NONE.
+ // Invalid value, the request will return validation error.
INTERPRETER_UNSPECIFIED = 0;
// If an interpreter is not specified, the
diff --git a/proto-google-cloud-os-config-v1alpha/clirr-ignored-differences.xml b/proto-google-cloud-os-config-v1alpha/clirr-ignored-differences.xml
index 8941944c..a4fc3fee 100644
--- a/proto-google-cloud-os-config-v1alpha/clirr-ignored-differences.xml
+++ b/proto-google-cloud-os-config-v1alpha/clirr-ignored-differences.xml
@@ -16,4 +16,8 @@
+ * Get a report of the OS policy assignment for a VM instance.
+ *
+ *
+ * Protobuf type {@code google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest}
+ */
+public final class GetOSPolicyAssignmentReportRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest)
+ GetOSPolicyAssignmentReportRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GetOSPolicyAssignmentReportRequest.newBuilder() to construct.
+ private GetOSPolicyAssignmentReportRequest(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GetOSPolicyAssignmentReportRequest() {
+ name_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GetOSPolicyAssignmentReportRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private GetOSPolicyAssignmentReportRequest(
+ 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;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.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.osconfig.v1alpha.OSPolicyAssignmentReportsProto
+ .internal_static_google_cloud_osconfig_v1alpha_GetOSPolicyAssignmentReportRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReportsProto
+ .internal_static_google_cloud_osconfig_v1alpha_GetOSPolicyAssignmentReportRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest.class,
+ com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ private volatile java.lang.Object name_;
+ /**
+ *
+ *
+ *
+ * Required. API resource name for OS policy assignment report.
+ * Format:
+ * `/projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
+ * For `{instance_id}`, either Compute Engine `instance-id` or `instance-name`
+ * can be provided.
+ * For `{assignment_id}`, the OSPolicyAssignment id must be provided.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. API resource name for OS policy assignment report.
+ * Format:
+ * `/projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
+ * For `{instance_id}`, either Compute Engine `instance-id` or `instance-name`
+ * can be provided.
+ * For `{assignment_id}`, the OSPolicyAssignment id must be provided.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ 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_);
+ }
+ 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.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest other =
+ (com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest) obj;
+
+ if (!getName().equals(other.getName())) 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 = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest 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.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest 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.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest 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.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest
+ 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.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest 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.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest 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;
+ }
+ /**
+ *
+ *
+ *
+ * Get a report of the OS policy assignment for a VM instance.
+ *
+ *
+ * Protobuf type {@code google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. API resource name for OS policy assignment report.
+ * Format:
+ * `/projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
+ * For `{instance_id}`, either Compute Engine `instance-id` or `instance-name`
+ * can be provided.
+ * For `{assignment_id}`, the OSPolicyAssignment id must be provided.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. API resource name for OS policy assignment report.
+ * Format:
+ * `/projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
+ * For `{instance_id}`, either Compute Engine `instance-id` or `instance-name`
+ * can be provided.
+ * For `{assignment_id}`, the OSPolicyAssignment id must be provided.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. API resource name for OS policy assignment report.
+ * Format:
+ * `/projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
+ * For `{instance_id}`, either Compute Engine `instance-id` or `instance-name`
+ * can be provided.
+ * For `{assignment_id}`, the OSPolicyAssignment id must be provided.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. API resource name for OS policy assignment report.
+ * Format:
+ * `/projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
+ * For `{instance_id}`, either Compute Engine `instance-id` or `instance-name`
+ * can be provided.
+ * For `{assignment_id}`, the OSPolicyAssignment id must be provided.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. API resource name for OS policy assignment report.
+ * Format:
+ * `/projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
+ * For `{instance_id}`, either Compute Engine `instance-id` or `instance-name`
+ * can be provided.
+ * For `{assignment_id}`, the OSPolicyAssignment id must be provided.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ 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.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest)
+ private static final com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest();
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentReportRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Required. API resource name for OS policy assignment report.
+ * Format:
+ * `/projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
+ * For `{instance_id}`, either Compute Engine `instance-id` or `instance-name`
+ * can be provided.
+ * For `{assignment_id}`, the OSPolicyAssignment id must be provided.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Required. API resource name for OS policy assignment report.
+ * Format:
+ * `/projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/report`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
+ * For `{instance_id}`, either Compute Engine `instance-id` or `instance-name`
+ * can be provided.
+ * For `{assignment_id}`, the OSPolicyAssignment id must be provided.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/GetOSPolicyAssignmentRequest.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/GetOSPolicyAssignmentRequest.java
index 0276bb79..944e466d 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/GetOSPolicyAssignmentRequest.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/GetOSPolicyAssignmentRequest.java
@@ -97,14 +97,14 @@ private GetOSPolicyAssignmentRequest(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_GetOSPolicyAssignmentRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_GetOSPolicyAssignmentRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentRequest.class,
@@ -342,14 +342,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentRequest)
com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_GetOSPolicyAssignmentRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_GetOSPolicyAssignmentRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.GetOSPolicyAssignmentRequest.class,
@@ -380,7 +380,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_GetOSPolicyAssignmentRequest_descriptor;
}
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPoliciesCompliance.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPoliciesCompliance.java
index 5823fdd0..2b4d1f39 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPoliciesCompliance.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPoliciesCompliance.java
@@ -35,6 +35,7 @@
*
* Protobuf type {@code google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance}
*/
+@java.lang.Deprecated
public final class InstanceOSPoliciesCompliance extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance)
@@ -195,6 +196,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.Builder.class);
}
+ @java.lang.Deprecated
public interface OSPolicyComplianceOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance)
@@ -361,6 +363,7 @@ com.google.cloud.osconfig.v1alpha.OSPolicyResourceCompliance getOsPolicyResource
* Protobuf type {@code
* google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance}
*/
+ @java.lang.Deprecated
public static final class OSPolicyCompliance extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance.OSPolicyCompliance)
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPoliciesComplianceOrBuilder.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPoliciesComplianceOrBuilder.java
index 8798d94d..73a89111 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPoliciesComplianceOrBuilder.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPoliciesComplianceOrBuilder.java
@@ -18,6 +18,7 @@
package com.google.cloud.osconfig.v1alpha;
+@java.lang.Deprecated
public interface InstanceOSPoliciesComplianceOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.osconfig.v1alpha.InstanceOSPoliciesCompliance)
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPoliciesComplianceProto.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPoliciesComplianceProto.java
index 4d39cdb4..15674d9c 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPoliciesComplianceProto.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPoliciesComplianceProto.java
@@ -58,55 +58,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
java.lang.String[] descriptorData = {
"\nCgoogle/cloud/osconfig/v1alpha/instance"
+ "_os_policies_compliance.proto\022\035google.cl"
- + "oud.osconfig.v1alpha\032\037google/api/field_b"
- + "ehavior.proto\032\031google/api/resource.proto"
- + "\0321google/cloud/osconfig/v1alpha/config_c"
- + "ommon.proto\032\037google/protobuf/timestamp.p"
- + "roto\"\350\006\n\034InstanceOSPoliciesCompliance\022\021\n"
- + "\004name\030\001 \001(\tB\003\340A\003\022\025\n\010instance\030\002 \001(\tB\003\340A\003\022"
- + "J\n\005state\030\003 \001(\01626.google.cloud.osconfig.v"
- + "1alpha.OSPolicyComplianceStateB\003\340A\003\022\033\n\016d"
- + "etailed_state\030\004 \001(\tB\003\340A\003\022\"\n\025detailed_sta"
- + "te_reason\030\005 \001(\tB\003\340A\003\022r\n\025os_policy_compli"
- + "ances\030\006 \003(\0132N.google.cloud.osconfig.v1al"
- + "pha.InstanceOSPoliciesCompliance.OSPolic"
- + "yComplianceB\003\340A\003\022C\n\032last_compliance_chec"
- + "k_time\030\007 \001(\0132\032.google.protobuf.Timestamp"
- + "B\003\340A\003\022#\n\026last_compliance_run_id\030\010 \001(\tB\003\340"
- + "A\003\032\243\002\n\022OSPolicyCompliance\022\024\n\014os_policy_i"
- + "d\030\001 \001(\t\022M\n\024os_policy_assignment\030\002 \001(\tB/\372"
- + "A,\n*osconfig.googleapis.com/OSPolicyAssi"
- + "gnment\022E\n\005state\030\004 \001(\01626.google.cloud.osc"
- + "onfig.v1alpha.OSPolicyComplianceState\022a\n"
- + "\036os_policy_resource_compliances\030\005 \003(\01329."
- + "google.cloud.osconfig.v1alpha.OSPolicyRe"
- + "sourceCompliance:\214\001\352A\210\001\n4osconfig.google"
- + "apis.com/InstanceOSPoliciesCompliance\022Pp"
- + "rojects/{project}/locations/{location}/i"
- + "nstanceOSPoliciesCompliances/{instance}\""
- + "t\n&GetInstanceOSPoliciesComplianceReques"
- + "t\022J\n\004name\030\001 \001(\tB<\340A\002\372A6\n4osconfig.google"
- + "apis.com/InstanceOSPoliciesCompliance\"\234\001"
+ + "oud.osconfig.v1alpha\032\034google/api/annotat"
+ + "ions.proto\032\037google/api/field_behavior.pr"
+ + "oto\032\031google/api/resource.proto\0321google/c"
+ + "loud/osconfig/v1alpha/config_common.prot"
+ + "o\032\037google/protobuf/timestamp.proto\"\356\006\n\034I"
+ + "nstanceOSPoliciesCompliance\022\021\n\004name\030\001 \001("
+ + "\tB\003\340A\003\022\025\n\010instance\030\002 \001(\tB\003\340A\003\022J\n\005state\030\003"
+ + " \001(\01626.google.cloud.osconfig.v1alpha.OSP"
+ + "olicyComplianceStateB\003\340A\003\022\033\n\016detailed_st"
+ + "ate\030\004 \001(\tB\003\340A\003\022\"\n\025detailed_state_reason\030"
+ + "\005 \001(\tB\003\340A\003\022r\n\025os_policy_compliances\030\006 \003("
+ + "\0132N.google.cloud.osconfig.v1alpha.Instan"
+ + "ceOSPoliciesCompliance.OSPolicyComplianc"
+ + "eB\003\340A\003\022C\n\032last_compliance_check_time\030\007 \001"
+ + "(\0132\032.google.protobuf.TimestampB\003\340A\003\022#\n\026l"
+ + "ast_compliance_run_id\030\010 \001(\tB\003\340A\003\032\247\002\n\022OSP"
+ + "olicyCompliance\022\024\n\014os_policy_id\030\001 \001(\t\022M\n"
+ + "\024os_policy_assignment\030\002 \001(\tB/\372A,\n*osconf"
+ + "ig.googleapis.com/OSPolicyAssignment\022E\n\005"
+ + "state\030\004 \001(\01626.google.cloud.osconfig.v1al"
+ + "pha.OSPolicyComplianceState\022a\n\036os_policy"
+ + "_resource_compliances\030\005 \003(\01329.google.clo"
+ + "ud.osconfig.v1alpha.OSPolicyResourceComp"
+ + "liance:\002\030\001:\216\001\030\001\352A\210\001\n4osconfig.googleapis"
+ + ".com/InstanceOSPoliciesCompliance\022Pproje"
+ + "cts/{project}/locations/{location}/insta"
+ + "nceOSPoliciesCompliances/{instance}\"x\n&G"
+ + "etInstanceOSPoliciesComplianceRequest\022J\n"
+ + "\004name\030\001 \001(\tB<\340A\002\372A6\n4osconfig.googleapis"
+ + ".com/InstanceOSPoliciesCompliance:\002\030\001\"\240\001"
+ "\n(ListInstanceOSPoliciesCompliancesReque"
+ "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go"
+ "ogleapis.com/Location\022\021\n\tpage_size\030\002 \001(\005"
- + "\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"\253\001\n"
- + ")ListInstanceOSPoliciesCompliancesRespon"
- + "se\022e\n instance_os_policies_compliances\030\001"
- + " \003(\0132;.google.cloud.osconfig.v1alpha.Ins"
- + "tanceOSPoliciesCompliance\022\027\n\017next_page_t"
- + "oken\030\002 \001(\tB\362\001\n!com.google.cloud.osconfig"
- + ".v1alphaB!InstanceOSPoliciesCompliancePr"
- + "otoP\001ZEgoogle.golang.org/genproto/google"
- + "apis/cloud/osconfig/v1alpha;osconfig\252\002\035G"
- + "oogle.Cloud.OsConfig.V1Alpha\312\002\035Google\\Cl"
- + "oud\\OsConfig\\V1alpha\352\002 Google::Cloud::Os"
- + "Config::V1alphab\006proto3"
+ + "\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t:\002\030\001"
+ + "\"\257\001\n)ListInstanceOSPoliciesCompliancesRe"
+ + "sponse\022e\n instance_os_policies_complianc"
+ + "es\030\001 \003(\0132;.google.cloud.osconfig.v1alpha"
+ + ".InstanceOSPoliciesCompliance\022\027\n\017next_pa"
+ + "ge_token\030\002 \001(\t:\002\030\001B\362\001\n!com.google.cloud."
+ + "osconfig.v1alphaB!InstanceOSPoliciesComp"
+ + "lianceProtoP\001ZEgoogle.golang.org/genprot"
+ + "o/googleapis/cloud/osconfig/v1alpha;osco"
+ + "nfig\252\002\035Google.Cloud.OsConfig.V1Alpha\312\002\035G"
+ + "oogle\\Cloud\\OsConfig\\V1alpha\352\002 Google::C"
+ + "loud::OsConfig::V1alphab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.AnnotationsProto.getDescriptor(),
com.google.api.FieldBehaviorProto.getDescriptor(),
com.google.api.ResourceProto.getDescriptor(),
com.google.cloud.osconfig.v1alpha.ConfigCommonProto.getDescriptor(),
@@ -168,6 +170,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
+ com.google.api.AnnotationsProto.getDescriptor();
com.google.api.FieldBehaviorProto.getDescriptor();
com.google.api.ResourceProto.getDescriptor();
com.google.cloud.osconfig.v1alpha.ConfigCommonProto.getDescriptor();
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPolicyAssignmentName.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPolicyAssignmentName.java
new file mode 100644
index 00000000..1627f6da
--- /dev/null
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InstanceOSPolicyAssignmentName.java
@@ -0,0 +1,262 @@
+/*
+ * Copyright 2021 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.osconfig.v1alpha;
+
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+@Generated("by gapic-generator-java")
+public class InstanceOSPolicyAssignmentName implements ResourceName {
+ private static final PathTemplate PROJECT_LOCATION_INSTANCE_ASSIGNMENT =
+ PathTemplate.createWithoutUrlEncoding(
+ "projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}");
+ private volatile Map
- * Contains information about a Windows application as retrieved from the
- * Windows Registry. For more information about these fields, see
- * [Windows Installer Properties for the Uninstall
- * Registry](https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key){:
- * class="external" }
+ * Contains information about a Windows application that is retrieved from the
+ * Windows Registry. For more information about these fields, see:
+ * https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key
*
*
* Protobuf type {@code google.cloud.osconfig.v1alpha.Inventory.WindowsApplication}
@@ -17530,11 +17528,9 @@ protected Builder newBuilderForType(
*
*
*
- * Contains information about a Windows application as retrieved from the
- * Windows Registry. For more information about these fields, see
- * [Windows Installer Properties for the Uninstall
- * Registry](https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key){:
- * class="external" }
+ * Contains information about a Windows application that is retrieved from the
+ * Windows Registry. For more information about these fields, see:
+ * https://docs.microsoft.com/en-us/windows/win32/msi/uninstall-registry-key
*
*
* Protobuf type {@code google.cloud.osconfig.v1alpha.Inventory.WindowsApplication}
@@ -18547,10 +18543,10 @@ public int getItemsCount() {
*
*
*
- * Output only. Inventory items related to the VM keyed by an opaque unique
- * identifier for each inventory item. The identifier is unique to each
- * distinct and addressable inventory item and will change, when there is a
- * new package version.
+ * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
+ * each inventory item. The identifier is unique to each distinct and
+ * addressable inventory item and will change, when there is a new package
+ * version.
*
*
*
@@ -18575,10 +18571,10 @@ public boolean containsItems(java.lang.String key) {
*
*
*
- * Output only. Inventory items related to the VM keyed by an opaque unique
- * identifier for each inventory item. The identifier is unique to each
- * distinct and addressable inventory item and will change, when there is a
- * new package version.
+ * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
+ * each inventory item. The identifier is unique to each distinct and
+ * addressable inventory item and will change, when there is a new package
+ * version.
*
*
*
@@ -18594,10 +18590,10 @@ public boolean containsItems(java.lang.String key) {
*
*
*
- * Output only. Inventory items related to the VM keyed by an opaque unique
- * identifier for each inventory item. The identifier is unique to each
- * distinct and addressable inventory item and will change, when there is a
- * new package version.
+ * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
+ * each inventory item. The identifier is unique to each distinct and
+ * addressable inventory item and will change, when there is a new package
+ * version.
*
*
*
@@ -18618,10 +18614,10 @@ public com.google.cloud.osconfig.v1alpha.Inventory.Item getItemsOrDefault(
*
*
*
- * Output only. Inventory items related to the VM keyed by an opaque unique
- * identifier for each inventory item. The identifier is unique to each
- * distinct and addressable inventory item and will change, when there is a
- * new package version.
+ * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
+ * each inventory item. The identifier is unique to each distinct and
+ * addressable inventory item and will change, when there is a new package
+ * version.
*
*
*
@@ -19466,10 +19462,10 @@ public int getItemsCount() {
*
*
*
- * Output only. Inventory items related to the VM keyed by an opaque unique
- * identifier for each inventory item. The identifier is unique to each
- * distinct and addressable inventory item and will change, when there is a
- * new package version.
+ * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
+ * each inventory item. The identifier is unique to each distinct and
+ * addressable inventory item and will change, when there is a new package
+ * version.
*
*
*
@@ -19494,10 +19490,10 @@ public boolean containsItems(java.lang.String key) {
*
*
*
- * Output only. Inventory items related to the VM keyed by an opaque unique
- * identifier for each inventory item. The identifier is unique to each
- * distinct and addressable inventory item and will change, when there is a
- * new package version.
+ * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
+ * each inventory item. The identifier is unique to each distinct and
+ * addressable inventory item and will change, when there is a new package
+ * version.
*
*
*
@@ -19513,10 +19509,10 @@ public boolean containsItems(java.lang.String key) {
*
*
*
- * Output only. Inventory items related to the VM keyed by an opaque unique
- * identifier for each inventory item. The identifier is unique to each
- * distinct and addressable inventory item and will change, when there is a
- * new package version.
+ * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
+ * each inventory item. The identifier is unique to each distinct and
+ * addressable inventory item and will change, when there is a new package
+ * version.
*
*
*
@@ -19537,10 +19533,10 @@ public com.google.cloud.osconfig.v1alpha.Inventory.Item getItemsOrDefault(
*
*
*
- * Output only. Inventory items related to the VM keyed by an opaque unique
- * identifier for each inventory item. The identifier is unique to each
- * distinct and addressable inventory item and will change, when there is a
- * new package version.
+ * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
+ * each inventory item. The identifier is unique to each distinct and
+ * addressable inventory item and will change, when there is a new package
+ * version.
*
*
*
@@ -19568,10 +19564,10 @@ public Builder clearItems() {
*
*
*
- * Output only. Inventory items related to the VM keyed by an opaque unique
- * identifier for each inventory item. The identifier is unique to each
- * distinct and addressable inventory item and will change, when there is a
- * new package version.
+ * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
+ * each inventory item. The identifier is unique to each distinct and
+ * addressable inventory item and will change, when there is a new package
+ * version.
*
*
*
@@ -19595,10 +19591,10 @@ public Builder removeItems(java.lang.String key) {
*
*
*
- * Output only. Inventory items related to the VM keyed by an opaque unique
- * identifier for each inventory item. The identifier is unique to each
- * distinct and addressable inventory item and will change, when there is a
- * new package version.
+ * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
+ * each inventory item. The identifier is unique to each distinct and
+ * addressable inventory item and will change, when there is a new package
+ * version.
*
*
*
@@ -19620,10 +19616,10 @@ public Builder putItems(
*
*
*
- * Output only. Inventory items related to the VM keyed by an opaque unique
- * identifier for each inventory item. The identifier is unique to each
- * distinct and addressable inventory item and will change, when there is a
- * new package version.
+ * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
+ * each inventory item. The identifier is unique to each distinct and
+ * addressable inventory item and will change, when there is a new package
+ * version.
*
*
*
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InventoryOrBuilder.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InventoryOrBuilder.java
index 4bded6fd..f2e83551 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InventoryOrBuilder.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/InventoryOrBuilder.java
@@ -97,10 +97,10 @@ public interface InventoryOrBuilder
*
*
*
- * Output only. Inventory items related to the VM keyed by an opaque unique
- * identifier for each inventory item. The identifier is unique to each
- * distinct and addressable inventory item and will change, when there is a
- * new package version.
+ * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
+ * each inventory item. The identifier is unique to each distinct and
+ * addressable inventory item and will change, when there is a new package
+ * version.
*
*
*
@@ -112,10 +112,10 @@ public interface InventoryOrBuilder
*
*
*
- * Output only. Inventory items related to the VM keyed by an opaque unique
- * identifier for each inventory item. The identifier is unique to each
- * distinct and addressable inventory item and will change, when there is a
- * new package version.
+ * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
+ * each inventory item. The identifier is unique to each distinct and
+ * addressable inventory item and will change, when there is a new package
+ * version.
*
*
*
@@ -130,10 +130,10 @@ public interface InventoryOrBuilder
*
*
*
- * Output only. Inventory items related to the VM keyed by an opaque unique
- * identifier for each inventory item. The identifier is unique to each
- * distinct and addressable inventory item and will change, when there is a
- * new package version.
+ * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
+ * each inventory item. The identifier is unique to each distinct and
+ * addressable inventory item and will change, when there is a new package
+ * version.
*
*
*
@@ -145,10 +145,10 @@ public interface InventoryOrBuilder
*
*
*
- * Output only. Inventory items related to the VM keyed by an opaque unique
- * identifier for each inventory item. The identifier is unique to each
- * distinct and addressable inventory item and will change, when there is a
- * new package version.
+ * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
+ * each inventory item. The identifier is unique to each distinct and
+ * addressable inventory item and will change, when there is a new package
+ * version.
*
*
*
@@ -161,10 +161,10 @@ com.google.cloud.osconfig.v1alpha.Inventory.Item getItemsOrDefault(
*
*
*
- * Output only. Inventory items related to the VM keyed by an opaque unique
- * identifier for each inventory item. The identifier is unique to each
- * distinct and addressable inventory item and will change, when there is a
- * new package version.
+ * Output only. Inventory items related to the VM keyed by an opaque unique identifier for
+ * each inventory item. The identifier is unique to each distinct and
+ * addressable inventory item and will change, when there is a new package
+ * version.
*
*
*
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInstanceOSPoliciesCompliancesRequest.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInstanceOSPoliciesCompliancesRequest.java
index 99a835dd..1288f32f 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInstanceOSPoliciesCompliancesRequest.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInstanceOSPoliciesCompliancesRequest.java
@@ -28,6 +28,7 @@
*
* Protobuf type {@code google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesRequest}
*/
+@java.lang.Deprecated
public final class ListInstanceOSPoliciesCompliancesRequest
extends com.google.protobuf.GeneratedMessageV3
implements
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInstanceOSPoliciesCompliancesRequestOrBuilder.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInstanceOSPoliciesCompliancesRequestOrBuilder.java
index 51d93519..a03e34a3 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInstanceOSPoliciesCompliancesRequestOrBuilder.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInstanceOSPoliciesCompliancesRequestOrBuilder.java
@@ -18,6 +18,7 @@
package com.google.cloud.osconfig.v1alpha;
+@java.lang.Deprecated
public interface ListInstanceOSPoliciesCompliancesRequestOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesRequest)
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInstanceOSPoliciesCompliancesResponse.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInstanceOSPoliciesCompliancesResponse.java
index dfa63888..17db0734 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInstanceOSPoliciesCompliancesResponse.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInstanceOSPoliciesCompliancesResponse.java
@@ -28,6 +28,7 @@
*
* Protobuf type {@code google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse}
*/
+@java.lang.Deprecated
public final class ListInstanceOSPoliciesCompliancesResponse
extends com.google.protobuf.GeneratedMessageV3
implements
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInstanceOSPoliciesCompliancesResponseOrBuilder.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInstanceOSPoliciesCompliancesResponseOrBuilder.java
index c5a4f606..6e5c13ad 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInstanceOSPoliciesCompliancesResponseOrBuilder.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInstanceOSPoliciesCompliancesResponseOrBuilder.java
@@ -18,6 +18,7 @@
package com.google.cloud.osconfig.v1alpha;
+@java.lang.Deprecated
public interface ListInstanceOSPoliciesCompliancesResponseOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesResponse)
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInventoriesRequest.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInventoriesRequest.java
index 23f79947..671ded99 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInventoriesRequest.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInventoriesRequest.java
@@ -148,10 +148,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
- * For `{project}`, either `project-number` or `project-id` can be
- * provided. For `{instance}`, only hyphen or dash character is supported to
- * list inventories across VMs.
+ * Format: `projects/{project}/locations/{location}/instances/-`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
*
*
*
@@ -177,10 +175,8 @@ public java.lang.String getParent() {
*
*
* Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
- * For `{project}`, either `project-number` or `project-id` can be
- * provided. For `{instance}`, only hyphen or dash character is supported to
- * list inventories across VMs.
+ * Format: `projects/{project}/locations/{location}/instances/-`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
*
*
*
@@ -752,10 +748,8 @@ public Builder mergeFrom(
*
*
* Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
- * For `{project}`, either `project-number` or `project-id` can be
- * provided. For `{instance}`, only hyphen or dash character is supported to
- * list inventories across VMs.
+ * Format: `projects/{project}/locations/{location}/instances/-`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
*
*
*
@@ -780,10 +774,8 @@ public java.lang.String getParent() {
*
*
* Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
- * For `{project}`, either `project-number` or `project-id` can be
- * provided. For `{instance}`, only hyphen or dash character is supported to
- * list inventories across VMs.
+ * Format: `projects/{project}/locations/{location}/instances/-`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
*
*
*
@@ -808,10 +800,8 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
* Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
- * For `{project}`, either `project-number` or `project-id` can be
- * provided. For `{instance}`, only hyphen or dash character is supported to
- * list inventories across VMs.
+ * Format: `projects/{project}/locations/{location}/instances/-`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
*
*
*
@@ -835,10 +825,8 @@ public Builder setParent(java.lang.String value) {
*
*
* Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
- * For `{project}`, either `project-number` or `project-id` can be
- * provided. For `{instance}`, only hyphen or dash character is supported to
- * list inventories across VMs.
+ * Format: `projects/{project}/locations/{location}/instances/-`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
*
*
*
@@ -858,10 +846,8 @@ public Builder clearParent() {
*
*
* Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
- * For `{project}`, either `project-number` or `project-id` can be
- * provided. For `{instance}`, only hyphen or dash character is supported to
- * list inventories across VMs.
+ * Format: `projects/{project}/locations/{location}/instances/-`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
*
*
*
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInventoriesRequestOrBuilder.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInventoriesRequestOrBuilder.java
index 7598372e..3227bf7e 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInventoriesRequestOrBuilder.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListInventoriesRequestOrBuilder.java
@@ -28,10 +28,8 @@ public interface ListInventoriesRequestOrBuilder
*
*
* Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
- * For `{project}`, either `project-number` or `project-id` can be
- * provided. For `{instance}`, only hyphen or dash character is supported to
- * list inventories across VMs.
+ * Format: `projects/{project}/locations/{location}/instances/-`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
*
*
*
@@ -46,10 +44,8 @@ public interface ListInventoriesRequestOrBuilder
*
*
* Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
- * For `{project}`, either `project-number` or `project-id` can be
- * provided. For `{instance}`, only hyphen or dash character is supported to
- * list inventories across VMs.
+ * Format: `projects/{project}/locations/{location}/instances/-`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
*
*
*
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentReportsRequest.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentReportsRequest.java
new file mode 100644
index 00000000..20a6920b
--- /dev/null
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentReportsRequest.java
@@ -0,0 +1,1253 @@
+/*
+ * 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/osconfig/v1alpha/os_policy_assignment_reports.proto
+
+package com.google.cloud.osconfig.v1alpha;
+
+/**
+ *
+ *
+ *
+ * List the OS policy assignment reports for VM instances.
+ *
+ *
+ * Protobuf type {@code google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest}
+ */
+public final class ListOSPolicyAssignmentReportsRequest
+ extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest)
+ ListOSPolicyAssignmentReportsRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ListOSPolicyAssignmentReportsRequest.newBuilder() to construct.
+ private ListOSPolicyAssignmentReportsRequest(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ListOSPolicyAssignmentReportsRequest() {
+ parent_ = "";
+ filter_ = "";
+ pageToken_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ListOSPolicyAssignmentReportsRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ListOSPolicyAssignmentReportsRequest(
+ 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();
+
+ parent_ = s;
+ break;
+ }
+ case 16:
+ {
+ pageSize_ = input.readInt32();
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ filter_ = s;
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ pageToken_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.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.osconfig.v1alpha.OSPolicyAssignmentReportsProto
+ .internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentReportsRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReportsProto
+ .internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentReportsRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest.class,
+ com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest.Builder.class);
+ }
+
+ public static final int PARENT_FIELD_NUMBER = 1;
+ private volatile java.lang.Object parent_;
+ /**
+ *
+ *
+ *
+ * Required. The parent resource name.
+ * Format:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
+ * For `{instance}`, either `instance-name`, `instance-id`, or `-` can be
+ * provided. If '-' is provided, the response will include
+ * OSPolicyAssignmentReports for all instances in the project/location.
+ * For `{assignment}`, either `assignment-id` or `-` can be provided. If '-'
+ * is provided, the response will include OSPolicyAssignmentReports for all
+ * OSPolicyAssignments in the project/location.
+ * Either {instance} or {assignment} must be `-`.
+ * For example:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports`
+ * returns all reports for the instance
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports`
+ * returns all the reports for the given assignment across all instances.
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports`
+ * returns all the reports for all assignments across all instances.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ @java.lang.Override
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The parent resource name.
+ * Format:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
+ * For `{instance}`, either `instance-name`, `instance-id`, or `-` can be
+ * provided. If '-' is provided, the response will include
+ * OSPolicyAssignmentReports for all instances in the project/location.
+ * For `{assignment}`, either `assignment-id` or `-` can be provided. If '-'
+ * is provided, the response will include OSPolicyAssignmentReports for all
+ * OSPolicyAssignments in the project/location.
+ * Either {instance} or {assignment} must be `-`.
+ * For example:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports`
+ * returns all reports for the instance
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports`
+ * returns all the reports for the given assignment across all instances.
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports`
+ * returns all the reports for all assignments across all instances.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PAGE_SIZE_FIELD_NUMBER = 2;
+ private int pageSize_;
+ /**
+ *
+ *
+ *
+ * The maximum number of results to return.
+ *
+ *
+ * int32 page_size = 2;
+ *
+ * @return The pageSize.
+ */
+ @java.lang.Override
+ public int getPageSize() {
+ return pageSize_;
+ }
+
+ public static final int FILTER_FIELD_NUMBER = 3;
+ private volatile java.lang.Object filter_;
+ /**
+ *
+ *
+ *
+ * If provided, this field specifies the criteria that must be met by the
+ * `OSPolicyAssignmentReport` API resource that is included in the response.
+ *
+ *
+ * string filter = 3;
+ *
+ * @return The filter.
+ */
+ @java.lang.Override
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ filter_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * If provided, this field specifies the criteria that must be met by the
+ * `OSPolicyAssignmentReport` API resource that is included in the response.
+ *
+ *
+ * string filter = 3;
+ *
+ * @return The bytes for filter.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PAGE_TOKEN_FIELD_NUMBER = 4;
+ private volatile java.lang.Object pageToken_;
+ /**
+ *
+ *
+ *
+ * A pagination token returned from a previous call to the
+ * `ListOSPolicyAssignmentReports` method that indicates where this listing
+ * should continue from.
+ *
+ *
+ * string page_token = 4;
+ *
+ * @return The pageToken.
+ */
+ @java.lang.Override
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A pagination token returned from a previous call to the
+ * `ListOSPolicyAssignmentReports` method that indicates where this listing
+ * should continue from.
+ *
+ *
+ * string page_token = 4;
+ *
+ * @return The bytes for pageToken.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (pageSize_ != 0) {
+ output.writeInt32(2, pageSize_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filter_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_);
+ }
+ 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(parent_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (pageSize_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_);
+ }
+ 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.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest other =
+ (com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest) obj;
+
+ if (!getParent().equals(other.getParent())) return false;
+ if (getPageSize() != other.getPageSize()) return false;
+ if (!getFilter().equals(other.getFilter())) return false;
+ if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getPageSize();
+ hash = (37 * hash) + FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getFilter().hashCode();
+ hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest 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.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest 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.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest 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.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest
+ 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.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest 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.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest 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;
+ }
+ /**
+ *
+ *
+ *
+ * List the OS policy assignment reports for VM instances.
+ *
+ *
+ * Protobuf type {@code google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The parent resource name.
+ * Format:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
+ * For `{instance}`, either `instance-name`, `instance-id`, or `-` can be
+ * provided. If '-' is provided, the response will include
+ * OSPolicyAssignmentReports for all instances in the project/location.
+ * For `{assignment}`, either `assignment-id` or `-` can be provided. If '-'
+ * is provided, the response will include OSPolicyAssignmentReports for all
+ * OSPolicyAssignments in the project/location.
+ * Either {instance} or {assignment} must be `-`.
+ * For example:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports`
+ * returns all reports for the instance
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports`
+ * returns all the reports for the given assignment across all instances.
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports`
+ * returns all the reports for all assignments across all instances.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The parent resource name.
+ * Format:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
+ * For `{instance}`, either `instance-name`, `instance-id`, or `-` can be
+ * provided. If '-' is provided, the response will include
+ * OSPolicyAssignmentReports for all instances in the project/location.
+ * For `{assignment}`, either `assignment-id` or `-` can be provided. If '-'
+ * is provided, the response will include OSPolicyAssignmentReports for all
+ * OSPolicyAssignments in the project/location.
+ * Either {instance} or {assignment} must be `-`.
+ * For example:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports`
+ * returns all reports for the instance
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports`
+ * returns all the reports for the given assignment across all instances.
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports`
+ * returns all the reports for all assignments across all instances.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ public com.google.protobuf.ByteString getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The parent resource name.
+ * Format:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
+ * For `{instance}`, either `instance-name`, `instance-id`, or `-` can be
+ * provided. If '-' is provided, the response will include
+ * OSPolicyAssignmentReports for all instances in the project/location.
+ * For `{assignment}`, either `assignment-id` or `-` can be provided. If '-'
+ * is provided, the response will include OSPolicyAssignmentReports for all
+ * OSPolicyAssignments in the project/location.
+ * Either {instance} or {assignment} must be `-`.
+ * For example:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports`
+ * returns all reports for the instance
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports`
+ * returns all the reports for the given assignment across all instances.
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports`
+ * returns all the reports for all assignments across all instances.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParent(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The parent resource name.
+ * Format:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
+ * For `{instance}`, either `instance-name`, `instance-id`, or `-` can be
+ * provided. If '-' is provided, the response will include
+ * OSPolicyAssignmentReports for all instances in the project/location.
+ * For `{assignment}`, either `assignment-id` or `-` can be provided. If '-'
+ * is provided, the response will include OSPolicyAssignmentReports for all
+ * OSPolicyAssignments in the project/location.
+ * Either {instance} or {assignment} must be `-`.
+ * For example:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports`
+ * returns all reports for the instance
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports`
+ * returns all the reports for the given assignment across all instances.
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports`
+ * returns all the reports for all assignments across all instances.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The parent resource name.
+ * Format:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
+ * For `{instance}`, either `instance-name`, `instance-id`, or `-` can be
+ * provided. If '-' is provided, the response will include
+ * OSPolicyAssignmentReports for all instances in the project/location.
+ * For `{assignment}`, either `assignment-id` or `-` can be provided. If '-'
+ * is provided, the response will include OSPolicyAssignmentReports for all
+ * OSPolicyAssignments in the project/location.
+ * Either {instance} or {assignment} must be `-`.
+ * For example:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports`
+ * returns all reports for the instance
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports`
+ * returns all the reports for the given assignment across all instances.
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports`
+ * returns all the reports for all assignments across all instances.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for parent to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int pageSize_;
+ /**
+ *
+ *
+ *
+ * The maximum number of results to return.
+ *
+ *
+ * int32 page_size = 2;
+ *
+ * @return The pageSize.
+ */
+ @java.lang.Override
+ public int getPageSize() {
+ return pageSize_;
+ }
+ /**
+ *
+ *
+ *
+ * The maximum number of results to return.
+ *
+ *
+ * int32 page_size = 2;
+ *
+ * @param value The pageSize to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPageSize(int value) {
+
+ pageSize_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The maximum number of results to return.
+ *
+ *
+ * int32 page_size = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPageSize() {
+
+ pageSize_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object filter_ = "";
+ /**
+ *
+ *
+ *
+ * If provided, this field specifies the criteria that must be met by the
+ * `OSPolicyAssignmentReport` API resource that is included in the response.
+ *
+ *
+ * string filter = 3;
+ *
+ * @return The filter.
+ */
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ filter_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * If provided, this field specifies the criteria that must be met by the
+ * `OSPolicyAssignmentReport` API resource that is included in the response.
+ *
+ *
+ * string filter = 3;
+ *
+ * @return The bytes for filter.
+ */
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * If provided, this field specifies the criteria that must be met by the
+ * `OSPolicyAssignmentReport` API resource that is included in the response.
+ *
+ *
+ * string filter = 3;
+ *
+ * @param value The filter to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFilter(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ filter_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * If provided, this field specifies the criteria that must be met by the
+ * `OSPolicyAssignmentReport` API resource that is included in the response.
+ *
+ *
+ * string filter = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFilter() {
+
+ filter_ = getDefaultInstance().getFilter();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * If provided, this field specifies the criteria that must be met by the
+ * `OSPolicyAssignmentReport` API resource that is included in the response.
+ *
+ *
+ * string filter = 3;
+ *
+ * @param value The bytes for filter to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ filter_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object pageToken_ = "";
+ /**
+ *
+ *
+ *
+ * A pagination token returned from a previous call to the
+ * `ListOSPolicyAssignmentReports` method that indicates where this listing
+ * should continue from.
+ *
+ *
+ * string page_token = 4;
+ *
+ * @return The pageToken.
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A pagination token returned from a previous call to the
+ * `ListOSPolicyAssignmentReports` method that indicates where this listing
+ * should continue from.
+ *
+ *
+ * string page_token = 4;
+ *
+ * @return The bytes for pageToken.
+ */
+ public com.google.protobuf.ByteString getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A pagination token returned from a previous call to the
+ * `ListOSPolicyAssignmentReports` method that indicates where this listing
+ * should continue from.
+ *
+ *
+ * string page_token = 4;
+ *
+ * @param value The pageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A pagination token returned from a previous call to the
+ * `ListOSPolicyAssignmentReports` method that indicates where this listing
+ * should continue from.
+ *
+ *
+ * string page_token = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPageToken() {
+
+ pageToken_ = getDefaultInstance().getPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A pagination token returned from a previous call to the
+ * `ListOSPolicyAssignmentReports` method that indicates where this listing
+ * should continue from.
+ *
+ *
+ * string page_token = 4;
+ *
+ * @param value The bytes for pageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ pageToken_ = value;
+ 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.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest)
+ private static final com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest();
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsRequest
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Required. The parent resource name.
+ * Format:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
+ * For `{instance}`, either `instance-name`, `instance-id`, or `-` can be
+ * provided. If '-' is provided, the response will include
+ * OSPolicyAssignmentReports for all instances in the project/location.
+ * For `{assignment}`, either `assignment-id` or `-` can be provided. If '-'
+ * is provided, the response will include OSPolicyAssignmentReports for all
+ * OSPolicyAssignments in the project/location.
+ * Either {instance} or {assignment} must be `-`.
+ * For example:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports`
+ * returns all reports for the instance
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports`
+ * returns all the reports for the given assignment across all instances.
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports`
+ * returns all the reports for all assignments across all instances.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The parent.
+ */
+ java.lang.String getParent();
+ /**
+ *
+ *
+ *
+ * Required. The parent resource name.
+ * Format:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/{assignment}/reports`
+ * For `{project}`, either `project-number` or `project-id` can be provided.
+ * For `{instance}`, either `instance-name`, `instance-id`, or `-` can be
+ * provided. If '-' is provided, the response will include
+ * OSPolicyAssignmentReports for all instances in the project/location.
+ * For `{assignment}`, either `assignment-id` or `-` can be provided. If '-'
+ * is provided, the response will include OSPolicyAssignmentReports for all
+ * OSPolicyAssignments in the project/location.
+ * Either {instance} or {assignment} must be `-`.
+ * For example:
+ * `projects/{project}/locations/{location}/instances/{instance}/osPolicyAssignments/-/reports`
+ * returns all reports for the instance
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/{assignment-id}/reports`
+ * returns all the reports for the given assignment across all instances.
+ * `projects/{project}/locations/{location}/instances/-/osPolicyAssignments/-/reports`
+ * returns all the reports for all assignments across all instances.
+ *
+ *
+ *
+ * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for parent.
+ */
+ com.google.protobuf.ByteString getParentBytes();
+
+ /**
+ *
+ *
+ *
+ * The maximum number of results to return.
+ *
+ *
+ * int32 page_size = 2;
+ *
+ * @return The pageSize.
+ */
+ int getPageSize();
+
+ /**
+ *
+ *
+ *
+ * If provided, this field specifies the criteria that must be met by the
+ * `OSPolicyAssignmentReport` API resource that is included in the response.
+ *
+ *
+ * string filter = 3;
+ *
+ * @return The filter.
+ */
+ java.lang.String getFilter();
+ /**
+ *
+ *
+ *
+ * If provided, this field specifies the criteria that must be met by the
+ * `OSPolicyAssignmentReport` API resource that is included in the response.
+ *
+ *
+ * string filter = 3;
+ *
+ * @return The bytes for filter.
+ */
+ com.google.protobuf.ByteString getFilterBytes();
+
+ /**
+ *
+ *
+ *
+ * A pagination token returned from a previous call to the
+ * `ListOSPolicyAssignmentReports` method that indicates where this listing
+ * should continue from.
+ *
+ *
+ * string page_token = 4;
+ *
+ * @return The pageToken.
+ */
+ java.lang.String getPageToken();
+ /**
+ *
+ *
+ *
+ * A pagination token returned from a previous call to the
+ * `ListOSPolicyAssignmentReports` method that indicates where this listing
+ * should continue from.
+ *
+ *
+ * string page_token = 4;
+ *
+ * @return The bytes for pageToken.
+ */
+ com.google.protobuf.ByteString getPageTokenBytes();
+}
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentReportsResponse.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentReportsResponse.java
new file mode 100644
index 00000000..ac4a551c
--- /dev/null
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentReportsResponse.java
@@ -0,0 +1,1236 @@
+/*
+ * 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/osconfig/v1alpha/os_policy_assignment_reports.proto
+
+package com.google.cloud.osconfig.v1alpha;
+
+/**
+ *
+ *
+ *
+ * A response message for listing OS Policy assignment reports including the
+ * page of results and page token.
+ *
+ *
+ * Protobuf type {@code google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse}
+ */
+public final class ListOSPolicyAssignmentReportsResponse
+ extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse)
+ ListOSPolicyAssignmentReportsResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ListOSPolicyAssignmentReportsResponse.newBuilder() to construct.
+ private ListOSPolicyAssignmentReportsResponse(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ListOSPolicyAssignmentReportsResponse() {
+ osPolicyAssignmentReports_ = java.util.Collections.emptyList();
+ nextPageToken_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ListOSPolicyAssignmentReportsResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ListOSPolicyAssignmentReportsResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ 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:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ osPolicyAssignmentReports_ =
+ new java.util.ArrayList<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ osPolicyAssignmentReports_.add(
+ input.readMessage(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.parser(),
+ extensionRegistry));
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ nextPageToken_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ osPolicyAssignmentReports_ =
+ java.util.Collections.unmodifiableList(osPolicyAssignmentReports_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReportsProto
+ .internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentReportsResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReportsProto
+ .internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentReportsResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse.class,
+ com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse.Builder.class);
+ }
+
+ public static final int OS_POLICY_ASSIGNMENT_REPORTS_FIELD_NUMBER = 1;
+ private java.util.List
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReportOrBuilder>
+ getOsPolicyAssignmentReportsOrBuilderList() {
+ return osPolicyAssignmentReports_;
+ }
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ @java.lang.Override
+ public int getOsPolicyAssignmentReportsCount() {
+ return osPolicyAssignmentReports_.size();
+ }
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport getOsPolicyAssignmentReports(
+ int index) {
+ return osPolicyAssignmentReports_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReportOrBuilder
+ getOsPolicyAssignmentReportsOrBuilder(int index) {
+ return osPolicyAssignmentReports_.get(index);
+ }
+
+ public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+ private volatile java.lang.Object nextPageToken_;
+ /**
+ *
+ *
+ *
+ * The pagination token to retrieve the next page of OS policy assignment
+ * report objects.
+ *
+ *
+ * string next_page_token = 2;
+ *
+ * @return The nextPageToken.
+ */
+ @java.lang.Override
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The pagination token to retrieve the next page of OS policy assignment
+ * report objects.
+ *
+ *
+ * string next_page_token = 2;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < osPolicyAssignmentReports_.size(); i++) {
+ output.writeMessage(1, osPolicyAssignmentReports_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < osPolicyAssignmentReports_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, osPolicyAssignmentReports_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
+ }
+ 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.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse other =
+ (com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse) obj;
+
+ if (!getOsPolicyAssignmentReportsList().equals(other.getOsPolicyAssignmentReportsList()))
+ return false;
+ if (!getNextPageToken().equals(other.getNextPageToken())) 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();
+ if (getOsPolicyAssignmentReportsCount() > 0) {
+ hash = (37 * hash) + OS_POLICY_ASSIGNMENT_REPORTS_FIELD_NUMBER;
+ hash = (53 * hash) + getOsPolicyAssignmentReportsList().hashCode();
+ }
+ hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getNextPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse 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.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse 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.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse 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.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse
+ 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.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse 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.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * A response message for listing OS Policy assignment reports including the
+ * page of results and page token.
+ *
+ *
+ * Protobuf type {@code google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ public java.util.List
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ public int getOsPolicyAssignmentReportsCount() {
+ if (osPolicyAssignmentReportsBuilder_ == null) {
+ return osPolicyAssignmentReports_.size();
+ } else {
+ return osPolicyAssignmentReportsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport getOsPolicyAssignmentReports(
+ int index) {
+ if (osPolicyAssignmentReportsBuilder_ == null) {
+ return osPolicyAssignmentReports_.get(index);
+ } else {
+ return osPolicyAssignmentReportsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ public Builder setOsPolicyAssignmentReports(
+ int index, com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport value) {
+ if (osPolicyAssignmentReportsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOsPolicyAssignmentReportsIsMutable();
+ osPolicyAssignmentReports_.set(index, value);
+ onChanged();
+ } else {
+ osPolicyAssignmentReportsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ public Builder setOsPolicyAssignmentReports(
+ int index,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.Builder builderForValue) {
+ if (osPolicyAssignmentReportsBuilder_ == null) {
+ ensureOsPolicyAssignmentReportsIsMutable();
+ osPolicyAssignmentReports_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ osPolicyAssignmentReportsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ public Builder addOsPolicyAssignmentReports(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport value) {
+ if (osPolicyAssignmentReportsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOsPolicyAssignmentReportsIsMutable();
+ osPolicyAssignmentReports_.add(value);
+ onChanged();
+ } else {
+ osPolicyAssignmentReportsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ public Builder addOsPolicyAssignmentReports(
+ int index, com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport value) {
+ if (osPolicyAssignmentReportsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOsPolicyAssignmentReportsIsMutable();
+ osPolicyAssignmentReports_.add(index, value);
+ onChanged();
+ } else {
+ osPolicyAssignmentReportsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ public Builder addOsPolicyAssignmentReports(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.Builder builderForValue) {
+ if (osPolicyAssignmentReportsBuilder_ == null) {
+ ensureOsPolicyAssignmentReportsIsMutable();
+ osPolicyAssignmentReports_.add(builderForValue.build());
+ onChanged();
+ } else {
+ osPolicyAssignmentReportsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ public Builder addOsPolicyAssignmentReports(
+ int index,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.Builder builderForValue) {
+ if (osPolicyAssignmentReportsBuilder_ == null) {
+ ensureOsPolicyAssignmentReportsIsMutable();
+ osPolicyAssignmentReports_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ osPolicyAssignmentReportsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ public Builder addAllOsPolicyAssignmentReports(
+ java.lang.Iterable extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport>
+ values) {
+ if (osPolicyAssignmentReportsBuilder_ == null) {
+ ensureOsPolicyAssignmentReportsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, osPolicyAssignmentReports_);
+ onChanged();
+ } else {
+ osPolicyAssignmentReportsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ public Builder clearOsPolicyAssignmentReports() {
+ if (osPolicyAssignmentReportsBuilder_ == null) {
+ osPolicyAssignmentReports_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ osPolicyAssignmentReportsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ public Builder removeOsPolicyAssignmentReports(int index) {
+ if (osPolicyAssignmentReportsBuilder_ == null) {
+ ensureOsPolicyAssignmentReportsIsMutable();
+ osPolicyAssignmentReports_.remove(index);
+ onChanged();
+ } else {
+ osPolicyAssignmentReportsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.Builder
+ getOsPolicyAssignmentReportsBuilder(int index) {
+ return getOsPolicyAssignmentReportsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReportOrBuilder
+ getOsPolicyAssignmentReportsOrBuilder(int index) {
+ if (osPolicyAssignmentReportsBuilder_ == null) {
+ return osPolicyAssignmentReports_.get(index);
+ } else {
+ return osPolicyAssignmentReportsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReportOrBuilder>
+ getOsPolicyAssignmentReportsOrBuilderList() {
+ if (osPolicyAssignmentReportsBuilder_ != null) {
+ return osPolicyAssignmentReportsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(osPolicyAssignmentReports_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.Builder
+ addOsPolicyAssignmentReportsBuilder() {
+ return getOsPolicyAssignmentReportsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.Builder
+ addOsPolicyAssignmentReportsBuilder(int index) {
+ return getOsPolicyAssignmentReportsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ public java.util.List
+ * The pagination token to retrieve the next page of OS policy assignment
+ * report objects.
+ *
+ *
+ * string next_page_token = 2;
+ *
+ * @return The nextPageToken.
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The pagination token to retrieve the next page of OS policy assignment
+ * report objects.
+ *
+ *
+ * string next_page_token = 2;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ public com.google.protobuf.ByteString getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The pagination token to retrieve the next page of OS policy assignment
+ * report objects.
+ *
+ *
+ * string next_page_token = 2;
+ *
+ * @param value The nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The pagination token to retrieve the next page of OS policy assignment
+ * report objects.
+ *
+ *
+ * string next_page_token = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNextPageToken() {
+
+ nextPageToken_ = getDefaultInstance().getNextPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The pagination token to retrieve the next page of OS policy assignment
+ * report objects.
+ *
+ *
+ * string next_page_token = 2;
+ *
+ * @param value The bytes for nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ nextPageToken_ = value;
+ 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.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse)
+ private static final com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse();
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentReportsResponse
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ java.util.List
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport getOsPolicyAssignmentReports(
+ int index);
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ int getOsPolicyAssignmentReportsCount();
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ java.util.List extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReportOrBuilder>
+ getOsPolicyAssignmentReportsOrBuilderList();
+ /**
+ *
+ *
+ *
+ * List of OS policy assignment reports.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport os_policy_assignment_reports = 1;
+ *
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReportOrBuilder
+ getOsPolicyAssignmentReportsOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * The pagination token to retrieve the next page of OS policy assignment
+ * report objects.
+ *
+ *
+ * string next_page_token = 2;
+ *
+ * @return The nextPageToken.
+ */
+ java.lang.String getNextPageToken();
+ /**
+ *
+ *
+ *
+ * The pagination token to retrieve the next page of OS policy assignment
+ * report objects.
+ *
+ *
+ * string next_page_token = 2;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ com.google.protobuf.ByteString getNextPageTokenBytes();
+}
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentRevisionsRequest.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentRevisionsRequest.java
index 13cf8f47..2aa45c6f 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentRevisionsRequest.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentRevisionsRequest.java
@@ -112,14 +112,14 @@ private ListOSPolicyAssignmentRevisionsRequest(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentRevisionsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentRevisionsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsRequest.class,
@@ -444,14 +444,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsRequest)
com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentRevisionsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentRevisionsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsRequest.class,
@@ -488,7 +488,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentRevisionsRequest_descriptor;
}
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentRevisionsResponse.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentRevisionsResponse.java
index 47432131..66fcf9a6 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentRevisionsResponse.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentRevisionsResponse.java
@@ -117,14 +117,14 @@ private ListOSPolicyAssignmentRevisionsResponse(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentRevisionsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentRevisionsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsResponse.class,
@@ -447,14 +447,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsResponse)
com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentRevisionsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentRevisionsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentRevisionsResponse.class,
@@ -495,7 +495,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentRevisionsResponse_descriptor;
}
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentsRequest.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentsRequest.java
index ad831451..542d8277 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentsRequest.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentsRequest.java
@@ -111,14 +111,14 @@ private ListOSPolicyAssignmentsRequest(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsRequest.class,
@@ -441,14 +441,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsRequest)
com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsRequest.class,
@@ -483,7 +483,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentsRequest_descriptor;
}
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentsResponse.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentsResponse.java
index cdf6ada8..3d162e59 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentsResponse.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListOSPolicyAssignmentsResponse.java
@@ -116,14 +116,14 @@ private ListOSPolicyAssignmentsResponse(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsResponse.class,
@@ -442,14 +442,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsResponse)
com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsResponse.class,
@@ -489,7 +489,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_ListOSPolicyAssignmentsResponse_descriptor;
}
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListVulnerabilityReportsRequest.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListVulnerabilityReportsRequest.java
index 17c24125..be02089c 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListVulnerabilityReportsRequest.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListVulnerabilityReportsRequest.java
@@ -141,10 +141,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
+ * Format: `projects/{project}/locations/{location}/instances/-`
* For `{project}`, either `project-number` or `project-id` can be provided.
- * For `{instance}`, only `-` character is supported to list vulnerability
- * reports across VMs.
*
*
*
@@ -170,10 +168,8 @@ public java.lang.String getParent() {
*
*
* Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
+ * Format: `projects/{project}/locations/{location}/instances/-`
* For `{project}`, either `project-number` or `project-id` can be provided.
- * For `{instance}`, only `-` character is supported to list vulnerability
- * reports across VMs.
*
*
*
@@ -696,10 +692,8 @@ public Builder mergeFrom(
*
*
* Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
+ * Format: `projects/{project}/locations/{location}/instances/-`
* For `{project}`, either `project-number` or `project-id` can be provided.
- * For `{instance}`, only `-` character is supported to list vulnerability
- * reports across VMs.
*
*
*
@@ -724,10 +718,8 @@ public java.lang.String getParent() {
*
*
* Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
+ * Format: `projects/{project}/locations/{location}/instances/-`
* For `{project}`, either `project-number` or `project-id` can be provided.
- * For `{instance}`, only `-` character is supported to list vulnerability
- * reports across VMs.
*
*
*
@@ -752,10 +744,8 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
* Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
+ * Format: `projects/{project}/locations/{location}/instances/-`
* For `{project}`, either `project-number` or `project-id` can be provided.
- * For `{instance}`, only `-` character is supported to list vulnerability
- * reports across VMs.
*
*
*
@@ -779,10 +769,8 @@ public Builder setParent(java.lang.String value) {
*
*
* Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
+ * Format: `projects/{project}/locations/{location}/instances/-`
* For `{project}`, either `project-number` or `project-id` can be provided.
- * For `{instance}`, only `-` character is supported to list vulnerability
- * reports across VMs.
*
*
*
@@ -802,10 +790,8 @@ public Builder clearParent() {
*
*
* Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
+ * Format: `projects/{project}/locations/{location}/instances/-`
* For `{project}`, either `project-number` or `project-id` can be provided.
- * For `{instance}`, only `-` character is supported to list vulnerability
- * reports across VMs.
*
*
*
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListVulnerabilityReportsRequestOrBuilder.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListVulnerabilityReportsRequestOrBuilder.java
index b84d9c00..80ab8cd3 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListVulnerabilityReportsRequestOrBuilder.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/ListVulnerabilityReportsRequestOrBuilder.java
@@ -28,10 +28,8 @@ public interface ListVulnerabilityReportsRequestOrBuilder
*
*
* Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
+ * Format: `projects/{project}/locations/{location}/instances/-`
* For `{project}`, either `project-number` or `project-id` can be provided.
- * For `{instance}`, only `-` character is supported to list vulnerability
- * reports across VMs.
*
*
*
@@ -46,10 +44,8 @@ public interface ListVulnerabilityReportsRequestOrBuilder
*
*
* Required. The parent resource name.
- * Format: `projects/{project}/locations/{location}/instances/{instance}`
+ * Format: `projects/{project}/locations/{location}/instances/-`
* For `{project}`, either `project-number` or `project-id` can be provided.
- * For `{instance}`, only `-` character is supported to list vulnerability
- * reports across VMs.
*
*
*
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicy.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicy.java
index e0e5a57c..4fc425e7 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicy.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicy.java
@@ -137,14 +137,14 @@ private OSPolicy(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.class,
@@ -383,8 +383,7 @@ public interface OSFilterOrBuilder
*
*
*
- * The `OSFilter` is used to specify the OS filtering criteria for the
- * resource group.
+ * Filtering criteria to select VMs based on OS details.
*
*
* Protobuf type {@code google.cloud.osconfig.v1alpha.OSPolicy.OSFilter}
@@ -467,14 +466,14 @@ private OSFilter(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_OSFilter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_OSFilter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.class,
@@ -763,8 +762,7 @@ protected Builder newBuilderForType(
*
*
*
- * The `OSFilter` is used to specify the OS filtering criteria for the
- * resource group.
+ * Filtering criteria to select VMs based on OS details.
*
*
* Protobuf type {@code google.cloud.osconfig.v1alpha.OSPolicy.OSFilter}
@@ -775,14 +773,14 @@ public static final class Builder
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicy.OSFilter)
com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilterOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_OSFilter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_OSFilter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.class,
@@ -815,7 +813,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_OSFilter_descriptor;
}
@@ -1218,224 +1216,97 @@ public com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter getDefaultInstanceFor
}
}
- public interface ResourceOrBuilder
+ public interface InventoryFilterOrBuilder
extends
- // @@protoc_insertion_point(interface_extends:google.cloud.osconfig.v1alpha.OSPolicy.Resource)
+ // @@protoc_insertion_point(interface_extends:google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
- * Required. The id of the resource with the following restrictions:
- * * Must contain only lowercase letters, numbers, and hyphens.
- * * Must start with a letter.
- * * Must be between 1-63 characters.
- * * Must end with a number or a letter.
- * * Must be unique within the OS policy.
- *
- *
- * string id = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- * @return The id.
- */
- java.lang.String getId();
- /**
- *
- *
- *
- * Required. The id of the resource with the following restrictions:
- * * Must contain only lowercase letters, numbers, and hyphens.
- * * Must start with a letter.
- * * Must be between 1-63 characters.
- * * Must end with a number or a letter.
- * * Must be unique within the OS policy.
- *
- *
- * string id = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- * @return The bytes for id.
- */
- com.google.protobuf.ByteString getIdBytes();
-
- /**
- *
- *
- *
- * Package resource
- *
- *
- * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource pkg = 2;
- *
- * @return Whether the pkg field is set.
- */
- boolean hasPkg();
- /**
- *
- *
- *
- * Package resource
- *
- *
- * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource pkg = 2;
- *
- * @return The pkg.
- */
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource getPkg();
- /**
- *
- *
- *
- * Package resource
- *
- *
- * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource pkg = 2;
- */
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResourceOrBuilder getPkgOrBuilder();
-
- /**
- *
- *
- *
- * Package repository resource
- *
- *
- * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource repository = 3;
- *
- *
- * @return Whether the repository field is set.
- */
- boolean hasRepository();
- /**
- *
- *
- *
- * Package repository resource
- *
- *
- * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource repository = 3;
- *
- *
- * @return The repository.
- */
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource getRepository();
- /**
- *
- *
- *
- * Package repository resource
- *
- *
- * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource repository = 3;
- *
- */
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResourceOrBuilder
- getRepositoryOrBuilder();
-
- /**
- *
- *
- *
- * Exec resource
+ * Required. The OS short name
*
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource exec = 4;
+ * string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
*
- * @return Whether the exec field is set.
+ * @return The osShortName.
*/
- boolean hasExec();
+ java.lang.String getOsShortName();
/**
*
*
*
- * Exec resource
+ * Required. The OS short name
*
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource exec = 4;
- *
- * @return The exec.
- */
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource getExec();
- /**
- *
- *
- *
- * Exec resource
- *
+ * string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource exec = 4;
+ * @return The bytes for osShortName.
*/
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResourceOrBuilder getExecOrBuilder();
+ com.google.protobuf.ByteString getOsShortNameBytes();
/**
*
*
*
- * File resource
+ * The OS version
+ * Prefix matches are supported if asterisk(*) is provided as the
+ * last character. For example, to match all versions with a major
+ * version of `7`, specify the following value for this field `7.*`
+ * An empty string matches all OS versions.
*
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource file = 5;
+ * string os_version = 2;
*
- * @return Whether the file field is set.
+ * @return The osVersion.
*/
- boolean hasFile();
+ java.lang.String getOsVersion();
/**
*
*
*
- * File resource
+ * The OS version
+ * Prefix matches are supported if asterisk(*) is provided as the
+ * last character. For example, to match all versions with a major
+ * version of `7`, specify the following value for this field `7.*`
+ * An empty string matches all OS versions.
*
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource file = 5;
- *
- * @return The file.
- */
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource getFile();
- /**
- *
- *
- *
- * File resource
- *
+ * string os_version = 2;
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource file = 5;
+ * @return The bytes for osVersion.
*/
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResourceOrBuilder getFileOrBuilder();
-
- public com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ResourceTypeCase
- getResourceTypeCase();
+ com.google.protobuf.ByteString getOsVersionBytes();
}
/**
*
*
*
- * An OS policy resource is used to define the desired state configuration
- * and provides a specific functionality like installing/removing packages,
- * executing a script etc.
- * The system ensures that resources are always in their desired state by
- * taking necessary actions if they have drifted from their desired state.
+ * Filtering criteria to select VMs based on inventory details.
*
*
- * Protobuf type {@code google.cloud.osconfig.v1alpha.OSPolicy.Resource}
+ * Protobuf type {@code google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter}
*/
- public static final class Resource extends com.google.protobuf.GeneratedMessageV3
+ public static final class InventoryFilter extends com.google.protobuf.GeneratedMessageV3
implements
- // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource)
- ResourceOrBuilder {
+ // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter)
+ InventoryFilterOrBuilder {
private static final long serialVersionUID = 0L;
- // Use Resource.newBuilder() to construct.
- private Resource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ // Use InventoryFilter.newBuilder() to construct.
+ private InventoryFilter(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
- private Resource() {
- id_ = "";
+ private InventoryFilter() {
+ osShortName_ = "";
+ osVersion_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
- return new Resource();
+ return new InventoryFilter();
}
@java.lang.Override
@@ -1443,7 +1314,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
- private Resource(
+ private InventoryFilter(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1465,107 +1336,20 @@ private Resource(
{
java.lang.String s = input.readStringRequireUtf8();
- id_ = s;
+ osShortName_ = s;
break;
}
case 18:
{
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Builder
- subBuilder = null;
- if (resourceTypeCase_ == 2) {
- subBuilder =
- ((com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource)
- resourceType_)
- .toBuilder();
- }
- resourceType_ =
- input.readMessage(
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource
- .parser(),
- extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(
- (com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource)
- resourceType_);
- resourceType_ = subBuilder.buildPartial();
- }
- resourceTypeCase_ = 2;
- break;
- }
- case 26:
- {
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.Builder
- subBuilder = null;
- if (resourceTypeCase_ == 3) {
- subBuilder =
- ((com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource)
- resourceType_)
- .toBuilder();
- }
- resourceType_ =
- input.readMessage(
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource
- .parser(),
- extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(
- (com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource)
- resourceType_);
- resourceType_ = subBuilder.buildPartial();
- }
- resourceTypeCase_ = 3;
+ java.lang.String s = input.readStringRequireUtf8();
+
+ osVersion_ = s;
break;
}
- case 34:
+ default:
{
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Builder
- subBuilder = null;
- if (resourceTypeCase_ == 4) {
- subBuilder =
- ((com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource)
- resourceType_)
- .toBuilder();
- }
- resourceType_ =
- input.readMessage(
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.parser(),
- extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(
- (com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource)
- resourceType_);
- resourceType_ = subBuilder.buildPartial();
- }
- resourceTypeCase_ = 4;
- break;
- }
- case 42:
- {
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.Builder
- subBuilder = null;
- if (resourceTypeCase_ == 5) {
- subBuilder =
- ((com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource)
- resourceType_)
- .toBuilder();
- }
- resourceType_ =
- input.readMessage(
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.parser(),
- extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(
- (com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource)
- resourceType_);
- resourceType_ = subBuilder.buildPartial();
- }
- resourceTypeCase_ = 5;
- break;
- }
- default:
- {
- if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
- done = true;
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
}
break;
}
@@ -1582,195 +1366,1305 @@ private Resource(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
- .internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_descriptor;
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
+ .internal_static_google_cloud_osconfig_v1alpha_OSPolicy_InventoryFilter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
- .internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_fieldAccessorTable
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
+ .internal_static_google_cloud_osconfig_v1alpha_OSPolicy_InventoryFilter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.class,
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.Builder.class);
+ com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter.class,
+ com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter.Builder.class);
}
- public interface FileOrBuilder
- extends
- // @@protoc_insertion_point(interface_extends:google.cloud.osconfig.v1alpha.OSPolicy.Resource.File)
- com.google.protobuf.MessageOrBuilder {
-
- /**
- *
- *
- *
- * A generic remote file.
- *
- *
- * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote remote = 1;
- *
- * @return Whether the remote field is set.
- */
- boolean hasRemote();
- /**
- *
- *
- *
- * A generic remote file.
- *
- *
- * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote remote = 1;
- *
- * @return The remote.
- */
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote getRemote();
- /**
- *
- *
- *
- * A generic remote file.
- *
- *
- * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote remote = 1;
- */
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.RemoteOrBuilder getRemoteOrBuilder();
-
- /**
- *
- *
- *
- * A Cloud Storage object.
- *
- *
- * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs gcs = 2;
- *
- * @return Whether the gcs field is set.
- */
- boolean hasGcs();
- /**
- *
- *
- *
- * A Cloud Storage object.
- *
- *
- * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs gcs = 2;
- *
- * @return The gcs.
- */
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs getGcs();
- /**
- *
- *
- *
- * A Cloud Storage object.
- *
- *
- * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs gcs = 2;
- */
- com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.GcsOrBuilder getGcsOrBuilder();
-
- /**
- *
- *
- *
- * A local path within the VM to use.
- *
- *
- * string local_path = 3;
- *
- * @return Whether the localPath field is set.
- */
- boolean hasLocalPath();
- /**
- *
- *
- *
- * A local path within the VM to use.
- *
- *
- * string local_path = 3;
- *
- * @return The localPath.
- */
- java.lang.String getLocalPath();
- /**
- *
- *
- *
- * A local path within the VM to use.
- *
- *
- * string local_path = 3;
- *
- * @return The bytes for localPath.
- */
- com.google.protobuf.ByteString getLocalPathBytes();
-
- /**
- *
- *
- *
- * Defaults to false. When false, files are subject to validations
- * based on the file type:
- * Remote: A checksum must be specified.
- * Cloud Storage: An object generation number must be specified.
- *
- *
- * bool allow_insecure = 4;
- *
- * @return The allowInsecure.
- */
- boolean getAllowInsecure();
-
- public com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.TypeCase getTypeCase();
- }
+ public static final int OS_SHORT_NAME_FIELD_NUMBER = 1;
+ private volatile java.lang.Object osShortName_;
/**
*
*
*
- * A remote or local file.
+ * Required. The OS short name
*
*
- * Protobuf type {@code google.cloud.osconfig.v1alpha.OSPolicy.Resource.File}
+ * string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The osShortName.
*/
- public static final class File extends com.google.protobuf.GeneratedMessageV3
- implements
- // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource.File)
- FileOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use File.newBuilder() to construct.
- private File(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
- super(builder);
+ @java.lang.Override
+ public java.lang.String getOsShortName() {
+ java.lang.Object ref = osShortName_;
+ 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();
+ osShortName_ = s;
+ return s;
}
-
- private File() {}
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
- return new File();
+ }
+ /**
+ *
+ *
+ *
+ * Required. The OS short name
+ *
+ *
+ * string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for osShortName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOsShortNameBytes() {
+ java.lang.Object ref = osShortName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ osShortName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
+ }
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
- return this.unknownFields;
+ public static final int OS_VERSION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object osVersion_;
+ /**
+ *
+ *
+ *
+ * The OS version
+ * Prefix matches are supported if asterisk(*) is provided as the
+ * last character. For example, to match all versions with a major
+ * version of `7`, specify the following value for this field `7.*`
+ * An empty string matches all OS versions.
+ *
+ *
+ * string os_version = 2;
+ *
+ * @return The osVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getOsVersion() {
+ java.lang.Object ref = osVersion_;
+ 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();
+ osVersion_ = s;
+ return s;
}
-
- private File(
- 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) {
+ }
+ /**
+ *
+ *
+ *
+ * The OS version
+ * Prefix matches are supported if asterisk(*) is provided as the
+ * last character. For example, to match all versions with a major
+ * version of `7`, specify the following value for this field `7.*`
+ * An empty string matches all OS versions.
+ *
+ *
+ * string os_version = 2;
+ *
+ * @return The bytes for osVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOsVersionBytes() {
+ java.lang.Object ref = osVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ osVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osShortName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, osShortName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osVersion_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, osVersion_);
+ }
+ 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(osShortName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, osShortName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osVersion_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, osVersion_);
+ }
+ 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.osconfig.v1alpha.OSPolicy.InventoryFilter)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter other =
+ (com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter) obj;
+
+ if (!getOsShortName().equals(other.getOsShortName())) return false;
+ if (!getOsVersion().equals(other.getOsVersion())) 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) + OS_SHORT_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getOsShortName().hashCode();
+ hash = (37 * hash) + OS_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getOsVersion().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter 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.osconfig.v1alpha.OSPolicy.InventoryFilter parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter 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.osconfig.v1alpha.OSPolicy.InventoryFilter parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter 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.osconfig.v1alpha.OSPolicy.InventoryFilter parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter 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.osconfig.v1alpha.OSPolicy.InventoryFilter parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter 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.osconfig.v1alpha.OSPolicy.InventoryFilter 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;
+ }
+ /**
+ *
+ *
+ *
+ * Filtering criteria to select VMs based on inventory details.
+ *
+ *
+ * Protobuf type {@code google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The OS short name
+ *
+ *
+ * string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The osShortName.
+ */
+ public java.lang.String getOsShortName() {
+ java.lang.Object ref = osShortName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ osShortName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The OS short name
+ *
+ *
+ * string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for osShortName.
+ */
+ public com.google.protobuf.ByteString getOsShortNameBytes() {
+ java.lang.Object ref = osShortName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ osShortName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The OS short name
+ *
+ *
+ * string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The osShortName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOsShortName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ osShortName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The OS short name
+ *
+ *
+ * string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOsShortName() {
+
+ osShortName_ = getDefaultInstance().getOsShortName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The OS short name
+ *
+ *
+ * string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for osShortName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOsShortNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ osShortName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object osVersion_ = "";
+ /**
+ *
+ *
+ *
+ * The OS version
+ * Prefix matches are supported if asterisk(*) is provided as the
+ * last character. For example, to match all versions with a major
+ * version of `7`, specify the following value for this field `7.*`
+ * An empty string matches all OS versions.
+ *
+ *
+ * string os_version = 2;
+ *
+ * @return The osVersion.
+ */
+ public java.lang.String getOsVersion() {
+ java.lang.Object ref = osVersion_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ osVersion_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The OS version
+ * Prefix matches are supported if asterisk(*) is provided as the
+ * last character. For example, to match all versions with a major
+ * version of `7`, specify the following value for this field `7.*`
+ * An empty string matches all OS versions.
+ *
+ *
+ * string os_version = 2;
+ *
+ * @return The bytes for osVersion.
+ */
+ public com.google.protobuf.ByteString getOsVersionBytes() {
+ java.lang.Object ref = osVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ osVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The OS version
+ * Prefix matches are supported if asterisk(*) is provided as the
+ * last character. For example, to match all versions with a major
+ * version of `7`, specify the following value for this field `7.*`
+ * An empty string matches all OS versions.
+ *
+ *
+ * string os_version = 2;
+ *
+ * @param value The osVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOsVersion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ osVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The OS version
+ * Prefix matches are supported if asterisk(*) is provided as the
+ * last character. For example, to match all versions with a major
+ * version of `7`, specify the following value for this field `7.*`
+ * An empty string matches all OS versions.
+ *
+ *
+ * string os_version = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOsVersion() {
+
+ osVersion_ = getDefaultInstance().getOsVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The OS version
+ * Prefix matches are supported if asterisk(*) is provided as the
+ * last character. For example, to match all versions with a major
+ * version of `7`, specify the following value for this field `7.*`
+ * An empty string matches all OS versions.
+ *
+ *
+ * string os_version = 2;
+ *
+ * @param value The bytes for osVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOsVersionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ osVersion_ = value;
+ 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.osconfig.v1alpha.OSPolicy.InventoryFilter)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter)
+ private static final com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter();
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Required. The id of the resource with the following restrictions:
+ * * Must contain only lowercase letters, numbers, and hyphens.
+ * * Must start with a letter.
+ * * Must be between 1-63 characters.
+ * * Must end with a number or a letter.
+ * * Must be unique within the OS policy.
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The id.
+ */
+ java.lang.String getId();
+ /**
+ *
+ *
+ *
+ * Required. The id of the resource with the following restrictions:
+ * * Must contain only lowercase letters, numbers, and hyphens.
+ * * Must start with a letter.
+ * * Must be between 1-63 characters.
+ * * Must end with a number or a letter.
+ * * Must be unique within the OS policy.
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString getIdBytes();
+
+ /**
+ *
+ *
+ *
+ * Package resource
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource pkg = 2;
+ *
+ * @return Whether the pkg field is set.
+ */
+ boolean hasPkg();
+ /**
+ *
+ *
+ *
+ * Package resource
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource pkg = 2;
+ *
+ * @return The pkg.
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource getPkg();
+ /**
+ *
+ *
+ *
+ * Package resource
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource pkg = 2;
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResourceOrBuilder getPkgOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Package repository resource
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource repository = 3;
+ *
+ *
+ * @return Whether the repository field is set.
+ */
+ boolean hasRepository();
+ /**
+ *
+ *
+ *
+ * Package repository resource
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource repository = 3;
+ *
+ *
+ * @return The repository.
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource getRepository();
+ /**
+ *
+ *
+ *
+ * Package repository resource
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource repository = 3;
+ *
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResourceOrBuilder
+ getRepositoryOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Exec resource
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource exec = 4;
+ *
+ * @return Whether the exec field is set.
+ */
+ boolean hasExec();
+ /**
+ *
+ *
+ *
+ * Exec resource
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource exec = 4;
+ *
+ * @return The exec.
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource getExec();
+ /**
+ *
+ *
+ *
+ * Exec resource
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource exec = 4;
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResourceOrBuilder getExecOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * File resource
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource file = 5;
+ *
+ * @return Whether the file field is set.
+ */
+ boolean hasFile();
+ /**
+ *
+ *
+ *
+ * File resource
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource file = 5;
+ *
+ * @return The file.
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource getFile();
+ /**
+ *
+ *
+ *
+ * File resource
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource file = 5;
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResourceOrBuilder getFileOrBuilder();
+
+ public com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ResourceTypeCase
+ getResourceTypeCase();
+ }
+ /**
+ *
+ *
+ *
+ * An OS policy resource is used to define the desired state configuration
+ * and provides a specific functionality like installing/removing packages,
+ * executing a script etc.
+ * The system ensures that resources are always in their desired state by
+ * taking necessary actions if they have drifted from their desired state.
+ *
+ *
+ * Protobuf type {@code google.cloud.osconfig.v1alpha.OSPolicy.Resource}
+ */
+ public static final class Resource extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource)
+ ResourceOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Resource.newBuilder() to construct.
+ private Resource(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private Resource() {
+ id_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new Resource();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Resource(
+ 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();
+
+ id_ = s;
+ break;
+ }
+ case 18:
+ {
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Builder
+ subBuilder = null;
+ if (resourceTypeCase_ == 2) {
+ subBuilder =
+ ((com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource)
+ resourceType_)
+ .toBuilder();
+ }
+ resourceType_ =
+ input.readMessage(
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource
+ .parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource)
+ resourceType_);
+ resourceType_ = subBuilder.buildPartial();
+ }
+ resourceTypeCase_ = 2;
+ break;
+ }
+ case 26:
+ {
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.Builder
+ subBuilder = null;
+ if (resourceTypeCase_ == 3) {
+ subBuilder =
+ ((com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource)
+ resourceType_)
+ .toBuilder();
+ }
+ resourceType_ =
+ input.readMessage(
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource
+ .parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource)
+ resourceType_);
+ resourceType_ = subBuilder.buildPartial();
+ }
+ resourceTypeCase_ = 3;
+ break;
+ }
+ case 34:
+ {
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Builder
+ subBuilder = null;
+ if (resourceTypeCase_ == 4) {
+ subBuilder =
+ ((com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource)
+ resourceType_)
+ .toBuilder();
+ }
+ resourceType_ =
+ input.readMessage(
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource)
+ resourceType_);
+ resourceType_ = subBuilder.buildPartial();
+ }
+ resourceTypeCase_ = 4;
+ break;
+ }
+ case 42:
+ {
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.Builder
+ subBuilder = null;
+ if (resourceTypeCase_ == 5) {
+ subBuilder =
+ ((com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource)
+ resourceType_)
+ .toBuilder();
+ }
+ resourceType_ =
+ input.readMessage(
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource)
+ resourceType_);
+ resourceType_ = subBuilder.buildPartial();
+ }
+ resourceTypeCase_ = 5;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.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.osconfig.v1alpha.OsPolicyProto
+ .internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
+ .internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.class,
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.Builder.class);
+ }
+
+ public interface FileOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.osconfig.v1alpha.OSPolicy.Resource.File)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * A generic remote file.
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote remote = 1;
+ *
+ * @return Whether the remote field is set.
+ */
+ boolean hasRemote();
+ /**
+ *
+ *
+ *
+ * A generic remote file.
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote remote = 1;
+ *
+ * @return The remote.
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote getRemote();
+ /**
+ *
+ *
+ *
+ * A generic remote file.
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote remote = 1;
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.RemoteOrBuilder getRemoteOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * A Cloud Storage object.
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs gcs = 2;
+ *
+ * @return Whether the gcs field is set.
+ */
+ boolean hasGcs();
+ /**
+ *
+ *
+ *
+ * A Cloud Storage object.
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs gcs = 2;
+ *
+ * @return The gcs.
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs getGcs();
+ /**
+ *
+ *
+ *
+ * A Cloud Storage object.
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs gcs = 2;
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.GcsOrBuilder getGcsOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * A local path within the VM to use.
+ *
+ *
+ * string local_path = 3;
+ *
+ * @return Whether the localPath field is set.
+ */
+ boolean hasLocalPath();
+ /**
+ *
+ *
+ *
+ * A local path within the VM to use.
+ *
+ *
+ * string local_path = 3;
+ *
+ * @return The localPath.
+ */
+ java.lang.String getLocalPath();
+ /**
+ *
+ *
+ *
+ * A local path within the VM to use.
+ *
+ *
+ * string local_path = 3;
+ *
+ * @return The bytes for localPath.
+ */
+ com.google.protobuf.ByteString getLocalPathBytes();
+
+ /**
+ *
+ *
+ *
+ * Defaults to false. When false, files are subject to validations
+ * based on the file type:
+ * Remote: A checksum must be specified.
+ * Cloud Storage: An object generation number must be specified.
+ *
+ *
+ * bool allow_insecure = 4;
+ *
+ * @return The allowInsecure.
+ */
+ boolean getAllowInsecure();
+
+ public com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.TypeCase getTypeCase();
+ }
+ /**
+ *
+ *
+ *
+ * A remote or local file.
+ *
+ *
+ * Protobuf type {@code google.cloud.osconfig.v1alpha.OSPolicy.Resource.File}
+ */
+ public static final class File extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource.File)
+ FileOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use File.newBuilder() to construct.
+ private File(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private File() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new File();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private File(
+ 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:
@@ -1851,14 +2745,14 @@ private File(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_File_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_File_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.class,
@@ -2010,14 +2904,14 @@ private Remote(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_File_Remote_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_File_Remote_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote.class,
@@ -2313,14 +3207,14 @@ public static final class Builder
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote)
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.RemoteOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_File_Remote_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_File_Remote_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Remote.class,
@@ -2354,7 +3248,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_File_Remote_descriptor;
}
@@ -2907,14 +3801,14 @@ private Gcs(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_File_Gcs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_File_Gcs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs.class,
@@ -3235,14 +4129,14 @@ public static final class Builder
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs)
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.GcsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_File_Gcs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_File_Gcs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.Gcs.class,
@@ -3278,7 +4172,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_File_Gcs_descriptor;
}
@@ -4196,14 +5090,14 @@ public static final class Builder
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource.File)
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_File_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_File_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.File.class,
@@ -4236,7 +5130,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_File_descriptor;
}
@@ -5634,14 +6528,14 @@ private PackageResource(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.class,
@@ -5969,14 +6863,14 @@ private Deb(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_Deb_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_Deb_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Deb.class,
@@ -6262,14 +7156,14 @@ public static final class Builder
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Deb)
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.DebOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_Deb_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_Deb_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Deb.class,
@@ -6308,7 +7202,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_Deb_descriptor;
}
@@ -6871,14 +7765,14 @@ private APT(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_APT_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_APT_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.APT.class,
@@ -7126,14 +8020,14 @@ public static final class Builder
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.APT)
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.APTOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_APT_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_APT_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.APT.class,
@@ -7167,7 +8061,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_APT_descriptor;
}
@@ -7605,14 +8499,14 @@ private RPM(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_RPM_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_RPM_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.RPM.class,
@@ -7899,14 +8793,14 @@ public static final class Builder
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.RPM)
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.RPMOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_RPM_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_RPM_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.RPM.class,
@@ -7946,7 +8840,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_RPM_descriptor;
}
@@ -8509,14 +9403,14 @@ private YUM(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_YUM_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_YUM_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.YUM.class,
@@ -8764,14 +9658,14 @@ public static final class Builder
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.YUM)
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.YUMOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_YUM_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_YUM_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.YUM.class,
@@ -8805,7 +9699,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_YUM_descriptor;
}
@@ -9200,14 +10094,14 @@ private Zypper(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_Zypper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_Zypper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Zypper.class,
@@ -9456,14 +10350,14 @@ public static final class Builder
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Zypper)
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.ZypperOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_Zypper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_Zypper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Zypper
@@ -9497,7 +10391,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_Zypper_descriptor;
}
@@ -9896,14 +10790,14 @@ private GooGet(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_GooGet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_GooGet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.GooGet.class,
@@ -10152,14 +11046,14 @@ public static final class Builder
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.GooGet)
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.GooGetOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_GooGet_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_GooGet_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.GooGet
@@ -10193,7 +11087,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_GooGet_descriptor;
}
@@ -10693,14 +11587,14 @@ private MSI(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_MSI_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_MSI_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.MSI.class,
@@ -11046,14 +11940,14 @@ public static final class Builder
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.MSI)
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.MSIOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_MSI_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_MSI_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.MSI.class,
@@ -11093,7 +11987,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_MSI_descriptor;
}
@@ -12532,14 +13426,14 @@ public static final class Builder
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource)
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.class,
@@ -12574,7 +13468,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_PackageResource_descriptor;
}
@@ -14974,14 +15868,14 @@ private RepositoryResource(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.class,
@@ -15279,14 +16173,14 @@ private AptRepository(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_AptRepository_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_AptRepository_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource
@@ -15981,14 +16875,14 @@ public static final class Builder
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource
.AptRepositoryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_AptRepository_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_AptRepository_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource
@@ -16030,7 +16924,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_AptRepository_descriptor;
}
@@ -17115,14 +18009,14 @@ private YumRepository(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_YumRepository_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_YumRepository_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource
@@ -17589,14 +18483,14 @@ public static final class Builder
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource
.YumRepositoryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_YumRepository_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_YumRepository_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource
@@ -17636,7 +18530,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_YumRepository_descriptor;
}
@@ -18606,14 +19500,14 @@ private ZypperRepository(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_ZypperRepository_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_ZypperRepository_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource
@@ -19080,14 +19974,14 @@ public static final class Builder
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource
.ZypperRepositoryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_ZypperRepository_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_ZypperRepository_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource
@@ -19127,7 +20021,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_ZypperRepository_descriptor;
}
@@ -19994,14 +20888,14 @@ private GooRepository(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_GooRepository_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_GooRepository_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource
@@ -20327,14 +21221,14 @@ public static final class Builder
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource
.GooRepositoryOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_GooRepository_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_GooRepository_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource
@@ -20370,7 +21264,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_GooRepository_descriptor;
}
@@ -21364,14 +22258,14 @@ public static final class Builder
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource)
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.RepositoryResource.class,
@@ -21404,7 +22298,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_RepositoryResource_descriptor;
}
@@ -22927,14 +23821,14 @@ private ExecResource(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_ExecResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_ExecResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.class,
@@ -23271,14 +24165,14 @@ private Exec(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_ExecResource_Exec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_ExecResource_Exec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec.class,
@@ -23301,7 +24195,7 @@ public enum Interpreter implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Defaults to NONE.
+ * Invalid value, the request will return validation error.
*
*
* INTERPRETER_UNSPECIFIED = 0;
@@ -23311,11 +24205,11 @@ public enum Interpreter implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * If no interpreter is specified the
- * source will be executed directly, which will likely only
- * succeed for executables and scripts with shebang lines.
- * [Wikipedia
- * shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)).
+ * If an interpreter is not specified, the
+ * source is executed directly. This execution, without an
+ * interpreter, only succeeds for executables and scripts that have <a
+ * href="https://en.wikipedia.org/wiki/Shebang_(Unix)"
+ * class="external">shebang lines</a>.
*
*
* NONE = 1;
@@ -23325,8 +24219,8 @@ public enum Interpreter implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Indicates that the script will be run with /bin/sh on Linux and
- * cmd.exe on windows.
+ * Indicates that the script runs with `/bin/sh` on Linux and
+ * `cmd.exe` on Windows.
*
*
* SHELL = 2;
@@ -23336,7 +24230,7 @@ public enum Interpreter implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Indicates that the script will be run with powershell.
+ * Indicates that the script runs with PowerShell.
*
*
* POWERSHELL = 3;
@@ -23349,7 +24243,7 @@ public enum Interpreter implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Defaults to NONE.
+ * Invalid value, the request will return validation error.
*
*
* INTERPRETER_UNSPECIFIED = 0;
@@ -23359,11 +24253,11 @@ public enum Interpreter implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * If no interpreter is specified the
- * source will be executed directly, which will likely only
- * succeed for executables and scripts with shebang lines.
- * [Wikipedia
- * shebang](https://en.wikipedia.org/wiki/Shebang_(Unix)).
+ * If an interpreter is not specified, the
+ * source is executed directly. This execution, without an
+ * interpreter, only succeeds for executables and scripts that have <a
+ * href="https://en.wikipedia.org/wiki/Shebang_(Unix)"
+ * class="external">shebang lines</a>.
*
*
* NONE = 1;
@@ -23373,8 +24267,8 @@ public enum Interpreter implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Indicates that the script will be run with /bin/sh on Linux and
- * cmd.exe on windows.
+ * Indicates that the script runs with `/bin/sh` on Linux and
+ * `cmd.exe` on Windows.
*
*
* SHELL = 2;
@@ -23384,7 +24278,7 @@ public enum Interpreter implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Indicates that the script will be run with powershell.
+ * Indicates that the script runs with PowerShell.
*
*
* POWERSHELL = 3;
@@ -24077,14 +24971,14 @@ public static final class Builder
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec)
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.ExecOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_ExecResource_Exec_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_ExecResource_Exec_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.Exec.class,
@@ -24123,7 +25017,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_ExecResource_Exec_descriptor;
}
@@ -25466,14 +26360,14 @@ public static final class Builder
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource)
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_ExecResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_ExecResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.ExecResource.class,
@@ -25515,7 +26409,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_ExecResource_descriptor;
}
@@ -26464,14 +27358,14 @@ private FileResource(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_FileResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_FileResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.class,
@@ -27241,14 +28135,14 @@ public static final class Builder
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource)
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_FileResource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_FileResource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.FileResource.class,
@@ -27286,7 +28180,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_FileResource_descriptor;
}
@@ -28824,14 +29718,14 @@ public static final class Builder
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicy.Resource)
com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource.class,
@@ -28864,7 +29758,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_Resource_descriptor;
}
@@ -30138,37 +31032,150 @@ public interface ResourceGroupOrBuilder
*
*
*
+ * Deprecated. Use the `inventory_filters` field instead.
* Used to specify the OS filter for a resource group
*
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1;
+ * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1 [deprecated = true];
+ *
*
* @return Whether the osFilter field is set.
*/
+ @java.lang.Deprecated
boolean hasOsFilter();
/**
*
*
*
+ * Deprecated. Use the `inventory_filters` field instead.
* Used to specify the OS filter for a resource group
*
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1;
+ * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1 [deprecated = true];
+ *
*
* @return The osFilter.
*/
+ @java.lang.Deprecated
com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter getOsFilter();
/**
*
*
*
+ * Deprecated. Use the `inventory_filters` field instead.
* Used to specify the OS filter for a resource group
*
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1;
+ * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1 [deprecated = true];
+ *
*/
+ @java.lang.Deprecated
com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilterOrBuilder getOsFilterOrBuilder();
+ /**
+ *
+ *
+ *
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
+ */
+ java.util.List
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter getInventoryFilters(int index);
+ /**
+ *
+ *
+ *
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
+ */
+ int getInventoryFiltersCount();
+ /**
+ *
+ *
+ *
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
+ */
+ java.util.List extends com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilterOrBuilder>
+ getInventoryFiltersOrBuilderList();
+ /**
+ *
+ *
+ *
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilterOrBuilder
+ getInventoryFiltersOrBuilder(int index);
+
/**
*
*
@@ -30261,6 +31268,7 @@ private ResourceGroup(com.google.protobuf.GeneratedMessageV3.Builder> builder)
}
private ResourceGroup() {
+ inventoryFilters_ = java.util.Collections.emptyList();
resources_ = java.util.Collections.emptyList();
}
@@ -30313,11 +31321,11 @@ private ResourceGroup(
}
case 18:
{
- if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
resources_ =
new java.util.ArrayList<
com.google.cloud.osconfig.v1alpha.OSPolicy.Resource>();
- mutable_bitField0_ |= 0x00000001;
+ mutable_bitField0_ |= 0x00000002;
}
resources_.add(
input.readMessage(
@@ -30325,6 +31333,20 @@ private ResourceGroup(
extensionRegistry));
break;
}
+ case 26:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ inventoryFilters_ =
+ new java.util.ArrayList<
+ com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ inventoryFilters_.add(
+ input.readMessage(
+ com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter.parser(),
+ extensionRegistry));
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -30339,23 +31361,26 @@ private ResourceGroup(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
- if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
resources_ = java.util.Collections.unmodifiableList(resources_);
}
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ inventoryFilters_ = java.util.Collections.unmodifiableList(inventoryFilters_);
+ }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_ResourceGroup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_ResourceGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup.class,
@@ -30368,14 +31393,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
+ * Deprecated. Use the `inventory_filters` field instead.
* Used to specify the OS filter for a resource group
*
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1;
+ * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1 [deprecated = true];
+ *
*
* @return Whether the osFilter field is set.
*/
@java.lang.Override
+ @java.lang.Deprecated
public boolean hasOsFilter() {
return osFilter_ != null;
}
@@ -30383,31 +31411,161 @@ public boolean hasOsFilter() {
*
*
*
+ * Deprecated. Use the `inventory_filters` field instead.
+ * Used to specify the OS filter for a resource group
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1 [deprecated = true];
+ *
+ *
+ * @return The osFilter.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter getOsFilter() {
+ return osFilter_ == null
+ ? com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.getDefaultInstance()
+ : osFilter_;
+ }
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventory_filters` field instead.
* Used to specify the OS filter for a resource group
*
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1;
- *
- * @return The osFilter.
+ * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1 [deprecated = true];
+ *
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilterOrBuilder getOsFilterOrBuilder() {
+ return getOsFilter();
+ }
+
+ public static final int INVENTORY_FILTERS_FIELD_NUMBER = 3;
+ private java.util.List
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilterOrBuilder>
+ getInventoryFiltersOrBuilderList() {
+ return inventoryFilters_;
+ }
+ /**
+ *
+ *
+ *
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
+ */
+ @java.lang.Override
+ public int getInventoryFiltersCount() {
+ return inventoryFilters_.size();
+ }
+ /**
+ *
+ *
+ *
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
*/
@java.lang.Override
- public com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter getOsFilter() {
- return osFilter_ == null
- ? com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.getDefaultInstance()
- : osFilter_;
+ public com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter getInventoryFilters(
+ int index) {
+ return inventoryFilters_.get(index);
}
/**
*
*
*
- * Used to specify the OS filter for a resource group
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
*
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
*/
@java.lang.Override
- public com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilterOrBuilder getOsFilterOrBuilder() {
- return getOsFilter();
+ public com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilterOrBuilder
+ getInventoryFiltersOrBuilder(int index) {
+ return inventoryFilters_.get(index);
}
public static final int RESOURCES_FIELD_NUMBER = 2;
@@ -30515,6 +31673,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < resources_.size(); i++) {
output.writeMessage(2, resources_.get(i));
}
+ for (int i = 0; i < inventoryFilters_.size(); i++) {
+ output.writeMessage(3, inventoryFilters_.get(i));
+ }
unknownFields.writeTo(output);
}
@@ -30530,6 +31691,10 @@ public int getSerializedSize() {
for (int i = 0; i < resources_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, resources_.get(i));
}
+ for (int i = 0; i < inventoryFilters_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(3, inventoryFilters_.get(i));
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -30550,6 +31715,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasOsFilter()) {
if (!getOsFilter().equals(other.getOsFilter())) return false;
}
+ if (!getInventoryFiltersList().equals(other.getInventoryFiltersList())) return false;
if (!getResourcesList().equals(other.getResourcesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
@@ -30566,6 +31732,10 @@ public int hashCode() {
hash = (37 * hash) + OS_FILTER_FIELD_NUMBER;
hash = (53 * hash) + getOsFilter().hashCode();
}
+ if (getInventoryFiltersCount() > 0) {
+ hash = (37 * hash) + INVENTORY_FILTERS_FIELD_NUMBER;
+ hash = (53 * hash) + getInventoryFiltersList().hashCode();
+ }
if (getResourcesCount() > 0) {
hash = (37 * hash) + RESOURCES_FIELD_NUMBER;
hash = (53 * hash) + getResourcesList().hashCode();
@@ -30692,402 +31862,1040 @@ public static final class Builder
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup)
com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroupOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_ResourceGroup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicy_ResourceGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup.class,
com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup.Builder.class);
}
- // Construct using com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
+ // Construct using com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getInventoryFiltersFieldBuilder();
+ getResourcesFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (osFilterBuilder_ == null) {
+ osFilter_ = null;
+ } else {
+ osFilter_ = null;
+ osFilterBuilder_ = null;
+ }
+ if (inventoryFiltersBuilder_ == null) {
+ inventoryFilters_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ inventoryFiltersBuilder_.clear();
+ }
+ if (resourcesBuilder_ == null) {
+ resources_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ resourcesBuilder_.clear();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.osconfig.v1alpha.OsPolicyProto
+ .internal_static_google_cloud_osconfig_v1alpha_OSPolicy_ResourceGroup_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup getDefaultInstanceForType() {
+ return com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup build() {
+ com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup buildPartial() {
+ com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup result =
+ new com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup(this);
+ int from_bitField0_ = bitField0_;
+ if (osFilterBuilder_ == null) {
+ result.osFilter_ = osFilter_;
+ } else {
+ result.osFilter_ = osFilterBuilder_.build();
+ }
+ if (inventoryFiltersBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ inventoryFilters_ = java.util.Collections.unmodifiableList(inventoryFilters_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.inventoryFilters_ = inventoryFilters_;
+ } else {
+ result.inventoryFilters_ = inventoryFiltersBuilder_.build();
+ }
+ if (resourcesBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
+ resources_ = java.util.Collections.unmodifiableList(resources_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.resources_ = resources_;
+ } else {
+ result.resources_ = resourcesBuilder_.build();
+ }
+ 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.osconfig.v1alpha.OSPolicy.ResourceGroup) {
+ return mergeFrom((com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup other) {
+ if (other == com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup.getDefaultInstance())
+ return this;
+ if (other.hasOsFilter()) {
+ mergeOsFilter(other.getOsFilter());
+ }
+ if (inventoryFiltersBuilder_ == null) {
+ if (!other.inventoryFilters_.isEmpty()) {
+ if (inventoryFilters_.isEmpty()) {
+ inventoryFilters_ = other.inventoryFilters_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureInventoryFiltersIsMutable();
+ inventoryFilters_.addAll(other.inventoryFilters_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.inventoryFilters_.isEmpty()) {
+ if (inventoryFiltersBuilder_.isEmpty()) {
+ inventoryFiltersBuilder_.dispose();
+ inventoryFiltersBuilder_ = null;
+ inventoryFilters_ = other.inventoryFilters_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ inventoryFiltersBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getInventoryFiltersFieldBuilder()
+ : null;
+ } else {
+ inventoryFiltersBuilder_.addAllMessages(other.inventoryFilters_);
+ }
+ }
+ }
+ if (resourcesBuilder_ == null) {
+ if (!other.resources_.isEmpty()) {
+ if (resources_.isEmpty()) {
+ resources_ = other.resources_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureResourcesIsMutable();
+ resources_.addAll(other.resources_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.resources_.isEmpty()) {
+ if (resourcesBuilder_.isEmpty()) {
+ resourcesBuilder_.dispose();
+ resourcesBuilder_ = null;
+ resources_ = other.resources_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ resourcesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getResourcesFieldBuilder()
+ : null;
+ } else {
+ resourcesBuilder_.addAllMessages(other.resources_);
+ }
+ }
+ }
+ 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.osconfig.v1alpha.OSPolicy.ResourceGroup parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter osFilter_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter,
+ com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.Builder,
+ com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilterOrBuilder>
+ osFilterBuilder_;
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventory_filters` field instead.
+ * Used to specify the OS filter for a resource group
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1 [deprecated = true];
+ *
+ *
+ * @return Whether the osFilter field is set.
+ */
+ @java.lang.Deprecated
+ public boolean hasOsFilter() {
+ return osFilterBuilder_ != null || osFilter_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventory_filters` field instead.
+ * Used to specify the OS filter for a resource group
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1 [deprecated = true];
+ *
+ *
+ * @return The osFilter.
+ */
+ @java.lang.Deprecated
+ public com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter getOsFilter() {
+ if (osFilterBuilder_ == null) {
+ return osFilter_ == null
+ ? com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.getDefaultInstance()
+ : osFilter_;
+ } else {
+ return osFilterBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventory_filters` field instead.
+ * Used to specify the OS filter for a resource group
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1 [deprecated = true];
+ *
+ */
+ @java.lang.Deprecated
+ public Builder setOsFilter(com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter value) {
+ if (osFilterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ osFilter_ = value;
+ onChanged();
+ } else {
+ osFilterBuilder_.setMessage(value);
+ }
+
+ return this;
}
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventory_filters` field instead.
+ * Used to specify the OS filter for a resource group
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1 [deprecated = true];
+ *
+ */
+ @java.lang.Deprecated
+ public Builder setOsFilter(
+ com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.Builder builderForValue) {
+ if (osFilterBuilder_ == null) {
+ osFilter_ = builderForValue.build();
+ onChanged();
+ } else {
+ osFilterBuilder_.setMessage(builderForValue.build());
+ }
- private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
+ return this;
}
-
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getResourcesFieldBuilder();
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventory_filters` field instead.
+ * Used to specify the OS filter for a resource group
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1 [deprecated = true];
+ *
+ */
+ @java.lang.Deprecated
+ public Builder mergeOsFilter(com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter value) {
+ if (osFilterBuilder_ == null) {
+ if (osFilter_ != null) {
+ osFilter_ =
+ com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.newBuilder(osFilter_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ osFilter_ = value;
+ }
+ onChanged();
+ } else {
+ osFilterBuilder_.mergeFrom(value);
}
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventory_filters` field instead.
+ * Used to specify the OS filter for a resource group
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1 [deprecated = true];
+ *
+ */
+ @java.lang.Deprecated
+ public Builder clearOsFilter() {
if (osFilterBuilder_ == null) {
osFilter_ = null;
+ onChanged();
} else {
osFilter_ = null;
osFilterBuilder_ = null;
}
- if (resourcesBuilder_ == null) {
- resources_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- resourcesBuilder_.clear();
- }
- return this;
- }
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyProto
- .internal_static_google_cloud_osconfig_v1alpha_OSPolicy_ResourceGroup_descriptor;
+ return this;
}
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventory_filters` field instead.
+ * Used to specify the OS filter for a resource group
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1 [deprecated = true];
+ *
+ */
+ @java.lang.Deprecated
+ public com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.Builder getOsFilterBuilder() {
- @java.lang.Override
- public com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup getDefaultInstanceForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup.getDefaultInstance();
+ onChanged();
+ return getOsFilterFieldBuilder().getBuilder();
}
-
- @java.lang.Override
- public com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup build() {
- com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventory_filters` field instead.
+ * Used to specify the OS filter for a resource group
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1 [deprecated = true];
+ *
+ */
+ @java.lang.Deprecated
+ public com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilterOrBuilder getOsFilterOrBuilder() {
+ if (osFilterBuilder_ != null) {
+ return osFilterBuilder_.getMessageOrBuilder();
+ } else {
+ return osFilter_ == null
+ ? com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.getDefaultInstance()
+ : osFilter_;
}
- return result;
}
-
- @java.lang.Override
- public com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup buildPartial() {
- com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup result =
- new com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup(this);
- int from_bitField0_ = bitField0_;
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventory_filters` field instead.
+ * Used to specify the OS filter for a resource group
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1 [deprecated = true];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter,
+ com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.Builder,
+ com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilterOrBuilder>
+ getOsFilterFieldBuilder() {
if (osFilterBuilder_ == null) {
- result.osFilter_ = osFilter_;
- } else {
- result.osFilter_ = osFilterBuilder_.build();
- }
- if (resourcesBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)) {
- resources_ = java.util.Collections.unmodifiableList(resources_);
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.resources_ = resources_;
- } else {
- result.resources_ = resourcesBuilder_.build();
+ osFilterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter,
+ com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.Builder,
+ com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilterOrBuilder>(
+ getOsFilter(), getParentForChildren(), isClean());
+ osFilter_ = null;
}
- onBuilt();
- return result;
- }
-
- @java.lang.Override
- public Builder clone() {
- return super.clone();
+ return osFilterBuilder_;
}
- @java.lang.Override
- public Builder setField(
- com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
- return super.setField(field, value);
- }
+ private java.util.List
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
+ */
+ public java.util.List
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
+ */
+ public int getInventoryFiltersCount() {
+ if (inventoryFiltersBuilder_ == null) {
+ return inventoryFilters_.size();
+ } else {
+ return inventoryFiltersBuilder_.getCount();
+ }
}
-
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup) {
- return mergeFrom((com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup) other);
+ /**
+ *
+ *
+ *
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
+ */
+ public com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter getInventoryFilters(
+ int index) {
+ if (inventoryFiltersBuilder_ == null) {
+ return inventoryFilters_.get(index);
} else {
- super.mergeFrom(other);
- return this;
+ return inventoryFiltersBuilder_.getMessage(index);
}
}
-
- public Builder mergeFrom(com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup other) {
- if (other == com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup.getDefaultInstance())
- return this;
- if (other.hasOsFilter()) {
- mergeOsFilter(other.getOsFilter());
- }
- if (resourcesBuilder_ == null) {
- if (!other.resources_.isEmpty()) {
- if (resources_.isEmpty()) {
- resources_ = other.resources_;
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- ensureResourcesIsMutable();
- resources_.addAll(other.resources_);
- }
- onChanged();
+ /**
+ *
+ *
+ *
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
+ */
+ public Builder setInventoryFilters(
+ int index, com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter value) {
+ if (inventoryFiltersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ ensureInventoryFiltersIsMutable();
+ inventoryFilters_.set(index, value);
+ onChanged();
} else {
- if (!other.resources_.isEmpty()) {
- if (resourcesBuilder_.isEmpty()) {
- resourcesBuilder_.dispose();
- resourcesBuilder_ = null;
- resources_ = other.resources_;
- bitField0_ = (bitField0_ & ~0x00000001);
- resourcesBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
- ? getResourcesFieldBuilder()
- : null;
- } else {
- resourcesBuilder_.addAllMessages(other.resources_);
- }
- }
+ inventoryFiltersBuilder_.setMessage(index, value);
}
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
return this;
}
-
- @java.lang.Override
- public final boolean isInitialized() {
- return true;
+ /**
+ *
+ *
+ *
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
+ */
+ public Builder setInventoryFilters(
+ int index,
+ com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter.Builder builderForValue) {
+ if (inventoryFiltersBuilder_ == null) {
+ ensureInventoryFiltersIsMutable();
+ inventoryFilters_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ inventoryFiltersBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
}
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage =
- (com.google.cloud.osconfig.v1alpha.OSPolicy.ResourceGroup) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
+ /**
+ *
+ *
+ *
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
+ */
+ public Builder addInventoryFilters(
+ com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter value) {
+ if (inventoryFiltersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ ensureInventoryFiltersIsMutable();
+ inventoryFilters_.add(value);
+ onChanged();
+ } else {
+ inventoryFiltersBuilder_.addMessage(value);
}
return this;
}
-
- private int bitField0_;
-
- private com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter osFilter_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter,
- com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.Builder,
- com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilterOrBuilder>
- osFilterBuilder_;
/**
*
*
*
- * Used to specify the OS filter for a resource group
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
*
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1;
- *
- * @return Whether the osFilter field is set.
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
*/
- public boolean hasOsFilter() {
- return osFilterBuilder_ != null || osFilter_ != null;
+ public Builder addInventoryFilters(
+ int index, com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter value) {
+ if (inventoryFiltersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInventoryFiltersIsMutable();
+ inventoryFilters_.add(index, value);
+ onChanged();
+ } else {
+ inventoryFiltersBuilder_.addMessage(index, value);
+ }
+ return this;
}
/**
*
*
*
- * Used to specify the OS filter for a resource group
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
*
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1;
- *
- * @return The osFilter.
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
*/
- public com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter getOsFilter() {
- if (osFilterBuilder_ == null) {
- return osFilter_ == null
- ? com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.getDefaultInstance()
- : osFilter_;
+ public Builder addInventoryFilters(
+ com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter.Builder builderForValue) {
+ if (inventoryFiltersBuilder_ == null) {
+ ensureInventoryFiltersIsMutable();
+ inventoryFilters_.add(builderForValue.build());
+ onChanged();
} else {
- return osFilterBuilder_.getMessage();
+ inventoryFiltersBuilder_.addMessage(builderForValue.build());
}
+ return this;
}
/**
*
*
*
- * Used to specify the OS filter for a resource group
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
*
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1;
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
*/
- public Builder setOsFilter(com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter value) {
- if (osFilterBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- osFilter_ = value;
+ public Builder addInventoryFilters(
+ int index,
+ com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter.Builder builderForValue) {
+ if (inventoryFiltersBuilder_ == null) {
+ ensureInventoryFiltersIsMutable();
+ inventoryFilters_.add(index, builderForValue.build());
onChanged();
} else {
- osFilterBuilder_.setMessage(value);
+ inventoryFiltersBuilder_.addMessage(index, builderForValue.build());
}
-
return this;
}
/**
*
*
*
- * Used to specify the OS filter for a resource group
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
*
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1;
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
*/
- public Builder setOsFilter(
- com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.Builder builderForValue) {
- if (osFilterBuilder_ == null) {
- osFilter_ = builderForValue.build();
+ public Builder addAllInventoryFilters(
+ java.lang.Iterable extends com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter>
+ values) {
+ if (inventoryFiltersBuilder_ == null) {
+ ensureInventoryFiltersIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inventoryFilters_);
onChanged();
} else {
- osFilterBuilder_.setMessage(builderForValue.build());
+ inventoryFiltersBuilder_.addAllMessages(values);
}
-
return this;
}
/**
*
*
*
- * Used to specify the OS filter for a resource group
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
*
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1;
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
*/
- public Builder mergeOsFilter(com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter value) {
- if (osFilterBuilder_ == null) {
- if (osFilter_ != null) {
- osFilter_ =
- com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.newBuilder(osFilter_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- osFilter_ = value;
- }
+ public Builder clearInventoryFilters() {
+ if (inventoryFiltersBuilder_ == null) {
+ inventoryFilters_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
- osFilterBuilder_.mergeFrom(value);
+ inventoryFiltersBuilder_.clear();
}
-
return this;
}
/**
*
*
*
- * Used to specify the OS filter for a resource group
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
*
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1;
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
*/
- public Builder clearOsFilter() {
- if (osFilterBuilder_ == null) {
- osFilter_ = null;
+ public Builder removeInventoryFilters(int index) {
+ if (inventoryFiltersBuilder_ == null) {
+ ensureInventoryFiltersIsMutable();
+ inventoryFilters_.remove(index);
onChanged();
} else {
- osFilter_ = null;
- osFilterBuilder_ = null;
+ inventoryFiltersBuilder_.remove(index);
}
-
return this;
}
/**
*
*
*
- * Used to specify the OS filter for a resource group
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
*
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1;
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
*/
- public com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.Builder getOsFilterBuilder() {
-
- onChanged();
- return getOsFilterFieldBuilder().getBuilder();
+ public com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter.Builder
+ getInventoryFiltersBuilder(int index) {
+ return getInventoryFiltersFieldBuilder().getBuilder(index);
}
/**
*
*
*
- * Used to specify the OS filter for a resource group
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
*
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1;
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
*/
- public com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilterOrBuilder getOsFilterOrBuilder() {
- if (osFilterBuilder_ != null) {
- return osFilterBuilder_.getMessageOrBuilder();
+ public com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilterOrBuilder
+ getInventoryFiltersOrBuilder(int index) {
+ if (inventoryFiltersBuilder_ == null) {
+ return inventoryFilters_.get(index);
} else {
- return osFilter_ == null
- ? com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.getDefaultInstance()
- : osFilter_;
+ return inventoryFiltersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
- * Used to specify the OS filter for a resource group
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
*
*
- * .google.cloud.osconfig.v1alpha.OSPolicy.OSFilter os_filter = 1;
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
*/
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter,
- com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.Builder,
- com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilterOrBuilder>
- getOsFilterFieldBuilder() {
- if (osFilterBuilder_ == null) {
- osFilterBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter,
- com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilter.Builder,
- com.google.cloud.osconfig.v1alpha.OSPolicy.OSFilterOrBuilder>(
- getOsFilter(), getParentForChildren(), isClean());
- osFilter_ = null;
+ public java.util.List<
+ ? extends com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilterOrBuilder>
+ getInventoryFiltersOrBuilderList() {
+ if (inventoryFiltersBuilder_ != null) {
+ return inventoryFiltersBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(inventoryFilters_);
}
- return osFilterBuilder_;
+ }
+ /**
+ *
+ *
+ *
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
+ */
+ public com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter.Builder
+ addInventoryFiltersBuilder() {
+ return getInventoryFiltersFieldBuilder()
+ .addBuilder(
+ com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
+ */
+ public com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter.Builder
+ addInventoryFiltersBuilder(int index) {
+ return getInventoryFiltersFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * List of inventory filters for the resource group.
+ * The resources in this resource group are applied to the target VM if it
+ * satisfies at least one of the following inventory filters.
+ * For example, to apply this resource group to VMs running either `RHEL` or
+ * `CentOS` operating systems, specify 2 items for the list with following
+ * values:
+ * inventory_filters[0].os_short_name='rhel' and
+ * inventory_filters[1].os_short_name='centos'
+ * If the list is empty, this resource group will be applied to the target
+ * VM unconditionally.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicy.InventoryFilter inventory_filters = 3;
+ *
+ */
+ public java.util.List
- * A VM is included if it's OS short name matches with any of the
+ * Deprecated. Use the `inventories` field instead.
+ * A VM is selected if it's OS short name matches with any of the
* values provided in this list.
*
*
- * repeated string os_short_names = 2;
+ * repeated string os_short_names = 2 [deprecated = true];
*
* @return A list containing the osShortNames.
*/
+ @java.lang.Deprecated
java.util.List
- * A VM is included if it's OS short name matches with any of the
+ * Deprecated. Use the `inventories` field instead.
+ * A VM is selected if it's OS short name matches with any of the
* values provided in this list.
*
*
- * repeated string os_short_names = 2;
+ * repeated string os_short_names = 2 [deprecated = true];
*
* @return The count of osShortNames.
*/
+ @java.lang.Deprecated
int getOsShortNamesCount();
/**
*
*
*
- * A VM is included if it's OS short name matches with any of the
+ * Deprecated. Use the `inventories` field instead.
+ * A VM is selected if it's OS short name matches with any of the
* values provided in this list.
*
*
- * repeated string os_short_names = 2;
+ * repeated string os_short_names = 2 [deprecated = true];
*
* @param index The index of the element to return.
* @return The osShortNames at the given index.
*/
+ @java.lang.Deprecated
java.lang.String getOsShortNames(int index);
/**
*
*
*
- * A VM is included if it's OS short name matches with any of the
+ * Deprecated. Use the `inventories` field instead.
+ * A VM is selected if it's OS short name matches with any of the
* values provided in this list.
*
*
- * repeated string os_short_names = 2;
+ * repeated string os_short_names = 2 [deprecated = true];
*
* @param index The index of the value to return.
* @return The bytes of the osShortNames at the given index.
*/
+ @java.lang.Deprecated
com.google.protobuf.ByteString getOsShortNamesBytes(int index);
/**
@@ -1475,9 +1491,6 @@ public interface InstanceFilterOrBuilder
* List of label sets used for VM exclusion.
* If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
*
*
*
@@ -1493,9 +1506,6 @@ public interface InstanceFilterOrBuilder
* List of label sets used for VM exclusion.
* If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
*
*
*
@@ -1510,9 +1520,6 @@ public interface InstanceFilterOrBuilder
* List of label sets used for VM exclusion.
* If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
*
*
*
@@ -1527,9 +1534,6 @@ public interface InstanceFilterOrBuilder
* List of label sets used for VM exclusion.
* If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
*
*
*
@@ -1545,9 +1549,6 @@ public interface InstanceFilterOrBuilder
* List of label sets used for VM exclusion.
* If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
*
*
*
@@ -1556,12 +1557,92 @@ public interface InstanceFilterOrBuilder
*/
com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSetOrBuilder
getExclusionLabelsOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
+ *
+ */
+ java.util.List
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
+ *
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory getInventories(
+ int index);
+ /**
+ *
+ *
+ *
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
+ *
+ */
+ int getInventoriesCount();
+ /**
+ *
+ *
+ *
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
+ *
+ */
+ java.util.List<
+ ? extends
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter
+ .InventoryOrBuilder>
+ getInventoriesOrBuilderList();
+ /**
+ *
+ *
+ *
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
+ *
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.InventoryOrBuilder
+ getInventoriesOrBuilder(int index);
}
/**
*
*
*
- * Message to represent the filters to select VMs for an assignment
+ * Filters to select target VMs for an assignment.
+ * If more than one filter criteria is specified below, a VM will be selected
+ * if and only if it satisfies all of them.
*
*
* Protobuf type {@code google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter}
@@ -1580,6 +1661,7 @@ private InstanceFilter() {
osShortNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
inclusionLabels_ = java.util.Collections.emptyList();
exclusionLabels_ = java.util.Collections.emptyList();
+ inventories_ = java.util.Collections.emptyList();
}
@java.lang.Override
@@ -1655,6 +1737,22 @@ private InstanceFilter(
extensionRegistry));
break;
}
+ case 42:
+ {
+ if (!((mutable_bitField0_ & 0x00000008) != 0)) {
+ inventories_ =
+ new java.util.ArrayList<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter
+ .Inventory>();
+ mutable_bitField0_ |= 0x00000008;
+ }
+ inventories_.add(
+ input.readMessage(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter
+ .Inventory.parser(),
+ extensionRegistry));
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -1678,1031 +1776,2572 @@ private InstanceFilter(
if (((mutable_bitField0_ & 0x00000004) != 0)) {
exclusionLabels_ = java.util.Collections.unmodifiableList(exclusionLabels_);
}
+ if (((mutable_bitField0_ & 0x00000008) != 0)) {
+ inventories_ = java.util.Collections.unmodifiableList(inventories_);
+ }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignment_InstanceFilter_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignment_InstanceFilter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.class,
com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Builder.class);
}
- public static final int ALL_FIELD_NUMBER = 1;
- private boolean all_;
- /**
- *
- *
- *
- * Target all VMs in the project. If true, no other criteria is
- * permitted.
- *
- *
- * bool all = 1;
- *
- * @return The all.
- */
- @java.lang.Override
- public boolean getAll() {
- return all_;
- }
+ public interface InventoryOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory)
+ com.google.protobuf.MessageOrBuilder {
- public static final int OS_SHORT_NAMES_FIELD_NUMBER = 2;
- private com.google.protobuf.LazyStringList osShortNames_;
- /**
- *
- *
- *
- * A VM is included if it's OS short name matches with any of the
- * values provided in this list.
- *
- *
- * repeated string os_short_names = 2;
- *
- * @return A list containing the osShortNames.
- */
- public com.google.protobuf.ProtocolStringList getOsShortNamesList() {
- return osShortNames_;
- }
- /**
- *
- *
- *
- * A VM is included if it's OS short name matches with any of the
- * values provided in this list.
- *
- *
- * repeated string os_short_names = 2;
- *
- * @return The count of osShortNames.
- */
- public int getOsShortNamesCount() {
- return osShortNames_.size();
- }
- /**
- *
- *
- *
- * A VM is included if it's OS short name matches with any of the
- * values provided in this list.
- *
- *
- * repeated string os_short_names = 2;
- *
- * @param index The index of the element to return.
- * @return The osShortNames at the given index.
- */
- public java.lang.String getOsShortNames(int index) {
- return osShortNames_.get(index);
- }
- /**
- *
- *
- *
- * A VM is included if it's OS short name matches with any of the
- * values provided in this list.
- *
- *
- * repeated string os_short_names = 2;
- *
- * @param index The index of the value to return.
- * @return The bytes of the osShortNames at the given index.
- */
- public com.google.protobuf.ByteString getOsShortNamesBytes(int index) {
- return osShortNames_.getByteString(index);
- }
+ /**
+ *
+ *
+ *
+ * Required. The OS short name
+ *
+ *
+ * string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The osShortName.
+ */
+ java.lang.String getOsShortName();
+ /**
+ *
+ *
+ *
+ * Required. The OS short name
+ *
+ *
+ * string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for osShortName.
+ */
+ com.google.protobuf.ByteString getOsShortNameBytes();
- public static final int INCLUSION_LABELS_FIELD_NUMBER = 3;
- private java.util.List
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
- * of the label sets are applicable for the VM.
- *
- *
- *
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
- *
- */
- @java.lang.Override
- public java.util.List
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
- * of the label sets are applicable for the VM.
- *
- *
- *
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
- *
- */
- @java.lang.Override
- public java.util.List<
- ? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSetOrBuilder>
- getInclusionLabelsOrBuilderList() {
- return inclusionLabels_;
- }
- /**
- *
- *
- *
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
- * of the label sets are applicable for the VM.
- *
- *
- *
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
- *
- */
- @java.lang.Override
- public int getInclusionLabelsCount() {
- return inclusionLabels_.size();
- }
- /**
- *
- *
- *
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
- * of the label sets are applicable for the VM.
- *
- *
- *
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
- *
- */
- @java.lang.Override
- public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet getInclusionLabels(
- int index) {
- return inclusionLabels_.get(index);
+ /**
+ *
+ *
+ *
+ * The OS version
+ * Prefix matches are supported if asterisk(*) is provided as the
+ * last character. For example, to match all versions with a major
+ * version of `7`, specify the following value for this field `7.*`
+ * An empty string matches all OS versions.
+ *
+ *
+ * string os_version = 2;
+ *
+ * @return The osVersion.
+ */
+ java.lang.String getOsVersion();
+ /**
+ *
+ *
+ *
+ * The OS version
+ * Prefix matches are supported if asterisk(*) is provided as the
+ * last character. For example, to match all versions with a major
+ * version of `7`, specify the following value for this field `7.*`
+ * An empty string matches all OS versions.
+ *
+ *
+ * string os_version = 2;
+ *
+ * @return The bytes for osVersion.
+ */
+ com.google.protobuf.ByteString getOsVersionBytes();
}
/**
*
*
*
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
- * of the label sets are applicable for the VM.
+ * VM inventory details.
*
*
- *
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
- *
+ * Protobuf type {@code
+ * google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory}
*/
- @java.lang.Override
- public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSetOrBuilder
- getInclusionLabelsOrBuilder(int index) {
- return inclusionLabels_.get(index);
- }
+ public static final class Inventory extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory)
+ InventoryOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Inventory.newBuilder() to construct.
+ private Inventory(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
- public static final int EXCLUSION_LABELS_FIELD_NUMBER = 4;
- private java.util.List
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
- *
- *
- *
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
- *
- */
- @java.lang.Override
- public java.util.List
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
- *
- *
- *
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
- *
- */
- @java.lang.Override
- public java.util.List<
- ? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSetOrBuilder>
- getExclusionLabelsOrBuilderList() {
- return exclusionLabels_;
- }
- /**
- *
- *
- *
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
- *
- *
- *
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
- *
- */
- @java.lang.Override
- public int getExclusionLabelsCount() {
- return exclusionLabels_.size();
- }
- /**
- *
- *
- *
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
- *
- *
- *
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
- *
- */
- @java.lang.Override
- public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet getExclusionLabels(
- int index) {
- return exclusionLabels_.get(index);
- }
- /**
- *
- *
- *
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
- *
- *
- *
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
- *
- */
- @java.lang.Override
- public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSetOrBuilder
- getExclusionLabelsOrBuilder(int index) {
- return exclusionLabels_.get(index);
- }
+ private Inventory() {
+ osShortName_ = "";
+ osVersion_ = "";
+ }
- private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new Inventory();
+ }
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
- memoizedIsInitialized = 1;
- return true;
- }
+ private Inventory(
+ 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();
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (all_ != false) {
- output.writeBool(1, all_);
- }
- for (int i = 0; i < osShortNames_.size(); i++) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, osShortNames_.getRaw(i));
- }
- for (int i = 0; i < inclusionLabels_.size(); i++) {
- output.writeMessage(3, inclusionLabels_.get(i));
+ osShortName_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ osVersion_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
}
- for (int i = 0; i < exclusionLabels_.size(); i++) {
- output.writeMessage(4, exclusionLabels_.get(i));
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
+ .internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignment_InstanceFilter_Inventory_descriptor;
}
- unknownFields.writeTo(output);
- }
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
+ .internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignment_InstanceFilter_Inventory_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory.class,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory
+ .Builder.class);
+ }
- size = 0;
- if (all_ != false) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, all_);
+ public static final int OS_SHORT_NAME_FIELD_NUMBER = 1;
+ private volatile java.lang.Object osShortName_;
+ /**
+ *
+ *
+ *
+ * Required. The OS short name
+ *
+ *
+ * string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The osShortName.
+ */
+ @java.lang.Override
+ public java.lang.String getOsShortName() {
+ java.lang.Object ref = osShortName_;
+ 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();
+ osShortName_ = s;
+ return s;
+ }
}
- {
- int dataSize = 0;
- for (int i = 0; i < osShortNames_.size(); i++) {
- dataSize += computeStringSizeNoTag(osShortNames_.getRaw(i));
+ /**
+ *
+ *
+ *
+ * Required. The OS short name
+ *
+ *
+ * string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for osShortName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOsShortNameBytes() {
+ java.lang.Object ref = osShortName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ osShortName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
- size += dataSize;
- size += 1 * getOsShortNamesList().size();
}
- for (int i = 0; i < inclusionLabels_.size(); i++) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(3, inclusionLabels_.get(i));
+
+ public static final int OS_VERSION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object osVersion_;
+ /**
+ *
+ *
+ *
+ * The OS version
+ * Prefix matches are supported if asterisk(*) is provided as the
+ * last character. For example, to match all versions with a major
+ * version of `7`, specify the following value for this field `7.*`
+ * An empty string matches all OS versions.
+ *
+ *
+ * string os_version = 2;
+ *
+ * @return The osVersion.
+ */
+ @java.lang.Override
+ public java.lang.String getOsVersion() {
+ java.lang.Object ref = osVersion_;
+ 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();
+ osVersion_ = s;
+ return s;
+ }
}
- for (int i = 0; i < exclusionLabels_.size(); i++) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(4, exclusionLabels_.get(i));
+ /**
+ *
+ *
+ *
+ * The OS version
+ * Prefix matches are supported if asterisk(*) is provided as the
+ * last character. For example, to match all versions with a major
+ * version of `7`, specify the following value for this field `7.*`
+ * An empty string matches all OS versions.
+ *
+ *
+ * string os_version = 2;
+ *
+ * @return The bytes for osVersion.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOsVersionBytes() {
+ java.lang.Object ref = osVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ osVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
+ 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;
}
- if (!(obj instanceof com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter)) {
- return super.equals(obj);
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osShortName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, osShortName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osVersion_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, osVersion_);
+ }
+ unknownFields.writeTo(output);
}
- com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter other =
- (com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter) obj;
- if (getAll() != other.getAll()) return false;
- if (!getOsShortNamesList().equals(other.getOsShortNamesList())) return false;
- if (!getInclusionLabelsList().equals(other.getInclusionLabelsList())) return false;
- if (!getExclusionLabelsList().equals(other.getExclusionLabelsList())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- return true;
- }
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osShortName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, osShortName_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osVersion_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, osVersion_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
}
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- hash = (37 * hash) + ALL_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAll());
- if (getOsShortNamesCount() > 0) {
- hash = (37 * hash) + OS_SHORT_NAMES_FIELD_NUMBER;
- hash = (53 * hash) + getOsShortNamesList().hashCode();
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj
+ instanceof
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory other =
+ (com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory) obj;
+
+ if (!getOsShortName().equals(other.getOsShortName())) return false;
+ if (!getOsVersion().equals(other.getOsVersion())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
}
- if (getInclusionLabelsCount() > 0) {
- hash = (37 * hash) + INCLUSION_LABELS_FIELD_NUMBER;
- hash = (53 * hash) + getInclusionLabelsList().hashCode();
- }
- if (getExclusionLabelsCount() > 0) {
- hash = (37 * hash) + EXCLUSION_LABELS_FIELD_NUMBER;
- hash = (53 * hash) + getExclusionLabelsList().hashCode();
- }
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter 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.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter 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.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter parseFrom(
- byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + OS_SHORT_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getOsShortName().hashCode();
+ hash = (37 * hash) + OS_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getOsVersion().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
- public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory
+ 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.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter 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.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
- public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory
+ 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.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter
- 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.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
- public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
- public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
- PARSER, input, extensionRegistry);
- }
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
- @java.lang.Override
- public Builder newBuilderForType() {
- return newBuilder();
- }
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory
+ 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 Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
- public static Builder newBuilder(
- com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory
+ parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
- @java.lang.Override
- protected Builder newBuilderForType(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- *
- *
- *
- * Message to represent the filters to select VMs for an assignment
- *
- *
- * Protobuf type {@code google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter}
- */
- public static final class Builder
- extends com.google.protobuf.GeneratedMessageV3.Builder
+ * VM inventory details.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The OS short name
+ *
+ *
+ * string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The osShortName.
+ */
+ public java.lang.String getOsShortName() {
+ java.lang.Object ref = osShortName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ osShortName_ = s;
+ return s;
} else {
- ensureOsShortNamesIsMutable();
- osShortNames_.addAll(other.osShortNames_);
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The OS short name
+ *
+ *
+ * string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for osShortName.
+ */
+ public com.google.protobuf.ByteString getOsShortNameBytes() {
+ java.lang.Object ref = osShortName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ osShortName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The OS short name
+ *
+ *
+ * string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The osShortName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOsShortName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+
+ osShortName_ = value;
onChanged();
+ return this;
}
- if (inclusionLabelsBuilder_ == null) {
- if (!other.inclusionLabels_.isEmpty()) {
- if (inclusionLabels_.isEmpty()) {
- inclusionLabels_ = other.inclusionLabels_;
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- ensureInclusionLabelsIsMutable();
- inclusionLabels_.addAll(other.inclusionLabels_);
- }
- onChanged();
+ /**
+ *
+ *
+ *
+ * Required. The OS short name
+ *
+ *
+ * string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOsShortName() {
+
+ osShortName_ = getDefaultInstance().getOsShortName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The OS short name
+ *
+ *
+ * string os_short_name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for osShortName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOsShortNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ osShortName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object osVersion_ = "";
+ /**
+ *
+ *
+ *
+ * The OS version
+ * Prefix matches are supported if asterisk(*) is provided as the
+ * last character. For example, to match all versions with a major
+ * version of `7`, specify the following value for this field `7.*`
+ * An empty string matches all OS versions.
+ *
+ *
+ * string os_version = 2;
+ *
+ * @return The osVersion.
+ */
+ public java.lang.String getOsVersion() {
+ java.lang.Object ref = osVersion_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ osVersion_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The OS version
+ * Prefix matches are supported if asterisk(*) is provided as the
+ * last character. For example, to match all versions with a major
+ * version of `7`, specify the following value for this field `7.*`
+ * An empty string matches all OS versions.
+ *
+ *
+ * string os_version = 2;
+ *
+ * @return The bytes for osVersion.
+ */
+ public com.google.protobuf.ByteString getOsVersionBytes() {
+ java.lang.Object ref = osVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ osVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The OS version
+ * Prefix matches are supported if asterisk(*) is provided as the
+ * last character. For example, to match all versions with a major
+ * version of `7`, specify the following value for this field `7.*`
+ * An empty string matches all OS versions.
+ *
+ *
+ * string os_version = 2;
+ *
+ * @param value The osVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOsVersion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ osVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The OS version
+ * Prefix matches are supported if asterisk(*) is provided as the
+ * last character. For example, to match all versions with a major
+ * version of `7`, specify the following value for this field `7.*`
+ * An empty string matches all OS versions.
+ *
+ *
+ * string os_version = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOsVersion() {
+
+ osVersion_ = getDefaultInstance().getOsVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The OS version
+ * Prefix matches are supported if asterisk(*) is provided as the
+ * last character. For example, to match all versions with a major
+ * version of `7`, specify the following value for this field `7.*`
+ * An empty string matches all OS versions.
+ *
+ *
+ * string os_version = 2;
+ *
+ * @param value The bytes for osVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOsVersionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ checkByteStringIsUtf8(value);
+
+ osVersion_ = value;
+ 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.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory)
+ private static final com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter
+ .Inventory
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory();
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Target all VMs in the project. If true, no other criteria is
+ * permitted.
+ *
+ *
+ * bool all = 1;
+ *
+ * @return The all.
+ */
+ @java.lang.Override
+ public boolean getAll() {
+ return all_;
+ }
+
+ public static final int OS_SHORT_NAMES_FIELD_NUMBER = 2;
+ private com.google.protobuf.LazyStringList osShortNames_;
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventories` field instead.
+ * A VM is selected if it's OS short name matches with any of the
+ * values provided in this list.
+ *
+ *
+ * repeated string os_short_names = 2 [deprecated = true];
+ *
+ * @return A list containing the osShortNames.
+ */
+ @java.lang.Deprecated
+ public com.google.protobuf.ProtocolStringList getOsShortNamesList() {
+ return osShortNames_;
+ }
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventories` field instead.
+ * A VM is selected if it's OS short name matches with any of the
+ * values provided in this list.
+ *
+ *
+ * repeated string os_short_names = 2 [deprecated = true];
+ *
+ * @return The count of osShortNames.
+ */
+ @java.lang.Deprecated
+ public int getOsShortNamesCount() {
+ return osShortNames_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventories` field instead.
+ * A VM is selected if it's OS short name matches with any of the
+ * values provided in this list.
+ *
+ *
+ * repeated string os_short_names = 2 [deprecated = true];
+ *
+ * @param index The index of the element to return.
+ * @return The osShortNames at the given index.
+ */
+ @java.lang.Deprecated
+ public java.lang.String getOsShortNames(int index) {
+ return osShortNames_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventories` field instead.
+ * A VM is selected if it's OS short name matches with any of the
+ * values provided in this list.
+ *
+ *
+ * repeated string os_short_names = 2 [deprecated = true];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the osShortNames at the given index.
+ */
+ @java.lang.Deprecated
+ public com.google.protobuf.ByteString getOsShortNamesBytes(int index) {
+ return osShortNames_.getByteString(index);
+ }
+
+ public static final int INCLUSION_LABELS_FIELD_NUMBER = 3;
+ private java.util.List
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSetOrBuilder>
+ getInclusionLabelsOrBuilderList() {
+ return inclusionLabels_;
+ }
+ /**
+ *
+ *
+ *
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
+ */
+ @java.lang.Override
+ public int getInclusionLabelsCount() {
+ return inclusionLabels_.size();
+ }
+ /**
+ *
+ *
+ *
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet getInclusionLabels(
+ int index) {
+ return inclusionLabels_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSetOrBuilder
+ getInclusionLabelsOrBuilder(int index) {
+ return inclusionLabels_.get(index);
+ }
+
+ public static final int EXCLUSION_LABELS_FIELD_NUMBER = 4;
+ private java.util.List
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
+ * of the label sets are applicable for the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
+ * of the label sets are applicable for the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSetOrBuilder>
+ getExclusionLabelsOrBuilderList() {
+ return exclusionLabels_;
+ }
+ /**
+ *
+ *
+ *
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
+ * of the label sets are applicable for the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ *
+ */
+ @java.lang.Override
+ public int getExclusionLabelsCount() {
+ return exclusionLabels_.size();
+ }
+ /**
+ *
+ *
+ *
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
+ * of the label sets are applicable for the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet getExclusionLabels(
+ int index) {
+ return exclusionLabels_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
+ * of the label sets are applicable for the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSetOrBuilder
+ getExclusionLabelsOrBuilder(int index) {
+ return exclusionLabels_.get(index);
+ }
+
+ public static final int INVENTORIES_FIELD_NUMBER = 5;
+ private java.util.List<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory>
+ inventories_;
+ /**
+ *
+ *
+ *
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory>
+ getInventoriesList() {
+ return inventories_;
+ }
+ /**
+ *
+ *
+ *
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter
+ .InventoryOrBuilder>
+ getInventoriesOrBuilderList() {
+ return inventories_;
+ }
+ /**
+ *
+ *
+ *
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
+ *
+ */
+ @java.lang.Override
+ public int getInventoriesCount() {
+ return inventories_.size();
+ }
+ /**
+ *
+ *
+ *
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory
+ getInventories(int index) {
+ return inventories_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.InventoryOrBuilder
+ getInventoriesOrBuilder(int index) {
+ return inventories_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (all_ != false) {
+ output.writeBool(1, all_);
+ }
+ for (int i = 0; i < osShortNames_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, osShortNames_.getRaw(i));
+ }
+ for (int i = 0; i < inclusionLabels_.size(); i++) {
+ output.writeMessage(3, inclusionLabels_.get(i));
+ }
+ for (int i = 0; i < exclusionLabels_.size(); i++) {
+ output.writeMessage(4, exclusionLabels_.get(i));
+ }
+ for (int i = 0; i < inventories_.size(); i++) {
+ output.writeMessage(5, inventories_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (all_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, all_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < osShortNames_.size(); i++) {
+ dataSize += computeStringSizeNoTag(osShortNames_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getOsShortNamesList().size();
+ }
+ for (int i = 0; i < inclusionLabels_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(3, inclusionLabels_.get(i));
+ }
+ for (int i = 0; i < exclusionLabels_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(4, exclusionLabels_.get(i));
+ }
+ for (int i = 0; i < inventories_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, inventories_.get(i));
+ }
+ 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.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter other =
+ (com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter) obj;
+
+ if (getAll() != other.getAll()) return false;
+ if (!getOsShortNamesList().equals(other.getOsShortNamesList())) return false;
+ if (!getInclusionLabelsList().equals(other.getInclusionLabelsList())) return false;
+ if (!getExclusionLabelsList().equals(other.getExclusionLabelsList())) return false;
+ if (!getInventoriesList().equals(other.getInventoriesList())) 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) + ALL_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAll());
+ if (getOsShortNamesCount() > 0) {
+ hash = (37 * hash) + OS_SHORT_NAMES_FIELD_NUMBER;
+ hash = (53 * hash) + getOsShortNamesList().hashCode();
+ }
+ if (getInclusionLabelsCount() > 0) {
+ hash = (37 * hash) + INCLUSION_LABELS_FIELD_NUMBER;
+ hash = (53 * hash) + getInclusionLabelsList().hashCode();
+ }
+ if (getExclusionLabelsCount() > 0) {
+ hash = (37 * hash) + EXCLUSION_LABELS_FIELD_NUMBER;
+ hash = (53 * hash) + getExclusionLabelsList().hashCode();
+ }
+ if (getInventoriesCount() > 0) {
+ hash = (37 * hash) + INVENTORIES_FIELD_NUMBER;
+ hash = (53 * hash) + getInventoriesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter 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.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter 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.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter 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.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter
+ 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.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter 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.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter 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;
+ }
+ /**
+ *
+ *
+ *
+ * Filters to select target VMs for an assignment.
+ * If more than one filter criteria is specified below, a VM will be selected
+ * if and only if it satisfies all of them.
+ *
+ *
+ * Protobuf type {@code google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Target all VMs in the project. If true, no other criteria is
+ * permitted.
+ *
+ *
+ * bool all = 1;
+ *
+ * @return The all.
+ */
+ @java.lang.Override
+ public boolean getAll() {
+ return all_;
+ }
+ /**
+ *
+ *
+ *
+ * Target all VMs in the project. If true, no other criteria is
+ * permitted.
+ *
+ *
+ * bool all = 1;
+ *
+ * @param value The all to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAll(boolean value) {
+
+ all_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Target all VMs in the project. If true, no other criteria is
+ * permitted.
+ *
+ *
+ * bool all = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAll() {
+
+ all_ = false;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList osShortNames_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureOsShortNamesIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ osShortNames_ = new com.google.protobuf.LazyStringArrayList(osShortNames_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventories` field instead.
+ * A VM is selected if it's OS short name matches with any of the
+ * values provided in this list.
+ *
+ *
+ * repeated string os_short_names = 2 [deprecated = true];
+ *
+ * @return A list containing the osShortNames.
+ */
+ @java.lang.Deprecated
+ public com.google.protobuf.ProtocolStringList getOsShortNamesList() {
+ return osShortNames_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventories` field instead.
+ * A VM is selected if it's OS short name matches with any of the
+ * values provided in this list.
+ *
+ *
+ * repeated string os_short_names = 2 [deprecated = true];
+ *
+ * @return The count of osShortNames.
+ */
+ @java.lang.Deprecated
+ public int getOsShortNamesCount() {
+ return osShortNames_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventories` field instead.
+ * A VM is selected if it's OS short name matches with any of the
+ * values provided in this list.
+ *
+ *
+ * repeated string os_short_names = 2 [deprecated = true];
+ *
+ * @param index The index of the element to return.
+ * @return The osShortNames at the given index.
+ */
+ @java.lang.Deprecated
+ public java.lang.String getOsShortNames(int index) {
+ return osShortNames_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventories` field instead.
+ * A VM is selected if it's OS short name matches with any of the
+ * values provided in this list.
+ *
+ *
+ * repeated string os_short_names = 2 [deprecated = true];
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the osShortNames at the given index.
+ */
+ @java.lang.Deprecated
+ public com.google.protobuf.ByteString getOsShortNamesBytes(int index) {
+ return osShortNames_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventories` field instead.
+ * A VM is selected if it's OS short name matches with any of the
+ * values provided in this list.
+ *
+ *
+ * repeated string os_short_names = 2 [deprecated = true];
+ *
+ * @param index The index to set the value at.
+ * @param value The osShortNames to set.
+ * @return This builder for chaining.
+ */
+ @java.lang.Deprecated
+ public Builder setOsShortNames(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOsShortNamesIsMutable();
+ osShortNames_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventories` field instead.
+ * A VM is selected if it's OS short name matches with any of the
+ * values provided in this list.
+ *
+ *
+ * repeated string os_short_names = 2 [deprecated = true];
+ *
+ * @param value The osShortNames to add.
+ * @return This builder for chaining.
+ */
+ @java.lang.Deprecated
+ public Builder addOsShortNames(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureOsShortNamesIsMutable();
+ osShortNames_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventories` field instead.
+ * A VM is selected if it's OS short name matches with any of the
+ * values provided in this list.
+ *
+ *
+ * repeated string os_short_names = 2 [deprecated = true];
+ *
+ * @param values The osShortNames to add.
+ * @return This builder for chaining.
+ */
+ @java.lang.Deprecated
+ public Builder addAllOsShortNames(java.lang.Iterable
+ * Deprecated. Use the `inventories` field instead.
+ * A VM is selected if it's OS short name matches with any of the
+ * values provided in this list.
+ *
+ *
+ * repeated string os_short_names = 2 [deprecated = true];
+ *
+ * @return This builder for chaining.
+ */
+ @java.lang.Deprecated
+ public Builder clearOsShortNames() {
+ osShortNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Deprecated. Use the `inventories` field instead.
+ * A VM is selected if it's OS short name matches with any of the
+ * values provided in this list.
+ *
+ *
+ * repeated string os_short_names = 2 [deprecated = true];
+ *
+ * @param value The bytes of the osShortNames to add.
+ * @return This builder for chaining.
+ */
+ @java.lang.Deprecated
+ public Builder addOsShortNamesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureOsShortNamesIsMutable();
+ osShortNames_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private java.util.List
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
+ */
+ public java.util.List
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
+ */
+ public int getInclusionLabelsCount() {
+ if (inclusionLabelsBuilder_ == null) {
+ return inclusionLabels_.size();
+ } else {
+ return inclusionLabelsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
+ */
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet getInclusionLabels(
+ int index) {
+ if (inclusionLabelsBuilder_ == null) {
+ return inclusionLabels_.get(index);
} else {
- if (!other.inclusionLabels_.isEmpty()) {
- if (inclusionLabelsBuilder_.isEmpty()) {
- inclusionLabelsBuilder_.dispose();
- inclusionLabelsBuilder_ = null;
- inclusionLabels_ = other.inclusionLabels_;
- bitField0_ = (bitField0_ & ~0x00000002);
- inclusionLabelsBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
- ? getInclusionLabelsFieldBuilder()
- : null;
- } else {
- inclusionLabelsBuilder_.addAllMessages(other.inclusionLabels_);
- }
- }
+ return inclusionLabelsBuilder_.getMessage(index);
}
- if (exclusionLabelsBuilder_ == null) {
- if (!other.exclusionLabels_.isEmpty()) {
- if (exclusionLabels_.isEmpty()) {
- exclusionLabels_ = other.exclusionLabels_;
- bitField0_ = (bitField0_ & ~0x00000004);
- } else {
- ensureExclusionLabelsIsMutable();
- exclusionLabels_.addAll(other.exclusionLabels_);
- }
- onChanged();
+ }
+ /**
+ *
+ *
+ *
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
+ */
+ public Builder setInclusionLabels(
+ int index, com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet value) {
+ if (inclusionLabelsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ ensureInclusionLabelsIsMutable();
+ inclusionLabels_.set(index, value);
+ onChanged();
} else {
- if (!other.exclusionLabels_.isEmpty()) {
- if (exclusionLabelsBuilder_.isEmpty()) {
- exclusionLabelsBuilder_.dispose();
- exclusionLabelsBuilder_ = null;
- exclusionLabels_ = other.exclusionLabels_;
- bitField0_ = (bitField0_ & ~0x00000004);
- exclusionLabelsBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
- ? getExclusionLabelsFieldBuilder()
- : null;
- } else {
- exclusionLabelsBuilder_.addAllMessages(other.exclusionLabels_);
- }
- }
+ inclusionLabelsBuilder_.setMessage(index, value);
}
- 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.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage =
- (com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter)
- e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
+ /**
+ *
+ *
+ *
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
+ */
+ public Builder setInclusionLabels(
+ int index,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.Builder builderForValue) {
+ if (inclusionLabelsBuilder_ == null) {
+ ensureInclusionLabelsIsMutable();
+ inclusionLabels_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ inclusionLabelsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
-
- private int bitField0_;
-
- private boolean all_;
/**
*
*
*
- * Target all VMs in the project. If true, no other criteria is
- * permitted.
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
*
*
- * bool all = 1;
- *
- * @return The all.
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
*/
- @java.lang.Override
- public boolean getAll() {
- return all_;
+ public Builder addInclusionLabels(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet value) {
+ if (inclusionLabelsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInclusionLabelsIsMutable();
+ inclusionLabels_.add(value);
+ onChanged();
+ } else {
+ inclusionLabelsBuilder_.addMessage(value);
+ }
+ return this;
}
/**
*
*
*
- * Target all VMs in the project. If true, no other criteria is
- * permitted.
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
*
*
- * bool all = 1;
- *
- * @param value The all to set.
- * @return This builder for chaining.
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
*/
- public Builder setAll(boolean value) {
-
- all_ = value;
- onChanged();
+ public Builder addInclusionLabels(
+ int index, com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet value) {
+ if (inclusionLabelsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInclusionLabelsIsMutable();
+ inclusionLabels_.add(index, value);
+ onChanged();
+ } else {
+ inclusionLabelsBuilder_.addMessage(index, value);
+ }
return this;
}
/**
*
*
*
- * Target all VMs in the project. If true, no other criteria is
- * permitted.
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
*
*
- * bool all = 1;
- *
- * @return This builder for chaining.
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
*/
- public Builder clearAll() {
-
- all_ = false;
- onChanged();
+ public Builder addInclusionLabels(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.Builder builderForValue) {
+ if (inclusionLabelsBuilder_ == null) {
+ ensureInclusionLabelsIsMutable();
+ inclusionLabels_.add(builderForValue.build());
+ onChanged();
+ } else {
+ inclusionLabelsBuilder_.addMessage(builderForValue.build());
+ }
return this;
}
-
- private com.google.protobuf.LazyStringList osShortNames_ =
- com.google.protobuf.LazyStringArrayList.EMPTY;
-
- private void ensureOsShortNamesIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
- osShortNames_ = new com.google.protobuf.LazyStringArrayList(osShortNames_);
- bitField0_ |= 0x00000001;
+ /**
+ *
+ *
+ *
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
+ */
+ public Builder addInclusionLabels(
+ int index,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.Builder builderForValue) {
+ if (inclusionLabelsBuilder_ == null) {
+ ensureInclusionLabelsIsMutable();
+ inclusionLabels_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ inclusionLabelsBuilder_.addMessage(index, builderForValue.build());
}
+ return this;
}
/**
*
*
*
- * A VM is included if it's OS short name matches with any of the
- * values provided in this list.
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
*
*
- * repeated string os_short_names = 2;
- *
- * @return A list containing the osShortNames.
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
*/
- public com.google.protobuf.ProtocolStringList getOsShortNamesList() {
- return osShortNames_.getUnmodifiableView();
+ public Builder addAllInclusionLabels(
+ java.lang.Iterable<
+ ? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet>
+ values) {
+ if (inclusionLabelsBuilder_ == null) {
+ ensureInclusionLabelsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inclusionLabels_);
+ onChanged();
+ } else {
+ inclusionLabelsBuilder_.addAllMessages(values);
+ }
+ return this;
}
/**
*
*
*
- * A VM is included if it's OS short name matches with any of the
- * values provided in this list.
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
*
*
- * repeated string os_short_names = 2;
- *
- * @return The count of osShortNames.
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
*/
- public int getOsShortNamesCount() {
- return osShortNames_.size();
+ public Builder clearInclusionLabels() {
+ if (inclusionLabelsBuilder_ == null) {
+ inclusionLabels_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ inclusionLabelsBuilder_.clear();
+ }
+ return this;
}
/**
*
*
*
- * A VM is included if it's OS short name matches with any of the
- * values provided in this list.
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
*
*
- * repeated string os_short_names = 2;
- *
- * @param index The index of the element to return.
- * @return The osShortNames at the given index.
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
*/
- public java.lang.String getOsShortNames(int index) {
- return osShortNames_.get(index);
+ public Builder removeInclusionLabels(int index) {
+ if (inclusionLabelsBuilder_ == null) {
+ ensureInclusionLabelsIsMutable();
+ inclusionLabels_.remove(index);
+ onChanged();
+ } else {
+ inclusionLabelsBuilder_.remove(index);
+ }
+ return this;
}
/**
*
*
*
- * A VM is included if it's OS short name matches with any of the
- * values provided in this list.
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
*
*
- * repeated string os_short_names = 2;
- *
- * @param index The index of the value to return.
- * @return The bytes of the osShortNames at the given index.
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
*/
- public com.google.protobuf.ByteString getOsShortNamesBytes(int index) {
- return osShortNames_.getByteString(index);
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.Builder
+ getInclusionLabelsBuilder(int index) {
+ return getInclusionLabelsFieldBuilder().getBuilder(index);
}
/**
*
*
*
- * A VM is included if it's OS short name matches with any of the
- * values provided in this list.
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
*
*
- * repeated string os_short_names = 2;
- *
- * @param index The index to set the value at.
- * @param value The osShortNames to set.
- * @return This builder for chaining.
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
*/
- public Builder setOsShortNames(int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSetOrBuilder
+ getInclusionLabelsOrBuilder(int index) {
+ if (inclusionLabelsBuilder_ == null) {
+ return inclusionLabels_.get(index);
+ } else {
+ return inclusionLabelsBuilder_.getMessageOrBuilder(index);
}
- ensureOsShortNamesIsMutable();
- osShortNames_.set(index, value);
- onChanged();
- return this;
}
/**
*
*
*
- * A VM is included if it's OS short name matches with any of the
- * values provided in this list.
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
*
*
- * repeated string os_short_names = 2;
- *
- * @param value The osShortNames to add.
- * @return This builder for chaining.
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
*/
- public Builder addOsShortNames(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public java.util.List<
+ ? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSetOrBuilder>
+ getInclusionLabelsOrBuilderList() {
+ if (inclusionLabelsBuilder_ != null) {
+ return inclusionLabelsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(inclusionLabels_);
}
- ensureOsShortNamesIsMutable();
- osShortNames_.add(value);
- onChanged();
- return this;
}
/**
*
*
*
- * A VM is included if it's OS short name matches with any of the
- * values provided in this list.
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
*
*
- * repeated string os_short_names = 2;
- *
- * @param values The osShortNames to add.
- * @return This builder for chaining.
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
*/
- public Builder addAllOsShortNames(java.lang.Iterable
- * A VM is included if it's OS short name matches with any of the
- * values provided in this list.
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
*
*
- * repeated string os_short_names = 2;
- *
- * @return This builder for chaining.
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
*/
- public Builder clearOsShortNames() {
- osShortNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- return this;
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.Builder
+ addInclusionLabelsBuilder(int index) {
+ return getInclusionLabelsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.getDefaultInstance());
}
/**
*
*
*
- * A VM is included if it's OS short name matches with any of the
- * values provided in this list.
+ * List of label sets used for VM inclusion.
+ * If the list has more than one `LabelSet`, the VM is included if any
+ * of the label sets are applicable for the VM.
*
*
- * repeated string os_short_names = 2;
- *
- * @param value The bytes of the osShortNames to add.
- * @return This builder for chaining.
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ *
*/
- public Builder addOsShortNamesBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ public java.util.List
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
*
*/
public java.util.List
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
*
*/
- public int getInclusionLabelsCount() {
- if (inclusionLabelsBuilder_ == null) {
- return inclusionLabels_.size();
+ public int getExclusionLabelsCount() {
+ if (exclusionLabelsBuilder_ == null) {
+ return exclusionLabels_.size();
} else {
- return inclusionLabelsBuilder_.getCount();
+ return exclusionLabelsBuilder_.getCount();
}
}
/**
*
*
*
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
*
*/
- public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet getInclusionLabels(
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet getExclusionLabels(
int index) {
- if (inclusionLabelsBuilder_ == null) {
- return inclusionLabels_.get(index);
+ if (exclusionLabelsBuilder_ == null) {
+ return exclusionLabels_.get(index);
} else {
- return inclusionLabelsBuilder_.getMessage(index);
+ return exclusionLabelsBuilder_.getMessage(index);
}
}
/**
*
*
*
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
*
*/
- public Builder setInclusionLabels(
+ public Builder setExclusionLabels(
int index, com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet value) {
- if (inclusionLabelsBuilder_ == null) {
+ if (exclusionLabelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureInclusionLabelsIsMutable();
- inclusionLabels_.set(index, value);
+ ensureExclusionLabelsIsMutable();
+ exclusionLabels_.set(index, value);
onChanged();
} else {
- inclusionLabelsBuilder_.setMessage(index, value);
+ exclusionLabelsBuilder_.setMessage(index, value);
}
return this;
}
@@ -2805,24 +4444,24 @@ public Builder setInclusionLabels(
*
*
*
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
*
*/
- public Builder setInclusionLabels(
+ public Builder setExclusionLabels(
int index,
com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.Builder builderForValue) {
- if (inclusionLabelsBuilder_ == null) {
- ensureInclusionLabelsIsMutable();
- inclusionLabels_.set(index, builderForValue.build());
+ if (exclusionLabelsBuilder_ == null) {
+ ensureExclusionLabelsIsMutable();
+ exclusionLabels_.set(index, builderForValue.build());
onChanged();
} else {
- inclusionLabelsBuilder_.setMessage(index, builderForValue.build());
+ exclusionLabelsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
@@ -2830,26 +4469,26 @@ public Builder setInclusionLabels(
*
*
*
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
*
*/
- public Builder addInclusionLabels(
+ public Builder addExclusionLabels(
com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet value) {
- if (inclusionLabelsBuilder_ == null) {
+ if (exclusionLabelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureInclusionLabelsIsMutable();
- inclusionLabels_.add(value);
+ ensureExclusionLabelsIsMutable();
+ exclusionLabels_.add(value);
onChanged();
} else {
- inclusionLabelsBuilder_.addMessage(value);
+ exclusionLabelsBuilder_.addMessage(value);
}
return this;
}
@@ -2857,26 +4496,26 @@ public Builder addInclusionLabels(
*
*
*
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
*
*/
- public Builder addInclusionLabels(
+ public Builder addExclusionLabels(
int index, com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet value) {
- if (inclusionLabelsBuilder_ == null) {
+ if (exclusionLabelsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureInclusionLabelsIsMutable();
- inclusionLabels_.add(index, value);
+ ensureExclusionLabelsIsMutable();
+ exclusionLabels_.add(index, value);
onChanged();
} else {
- inclusionLabelsBuilder_.addMessage(index, value);
+ exclusionLabelsBuilder_.addMessage(index, value);
}
return this;
}
@@ -2884,23 +4523,23 @@ public Builder addInclusionLabels(
*
*
*
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
*
*/
- public Builder addInclusionLabels(
+ public Builder addExclusionLabels(
com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.Builder builderForValue) {
- if (inclusionLabelsBuilder_ == null) {
- ensureInclusionLabelsIsMutable();
- inclusionLabels_.add(builderForValue.build());
+ if (exclusionLabelsBuilder_ == null) {
+ ensureExclusionLabelsIsMutable();
+ exclusionLabels_.add(builderForValue.build());
onChanged();
} else {
- inclusionLabelsBuilder_.addMessage(builderForValue.build());
+ exclusionLabelsBuilder_.addMessage(builderForValue.build());
}
return this;
}
@@ -2908,24 +4547,24 @@ public Builder addInclusionLabels(
*
*
*
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
*
*/
- public Builder addInclusionLabels(
+ public Builder addExclusionLabels(
int index,
com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.Builder builderForValue) {
- if (inclusionLabelsBuilder_ == null) {
- ensureInclusionLabelsIsMutable();
- inclusionLabels_.add(index, builderForValue.build());
+ if (exclusionLabelsBuilder_ == null) {
+ ensureExclusionLabelsIsMutable();
+ exclusionLabels_.add(index, builderForValue.build());
onChanged();
} else {
- inclusionLabelsBuilder_.addMessage(index, builderForValue.build());
+ exclusionLabelsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
@@ -2933,25 +4572,25 @@ public Builder addInclusionLabels(
*
*
*
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
*
*/
- public Builder addAllInclusionLabels(
+ public Builder addAllExclusionLabels(
java.lang.Iterable<
? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet>
values) {
- if (inclusionLabelsBuilder_ == null) {
- ensureInclusionLabelsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inclusionLabels_);
+ if (exclusionLabelsBuilder_ == null) {
+ ensureExclusionLabelsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exclusionLabels_);
onChanged();
} else {
- inclusionLabelsBuilder_.addAllMessages(values);
+ exclusionLabelsBuilder_.addAllMessages(values);
}
return this;
}
@@ -2959,22 +4598,22 @@ public Builder addAllInclusionLabels(
*
*
*
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
*
*/
- public Builder clearInclusionLabels() {
- if (inclusionLabelsBuilder_ == null) {
- inclusionLabels_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ public Builder clearExclusionLabels() {
+ if (exclusionLabelsBuilder_ == null) {
+ exclusionLabels_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
- inclusionLabelsBuilder_.clear();
+ exclusionLabelsBuilder_.clear();
}
return this;
}
@@ -2982,22 +4621,22 @@ public Builder clearInclusionLabels() {
*
*
*
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
*
*/
- public Builder removeInclusionLabels(int index) {
- if (inclusionLabelsBuilder_ == null) {
- ensureInclusionLabelsIsMutable();
- inclusionLabels_.remove(index);
+ public Builder removeExclusionLabels(int index) {
+ if (exclusionLabelsBuilder_ == null) {
+ ensureExclusionLabelsIsMutable();
+ exclusionLabels_.remove(index);
onChanged();
} else {
- inclusionLabelsBuilder_.remove(index);
+ exclusionLabelsBuilder_.remove(index);
}
return this;
}
@@ -3005,78 +4644,78 @@ public Builder removeInclusionLabels(int index) {
*
*
*
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
*
*/
public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.Builder
- getInclusionLabelsBuilder(int index) {
- return getInclusionLabelsFieldBuilder().getBuilder(index);
+ getExclusionLabelsBuilder(int index) {
+ return getExclusionLabelsFieldBuilder().getBuilder(index);
}
/**
*
*
*
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
*
*/
public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSetOrBuilder
- getInclusionLabelsOrBuilder(int index) {
- if (inclusionLabelsBuilder_ == null) {
- return inclusionLabels_.get(index);
+ getExclusionLabelsOrBuilder(int index) {
+ if (exclusionLabelsBuilder_ == null) {
+ return exclusionLabels_.get(index);
} else {
- return inclusionLabelsBuilder_.getMessageOrBuilder(index);
+ return exclusionLabelsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
*
*/
public java.util.List<
? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSetOrBuilder>
- getInclusionLabelsOrBuilderList() {
- if (inclusionLabelsBuilder_ != null) {
- return inclusionLabelsBuilder_.getMessageOrBuilderList();
+ getExclusionLabelsOrBuilderList() {
+ if (exclusionLabelsBuilder_ != null) {
+ return exclusionLabelsBuilder_.getMessageOrBuilderList();
} else {
- return java.util.Collections.unmodifiableList(inclusionLabels_);
+ return java.util.Collections.unmodifiableList(exclusionLabels_);
}
}
/**
*
*
*
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
*
*/
public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.Builder
- addInclusionLabelsBuilder() {
- return getInclusionLabelsFieldBuilder()
+ addExclusionLabelsBuilder() {
+ return getExclusionLabelsFieldBuilder()
.addBuilder(
com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.getDefaultInstance());
}
@@ -3084,18 +4723,18 @@ public Builder removeInclusionLabels(int index) {
*
*
*
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
*
*/
public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.Builder
- addInclusionLabelsBuilder(int index) {
- return getInclusionLabelsFieldBuilder()
+ addExclusionLabelsBuilder(int index) {
+ return getExclusionLabelsFieldBuilder()
.addBuilder(
index,
com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.getDefaultInstance());
@@ -3104,156 +4743,149 @@ public Builder removeInclusionLabels(int index) {
*
*
*
- * List of label sets used for VM inclusion.
- * If the list has more than one `LabelSet`, the VM is included if any
+ * List of label sets used for VM exclusion.
+ * If the list has more than one label set, the VM is excluded if any
* of the label sets are applicable for the VM.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet inclusion_labels = 3;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
*
*/
public java.util.List
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
*
*/
- public java.util.List
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
*
*/
- public int getExclusionLabelsCount() {
- if (exclusionLabelsBuilder_ == null) {
- return exclusionLabels_.size();
+ public int getInventoriesCount() {
+ if (inventoriesBuilder_ == null) {
+ return inventories_.size();
} else {
- return exclusionLabelsBuilder_.getCount();
+ return inventoriesBuilder_.getCount();
}
}
/**
*
*
*
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
*
*/
- public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet getExclusionLabels(
- int index) {
- if (exclusionLabelsBuilder_ == null) {
- return exclusionLabels_.get(index);
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory
+ getInventories(int index) {
+ if (inventoriesBuilder_ == null) {
+ return inventories_.get(index);
} else {
- return exclusionLabelsBuilder_.getMessage(index);
+ return inventoriesBuilder_.getMessage(index);
}
}
/**
*
*
*
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
*
*/
- public Builder setExclusionLabels(
- int index, com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet value) {
- if (exclusionLabelsBuilder_ == null) {
+ public Builder setInventories(
+ int index,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory value) {
+ if (inventoriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureExclusionLabelsIsMutable();
- exclusionLabels_.set(index, value);
+ ensureInventoriesIsMutable();
+ inventories_.set(index, value);
onChanged();
} else {
- exclusionLabelsBuilder_.setMessage(index, value);
+ inventoriesBuilder_.setMessage(index, value);
}
return this;
}
@@ -3261,27 +4893,25 @@ public Builder setExclusionLabels(
*
*
*
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
*
*/
- public Builder setExclusionLabels(
+ public Builder setInventories(
int index,
- com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.Builder builderForValue) {
- if (exclusionLabelsBuilder_ == null) {
- ensureExclusionLabelsIsMutable();
- exclusionLabels_.set(index, builderForValue.build());
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory.Builder
+ builderForValue) {
+ if (inventoriesBuilder_ == null) {
+ ensureInventoriesIsMutable();
+ inventories_.set(index, builderForValue.build());
onChanged();
} else {
- exclusionLabelsBuilder_.setMessage(index, builderForValue.build());
+ inventoriesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
@@ -3289,29 +4919,26 @@ public Builder setExclusionLabels(
*
*
*
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
*
*/
- public Builder addExclusionLabels(
- com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet value) {
- if (exclusionLabelsBuilder_ == null) {
+ public Builder addInventories(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory value) {
+ if (inventoriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureExclusionLabelsIsMutable();
- exclusionLabels_.add(value);
+ ensureInventoriesIsMutable();
+ inventories_.add(value);
onChanged();
} else {
- exclusionLabelsBuilder_.addMessage(value);
+ inventoriesBuilder_.addMessage(value);
}
return this;
}
@@ -3319,29 +4946,27 @@ public Builder addExclusionLabels(
*
*
*
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
*
*/
- public Builder addExclusionLabels(
- int index, com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet value) {
- if (exclusionLabelsBuilder_ == null) {
+ public Builder addInventories(
+ int index,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory value) {
+ if (inventoriesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureExclusionLabelsIsMutable();
- exclusionLabels_.add(index, value);
+ ensureInventoriesIsMutable();
+ inventories_.add(index, value);
onChanged();
} else {
- exclusionLabelsBuilder_.addMessage(index, value);
+ inventoriesBuilder_.addMessage(index, value);
}
return this;
}
@@ -3349,26 +4974,24 @@ public Builder addExclusionLabels(
*
*
*
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
*
*/
- public Builder addExclusionLabels(
- com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.Builder builderForValue) {
- if (exclusionLabelsBuilder_ == null) {
- ensureExclusionLabelsIsMutable();
- exclusionLabels_.add(builderForValue.build());
+ public Builder addInventories(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory.Builder
+ builderForValue) {
+ if (inventoriesBuilder_ == null) {
+ ensureInventoriesIsMutable();
+ inventories_.add(builderForValue.build());
onChanged();
} else {
- exclusionLabelsBuilder_.addMessage(builderForValue.build());
+ inventoriesBuilder_.addMessage(builderForValue.build());
}
return this;
}
@@ -3376,27 +4999,25 @@ public Builder addExclusionLabels(
*
*
*
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
*
*/
- public Builder addExclusionLabels(
+ public Builder addInventories(
int index,
- com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.Builder builderForValue) {
- if (exclusionLabelsBuilder_ == null) {
- ensureExclusionLabelsIsMutable();
- exclusionLabels_.add(index, builderForValue.build());
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory.Builder
+ builderForValue) {
+ if (inventoriesBuilder_ == null) {
+ ensureInventoriesIsMutable();
+ inventories_.add(index, builderForValue.build());
onChanged();
} else {
- exclusionLabelsBuilder_.addMessage(index, builderForValue.build());
+ inventoriesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
@@ -3404,28 +5025,26 @@ public Builder addExclusionLabels(
*
*
*
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
*
*/
- public Builder addAllExclusionLabels(
+ public Builder addAllInventories(
java.lang.Iterable<
- ? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet>
+ ? extends
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory>
values) {
- if (exclusionLabelsBuilder_ == null) {
- ensureExclusionLabelsIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exclusionLabels_);
+ if (inventoriesBuilder_ == null) {
+ ensureInventoriesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inventories_);
onChanged();
} else {
- exclusionLabelsBuilder_.addAllMessages(values);
+ inventoriesBuilder_.addAllMessages(values);
}
return this;
}
@@ -3433,25 +5052,22 @@ public Builder addAllExclusionLabels(
*
*
*
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
*
*/
- public Builder clearExclusionLabels() {
- if (exclusionLabelsBuilder_ == null) {
- exclusionLabels_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
+ public Builder clearInventories() {
+ if (inventoriesBuilder_ == null) {
+ inventories_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
- exclusionLabelsBuilder_.clear();
+ inventoriesBuilder_.clear();
}
return this;
}
@@ -3459,25 +5075,22 @@ public Builder clearExclusionLabels() {
*
*
*
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
*
*/
- public Builder removeExclusionLabels(int index) {
- if (exclusionLabelsBuilder_ == null) {
- ensureExclusionLabelsIsMutable();
- exclusionLabels_.remove(index);
+ public Builder removeInventories(int index) {
+ if (inventoriesBuilder_ == null) {
+ ensureInventoriesIsMutable();
+ inventories_.remove(index);
onChanged();
} else {
- exclusionLabelsBuilder_.remove(index);
+ inventoriesBuilder_.remove(index);
}
return this;
}
@@ -3485,155 +5098,145 @@ public Builder removeExclusionLabels(int index) {
*
*
*
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
*
*/
- public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.Builder
- getExclusionLabelsBuilder(int index) {
- return getExclusionLabelsFieldBuilder().getBuilder(index);
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory.Builder
+ getInventoriesBuilder(int index) {
+ return getInventoriesFieldBuilder().getBuilder(index);
}
/**
*
*
*
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
*
*/
- public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSetOrBuilder
- getExclusionLabelsOrBuilder(int index) {
- if (exclusionLabelsBuilder_ == null) {
- return exclusionLabels_.get(index);
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.InventoryOrBuilder
+ getInventoriesOrBuilder(int index) {
+ if (inventoriesBuilder_ == null) {
+ return inventories_.get(index);
} else {
- return exclusionLabelsBuilder_.getMessageOrBuilder(index);
+ return inventoriesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
*
*/
public java.util.List<
- ? extends com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSetOrBuilder>
- getExclusionLabelsOrBuilderList() {
- if (exclusionLabelsBuilder_ != null) {
- return exclusionLabelsBuilder_.getMessageOrBuilderList();
+ ? extends
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter
+ .InventoryOrBuilder>
+ getInventoriesOrBuilderList() {
+ if (inventoriesBuilder_ != null) {
+ return inventoriesBuilder_.getMessageOrBuilderList();
} else {
- return java.util.Collections.unmodifiableList(exclusionLabels_);
+ return java.util.Collections.unmodifiableList(inventories_);
}
}
/**
*
*
*
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
*
*/
- public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.Builder
- addExclusionLabelsBuilder() {
- return getExclusionLabelsFieldBuilder()
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory.Builder
+ addInventoriesBuilder() {
+ return getInventoriesFieldBuilder()
.addBuilder(
- com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.getDefaultInstance());
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory
+ .getDefaultInstance());
}
/**
*
*
*
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
*
*/
- public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.Builder
- addExclusionLabelsBuilder(int index) {
- return getExclusionLabelsFieldBuilder()
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory.Builder
+ addInventoriesBuilder(int index) {
+ return getInventoriesFieldBuilder()
.addBuilder(
index,
- com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet.getDefaultInstance());
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory
+ .getDefaultInstance());
}
/**
*
*
*
- * List of label sets used for VM exclusion.
- * If the list has more than one label set, the VM is excluded if any
- * of the label sets are applicable for the VM.
- * This filter is applied last in the filtering chain and therefore a
- * VM is guaranteed to be excluded if it satisfies one of the below
- * label sets.
+ * List of inventories to select VMs.
+ * A VM is selected if its inventory data matches at least one of the
+ * following inventories.
*
*
*
- * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.LabelSet exclusion_labels = 4;
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignment.InstanceFilter.Inventory inventories = 5;
*
*/
- public java.util.List
+ * The etag for this OS policy assignment.
+ * If this is provided on update, it must match the server's etag.
+ *
+ *
+ * string etag = 8;
+ *
+ * @return The etag.
+ */
+ @java.lang.Override
+ public java.lang.String getEtag() {
+ java.lang.Object ref = etag_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ etag_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The etag for this OS policy assignment.
+ * If this is provided on update, it must match the server's etag.
+ *
+ *
+ * string etag = 8;
+ *
+ * @return The bytes for etag.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEtagBytes() {
+ java.lang.Object ref = etag_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ etag_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
public static final int ROLLOUT_STATE_FIELD_NUMBER = 9;
private int rolloutState_;
/**
@@ -5518,6 +7172,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (revisionCreateTime_ != null) {
output.writeMessage(7, getRevisionCreateTime());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, etag_);
+ }
if (rolloutState_
!= com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.RolloutState
.ROLLOUT_STATE_UNSPECIFIED
@@ -5566,6 +7223,9 @@ public int getSerializedSize() {
if (revisionCreateTime_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getRevisionCreateTime());
}
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, etag_);
+ }
if (rolloutState_
!= com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.RolloutState
.ROLLOUT_STATE_UNSPECIFIED
@@ -5616,6 +7276,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasRevisionCreateTime()) {
if (!getRevisionCreateTime().equals(other.getRevisionCreateTime())) return false;
}
+ if (!getEtag().equals(other.getEtag())) return false;
if (rolloutState_ != other.rolloutState_) return false;
if (getBaseline() != other.getBaseline()) return false;
if (getDeleted() != other.getDeleted()) return false;
@@ -5654,6 +7315,8 @@ public int hashCode() {
hash = (37 * hash) + REVISION_CREATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getRevisionCreateTime().hashCode();
}
+ hash = (37 * hash) + ETAG_FIELD_NUMBER;
+ hash = (53 * hash) + getEtag().hashCode();
hash = (37 * hash) + ROLLOUT_STATE_FIELD_NUMBER;
hash = (53 * hash) + rolloutState_;
hash = (37 * hash) + BASELINE_FIELD_NUMBER;
@@ -5786,14 +7449,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicyAssignment)
com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicyAssignment.class,
@@ -5849,6 +7512,8 @@ public Builder clear() {
revisionCreateTime_ = null;
revisionCreateTimeBuilder_ = null;
}
+ etag_ = "";
+
rolloutState_ = 0;
baseline_ = false;
@@ -5864,7 +7529,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignment_descriptor;
}
@@ -5914,6 +7579,7 @@ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignment buildPartial() {
} else {
result.revisionCreateTime_ = revisionCreateTimeBuilder_.build();
}
+ result.etag_ = etag_;
result.rolloutState_ = rolloutState_;
result.baseline_ = baseline_;
result.deleted_ = deleted_;
@@ -6017,6 +7683,10 @@ public Builder mergeFrom(com.google.cloud.osconfig.v1alpha.OSPolicyAssignment ot
if (other.hasRevisionCreateTime()) {
mergeRevisionCreateTime(other.getRevisionCreateTime());
}
+ if (!other.getEtag().isEmpty()) {
+ etag_ = other.etag_;
+ onChanged();
+ }
if (other.rolloutState_ != 0) {
setRolloutStateValue(other.getRolloutStateValue());
}
@@ -7485,6 +9155,117 @@ public com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder() {
return revisionCreateTimeBuilder_;
}
+ private java.lang.Object etag_ = "";
+ /**
+ *
+ *
+ *
+ * The etag for this OS policy assignment.
+ * If this is provided on update, it must match the server's etag.
+ *
+ *
+ * string etag = 8;
+ *
+ * @return The etag.
+ */
+ public java.lang.String getEtag() {
+ java.lang.Object ref = etag_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ etag_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The etag for this OS policy assignment.
+ * If this is provided on update, it must match the server's etag.
+ *
+ *
+ * string etag = 8;
+ *
+ * @return The bytes for etag.
+ */
+ public com.google.protobuf.ByteString getEtagBytes() {
+ java.lang.Object ref = etag_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ etag_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The etag for this OS policy assignment.
+ * If this is provided on update, it must match the server's etag.
+ *
+ *
+ * string etag = 8;
+ *
+ * @param value The etag to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEtag(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ etag_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The etag for this OS policy assignment.
+ * If this is provided on update, it must match the server's etag.
+ *
+ *
+ * string etag = 8;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEtag() {
+
+ etag_ = getDefaultInstance().getEtag();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The etag for this OS policy assignment.
+ * If this is provided on update, it must match the server's etag.
+ *
+ *
+ * string etag = 8;
+ *
+ * @param value The bytes for etag to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEtagBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ etag_ = value;
+ onChanged();
+ return this;
+ }
+
private int rolloutState_ = 0;
/**
*
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicyAssignmentOperationMetadata.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicyAssignmentOperationMetadata.java
index 5368786e..c81dcb80 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicyAssignmentOperationMetadata.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicyAssignmentOperationMetadata.java
@@ -146,14 +146,14 @@ private OSPolicyAssignmentOperationMetadata(
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignmentOperationMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignmentOperationMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.class,
@@ -1019,14 +1019,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
// @@protoc_insertion_point(builder_implements:google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata)
com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignmentOperationMetadata_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignmentOperationMetadata_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentOperationMetadata.class,
@@ -1074,7 +1074,7 @@ public Builder clear() {
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
- return com.google.cloud.osconfig.v1alpha.OSPolicyAssignments
+ return com.google.cloud.osconfig.v1alpha.OsPolicyAssignmentsProto
.internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignmentOperationMetadata_descriptor;
}
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicyAssignmentOrBuilder.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicyAssignmentOrBuilder.java
index 16945c87..9ceb0d21 100644
--- a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicyAssignmentOrBuilder.java
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicyAssignmentOrBuilder.java
@@ -317,6 +317,33 @@ public interface OSPolicyAssignmentOrBuilder
*/
com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder();
+ /**
+ *
+ *
+ *
+ * The etag for this OS policy assignment.
+ * If this is provided on update, it must match the server's etag.
+ *
+ *
+ * string etag = 8;
+ *
+ * @return The etag.
+ */
+ java.lang.String getEtag();
+ /**
+ *
+ *
+ *
+ * The etag for this OS policy assignment.
+ * If this is provided on update, it must match the server's etag.
+ *
+ *
+ * string etag = 8;
+ *
+ * @return The bytes for etag.
+ */
+ com.google.protobuf.ByteString getEtagBytes();
+
/**
*
*
diff --git a/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicyAssignmentReport.java b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicyAssignmentReport.java
new file mode 100644
index 00000000..6813afb0
--- /dev/null
+++ b/proto-google-cloud-os-config-v1alpha/src/main/java/com/google/cloud/osconfig/v1alpha/OSPolicyAssignmentReport.java
@@ -0,0 +1,8751 @@
+/*
+ * 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/osconfig/v1alpha/os_policy_assignment_reports.proto
+
+package com.google.cloud.osconfig.v1alpha;
+
+/**
+ *
+ *
+ *
+ * A report of the OS policy assignment status for a given instance.
+ *
+ *
+ * Protobuf type {@code google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport}
+ */
+public final class OSPolicyAssignmentReport extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport)
+ OSPolicyAssignmentReportOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use OSPolicyAssignmentReport.newBuilder() to construct.
+ private OSPolicyAssignmentReport(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private OSPolicyAssignmentReport() {
+ name_ = "";
+ instance_ = "";
+ osPolicyAssignment_ = "";
+ osPolicyCompliances_ = java.util.Collections.emptyList();
+ lastRunId_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new OSPolicyAssignmentReport();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private OSPolicyAssignmentReport(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ 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 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ instance_ = s;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ osPolicyAssignment_ = s;
+ break;
+ }
+ case 34:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ osPolicyCompliances_ =
+ new java.util.ArrayList<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport
+ .OSPolicyCompliance>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ osPolicyCompliances_.add(
+ input.readMessage(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .parser(),
+ extensionRegistry));
+ break;
+ }
+ case 42:
+ {
+ com.google.protobuf.Timestamp.Builder subBuilder = null;
+ if (updateTime_ != null) {
+ subBuilder = updateTime_.toBuilder();
+ }
+ updateTime_ =
+ input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(updateTime_);
+ updateTime_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 50:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ lastRunId_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ osPolicyCompliances_ = java.util.Collections.unmodifiableList(osPolicyCompliances_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReportsProto
+ .internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignmentReport_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReportsProto
+ .internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignmentReport_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.class,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.Builder.class);
+ }
+
+ public interface OSPolicyComplianceOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * The OS policy id
+ *
+ *
+ * string os_policy_id = 1;
+ *
+ * @return The osPolicyId.
+ */
+ java.lang.String getOsPolicyId();
+ /**
+ *
+ *
+ *
+ * The OS policy id
+ *
+ *
+ * string os_policy_id = 1;
+ *
+ * @return The bytes for osPolicyId.
+ */
+ com.google.protobuf.ByteString getOsPolicyIdBytes();
+
+ /**
+ *
+ *
+ *
+ * The compliance state of the OS policy.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState compliance_state = 2;
+ *
+ *
+ * @return The enum numeric value on the wire for complianceState.
+ */
+ int getComplianceStateValue();
+ /**
+ *
+ *
+ *
+ * The compliance state of the OS policy.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState compliance_state = 2;
+ *
+ *
+ * @return The complianceState.
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState
+ getComplianceState();
+
+ /**
+ *
+ *
+ *
+ * The reason for the OS policy to be in an unknown compliance state.
+ * This field is always populated when `compliance_state` is `UNKNOWN`.
+ * If populated, the field can contain one of the following values:
+ * * `vm-not-running`: The VM was not running.
+ * * `os-policies-not-supported-by-agent`: The version of the OS Config
+ * agent running on the VM does not support running OS policies.
+ * * `no-agent-detected`: The OS Config agent is not detected for the VM.
+ * * `resource-execution-errors`: The OS Config agent encountered errors
+ * while executing one or more resources in the policy. See
+ * `os_policy_resource_compliances` for details.
+ * * `task-timeout`: The task sent to the agent to apply the policy timed
+ * out.
+ * * `unexpected-agent-state`: The OS Config agent did not report the final
+ * status of the task that attempted to apply the policy. Instead, the agent
+ * unexpectedly started working on a different task. This mostly happens
+ * when the agent or VM unexpectedly restarts while applying OS policies.
+ * * `internal-service-errors`: Internal service errors were encountered
+ * while attempting to apply the policy.
+ *
+ *
+ * string compliance_state_reason = 3;
+ *
+ * @return The complianceStateReason.
+ */
+ java.lang.String getComplianceStateReason();
+ /**
+ *
+ *
+ *
+ * The reason for the OS policy to be in an unknown compliance state.
+ * This field is always populated when `compliance_state` is `UNKNOWN`.
+ * If populated, the field can contain one of the following values:
+ * * `vm-not-running`: The VM was not running.
+ * * `os-policies-not-supported-by-agent`: The version of the OS Config
+ * agent running on the VM does not support running OS policies.
+ * * `no-agent-detected`: The OS Config agent is not detected for the VM.
+ * * `resource-execution-errors`: The OS Config agent encountered errors
+ * while executing one or more resources in the policy. See
+ * `os_policy_resource_compliances` for details.
+ * * `task-timeout`: The task sent to the agent to apply the policy timed
+ * out.
+ * * `unexpected-agent-state`: The OS Config agent did not report the final
+ * status of the task that attempted to apply the policy. Instead, the agent
+ * unexpectedly started working on a different task. This mostly happens
+ * when the agent or VM unexpectedly restarts while applying OS policies.
+ * * `internal-service-errors`: Internal service errors were encountered
+ * while attempting to apply the policy.
+ *
+ *
+ * string compliance_state_reason = 3;
+ *
+ * @return The bytes for complianceStateReason.
+ */
+ com.google.protobuf.ByteString getComplianceStateReasonBytes();
+
+ /**
+ *
+ *
+ *
+ * Compliance data for each resource within the policy that is applied to
+ * the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
+ *
+ */
+ java.util.List<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance>
+ getOsPolicyResourceCompliancesList();
+ /**
+ *
+ *
+ *
+ * Compliance data for each resource within the policy that is applied to
+ * the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
+ *
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance
+ getOsPolicyResourceCompliances(int index);
+ /**
+ *
+ *
+ *
+ * Compliance data for each resource within the policy that is applied to
+ * the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
+ *
+ */
+ int getOsPolicyResourceCompliancesCount();
+ /**
+ *
+ *
+ *
+ * Compliance data for each resource within the policy that is applied to
+ * the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
+ *
+ */
+ java.util.List<
+ ? extends
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceComplianceOrBuilder>
+ getOsPolicyResourceCompliancesOrBuilderList();
+ /**
+ *
+ *
+ *
+ * Compliance data for each resource within the policy that is applied to
+ * the VM.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance os_policy_resource_compliances = 4;
+ *
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceComplianceOrBuilder
+ getOsPolicyResourceCompliancesOrBuilder(int index);
+ }
+ /**
+ *
+ *
+ *
+ * Compliance data for an OS policy
+ *
+ *
+ * Protobuf type {@code google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance}
+ */
+ public static final class OSPolicyCompliance extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance)
+ OSPolicyComplianceOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use OSPolicyCompliance.newBuilder() to construct.
+ private OSPolicyCompliance(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private OSPolicyCompliance() {
+ osPolicyId_ = "";
+ complianceState_ = 0;
+ complianceStateReason_ = "";
+ osPolicyResourceCompliances_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new OSPolicyCompliance();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private OSPolicyCompliance(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ 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();
+
+ osPolicyId_ = s;
+ break;
+ }
+ case 16:
+ {
+ int rawValue = input.readEnum();
+
+ complianceState_ = rawValue;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ complianceStateReason_ = s;
+ break;
+ }
+ case 34:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ osPolicyResourceCompliances_ =
+ new java.util.ArrayList<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport
+ .OSPolicyCompliance.OSPolicyResourceCompliance>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ osPolicyResourceCompliances_.add(
+ input.readMessage(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport
+ .OSPolicyCompliance.OSPolicyResourceCompliance.parser(),
+ extensionRegistry));
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ osPolicyResourceCompliances_ =
+ java.util.Collections.unmodifiableList(osPolicyResourceCompliances_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReportsProto
+ .internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignmentReport_OSPolicyCompliance_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReportsProto
+ .internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignmentReport_OSPolicyCompliance_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.class,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.Builder
+ .class);
+ }
+
+ /**
+ *
+ *
+ *
+ * Possible compliance states for an os policy.
+ *
+ *
+ * Protobuf enum {@code
+ * google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.ComplianceState}
+ */
+ public enum ComplianceState implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * The policy is in an unknown compliance state.
+ * Refer to the field `compliance_state_reason` to learn the exact reason
+ * for the policy to be in this compliance state.
+ *
+ *
+ * UNKNOWN = 0;
+ */
+ UNKNOWN(0),
+ /**
+ *
+ *
+ *
+ * Policy is compliant.
+ * The policy is compliant if all the underlying resources are also
+ * compliant.
+ *
+ *
+ * COMPLIANT = 1;
+ */
+ COMPLIANT(1),
+ /**
+ *
+ *
+ *
+ * Policy is non-compliant.
+ * The policy is non-compliant if one or more underlying resources are
+ * non-compliant.
+ *
+ *
+ * NON_COMPLIANT = 2;
+ */
+ NON_COMPLIANT(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * The policy is in an unknown compliance state.
+ * Refer to the field `compliance_state_reason` to learn the exact reason
+ * for the policy to be in this compliance state.
+ *
+ *
+ * UNKNOWN = 0;
+ */
+ public static final int UNKNOWN_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Policy is compliant.
+ * The policy is compliant if all the underlying resources are also
+ * compliant.
+ *
+ *
+ * COMPLIANT = 1;
+ */
+ public static final int COMPLIANT_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * Policy is non-compliant.
+ * The policy is non-compliant if one or more underlying resources are
+ * non-compliant.
+ *
+ *
+ * NON_COMPLIANT = 2;
+ */
+ public static final int NON_COMPLIANT_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 ComplianceState 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 ComplianceState forNumber(int value) {
+ switch (value) {
+ case 0:
+ return UNKNOWN;
+ case 1:
+ return COMPLIANT;
+ case 2:
+ return NON_COMPLIANT;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * The ID of the OS policy resource.
+ *
+ *
+ * string os_policy_resource_id = 1;
+ *
+ * @return The osPolicyResourceId.
+ */
+ java.lang.String getOsPolicyResourceId();
+ /**
+ *
+ *
+ *
+ * The ID of the OS policy resource.
+ *
+ *
+ * string os_policy_resource_id = 1;
+ *
+ * @return The bytes for osPolicyResourceId.
+ */
+ com.google.protobuf.ByteString getOsPolicyResourceIdBytes();
+
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ java.util.List<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep>
+ getConfigStepsList();
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ getConfigSteps(int index);
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ int getConfigStepsCount();
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ java.util.List<
+ ? extends
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStepOrBuilder>
+ getConfigStepsOrBuilderList();
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStepOrBuilder
+ getConfigStepsOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * The compliance state of the resource.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState compliance_state = 3;
+ *
+ *
+ * @return The enum numeric value on the wire for complianceState.
+ */
+ int getComplianceStateValue();
+ /**
+ *
+ *
+ *
+ * The compliance state of the resource.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState compliance_state = 3;
+ *
+ *
+ * @return The complianceState.
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ComplianceState
+ getComplianceState();
+
+ /**
+ *
+ *
+ *
+ * A reason for the resource to be in the given compliance state.
+ * This field is always populated when `compliance_state` is `UNKNOWN`.
+ * The following values are supported when `compliance_state == UNKNOWN`
+ * * `execution-errors`: Errors were encountered by the agent while
+ * executing the resource and the compliance state couldn't be
+ * determined.
+ * * `execution-skipped-by-agent`: Resource execution was skipped by the
+ * agent because errors were encountered while executing prior resources
+ * in the OS policy.
+ * * `os-policy-execution-attempt-failed`: The execution of the OS policy
+ * containing this resource failed and the compliance state couldn't be
+ * determined.
+ *
+ *
+ * string compliance_state_reason = 4;
+ *
+ * @return The complianceStateReason.
+ */
+ java.lang.String getComplianceStateReason();
+ /**
+ *
+ *
+ *
+ * A reason for the resource to be in the given compliance state.
+ * This field is always populated when `compliance_state` is `UNKNOWN`.
+ * The following values are supported when `compliance_state == UNKNOWN`
+ * * `execution-errors`: Errors were encountered by the agent while
+ * executing the resource and the compliance state couldn't be
+ * determined.
+ * * `execution-skipped-by-agent`: Resource execution was skipped by the
+ * agent because errors were encountered while executing prior resources
+ * in the OS policy.
+ * * `os-policy-execution-attempt-failed`: The execution of the OS policy
+ * containing this resource failed and the compliance state couldn't be
+ * determined.
+ *
+ *
+ * string compliance_state_reason = 4;
+ *
+ * @return The bytes for complianceStateReason.
+ */
+ com.google.protobuf.ByteString getComplianceStateReasonBytes();
+
+ /**
+ *
+ *
+ *
+ * ExecResource specific output.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;
+ *
+ *
+ * @return Whether the execResourceOutput field is set.
+ */
+ boolean hasExecResourceOutput();
+ /**
+ *
+ *
+ *
+ * ExecResource specific output.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;
+ *
+ *
+ * @return The execResourceOutput.
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ getExecResourceOutput();
+ /**
+ *
+ *
+ *
+ * ExecResource specific output.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;
+ *
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutputOrBuilder
+ getExecResourceOutputOrBuilder();
+
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OutputCase
+ getOutputCase();
+ }
+ /**
+ *
+ *
+ *
+ * Compliance data for an OS policy resource.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance}
+ */
+ public static final class OSPolicyResourceCompliance
+ extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance)
+ OSPolicyResourceComplianceOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use OSPolicyResourceCompliance.newBuilder() to construct.
+ private OSPolicyResourceCompliance(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private OSPolicyResourceCompliance() {
+ osPolicyResourceId_ = "";
+ configSteps_ = java.util.Collections.emptyList();
+ complianceState_ = 0;
+ complianceStateReason_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new OSPolicyResourceCompliance();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private OSPolicyResourceCompliance(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ 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();
+
+ osPolicyResourceId_ = s;
+ break;
+ }
+ case 18:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ configSteps_ =
+ new java.util.ArrayList<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport
+ .OSPolicyCompliance.OSPolicyResourceCompliance
+ .OSPolicyResourceConfigStep>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ configSteps_.add(
+ input.readMessage(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport
+ .OSPolicyCompliance.OSPolicyResourceCompliance
+ .OSPolicyResourceConfigStep.parser(),
+ extensionRegistry));
+ break;
+ }
+ case 24:
+ {
+ int rawValue = input.readEnum();
+
+ complianceState_ = rawValue;
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ complianceStateReason_ = s;
+ break;
+ }
+ case 42:
+ {
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput.Builder
+ subBuilder = null;
+ if (outputCase_ == 5) {
+ subBuilder =
+ ((com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport
+ .OSPolicyCompliance.OSPolicyResourceCompliance
+ .ExecResourceOutput)
+ output_)
+ .toBuilder();
+ }
+ output_ =
+ input.readMessage(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport
+ .OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput
+ .parser(),
+ extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(
+ (com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport
+ .OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput)
+ output_);
+ output_ = subBuilder.buildPartial();
+ }
+ outputCase_ = 5;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ configSteps_ = java.util.Collections.unmodifiableList(configSteps_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReportsProto
+ .internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReportsProto
+ .internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.class,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * Possible compliance states for a resource.
+ *
+ *
+ * Protobuf enum {@code
+ * google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState}
+ */
+ public enum ComplianceState implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * The resource is in an unknown compliance state.
+ * To get more details about why the policy is in this state, review
+ * the output of the `compliance_state_reason` field.
+ *
+ *
+ * UNKNOWN = 0;
+ */
+ UNKNOWN(0),
+ /**
+ *
+ *
+ *
+ * Resource is compliant.
+ *
+ *
+ * COMPLIANT = 1;
+ */
+ COMPLIANT(1),
+ /**
+ *
+ *
+ *
+ * Resource is non-compliant.
+ *
+ *
+ * NON_COMPLIANT = 2;
+ */
+ NON_COMPLIANT(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * The resource is in an unknown compliance state.
+ * To get more details about why the policy is in this state, review
+ * the output of the `compliance_state_reason` field.
+ *
+ *
+ * UNKNOWN = 0;
+ */
+ public static final int UNKNOWN_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Resource is compliant.
+ *
+ *
+ * COMPLIANT = 1;
+ */
+ public static final int COMPLIANT_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * Resource is non-compliant.
+ *
+ *
+ * NON_COMPLIANT = 2;
+ */
+ public static final int NON_COMPLIANT_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 ComplianceState 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 ComplianceState forNumber(int value) {
+ switch (value) {
+ case 0:
+ return UNKNOWN;
+ case 1:
+ return COMPLIANT;
+ case 2:
+ return NON_COMPLIANT;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * Configuration step type.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type type = 1;
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ int getTypeValue();
+ /**
+ *
+ *
+ *
+ * Configuration step type.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type type = 1;
+ *
+ *
+ * @return The type.
+ */
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type
+ getType();
+
+ /**
+ *
+ *
+ *
+ * An error message recorded during the execution of this step.
+ * Only populated if errors were encountered during this step execution.
+ *
+ *
+ * string error_message = 2;
+ *
+ * @return The errorMessage.
+ */
+ java.lang.String getErrorMessage();
+ /**
+ *
+ *
+ *
+ * An error message recorded during the execution of this step.
+ * Only populated if errors were encountered during this step execution.
+ *
+ *
+ * string error_message = 2;
+ *
+ * @return The bytes for errorMessage.
+ */
+ com.google.protobuf.ByteString getErrorMessageBytes();
+ }
+ /**
+ *
+ *
+ *
+ * Step performed by the OS Config agent for configuring an
+ * `OSPolicy` resource to its desired state.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep}
+ */
+ public static final class OSPolicyResourceConfigStep
+ extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep)
+ OSPolicyResourceConfigStepOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use OSPolicyResourceConfigStep.newBuilder() to construct.
+ private OSPolicyResourceConfigStep(
+ com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private OSPolicyResourceConfigStep() {
+ type_ = 0;
+ errorMessage_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new OSPolicyResourceConfigStep();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private OSPolicyResourceConfigStep(
+ 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 8:
+ {
+ int rawValue = input.readEnum();
+
+ type_ = rawValue;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ errorMessage_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.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.osconfig.v1alpha.OSPolicyAssignmentReportsProto
+ .internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReportsProto
+ .internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_OSPolicyResourceConfigStep_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.class,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder.class);
+ }
+
+ /**
+ *
+ *
+ *
+ * Supported configuration step types
+ *
+ *
+ * Protobuf enum {@code
+ * google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type}
+ */
+ public enum Type implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Default value. This value is unused.
+ *
+ *
+ * TYPE_UNSPECIFIED = 0;
+ */
+ TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Checks for resource conflicts such as schema errors.
+ *
+ *
+ * VALIDATION = 1;
+ */
+ VALIDATION(1),
+ /**
+ *
+ *
+ *
+ * Checks the current status of the desired state for a resource.
+ *
+ *
+ * DESIRED_STATE_CHECK = 2;
+ */
+ DESIRED_STATE_CHECK(2),
+ /**
+ *
+ *
+ *
+ * Enforces the desired state for a resource that is not in desired
+ * state.
+ *
+ *
+ * DESIRED_STATE_ENFORCEMENT = 3;
+ */
+ DESIRED_STATE_ENFORCEMENT(3),
+ /**
+ *
+ *
+ *
+ * Re-checks the status of the desired state. This check is done
+ * for a resource after the enforcement of all OS policies.
+ * This step is used to determine the final desired state status for
+ * the resource. It accounts for any resources that might have drifted
+ * from their desired state due to side effects from executing other
+ * resources.
+ *
+ *
+ * DESIRED_STATE_CHECK_POST_ENFORCEMENT = 4;
+ */
+ DESIRED_STATE_CHECK_POST_ENFORCEMENT(4),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Default value. This value is unused.
+ *
+ *
+ * TYPE_UNSPECIFIED = 0;
+ */
+ public static final int TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Checks for resource conflicts such as schema errors.
+ *
+ *
+ * VALIDATION = 1;
+ */
+ public static final int VALIDATION_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * Checks the current status of the desired state for a resource.
+ *
+ *
+ * DESIRED_STATE_CHECK = 2;
+ */
+ public static final int DESIRED_STATE_CHECK_VALUE = 2;
+ /**
+ *
+ *
+ *
+ * Enforces the desired state for a resource that is not in desired
+ * state.
+ *
+ *
+ * DESIRED_STATE_ENFORCEMENT = 3;
+ */
+ public static final int DESIRED_STATE_ENFORCEMENT_VALUE = 3;
+ /**
+ *
+ *
+ *
+ * Re-checks the status of the desired state. This check is done
+ * for a resource after the enforcement of all OS policies.
+ * This step is used to determine the final desired state status for
+ * the resource. It accounts for any resources that might have drifted
+ * from their desired state due to side effects from executing other
+ * resources.
+ *
+ *
+ * DESIRED_STATE_CHECK_POST_ENFORCEMENT = 4;
+ */
+ public static final int DESIRED_STATE_CHECK_POST_ENFORCEMENT_VALUE = 4;
+
+ 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 Type 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 Type forNumber(int value) {
+ switch (value) {
+ case 0:
+ return TYPE_UNSPECIFIED;
+ case 1:
+ return VALIDATION;
+ case 2:
+ return DESIRED_STATE_CHECK;
+ case 3:
+ return DESIRED_STATE_ENFORCEMENT;
+ case 4:
+ return DESIRED_STATE_CHECK_POST_ENFORCEMENT;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * Configuration step type.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type type = 1;
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ *
+ *
+ * Configuration step type.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type type = 1;
+ *
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type
+ getType() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type
+ result =
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type.valueOf(type_);
+ return result == null
+ ? com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int ERROR_MESSAGE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object errorMessage_;
+ /**
+ *
+ *
+ *
+ * An error message recorded during the execution of this step.
+ * Only populated if errors were encountered during this step execution.
+ *
+ *
+ * string error_message = 2;
+ *
+ * @return The errorMessage.
+ */
+ @java.lang.Override
+ public java.lang.String getErrorMessage() {
+ java.lang.Object ref = errorMessage_;
+ 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();
+ errorMessage_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * An error message recorded during the execution of this step.
+ * Only populated if errors were encountered during this step execution.
+ *
+ *
+ * string error_message = 2;
+ *
+ * @return The bytes for errorMessage.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getErrorMessageBytes() {
+ java.lang.Object ref = errorMessage_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ errorMessage_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (type_
+ != com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type.TYPE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, type_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (type_
+ != com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type.TYPE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_);
+ }
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ other =
+ (com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep)
+ obj;
+
+ if (type_ != other.type_) return false;
+ if (!getErrorMessage().equals(other.getErrorMessage())) 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) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER;
+ hash = (53 * hash) + getErrorMessage().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ 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;
+ }
+ /**
+ *
+ *
+ *
+ * Step performed by the OS Config agent for configuring an
+ * `OSPolicy` resource to its desired state.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Configuration step type.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type type = 1;
+ *
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ *
+ *
+ * Configuration step type.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type type = 1;
+ *
+ *
+ * @param value The enum numeric value on the wire for type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTypeValue(int value) {
+
+ type_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Configuration step type.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type type = 1;
+ *
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type
+ getType() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type
+ result =
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type.valueOf(type_);
+ return result == null
+ ? com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Configuration step type.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type type = 1;
+ *
+ *
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type
+ value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ type_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Configuration step type.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Type type = 1;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+
+ type_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object errorMessage_ = "";
+ /**
+ *
+ *
+ *
+ * An error message recorded during the execution of this step.
+ * Only populated if errors were encountered during this step execution.
+ *
+ *
+ * string error_message = 2;
+ *
+ * @return The errorMessage.
+ */
+ public java.lang.String getErrorMessage() {
+ java.lang.Object ref = errorMessage_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ errorMessage_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * An error message recorded during the execution of this step.
+ * Only populated if errors were encountered during this step execution.
+ *
+ *
+ * string error_message = 2;
+ *
+ * @return The bytes for errorMessage.
+ */
+ public com.google.protobuf.ByteString getErrorMessageBytes() {
+ java.lang.Object ref = errorMessage_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ errorMessage_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * An error message recorded during the execution of this step.
+ * Only populated if errors were encountered during this step execution.
+ *
+ *
+ * string error_message = 2;
+ *
+ * @param value The errorMessage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setErrorMessage(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ errorMessage_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * An error message recorded during the execution of this step.
+ * Only populated if errors were encountered during this step execution.
+ *
+ *
+ * string error_message = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearErrorMessage() {
+
+ errorMessage_ = getDefaultInstance().getErrorMessage();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * An error message recorded during the execution of this step.
+ * Only populated if errors were encountered during this step execution.
+ *
+ *
+ * string error_message = 2;
+ *
+ * @param value The bytes for errorMessage to set.
+ * @return This builder for chaining.
+ */
+ public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ errorMessage_ = value;
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep)
+ private static final com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport
+ .OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep();
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output from enforcement phase output file (if run).
+ * Output size is limited to 100K bytes.
+ *
+ *
+ * bytes enforcement_output = 2;
+ *
+ * @return The enforcementOutput.
+ */
+ com.google.protobuf.ByteString getEnforcementOutput();
+ }
+ /**
+ *
+ *
+ *
+ * ExecResource specific output.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput}
+ */
+ public static final class ExecResourceOutput extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput)
+ ExecResourceOutputOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ExecResourceOutput.newBuilder() to construct.
+ private ExecResourceOutput(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private ExecResourceOutput() {
+ enforcementOutput_ = com.google.protobuf.ByteString.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new ExecResourceOutput();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private ExecResourceOutput(
+ 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 18:
+ {
+ enforcementOutput_ = input.readBytes();
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.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.osconfig.v1alpha.OSPolicyAssignmentReportsProto
+ .internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReportsProto
+ .internal_static_google_cloud_osconfig_v1alpha_OSPolicyAssignmentReport_OSPolicyCompliance_OSPolicyResourceCompliance_ExecResourceOutput_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput.class,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput.Builder.class);
+ }
+
+ public static final int ENFORCEMENT_OUTPUT_FIELD_NUMBER = 2;
+ private com.google.protobuf.ByteString enforcementOutput_;
+ /**
+ *
+ *
+ *
+ * Output from enforcement phase output file (if run).
+ * Output size is limited to 100K bytes.
+ *
+ *
+ * bytes enforcement_output = 2;
+ *
+ * @return The enforcementOutput.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEnforcementOutput() {
+ return enforcementOutput_;
+ }
+
+ 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 (!enforcementOutput_.isEmpty()) {
+ output.writeBytes(2, enforcementOutput_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!enforcementOutput_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, enforcementOutput_);
+ }
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ other =
+ (com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput)
+ obj;
+
+ if (!getEnforcementOutput().equals(other.getEnforcementOutput())) 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) + ENFORCEMENT_OUTPUT_FIELD_NUMBER;
+ hash = (53 * hash) + getEnforcementOutput().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ 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;
+ }
+ /**
+ *
+ *
+ *
+ * ExecResource specific output.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Output from enforcement phase output file (if run).
+ * Output size is limited to 100K bytes.
+ *
+ *
+ * bytes enforcement_output = 2;
+ *
+ * @return The enforcementOutput.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEnforcementOutput() {
+ return enforcementOutput_;
+ }
+ /**
+ *
+ *
+ *
+ * Output from enforcement phase output file (if run).
+ * Output size is limited to 100K bytes.
+ *
+ *
+ * bytes enforcement_output = 2;
+ *
+ * @param value The enforcementOutput to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnforcementOutput(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ enforcementOutput_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output from enforcement phase output file (if run).
+ * Output size is limited to 100K bytes.
+ *
+ *
+ * bytes enforcement_output = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEnforcementOutput() {
+
+ enforcementOutput_ = getDefaultInstance().getEnforcementOutput();
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput)
+ private static final com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport
+ .OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput();
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * The ID of the OS policy resource.
+ *
+ *
+ * string os_policy_resource_id = 1;
+ *
+ * @return The osPolicyResourceId.
+ */
+ @java.lang.Override
+ public java.lang.String getOsPolicyResourceId() {
+ java.lang.Object ref = osPolicyResourceId_;
+ 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();
+ osPolicyResourceId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The ID of the OS policy resource.
+ *
+ *
+ * string os_policy_resource_id = 1;
+ *
+ * @return The bytes for osPolicyResourceId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOsPolicyResourceIdBytes() {
+ java.lang.Object ref = osPolicyResourceId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ osPolicyResourceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONFIG_STEPS_FIELD_NUMBER = 2;
+ private java.util.List<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep>
+ configSteps_;
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep>
+ getConfigStepsList() {
+ return configSteps_;
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStepOrBuilder>
+ getConfigStepsOrBuilderList() {
+ return configSteps_;
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ @java.lang.Override
+ public int getConfigStepsCount() {
+ return configSteps_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ getConfigSteps(int index) {
+ return configSteps_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStepOrBuilder
+ getConfigStepsOrBuilder(int index) {
+ return configSteps_.get(index);
+ }
+
+ public static final int COMPLIANCE_STATE_FIELD_NUMBER = 3;
+ private int complianceState_;
+ /**
+ *
+ *
+ *
+ * The compliance state of the resource.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState compliance_state = 3;
+ *
+ *
+ * @return The enum numeric value on the wire for complianceState.
+ */
+ @java.lang.Override
+ public int getComplianceStateValue() {
+ return complianceState_;
+ }
+ /**
+ *
+ *
+ *
+ * The compliance state of the resource.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState compliance_state = 3;
+ *
+ *
+ * @return The complianceState.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ComplianceState
+ getComplianceState() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ComplianceState
+ result =
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ComplianceState.valueOf(complianceState_);
+ return result == null
+ ? com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ComplianceState.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int COMPLIANCE_STATE_REASON_FIELD_NUMBER = 4;
+ private volatile java.lang.Object complianceStateReason_;
+ /**
+ *
+ *
+ *
+ * A reason for the resource to be in the given compliance state.
+ * This field is always populated when `compliance_state` is `UNKNOWN`.
+ * The following values are supported when `compliance_state == UNKNOWN`
+ * * `execution-errors`: Errors were encountered by the agent while
+ * executing the resource and the compliance state couldn't be
+ * determined.
+ * * `execution-skipped-by-agent`: Resource execution was skipped by the
+ * agent because errors were encountered while executing prior resources
+ * in the OS policy.
+ * * `os-policy-execution-attempt-failed`: The execution of the OS policy
+ * containing this resource failed and the compliance state couldn't be
+ * determined.
+ *
+ *
+ * string compliance_state_reason = 4;
+ *
+ * @return The complianceStateReason.
+ */
+ @java.lang.Override
+ public java.lang.String getComplianceStateReason() {
+ java.lang.Object ref = complianceStateReason_;
+ 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();
+ complianceStateReason_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A reason for the resource to be in the given compliance state.
+ * This field is always populated when `compliance_state` is `UNKNOWN`.
+ * The following values are supported when `compliance_state == UNKNOWN`
+ * * `execution-errors`: Errors were encountered by the agent while
+ * executing the resource and the compliance state couldn't be
+ * determined.
+ * * `execution-skipped-by-agent`: Resource execution was skipped by the
+ * agent because errors were encountered while executing prior resources
+ * in the OS policy.
+ * * `os-policy-execution-attempt-failed`: The execution of the OS policy
+ * containing this resource failed and the compliance state couldn't be
+ * determined.
+ *
+ *
+ * string compliance_state_reason = 4;
+ *
+ * @return The bytes for complianceStateReason.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getComplianceStateReasonBytes() {
+ java.lang.Object ref = complianceStateReason_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ complianceStateReason_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EXEC_RESOURCE_OUTPUT_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ *
+ * ExecResource specific output.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;
+ *
+ *
+ * @return Whether the execResourceOutput field is set.
+ */
+ @java.lang.Override
+ public boolean hasExecResourceOutput() {
+ return outputCase_ == 5;
+ }
+ /**
+ *
+ *
+ *
+ * ExecResource specific output.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;
+ *
+ *
+ * @return The execResourceOutput.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ getExecResourceOutput() {
+ if (outputCase_ == 5) {
+ return (com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput)
+ output_;
+ }
+ return com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * ExecResource specific output.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutputOrBuilder
+ getExecResourceOutputOrBuilder() {
+ if (outputCase_ == 5) {
+ return (com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput)
+ output_;
+ }
+ return com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput.getDefaultInstance();
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(osPolicyResourceId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, osPolicyResourceId_);
+ }
+ for (int i = 0; i < configSteps_.size(); i++) {
+ output.writeMessage(2, configSteps_.get(i));
+ }
+ if (complianceState_
+ != com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ComplianceState.UNKNOWN
+ .getNumber()) {
+ output.writeEnum(3, complianceState_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(complianceStateReason_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, complianceStateReason_);
+ }
+ if (outputCase_ == 5) {
+ output.writeMessage(
+ 5,
+ (com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput)
+ output_);
+ }
+ 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(osPolicyResourceId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, osPolicyResourceId_);
+ }
+ for (int i = 0; i < configSteps_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, configSteps_.get(i));
+ }
+ if (complianceState_
+ != com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ComplianceState.UNKNOWN
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, complianceState_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(complianceStateReason_)) {
+ size +=
+ com.google.protobuf.GeneratedMessageV3.computeStringSize(4, complianceStateReason_);
+ }
+ if (outputCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5,
+ (com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput)
+ output_);
+ }
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance
+ other =
+ (com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance)
+ obj;
+
+ if (!getOsPolicyResourceId().equals(other.getOsPolicyResourceId())) return false;
+ if (!getConfigStepsList().equals(other.getConfigStepsList())) return false;
+ if (complianceState_ != other.complianceState_) return false;
+ if (!getComplianceStateReason().equals(other.getComplianceStateReason())) return false;
+ if (!getOutputCase().equals(other.getOutputCase())) return false;
+ switch (outputCase_) {
+ case 5:
+ if (!getExecResourceOutput().equals(other.getExecResourceOutput())) return false;
+ break;
+ case 0:
+ default:
+ }
+ 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) + OS_POLICY_RESOURCE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getOsPolicyResourceId().hashCode();
+ if (getConfigStepsCount() > 0) {
+ hash = (37 * hash) + CONFIG_STEPS_FIELD_NUMBER;
+ hash = (53 * hash) + getConfigStepsList().hashCode();
+ }
+ hash = (37 * hash) + COMPLIANCE_STATE_FIELD_NUMBER;
+ hash = (53 * hash) + complianceState_;
+ hash = (37 * hash) + COMPLIANCE_STATE_REASON_FIELD_NUMBER;
+ hash = (53 * hash) + getComplianceStateReason().hashCode();
+ switch (outputCase_) {
+ case 5:
+ hash = (37 * hash) + EXEC_RESOURCE_OUTPUT_FIELD_NUMBER;
+ hash = (53 * hash) + getExecResourceOutput().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance
+ 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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance
+ 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;
+ }
+ /**
+ *
+ *
+ *
+ * Compliance data for an OS policy resource.
+ *
+ *
+ * Protobuf type {@code
+ * google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance}
+ */
+ public static final class Builder
+ extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The ID of the OS policy resource.
+ *
+ *
+ * string os_policy_resource_id = 1;
+ *
+ * @return The osPolicyResourceId.
+ */
+ public java.lang.String getOsPolicyResourceId() {
+ java.lang.Object ref = osPolicyResourceId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ osPolicyResourceId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The ID of the OS policy resource.
+ *
+ *
+ * string os_policy_resource_id = 1;
+ *
+ * @return The bytes for osPolicyResourceId.
+ */
+ public com.google.protobuf.ByteString getOsPolicyResourceIdBytes() {
+ java.lang.Object ref = osPolicyResourceId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ osPolicyResourceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The ID of the OS policy resource.
+ *
+ *
+ * string os_policy_resource_id = 1;
+ *
+ * @param value The osPolicyResourceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOsPolicyResourceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ osPolicyResourceId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The ID of the OS policy resource.
+ *
+ *
+ * string os_policy_resource_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOsPolicyResourceId() {
+
+ osPolicyResourceId_ = getDefaultInstance().getOsPolicyResourceId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The ID of the OS policy resource.
+ *
+ *
+ * string os_policy_resource_id = 1;
+ *
+ * @param value The bytes for osPolicyResourceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOsPolicyResourceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ osPolicyResourceId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep>
+ configSteps_ = java.util.Collections.emptyList();
+
+ private void ensureConfigStepsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ configSteps_ =
+ new java.util.ArrayList<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep>(configSteps_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStepOrBuilder>
+ configStepsBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep>
+ getConfigStepsList() {
+ if (configStepsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(configSteps_);
+ } else {
+ return configStepsBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ public int getConfigStepsCount() {
+ if (configStepsBuilder_ == null) {
+ return configSteps_.size();
+ } else {
+ return configStepsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ getConfigSteps(int index) {
+ if (configStepsBuilder_ == null) {
+ return configSteps_.get(index);
+ } else {
+ return configStepsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ public Builder setConfigSteps(
+ int index,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ value) {
+ if (configStepsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureConfigStepsIsMutable();
+ configSteps_.set(index, value);
+ onChanged();
+ } else {
+ configStepsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ public Builder setConfigSteps(
+ int index,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder
+ builderForValue) {
+ if (configStepsBuilder_ == null) {
+ ensureConfigStepsIsMutable();
+ configSteps_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ configStepsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ public Builder addConfigSteps(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ value) {
+ if (configStepsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureConfigStepsIsMutable();
+ configSteps_.add(value);
+ onChanged();
+ } else {
+ configStepsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ public Builder addConfigSteps(
+ int index,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep
+ value) {
+ if (configStepsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureConfigStepsIsMutable();
+ configSteps_.add(index, value);
+ onChanged();
+ } else {
+ configStepsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ public Builder addConfigSteps(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder
+ builderForValue) {
+ if (configStepsBuilder_ == null) {
+ ensureConfigStepsIsMutable();
+ configSteps_.add(builderForValue.build());
+ onChanged();
+ } else {
+ configStepsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ public Builder addConfigSteps(
+ int index,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder
+ builderForValue) {
+ if (configStepsBuilder_ == null) {
+ ensureConfigStepsIsMutable();
+ configSteps_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ configStepsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ public Builder addAllConfigSteps(
+ java.lang.Iterable<
+ ? extends
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport
+ .OSPolicyCompliance.OSPolicyResourceCompliance
+ .OSPolicyResourceConfigStep>
+ values) {
+ if (configStepsBuilder_ == null) {
+ ensureConfigStepsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, configSteps_);
+ onChanged();
+ } else {
+ configStepsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ public Builder clearConfigSteps() {
+ if (configStepsBuilder_ == null) {
+ configSteps_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ configStepsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ public Builder removeConfigSteps(int index) {
+ if (configStepsBuilder_ == null) {
+ ensureConfigStepsIsMutable();
+ configSteps_.remove(index);
+ onChanged();
+ } else {
+ configStepsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder
+ getConfigStepsBuilder(int index) {
+ return getConfigStepsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStepOrBuilder
+ getConfigStepsOrBuilder(int index) {
+ if (configStepsBuilder_ == null) {
+ return configSteps_.get(index);
+ } else {
+ return configStepsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ public java.util.List<
+ ? extends
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStepOrBuilder>
+ getConfigStepsOrBuilderList() {
+ if (configStepsBuilder_ != null) {
+ return configStepsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(configSteps_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder
+ addConfigStepsBuilder() {
+ return getConfigStepsFieldBuilder()
+ .addBuilder(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder
+ addConfigStepsBuilder(int index) {
+ return getConfigStepsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Ordered list of configuration completed by the agent for the OS policy
+ * resource.
+ *
+ *
+ *
+ * repeated .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.OSPolicyResourceConfigStep config_steps = 2;
+ *
+ */
+ public java.util.List<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder>
+ getConfigStepsBuilderList() {
+ return getConfigStepsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStepOrBuilder>
+ getConfigStepsFieldBuilder() {
+ if (configStepsBuilder_ == null) {
+ configStepsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStep.Builder,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.OSPolicyResourceConfigStepOrBuilder>(
+ configSteps_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ configSteps_ = null;
+ }
+ return configStepsBuilder_;
+ }
+
+ private int complianceState_ = 0;
+ /**
+ *
+ *
+ *
+ * The compliance state of the resource.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState compliance_state = 3;
+ *
+ *
+ * @return The enum numeric value on the wire for complianceState.
+ */
+ @java.lang.Override
+ public int getComplianceStateValue() {
+ return complianceState_;
+ }
+ /**
+ *
+ *
+ *
+ * The compliance state of the resource.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState compliance_state = 3;
+ *
+ *
+ * @param value The enum numeric value on the wire for complianceState to set.
+ * @return This builder for chaining.
+ */
+ public Builder setComplianceStateValue(int value) {
+
+ complianceState_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The compliance state of the resource.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState compliance_state = 3;
+ *
+ *
+ * @return The complianceState.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ComplianceState
+ getComplianceState() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ComplianceState
+ result =
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ComplianceState.valueOf(complianceState_);
+ return result == null
+ ? com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ComplianceState.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * The compliance state of the resource.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState compliance_state = 3;
+ *
+ *
+ * @param value The complianceState to set.
+ * @return This builder for chaining.
+ */
+ public Builder setComplianceState(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ComplianceState
+ value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ complianceState_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The compliance state of the resource.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ComplianceState compliance_state = 3;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearComplianceState() {
+
+ complianceState_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object complianceStateReason_ = "";
+ /**
+ *
+ *
+ *
+ * A reason for the resource to be in the given compliance state.
+ * This field is always populated when `compliance_state` is `UNKNOWN`.
+ * The following values are supported when `compliance_state == UNKNOWN`
+ * * `execution-errors`: Errors were encountered by the agent while
+ * executing the resource and the compliance state couldn't be
+ * determined.
+ * * `execution-skipped-by-agent`: Resource execution was skipped by the
+ * agent because errors were encountered while executing prior resources
+ * in the OS policy.
+ * * `os-policy-execution-attempt-failed`: The execution of the OS policy
+ * containing this resource failed and the compliance state couldn't be
+ * determined.
+ *
+ *
+ * string compliance_state_reason = 4;
+ *
+ * @return The complianceStateReason.
+ */
+ public java.lang.String getComplianceStateReason() {
+ java.lang.Object ref = complianceStateReason_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ complianceStateReason_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A reason for the resource to be in the given compliance state.
+ * This field is always populated when `compliance_state` is `UNKNOWN`.
+ * The following values are supported when `compliance_state == UNKNOWN`
+ * * `execution-errors`: Errors were encountered by the agent while
+ * executing the resource and the compliance state couldn't be
+ * determined.
+ * * `execution-skipped-by-agent`: Resource execution was skipped by the
+ * agent because errors were encountered while executing prior resources
+ * in the OS policy.
+ * * `os-policy-execution-attempt-failed`: The execution of the OS policy
+ * containing this resource failed and the compliance state couldn't be
+ * determined.
+ *
+ *
+ * string compliance_state_reason = 4;
+ *
+ * @return The bytes for complianceStateReason.
+ */
+ public com.google.protobuf.ByteString getComplianceStateReasonBytes() {
+ java.lang.Object ref = complianceStateReason_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ complianceStateReason_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * A reason for the resource to be in the given compliance state.
+ * This field is always populated when `compliance_state` is `UNKNOWN`.
+ * The following values are supported when `compliance_state == UNKNOWN`
+ * * `execution-errors`: Errors were encountered by the agent while
+ * executing the resource and the compliance state couldn't be
+ * determined.
+ * * `execution-skipped-by-agent`: Resource execution was skipped by the
+ * agent because errors were encountered while executing prior resources
+ * in the OS policy.
+ * * `os-policy-execution-attempt-failed`: The execution of the OS policy
+ * containing this resource failed and the compliance state couldn't be
+ * determined.
+ *
+ *
+ * string compliance_state_reason = 4;
+ *
+ * @param value The complianceStateReason to set.
+ * @return This builder for chaining.
+ */
+ public Builder setComplianceStateReason(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ complianceStateReason_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A reason for the resource to be in the given compliance state.
+ * This field is always populated when `compliance_state` is `UNKNOWN`.
+ * The following values are supported when `compliance_state == UNKNOWN`
+ * * `execution-errors`: Errors were encountered by the agent while
+ * executing the resource and the compliance state couldn't be
+ * determined.
+ * * `execution-skipped-by-agent`: Resource execution was skipped by the
+ * agent because errors were encountered while executing prior resources
+ * in the OS policy.
+ * * `os-policy-execution-attempt-failed`: The execution of the OS policy
+ * containing this resource failed and the compliance state couldn't be
+ * determined.
+ *
+ *
+ * string compliance_state_reason = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearComplianceStateReason() {
+
+ complianceStateReason_ = getDefaultInstance().getComplianceStateReason();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * A reason for the resource to be in the given compliance state.
+ * This field is always populated when `compliance_state` is `UNKNOWN`.
+ * The following values are supported when `compliance_state == UNKNOWN`
+ * * `execution-errors`: Errors were encountered by the agent while
+ * executing the resource and the compliance state couldn't be
+ * determined.
+ * * `execution-skipped-by-agent`: Resource execution was skipped by the
+ * agent because errors were encountered while executing prior resources
+ * in the OS policy.
+ * * `os-policy-execution-attempt-failed`: The execution of the OS policy
+ * containing this resource failed and the compliance state couldn't be
+ * determined.
+ *
+ *
+ * string compliance_state_reason = 4;
+ *
+ * @param value The bytes for complianceStateReason to set.
+ * @return This builder for chaining.
+ */
+ public Builder setComplianceStateReasonBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ complianceStateReason_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput.Builder,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutputOrBuilder>
+ execResourceOutputBuilder_;
+ /**
+ *
+ *
+ *
+ * ExecResource specific output.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;
+ *
+ *
+ * @return Whether the execResourceOutput field is set.
+ */
+ @java.lang.Override
+ public boolean hasExecResourceOutput() {
+ return outputCase_ == 5;
+ }
+ /**
+ *
+ *
+ *
+ * ExecResource specific output.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;
+ *
+ *
+ * @return The execResourceOutput.
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ getExecResourceOutput() {
+ if (execResourceOutputBuilder_ == null) {
+ if (outputCase_ == 5) {
+ return (com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput)
+ output_;
+ }
+ return com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput.getDefaultInstance();
+ } else {
+ if (outputCase_ == 5) {
+ return execResourceOutputBuilder_.getMessage();
+ }
+ return com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * ExecResource specific output.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;
+ *
+ */
+ public Builder setExecResourceOutput(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ value) {
+ if (execResourceOutputBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ output_ = value;
+ onChanged();
+ } else {
+ execResourceOutputBuilder_.setMessage(value);
+ }
+ outputCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * ExecResource specific output.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;
+ *
+ */
+ public Builder setExecResourceOutput(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput.Builder
+ builderForValue) {
+ if (execResourceOutputBuilder_ == null) {
+ output_ = builderForValue.build();
+ onChanged();
+ } else {
+ execResourceOutputBuilder_.setMessage(builderForValue.build());
+ }
+ outputCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * ExecResource specific output.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;
+ *
+ */
+ public Builder mergeExecResourceOutput(
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput
+ value) {
+ if (execResourceOutputBuilder_ == null) {
+ if (outputCase_ == 5
+ && output_
+ != com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput.getDefaultInstance()) {
+ output_ =
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput.newBuilder(
+ (com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport
+ .OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput)
+ output_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ output_ = value;
+ }
+ onChanged();
+ } else {
+ if (outputCase_ == 5) {
+ execResourceOutputBuilder_.mergeFrom(value);
+ }
+ execResourceOutputBuilder_.setMessage(value);
+ }
+ outputCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * ExecResource specific output.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;
+ *
+ */
+ public Builder clearExecResourceOutput() {
+ if (execResourceOutputBuilder_ == null) {
+ if (outputCase_ == 5) {
+ outputCase_ = 0;
+ output_ = null;
+ onChanged();
+ }
+ } else {
+ if (outputCase_ == 5) {
+ outputCase_ = 0;
+ output_ = null;
+ }
+ execResourceOutputBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * ExecResource specific output.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;
+ *
+ */
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput.Builder
+ getExecResourceOutputBuilder() {
+ return getExecResourceOutputFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * ExecResource specific output.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutputOrBuilder
+ getExecResourceOutputOrBuilder() {
+ if ((outputCase_ == 5) && (execResourceOutputBuilder_ != null)) {
+ return execResourceOutputBuilder_.getMessageOrBuilder();
+ } else {
+ if (outputCase_ == 5) {
+ return (com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput)
+ output_;
+ }
+ return com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * ExecResource specific output.
+ *
+ *
+ *
+ * .google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance.ExecResourceOutput exec_resource_output = 5;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput.Builder,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutputOrBuilder>
+ getExecResourceOutputFieldBuilder() {
+ if (execResourceOutputBuilder_ == null) {
+ if (!(outputCase_ == 5)) {
+ output_ =
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput.getDefaultInstance();
+ }
+ execResourceOutputBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput.Builder,
+ com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutputOrBuilder>(
+ (com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance.ExecResourceOutput)
+ output_,
+ getParentForChildren(),
+ isClean());
+ output_ = null;
+ }
+ outputCase_ = 5;
+ onChanged();
+ ;
+ return execResourceOutputBuilder_;
+ }
+
+ @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.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance.OSPolicyResourceCompliance)
+ private static final com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport
+ .OSPolicyCompliance.OSPolicyResourceCompliance
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance();
+ }
+
+ public static com.google.cloud.osconfig.v1alpha.OSPolicyAssignmentReport.OSPolicyCompliance
+ .OSPolicyResourceCompliance
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser