All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.osconfig.v1alpha.stub.GrpcOsConfigZonalServiceStub Maven / Gradle / Ivy

Go to download

provides OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances.

The newest version!
/*
 * Copyright 2024 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.stub;

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;

import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.core.BackgroundResourceAggregation;
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.RequestParamsBuilder;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.osconfig.v1alpha.CreateOSPolicyAssignmentRequest;
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;
import com.google.cloud.osconfig.v1alpha.Inventory;
import com.google.cloud.osconfig.v1alpha.ListInstanceOSPoliciesCompliancesRequest;
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;
import com.google.cloud.osconfig.v1alpha.ListOSPolicyAssignmentsResponse;
import com.google.cloud.osconfig.v1alpha.ListVulnerabilityReportsRequest;
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.longrunning.Operation;
import com.google.longrunning.stub.GrpcOperationsStub;
import com.google.protobuf.Empty;
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
 * gRPC stub implementation for the OsConfigZonalService service API.
 *
 * 

This class is for advanced usage and reflects the underlying API directly. */ @BetaApi @Generated("by gapic-generator-java") public class GrpcOsConfigZonalServiceStub extends OsConfigZonalServiceStub { private static final MethodDescriptor createOSPolicyAssignmentMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.osconfig.v1alpha.OsConfigZonalService/CreateOSPolicyAssignment") .setRequestMarshaller( ProtoUtils.marshaller(CreateOSPolicyAssignmentRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor updateOSPolicyAssignmentMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.osconfig.v1alpha.OsConfigZonalService/UpdateOSPolicyAssignment") .setRequestMarshaller( ProtoUtils.marshaller(UpdateOSPolicyAssignmentRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor getOSPolicyAssignmentMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.osconfig.v1alpha.OsConfigZonalService/GetOSPolicyAssignment") .setRequestMarshaller( ProtoUtils.marshaller(GetOSPolicyAssignmentRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(OSPolicyAssignment.getDefaultInstance())) .build(); private static final MethodDescriptor< ListOSPolicyAssignmentsRequest, ListOSPolicyAssignmentsResponse> listOSPolicyAssignmentsMethodDescriptor = MethodDescriptor .newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.osconfig.v1alpha.OsConfigZonalService/ListOSPolicyAssignments") .setRequestMarshaller( ProtoUtils.marshaller(ListOSPolicyAssignmentsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListOSPolicyAssignmentsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor< ListOSPolicyAssignmentRevisionsRequest, ListOSPolicyAssignmentRevisionsResponse> listOSPolicyAssignmentRevisionsMethodDescriptor = MethodDescriptor . newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.osconfig.v1alpha.OsConfigZonalService/ListOSPolicyAssignmentRevisions") .setRequestMarshaller( ProtoUtils.marshaller( ListOSPolicyAssignmentRevisionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller( ListOSPolicyAssignmentRevisionsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor deleteOSPolicyAssignmentMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.osconfig.v1alpha.OsConfigZonalService/DeleteOSPolicyAssignment") .setRequestMarshaller( ProtoUtils.marshaller(DeleteOSPolicyAssignmentRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor< GetInstanceOSPoliciesComplianceRequest, InstanceOSPoliciesCompliance> getInstanceOSPoliciesComplianceMethodDescriptor = MethodDescriptor .newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.osconfig.v1alpha.OsConfigZonalService/GetInstanceOSPoliciesCompliance") .setRequestMarshaller( ProtoUtils.marshaller( GetInstanceOSPoliciesComplianceRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(InstanceOSPoliciesCompliance.getDefaultInstance())) .build(); private static final MethodDescriptor< ListInstanceOSPoliciesCompliancesRequest, ListInstanceOSPoliciesCompliancesResponse> listInstanceOSPoliciesCompliancesMethodDescriptor = MethodDescriptor . newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.osconfig.v1alpha.OsConfigZonalService/ListInstanceOSPoliciesCompliances") .setRequestMarshaller( ProtoUtils.marshaller( ListInstanceOSPoliciesCompliancesRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller( ListInstanceOSPoliciesCompliancesResponse.getDefaultInstance())) .build(); private static final MethodDescriptor< GetOSPolicyAssignmentReportRequest, OSPolicyAssignmentReport> getOSPolicyAssignmentReportMethodDescriptor = MethodDescriptor .newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.osconfig.v1alpha.OsConfigZonalService/GetOSPolicyAssignmentReport") .setRequestMarshaller( ProtoUtils.marshaller(GetOSPolicyAssignmentReportRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(OSPolicyAssignmentReport.getDefaultInstance())) .build(); private static final MethodDescriptor< ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse> listOSPolicyAssignmentReportsMethodDescriptor = MethodDescriptor . newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.osconfig.v1alpha.OsConfigZonalService/ListOSPolicyAssignmentReports") .setRequestMarshaller( ProtoUtils.marshaller(ListOSPolicyAssignmentReportsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListOSPolicyAssignmentReportsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getInventoryMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.osconfig.v1alpha.OsConfigZonalService/GetInventory") .setRequestMarshaller(ProtoUtils.marshaller(GetInventoryRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Inventory.getDefaultInstance())) .build(); private static final MethodDescriptor listInventoriesMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.osconfig.v1alpha.OsConfigZonalService/ListInventories") .setRequestMarshaller( ProtoUtils.marshaller(ListInventoriesRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListInventoriesResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getVulnerabilityReportMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.osconfig.v1alpha.OsConfigZonalService/GetVulnerabilityReport") .setRequestMarshaller( ProtoUtils.marshaller(GetVulnerabilityReportRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(VulnerabilityReport.getDefaultInstance())) .build(); private static final MethodDescriptor< ListVulnerabilityReportsRequest, ListVulnerabilityReportsResponse> listVulnerabilityReportsMethodDescriptor = MethodDescriptor .newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.osconfig.v1alpha.OsConfigZonalService/ListVulnerabilityReports") .setRequestMarshaller( ProtoUtils.marshaller(ListVulnerabilityReportsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListVulnerabilityReportsResponse.getDefaultInstance())) .build(); private final UnaryCallable createOSPolicyAssignmentCallable; private final OperationCallable< CreateOSPolicyAssignmentRequest, OSPolicyAssignment, OSPolicyAssignmentOperationMetadata> createOSPolicyAssignmentOperationCallable; private final UnaryCallable updateOSPolicyAssignmentCallable; private final OperationCallable< UpdateOSPolicyAssignmentRequest, OSPolicyAssignment, OSPolicyAssignmentOperationMetadata> updateOSPolicyAssignmentOperationCallable; private final UnaryCallable getOSPolicyAssignmentCallable; private final UnaryCallable listOSPolicyAssignmentsCallable; private final UnaryCallable listOSPolicyAssignmentsPagedCallable; private final UnaryCallable< ListOSPolicyAssignmentRevisionsRequest, ListOSPolicyAssignmentRevisionsResponse> listOSPolicyAssignmentRevisionsCallable; private final UnaryCallable< ListOSPolicyAssignmentRevisionsRequest, ListOSPolicyAssignmentRevisionsPagedResponse> listOSPolicyAssignmentRevisionsPagedCallable; private final UnaryCallable deleteOSPolicyAssignmentCallable; private final OperationCallable< DeleteOSPolicyAssignmentRequest, Empty, OSPolicyAssignmentOperationMetadata> deleteOSPolicyAssignmentOperationCallable; private final UnaryCallable getInstanceOSPoliciesComplianceCallable; private final UnaryCallable< ListInstanceOSPoliciesCompliancesRequest, ListInstanceOSPoliciesCompliancesResponse> listInstanceOSPoliciesCompliancesCallable; private final UnaryCallable< ListInstanceOSPoliciesCompliancesRequest, ListInstanceOSPoliciesCompliancesPagedResponse> listInstanceOSPoliciesCompliancesPagedCallable; private final UnaryCallable getOSPolicyAssignmentReportCallable; private final UnaryCallable< ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsResponse> listOSPolicyAssignmentReportsCallable; private final UnaryCallable< ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsPagedResponse> listOSPolicyAssignmentReportsPagedCallable; private final UnaryCallable getInventoryCallable; private final UnaryCallable listInventoriesCallable; private final UnaryCallable listInventoriesPagedCallable; private final UnaryCallable getVulnerabilityReportCallable; private final UnaryCallable listVulnerabilityReportsCallable; private final UnaryCallable< ListVulnerabilityReportsRequest, ListVulnerabilityReportsPagedResponse> listVulnerabilityReportsPagedCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcOsConfigZonalServiceStub create(OsConfigZonalServiceStubSettings settings) throws IOException { return new GrpcOsConfigZonalServiceStub(settings, ClientContext.create(settings)); } public static final GrpcOsConfigZonalServiceStub create(ClientContext clientContext) throws IOException { return new GrpcOsConfigZonalServiceStub( OsConfigZonalServiceStubSettings.newBuilder().build(), clientContext); } public static final GrpcOsConfigZonalServiceStub create( ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { return new GrpcOsConfigZonalServiceStub( OsConfigZonalServiceStubSettings.newBuilder().build(), clientContext, callableFactory); } /** * Constructs an instance of GrpcOsConfigZonalServiceStub, using the given settings. This is * protected so that it is easy to make a subclass, but otherwise, the static factory methods * should be preferred. */ protected GrpcOsConfigZonalServiceStub( OsConfigZonalServiceStubSettings settings, ClientContext clientContext) throws IOException { this(settings, clientContext, new GrpcOsConfigZonalServiceCallableFactory()); } /** * Constructs an instance of GrpcOsConfigZonalServiceStub, using the given settings. This is * protected so that it is easy to make a subclass, but otherwise, the static factory methods * should be preferred. */ protected GrpcOsConfigZonalServiceStub( OsConfigZonalServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings createOSPolicyAssignmentTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createOSPolicyAssignmentMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateOSPolicyAssignmentTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateOSPolicyAssignmentMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "os_policy_assignment.name", String.valueOf(request.getOsPolicyAssignment().getName())); return builder.build(); }) .build(); GrpcCallSettings getOSPolicyAssignmentTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getOSPolicyAssignmentMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listOSPolicyAssignmentsTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(listOSPolicyAssignmentsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings< ListOSPolicyAssignmentRevisionsRequest, ListOSPolicyAssignmentRevisionsResponse> listOSPolicyAssignmentRevisionsTransportSettings = GrpcCallSettings . newBuilder() .setMethodDescriptor(listOSPolicyAssignmentRevisionsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings deleteOSPolicyAssignmentTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteOSPolicyAssignmentMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings getInstanceOSPoliciesComplianceTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(getInstanceOSPoliciesComplianceMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings< ListInstanceOSPoliciesCompliancesRequest, ListInstanceOSPoliciesCompliancesResponse> listInstanceOSPoliciesCompliancesTransportSettings = GrpcCallSettings . newBuilder() .setMethodDescriptor(listInstanceOSPoliciesCompliancesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getOSPolicyAssignmentReportTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(getOSPolicyAssignmentReportMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listOSPolicyAssignmentReportsTransportSettings = GrpcCallSettings . newBuilder() .setMethodDescriptor(listOSPolicyAssignmentReportsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getInventoryTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getInventoryMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listInventoriesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listInventoriesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getVulnerabilityReportTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getVulnerabilityReportMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listVulnerabilityReportsTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(listVulnerabilityReportsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); this.createOSPolicyAssignmentCallable = callableFactory.createUnaryCallable( createOSPolicyAssignmentTransportSettings, settings.createOSPolicyAssignmentSettings(), clientContext); this.createOSPolicyAssignmentOperationCallable = callableFactory.createOperationCallable( createOSPolicyAssignmentTransportSettings, settings.createOSPolicyAssignmentOperationSettings(), clientContext, operationsStub); this.updateOSPolicyAssignmentCallable = callableFactory.createUnaryCallable( updateOSPolicyAssignmentTransportSettings, settings.updateOSPolicyAssignmentSettings(), clientContext); this.updateOSPolicyAssignmentOperationCallable = callableFactory.createOperationCallable( updateOSPolicyAssignmentTransportSettings, settings.updateOSPolicyAssignmentOperationSettings(), clientContext, operationsStub); this.getOSPolicyAssignmentCallable = callableFactory.createUnaryCallable( getOSPolicyAssignmentTransportSettings, settings.getOSPolicyAssignmentSettings(), clientContext); this.listOSPolicyAssignmentsCallable = callableFactory.createUnaryCallable( listOSPolicyAssignmentsTransportSettings, settings.listOSPolicyAssignmentsSettings(), clientContext); this.listOSPolicyAssignmentsPagedCallable = callableFactory.createPagedCallable( listOSPolicyAssignmentsTransportSettings, settings.listOSPolicyAssignmentsSettings(), clientContext); this.listOSPolicyAssignmentRevisionsCallable = callableFactory.createUnaryCallable( listOSPolicyAssignmentRevisionsTransportSettings, settings.listOSPolicyAssignmentRevisionsSettings(), clientContext); this.listOSPolicyAssignmentRevisionsPagedCallable = callableFactory.createPagedCallable( listOSPolicyAssignmentRevisionsTransportSettings, settings.listOSPolicyAssignmentRevisionsSettings(), clientContext); this.deleteOSPolicyAssignmentCallable = callableFactory.createUnaryCallable( deleteOSPolicyAssignmentTransportSettings, settings.deleteOSPolicyAssignmentSettings(), clientContext); this.deleteOSPolicyAssignmentOperationCallable = callableFactory.createOperationCallable( deleteOSPolicyAssignmentTransportSettings, settings.deleteOSPolicyAssignmentOperationSettings(), clientContext, operationsStub); this.getInstanceOSPoliciesComplianceCallable = callableFactory.createUnaryCallable( getInstanceOSPoliciesComplianceTransportSettings, settings.getInstanceOSPoliciesComplianceSettings(), clientContext); this.listInstanceOSPoliciesCompliancesCallable = callableFactory.createUnaryCallable( listInstanceOSPoliciesCompliancesTransportSettings, settings.listInstanceOSPoliciesCompliancesSettings(), clientContext); this.listInstanceOSPoliciesCompliancesPagedCallable = callableFactory.createPagedCallable( listInstanceOSPoliciesCompliancesTransportSettings, settings.listInstanceOSPoliciesCompliancesSettings(), clientContext); this.getOSPolicyAssignmentReportCallable = callableFactory.createUnaryCallable( getOSPolicyAssignmentReportTransportSettings, settings.getOSPolicyAssignmentReportSettings(), clientContext); this.listOSPolicyAssignmentReportsCallable = callableFactory.createUnaryCallable( listOSPolicyAssignmentReportsTransportSettings, settings.listOSPolicyAssignmentReportsSettings(), clientContext); this.listOSPolicyAssignmentReportsPagedCallable = callableFactory.createPagedCallable( listOSPolicyAssignmentReportsTransportSettings, settings.listOSPolicyAssignmentReportsSettings(), clientContext); this.getInventoryCallable = callableFactory.createUnaryCallable( getInventoryTransportSettings, settings.getInventorySettings(), clientContext); this.listInventoriesCallable = callableFactory.createUnaryCallable( listInventoriesTransportSettings, settings.listInventoriesSettings(), clientContext); this.listInventoriesPagedCallable = callableFactory.createPagedCallable( listInventoriesTransportSettings, settings.listInventoriesSettings(), clientContext); this.getVulnerabilityReportCallable = callableFactory.createUnaryCallable( getVulnerabilityReportTransportSettings, settings.getVulnerabilityReportSettings(), clientContext); this.listVulnerabilityReportsCallable = callableFactory.createUnaryCallable( listVulnerabilityReportsTransportSettings, settings.listVulnerabilityReportsSettings(), clientContext); this.listVulnerabilityReportsPagedCallable = callableFactory.createPagedCallable( listVulnerabilityReportsTransportSettings, settings.listVulnerabilityReportsSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } public GrpcOperationsStub getOperationsStub() { return operationsStub; } @Override public UnaryCallable createOSPolicyAssignmentCallable() { return createOSPolicyAssignmentCallable; } @Override public OperationCallable< CreateOSPolicyAssignmentRequest, OSPolicyAssignment, OSPolicyAssignmentOperationMetadata> createOSPolicyAssignmentOperationCallable() { return createOSPolicyAssignmentOperationCallable; } @Override public UnaryCallable updateOSPolicyAssignmentCallable() { return updateOSPolicyAssignmentCallable; } @Override public OperationCallable< UpdateOSPolicyAssignmentRequest, OSPolicyAssignment, OSPolicyAssignmentOperationMetadata> updateOSPolicyAssignmentOperationCallable() { return updateOSPolicyAssignmentOperationCallable; } @Override public UnaryCallable getOSPolicyAssignmentCallable() { return getOSPolicyAssignmentCallable; } @Override public UnaryCallable listOSPolicyAssignmentsCallable() { return listOSPolicyAssignmentsCallable; } @Override public UnaryCallable listOSPolicyAssignmentsPagedCallable() { return listOSPolicyAssignmentsPagedCallable; } @Override public UnaryCallable< ListOSPolicyAssignmentRevisionsRequest, ListOSPolicyAssignmentRevisionsResponse> listOSPolicyAssignmentRevisionsCallable() { return listOSPolicyAssignmentRevisionsCallable; } @Override public UnaryCallable< ListOSPolicyAssignmentRevisionsRequest, ListOSPolicyAssignmentRevisionsPagedResponse> listOSPolicyAssignmentRevisionsPagedCallable() { return listOSPolicyAssignmentRevisionsPagedCallable; } @Override public UnaryCallable deleteOSPolicyAssignmentCallable() { return deleteOSPolicyAssignmentCallable; } @Override public OperationCallable< DeleteOSPolicyAssignmentRequest, Empty, OSPolicyAssignmentOperationMetadata> deleteOSPolicyAssignmentOperationCallable() { return deleteOSPolicyAssignmentOperationCallable; } @Override public UnaryCallable getInstanceOSPoliciesComplianceCallable() { return getInstanceOSPoliciesComplianceCallable; } @Override public UnaryCallable< ListInstanceOSPoliciesCompliancesRequest, ListInstanceOSPoliciesCompliancesResponse> listInstanceOSPoliciesCompliancesCallable() { return listInstanceOSPoliciesCompliancesCallable; } @Override public UnaryCallable< ListInstanceOSPoliciesCompliancesRequest, ListInstanceOSPoliciesCompliancesPagedResponse> listInstanceOSPoliciesCompliancesPagedCallable() { return listInstanceOSPoliciesCompliancesPagedCallable; } @Override public UnaryCallable getOSPolicyAssignmentReportCallable() { return getOSPolicyAssignmentReportCallable; } @Override public UnaryCallable listOSPolicyAssignmentReportsCallable() { return listOSPolicyAssignmentReportsCallable; } @Override public UnaryCallable< ListOSPolicyAssignmentReportsRequest, ListOSPolicyAssignmentReportsPagedResponse> listOSPolicyAssignmentReportsPagedCallable() { return listOSPolicyAssignmentReportsPagedCallable; } @Override public UnaryCallable getInventoryCallable() { return getInventoryCallable; } @Override public UnaryCallable listInventoriesCallable() { return listInventoriesCallable; } @Override public UnaryCallable listInventoriesPagedCallable() { return listInventoriesPagedCallable; } @Override public UnaryCallable getVulnerabilityReportCallable() { return getVulnerabilityReportCallable; } @Override public UnaryCallable listVulnerabilityReportsCallable() { return listVulnerabilityReportsCallable; } @Override public UnaryCallable listVulnerabilityReportsPagedCallable() { return listVulnerabilityReportsPagedCallable; } @Override public final void close() { try { backgroundResources.close(); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new IllegalStateException("Failed to close resource", e); } } @Override public void shutdown() { backgroundResources.shutdown(); } @Override public boolean isShutdown() { return backgroundResources.isShutdown(); } @Override public boolean isTerminated() { return backgroundResources.isTerminated(); } @Override public void shutdownNow() { backgroundResources.shutdownNow(); } @Override public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { return backgroundResources.awaitTermination(duration, unit); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy