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

com.google.cloud.pubsub.v1.stub.GrpcSubscriberStub Maven / Gradle / Ivy

/*
 * Copyright 2019 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.pubsub.v1.stub;

import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSnapshotsPagedResponse;
import static com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSubscriptionsPagedResponse;

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.BidiStreamingCallable;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.RequestParamsExtractor;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.common.collect.ImmutableMap;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
import com.google.iam.v1.SetIamPolicyRequest;
import com.google.iam.v1.TestIamPermissionsRequest;
import com.google.iam.v1.TestIamPermissionsResponse;
import com.google.protobuf.Empty;
import com.google.pubsub.v1.AcknowledgeRequest;
import com.google.pubsub.v1.CreateSnapshotRequest;
import com.google.pubsub.v1.DeleteSnapshotRequest;
import com.google.pubsub.v1.DeleteSubscriptionRequest;
import com.google.pubsub.v1.GetSubscriptionRequest;
import com.google.pubsub.v1.ListSnapshotsRequest;
import com.google.pubsub.v1.ListSnapshotsResponse;
import com.google.pubsub.v1.ListSubscriptionsRequest;
import com.google.pubsub.v1.ListSubscriptionsResponse;
import com.google.pubsub.v1.ModifyAckDeadlineRequest;
import com.google.pubsub.v1.ModifyPushConfigRequest;
import com.google.pubsub.v1.PullRequest;
import com.google.pubsub.v1.PullResponse;
import com.google.pubsub.v1.SeekRequest;
import com.google.pubsub.v1.SeekResponse;
import com.google.pubsub.v1.Snapshot;
import com.google.pubsub.v1.StreamingPullRequest;
import com.google.pubsub.v1.StreamingPullResponse;
import com.google.pubsub.v1.Subscription;
import com.google.pubsub.v1.UpdateSnapshotRequest;
import com.google.pubsub.v1.UpdateSubscriptionRequest;
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS
/**
 * gRPC stub implementation for Google Cloud Pub/Sub API.
 *
 * 

This class is for advanced usage and reflects the underlying API directly. */ @Generated("by gapic-generator") @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public class GrpcSubscriberStub extends SubscriberStub { private static final MethodDescriptor createSubscriptionMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.pubsub.v1.Subscriber/CreateSubscription") .setRequestMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) .build(); private static final MethodDescriptor getSubscriptionMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.pubsub.v1.Subscriber/GetSubscription") .setRequestMarshaller( ProtoUtils.marshaller(GetSubscriptionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) .build(); private static final MethodDescriptor updateSubscriptionMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.pubsub.v1.Subscriber/UpdateSubscription") .setRequestMarshaller( ProtoUtils.marshaller(UpdateSubscriptionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Subscription.getDefaultInstance())) .build(); private static final MethodDescriptor listSubscriptionsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.pubsub.v1.Subscriber/ListSubscriptions") .setRequestMarshaller( ProtoUtils.marshaller(ListSubscriptionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListSubscriptionsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor deleteSubscriptionMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.pubsub.v1.Subscriber/DeleteSubscription") .setRequestMarshaller( ProtoUtils.marshaller(DeleteSubscriptionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); private static final MethodDescriptor modifyAckDeadlineMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.pubsub.v1.Subscriber/ModifyAckDeadline") .setRequestMarshaller( ProtoUtils.marshaller(ModifyAckDeadlineRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); private static final MethodDescriptor acknowledgeMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.pubsub.v1.Subscriber/Acknowledge") .setRequestMarshaller(ProtoUtils.marshaller(AcknowledgeRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); private static final MethodDescriptor pullMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.pubsub.v1.Subscriber/Pull") .setRequestMarshaller(ProtoUtils.marshaller(PullRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(PullResponse.getDefaultInstance())) .build(); private static final MethodDescriptor streamingPullMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.BIDI_STREAMING) .setFullMethodName("google.pubsub.v1.Subscriber/StreamingPull") .setRequestMarshaller( ProtoUtils.marshaller(StreamingPullRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(StreamingPullResponse.getDefaultInstance())) .build(); private static final MethodDescriptor modifyPushConfigMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.pubsub.v1.Subscriber/ModifyPushConfig") .setRequestMarshaller( ProtoUtils.marshaller(ModifyPushConfigRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); private static final MethodDescriptor listSnapshotsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.pubsub.v1.Subscriber/ListSnapshots") .setRequestMarshaller( ProtoUtils.marshaller(ListSnapshotsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListSnapshotsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor createSnapshotMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.pubsub.v1.Subscriber/CreateSnapshot") .setRequestMarshaller( ProtoUtils.marshaller(CreateSnapshotRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Snapshot.getDefaultInstance())) .build(); private static final MethodDescriptor updateSnapshotMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.pubsub.v1.Subscriber/UpdateSnapshot") .setRequestMarshaller( ProtoUtils.marshaller(UpdateSnapshotRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Snapshot.getDefaultInstance())) .build(); private static final MethodDescriptor deleteSnapshotMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.pubsub.v1.Subscriber/DeleteSnapshot") .setRequestMarshaller( ProtoUtils.marshaller(DeleteSnapshotRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); private static final MethodDescriptor seekMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.pubsub.v1.Subscriber/Seek") .setRequestMarshaller(ProtoUtils.marshaller(SeekRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(SeekResponse.getDefaultInstance())) .build(); private static final MethodDescriptor setIamPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) .build(); private static final MethodDescriptor getIamPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) .build(); private static final MethodDescriptor testIamPermissionsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") .setRequestMarshaller( ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) .build(); private final BackgroundResource backgroundResources; private final UnaryCallable createSubscriptionCallable; private final UnaryCallable getSubscriptionCallable; private final UnaryCallable updateSubscriptionCallable; private final UnaryCallable listSubscriptionsCallable; private final UnaryCallable listSubscriptionsPagedCallable; private final UnaryCallable deleteSubscriptionCallable; private final UnaryCallable modifyAckDeadlineCallable; private final UnaryCallable acknowledgeCallable; private final UnaryCallable pullCallable; private final BidiStreamingCallable streamingPullCallable; private final UnaryCallable modifyPushConfigCallable; private final UnaryCallable listSnapshotsCallable; private final UnaryCallable listSnapshotsPagedCallable; private final UnaryCallable createSnapshotCallable; private final UnaryCallable updateSnapshotCallable; private final UnaryCallable deleteSnapshotCallable; private final UnaryCallable seekCallable; private final UnaryCallable setIamPolicyCallable; private final UnaryCallable getIamPolicyCallable; private final UnaryCallable testIamPermissionsCallable; private final GrpcStubCallableFactory callableFactory; public static final GrpcSubscriberStub create(SubscriberStubSettings settings) throws IOException { return new GrpcSubscriberStub(settings, ClientContext.create(settings)); } public static final GrpcSubscriberStub create(ClientContext clientContext) throws IOException { return new GrpcSubscriberStub(SubscriberStubSettings.newBuilder().build(), clientContext); } public static final GrpcSubscriberStub create( ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { return new GrpcSubscriberStub( SubscriberStubSettings.newBuilder().build(), clientContext, callableFactory); } /** * Constructs an instance of GrpcSubscriberStub, 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 GrpcSubscriberStub(SubscriberStubSettings settings, ClientContext clientContext) throws IOException { this(settings, clientContext, new GrpcSubscriberCallableFactory()); } /** * Constructs an instance of GrpcSubscriberStub, 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 GrpcSubscriberStub( SubscriberStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; GrpcCallSettings createSubscriptionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createSubscriptionMethodDescriptor) .setParamsExtractor( new RequestParamsExtractor() { @Override public Map extract(Subscription request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put("name", String.valueOf(request.getName())); return params.build(); } }) .build(); GrpcCallSettings getSubscriptionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getSubscriptionMethodDescriptor) .setParamsExtractor( new RequestParamsExtractor() { @Override public Map extract(GetSubscriptionRequest request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put("subscription", String.valueOf(request.getSubscription())); return params.build(); } }) .build(); GrpcCallSettings updateSubscriptionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateSubscriptionMethodDescriptor) .setParamsExtractor( new RequestParamsExtractor() { @Override public Map extract(UpdateSubscriptionRequest request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put( "subscription.name", String.valueOf(request.getSubscription().getName())); return params.build(); } }) .build(); GrpcCallSettings listSubscriptionsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listSubscriptionsMethodDescriptor) .setParamsExtractor( new RequestParamsExtractor() { @Override public Map extract(ListSubscriptionsRequest request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put("project", String.valueOf(request.getProject())); return params.build(); } }) .build(); GrpcCallSettings deleteSubscriptionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteSubscriptionMethodDescriptor) .setParamsExtractor( new RequestParamsExtractor() { @Override public Map extract(DeleteSubscriptionRequest request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put("subscription", String.valueOf(request.getSubscription())); return params.build(); } }) .build(); GrpcCallSettings modifyAckDeadlineTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(modifyAckDeadlineMethodDescriptor) .setParamsExtractor( new RequestParamsExtractor() { @Override public Map extract(ModifyAckDeadlineRequest request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put("subscription", String.valueOf(request.getSubscription())); return params.build(); } }) .build(); GrpcCallSettings acknowledgeTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(acknowledgeMethodDescriptor) .setParamsExtractor( new RequestParamsExtractor() { @Override public Map extract(AcknowledgeRequest request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put("subscription", String.valueOf(request.getSubscription())); return params.build(); } }) .build(); GrpcCallSettings pullTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(pullMethodDescriptor) .setParamsExtractor( new RequestParamsExtractor() { @Override public Map extract(PullRequest request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put("subscription", String.valueOf(request.getSubscription())); return params.build(); } }) .build(); GrpcCallSettings streamingPullTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(streamingPullMethodDescriptor) .build(); GrpcCallSettings modifyPushConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(modifyPushConfigMethodDescriptor) .setParamsExtractor( new RequestParamsExtractor() { @Override public Map extract(ModifyPushConfigRequest request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put("subscription", String.valueOf(request.getSubscription())); return params.build(); } }) .build(); GrpcCallSettings listSnapshotsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listSnapshotsMethodDescriptor) .setParamsExtractor( new RequestParamsExtractor() { @Override public Map extract(ListSnapshotsRequest request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put("project", String.valueOf(request.getProject())); return params.build(); } }) .build(); GrpcCallSettings createSnapshotTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createSnapshotMethodDescriptor) .setParamsExtractor( new RequestParamsExtractor() { @Override public Map extract(CreateSnapshotRequest request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put("name", String.valueOf(request.getName())); return params.build(); } }) .build(); GrpcCallSettings updateSnapshotTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateSnapshotMethodDescriptor) .setParamsExtractor( new RequestParamsExtractor() { @Override public Map extract(UpdateSnapshotRequest request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put("snapshot.name", String.valueOf(request.getSnapshot().getName())); return params.build(); } }) .build(); GrpcCallSettings deleteSnapshotTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteSnapshotMethodDescriptor) .setParamsExtractor( new RequestParamsExtractor() { @Override public Map extract(DeleteSnapshotRequest request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put("snapshot", String.valueOf(request.getSnapshot())); return params.build(); } }) .build(); GrpcCallSettings seekTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(seekMethodDescriptor) .setParamsExtractor( new RequestParamsExtractor() { @Override public Map extract(SeekRequest request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put("subscription", String.valueOf(request.getSubscription())); return params.build(); } }) .build(); GrpcCallSettings setIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(setIamPolicyMethodDescriptor) .setParamsExtractor( new RequestParamsExtractor() { @Override public Map extract(SetIamPolicyRequest request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put("resource", String.valueOf(request.getResource())); return params.build(); } }) .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getIamPolicyMethodDescriptor) .setParamsExtractor( new RequestParamsExtractor() { @Override public Map extract(GetIamPolicyRequest request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put("resource", String.valueOf(request.getResource())); return params.build(); } }) .build(); GrpcCallSettings testIamPermissionsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(testIamPermissionsMethodDescriptor) .setParamsExtractor( new RequestParamsExtractor() { @Override public Map extract(TestIamPermissionsRequest request) { ImmutableMap.Builder params = ImmutableMap.builder(); params.put("resource", String.valueOf(request.getResource())); return params.build(); } }) .build(); this.createSubscriptionCallable = callableFactory.createUnaryCallable( createSubscriptionTransportSettings, settings.createSubscriptionSettings(), clientContext); this.getSubscriptionCallable = callableFactory.createUnaryCallable( getSubscriptionTransportSettings, settings.getSubscriptionSettings(), clientContext); this.updateSubscriptionCallable = callableFactory.createUnaryCallable( updateSubscriptionTransportSettings, settings.updateSubscriptionSettings(), clientContext); this.listSubscriptionsCallable = callableFactory.createUnaryCallable( listSubscriptionsTransportSettings, settings.listSubscriptionsSettings(), clientContext); this.listSubscriptionsPagedCallable = callableFactory.createPagedCallable( listSubscriptionsTransportSettings, settings.listSubscriptionsSettings(), clientContext); this.deleteSubscriptionCallable = callableFactory.createUnaryCallable( deleteSubscriptionTransportSettings, settings.deleteSubscriptionSettings(), clientContext); this.modifyAckDeadlineCallable = callableFactory.createUnaryCallable( modifyAckDeadlineTransportSettings, settings.modifyAckDeadlineSettings(), clientContext); this.acknowledgeCallable = callableFactory.createUnaryCallable( acknowledgeTransportSettings, settings.acknowledgeSettings(), clientContext); this.pullCallable = callableFactory.createUnaryCallable( pullTransportSettings, settings.pullSettings(), clientContext); this.streamingPullCallable = callableFactory.createBidiStreamingCallable( streamingPullTransportSettings, settings.streamingPullSettings(), clientContext); this.modifyPushConfigCallable = callableFactory.createUnaryCallable( modifyPushConfigTransportSettings, settings.modifyPushConfigSettings(), clientContext); this.listSnapshotsCallable = callableFactory.createUnaryCallable( listSnapshotsTransportSettings, settings.listSnapshotsSettings(), clientContext); this.listSnapshotsPagedCallable = callableFactory.createPagedCallable( listSnapshotsTransportSettings, settings.listSnapshotsSettings(), clientContext); this.createSnapshotCallable = callableFactory.createUnaryCallable( createSnapshotTransportSettings, settings.createSnapshotSettings(), clientContext); this.updateSnapshotCallable = callableFactory.createUnaryCallable( updateSnapshotTransportSettings, settings.updateSnapshotSettings(), clientContext); this.deleteSnapshotCallable = callableFactory.createUnaryCallable( deleteSnapshotTransportSettings, settings.deleteSnapshotSettings(), clientContext); this.seekCallable = callableFactory.createUnaryCallable( seekTransportSettings, settings.seekSettings(), clientContext); this.setIamPolicyCallable = callableFactory.createUnaryCallable( setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); this.getIamPolicyCallable = callableFactory.createUnaryCallable( getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); this.testIamPermissionsCallable = callableFactory.createUnaryCallable( testIamPermissionsTransportSettings, settings.testIamPermissionsSettings(), clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } public UnaryCallable createSubscriptionCallable() { return createSubscriptionCallable; } public UnaryCallable getSubscriptionCallable() { return getSubscriptionCallable; } public UnaryCallable updateSubscriptionCallable() { return updateSubscriptionCallable; } public UnaryCallable listSubscriptionsPagedCallable() { return listSubscriptionsPagedCallable; } public UnaryCallable listSubscriptionsCallable() { return listSubscriptionsCallable; } public UnaryCallable deleteSubscriptionCallable() { return deleteSubscriptionCallable; } public UnaryCallable modifyAckDeadlineCallable() { return modifyAckDeadlineCallable; } public UnaryCallable acknowledgeCallable() { return acknowledgeCallable; } public UnaryCallable pullCallable() { return pullCallable; } public BidiStreamingCallable streamingPullCallable() { return streamingPullCallable; } public UnaryCallable modifyPushConfigCallable() { return modifyPushConfigCallable; } public UnaryCallable listSnapshotsPagedCallable() { return listSnapshotsPagedCallable; } public UnaryCallable listSnapshotsCallable() { return listSnapshotsCallable; } public UnaryCallable createSnapshotCallable() { return createSnapshotCallable; } public UnaryCallable updateSnapshotCallable() { return updateSnapshotCallable; } public UnaryCallable deleteSnapshotCallable() { return deleteSnapshotCallable; } public UnaryCallable seekCallable() { return seekCallable; } public UnaryCallable setIamPolicyCallable() { return setIamPolicyCallable; } public UnaryCallable getIamPolicyCallable() { return getIamPolicyCallable; } public UnaryCallable testIamPermissionsCallable() { return testIamPermissionsCallable; } @Override public final void close() { shutdown(); } @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 - 2024 Weber Informatics LLC | Privacy Policy