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

com.google.analytics.data.v1alpha.stub.HttpJsonAlphaAnalyticsDataStub Maven / Gradle / Ivy

Go to download

provides programmatic methods to access report data in Google Analytics App+Web properties.

There is a newer version: 0.66.0
Show 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.analytics.data.v1alpha.stub;

import static com.google.analytics.data.v1alpha.AlphaAnalyticsDataClient.ListAudienceListsPagedResponse;
import static com.google.analytics.data.v1alpha.AlphaAnalyticsDataClient.ListRecurringAudienceListsPagedResponse;

import com.google.analytics.data.v1alpha.AudienceList;
import com.google.analytics.data.v1alpha.AudienceListMetadata;
import com.google.analytics.data.v1alpha.CreateAudienceListRequest;
import com.google.analytics.data.v1alpha.CreateRecurringAudienceListRequest;
import com.google.analytics.data.v1alpha.GetAudienceListRequest;
import com.google.analytics.data.v1alpha.GetRecurringAudienceListRequest;
import com.google.analytics.data.v1alpha.ListAudienceListsRequest;
import com.google.analytics.data.v1alpha.ListAudienceListsResponse;
import com.google.analytics.data.v1alpha.ListRecurringAudienceListsRequest;
import com.google.analytics.data.v1alpha.ListRecurringAudienceListsResponse;
import com.google.analytics.data.v1alpha.QueryAudienceListRequest;
import com.google.analytics.data.v1alpha.QueryAudienceListResponse;
import com.google.analytics.data.v1alpha.RecurringAudienceList;
import com.google.analytics.data.v1alpha.RunFunnelReportRequest;
import com.google.analytics.data.v1alpha.RunFunnelReportResponse;
import com.google.analytics.data.v1alpha.SheetExportAudienceListRequest;
import com.google.analytics.data.v1alpha.SheetExportAudienceListResponse;
import com.google.api.core.BetaApi;
import com.google.api.core.InternalApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.core.BackgroundResourceAggregation;
import com.google.api.gax.httpjson.ApiMethodDescriptor;
import com.google.api.gax.httpjson.HttpJsonCallSettings;
import com.google.api.gax.httpjson.HttpJsonOperationSnapshot;
import com.google.api.gax.httpjson.HttpJsonStubCallableFactory;
import com.google.api.gax.httpjson.ProtoMessageRequestFormatter;
import com.google.api.gax.httpjson.ProtoMessageResponseParser;
import com.google.api.gax.httpjson.ProtoRestSerializer;
import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub;
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.longrunning.Operation;
import com.google.protobuf.TypeRegistry;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
 * REST stub implementation for the AlphaAnalyticsData service API.
 *
 * 

This class is for advanced usage and reflects the underlying API directly. */ @BetaApi @Generated("by gapic-generator-java") public class HttpJsonAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder() .add(AudienceList.getDescriptor()) .add(AudienceListMetadata.getDescriptor()) .build(); private static final ApiMethodDescriptor runFunnelReportMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.analytics.data.v1alpha.AlphaAnalyticsData/RunFunnelReport") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1alpha/{property=properties/*}:runFunnelReport", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "property", request.getProperty()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody("*", request.toBuilder().clearProperty().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(RunFunnelReportResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor createAudienceListMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName( "google.analytics.data.v1alpha.AlphaAnalyticsData/CreateAudienceList") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1alpha/{parent=properties/*}/audienceLists", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody("audienceList", request.getAudienceList(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(Operation.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .setOperationSnapshotFactory( (CreateAudienceListRequest request, Operation response) -> HttpJsonOperationSnapshot.create(response)) .build(); private static final ApiMethodDescriptor queryAudienceListMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName( "google.analytics.data.v1alpha.AlphaAnalyticsData/QueryAudienceList") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1alpha/{name=properties/*/audienceLists/*}:query", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody("*", request.toBuilder().clearName().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(QueryAudienceListResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor< SheetExportAudienceListRequest, SheetExportAudienceListResponse> sheetExportAudienceListMethodDescriptor = ApiMethodDescriptor .newBuilder() .setFullMethodName( "google.analytics.data.v1alpha.AlphaAnalyticsData/SheetExportAudienceList") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1alpha/{name=properties/*/audienceLists/*}:exportSheet", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody("*", request.toBuilder().clearName().build(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(SheetExportAudienceListResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor getAudienceListMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.analytics.data.v1alpha.AlphaAnalyticsData/GetAudienceList") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1alpha/{name=properties/*/audienceLists/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(AudienceList.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor listAudienceListsMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName( "google.analytics.data.v1alpha.AlphaAnalyticsData/ListAudienceLists") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1alpha/{parent=properties/*}/audienceLists", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(ListAudienceListsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor< CreateRecurringAudienceListRequest, RecurringAudienceList> createRecurringAudienceListMethodDescriptor = ApiMethodDescriptor .newBuilder() .setFullMethodName( "google.analytics.data.v1alpha.AlphaAnalyticsData/CreateRecurringAudienceList") .setHttpMethod("POST") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1alpha/{parent=properties/*}/recurringAudienceLists", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor( request -> ProtoRestSerializer.create() .toBody( "recurringAudienceList", request.getRecurringAudienceList(), true)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(RecurringAudienceList.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor getRecurringAudienceListMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName( "google.analytics.data.v1alpha.AlphaAnalyticsData/GetRecurringAudienceList") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1alpha/{name=properties/*/recurringAudienceLists/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "name", request.getName()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(RecurringAudienceList.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private static final ApiMethodDescriptor< ListRecurringAudienceListsRequest, ListRecurringAudienceListsResponse> listRecurringAudienceListsMethodDescriptor = ApiMethodDescriptor .newBuilder() .setFullMethodName( "google.analytics.data.v1alpha.AlphaAnalyticsData/ListRecurringAudienceLists") .setHttpMethod("GET") .setType(ApiMethodDescriptor.MethodType.UNARY) .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( "/v1alpha/{parent=properties/*}/recurringAudienceLists", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) .setRequestBodyExtractor(request -> null) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() .setDefaultInstance(ListRecurringAudienceListsResponse.getDefaultInstance()) .setDefaultTypeRegistry(typeRegistry) .build()) .build(); private final UnaryCallable runFunnelReportCallable; private final UnaryCallable createAudienceListCallable; private final OperationCallable createAudienceListOperationCallable; private final UnaryCallable queryAudienceListCallable; private final UnaryCallable sheetExportAudienceListCallable; private final UnaryCallable getAudienceListCallable; private final UnaryCallable listAudienceListsCallable; private final UnaryCallable listAudienceListsPagedCallable; private final UnaryCallable createRecurringAudienceListCallable; private final UnaryCallable getRecurringAudienceListCallable; private final UnaryCallable listRecurringAudienceListsCallable; private final UnaryCallable< ListRecurringAudienceListsRequest, ListRecurringAudienceListsPagedResponse> listRecurringAudienceListsPagedCallable; private final BackgroundResource backgroundResources; private final HttpJsonOperationsStub httpJsonOperationsStub; private final HttpJsonStubCallableFactory callableFactory; public static final HttpJsonAlphaAnalyticsDataStub create(AlphaAnalyticsDataStubSettings settings) throws IOException { return new HttpJsonAlphaAnalyticsDataStub(settings, ClientContext.create(settings)); } public static final HttpJsonAlphaAnalyticsDataStub create(ClientContext clientContext) throws IOException { return new HttpJsonAlphaAnalyticsDataStub( AlphaAnalyticsDataStubSettings.newHttpJsonBuilder().build(), clientContext); } public static final HttpJsonAlphaAnalyticsDataStub create( ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { return new HttpJsonAlphaAnalyticsDataStub( AlphaAnalyticsDataStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); } /** * Constructs an instance of HttpJsonAlphaAnalyticsDataStub, 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 HttpJsonAlphaAnalyticsDataStub( AlphaAnalyticsDataStubSettings settings, ClientContext clientContext) throws IOException { this(settings, clientContext, new HttpJsonAlphaAnalyticsDataCallableFactory()); } /** * Constructs an instance of HttpJsonAlphaAnalyticsDataStub, 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 HttpJsonAlphaAnalyticsDataStub( AlphaAnalyticsDataStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; this.httpJsonOperationsStub = HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); HttpJsonCallSettings runFunnelReportTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(runFunnelReportMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("property", String.valueOf(request.getProperty())); return builder.build(); }) .build(); HttpJsonCallSettings createAudienceListTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createAudienceListMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); HttpJsonCallSettings queryAudienceListTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(queryAudienceListMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); HttpJsonCallSettings sheetExportAudienceListTransportSettings = HttpJsonCallSettings .newBuilder() .setMethodDescriptor(sheetExportAudienceListMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); HttpJsonCallSettings getAudienceListTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getAudienceListMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); HttpJsonCallSettings listAudienceListsTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(listAudienceListsMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); HttpJsonCallSettings createRecurringAudienceListTransportSettings = HttpJsonCallSettings .newBuilder() .setMethodDescriptor(createRecurringAudienceListMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); HttpJsonCallSettings getRecurringAudienceListTransportSettings = HttpJsonCallSettings .newBuilder() .setMethodDescriptor(getRecurringAudienceListMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); HttpJsonCallSettings listRecurringAudienceListsTransportSettings = HttpJsonCallSettings .newBuilder() .setMethodDescriptor(listRecurringAudienceListsMethodDescriptor) .setTypeRegistry(typeRegistry) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); this.runFunnelReportCallable = callableFactory.createUnaryCallable( runFunnelReportTransportSettings, settings.runFunnelReportSettings(), clientContext); this.createAudienceListCallable = callableFactory.createUnaryCallable( createAudienceListTransportSettings, settings.createAudienceListSettings(), clientContext); this.createAudienceListOperationCallable = callableFactory.createOperationCallable( createAudienceListTransportSettings, settings.createAudienceListOperationSettings(), clientContext, httpJsonOperationsStub); this.queryAudienceListCallable = callableFactory.createUnaryCallable( queryAudienceListTransportSettings, settings.queryAudienceListSettings(), clientContext); this.sheetExportAudienceListCallable = callableFactory.createUnaryCallable( sheetExportAudienceListTransportSettings, settings.sheetExportAudienceListSettings(), clientContext); this.getAudienceListCallable = callableFactory.createUnaryCallable( getAudienceListTransportSettings, settings.getAudienceListSettings(), clientContext); this.listAudienceListsCallable = callableFactory.createUnaryCallable( listAudienceListsTransportSettings, settings.listAudienceListsSettings(), clientContext); this.listAudienceListsPagedCallable = callableFactory.createPagedCallable( listAudienceListsTransportSettings, settings.listAudienceListsSettings(), clientContext); this.createRecurringAudienceListCallable = callableFactory.createUnaryCallable( createRecurringAudienceListTransportSettings, settings.createRecurringAudienceListSettings(), clientContext); this.getRecurringAudienceListCallable = callableFactory.createUnaryCallable( getRecurringAudienceListTransportSettings, settings.getRecurringAudienceListSettings(), clientContext); this.listRecurringAudienceListsCallable = callableFactory.createUnaryCallable( listRecurringAudienceListsTransportSettings, settings.listRecurringAudienceListsSettings(), clientContext); this.listRecurringAudienceListsPagedCallable = callableFactory.createPagedCallable( listRecurringAudienceListsTransportSettings, settings.listRecurringAudienceListsSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } @InternalApi public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(runFunnelReportMethodDescriptor); methodDescriptors.add(createAudienceListMethodDescriptor); methodDescriptors.add(queryAudienceListMethodDescriptor); methodDescriptors.add(sheetExportAudienceListMethodDescriptor); methodDescriptors.add(getAudienceListMethodDescriptor); methodDescriptors.add(listAudienceListsMethodDescriptor); methodDescriptors.add(createRecurringAudienceListMethodDescriptor); methodDescriptors.add(getRecurringAudienceListMethodDescriptor); methodDescriptors.add(listRecurringAudienceListsMethodDescriptor); return methodDescriptors; } public HttpJsonOperationsStub getHttpJsonOperationsStub() { return httpJsonOperationsStub; } @Override public UnaryCallable runFunnelReportCallable() { return runFunnelReportCallable; } @Override public UnaryCallable createAudienceListCallable() { return createAudienceListCallable; } @Override public OperationCallable createAudienceListOperationCallable() { return createAudienceListOperationCallable; } @Override public UnaryCallable queryAudienceListCallable() { return queryAudienceListCallable; } @Override public UnaryCallable sheetExportAudienceListCallable() { return sheetExportAudienceListCallable; } @Override public UnaryCallable getAudienceListCallable() { return getAudienceListCallable; } @Override public UnaryCallable listAudienceListsCallable() { return listAudienceListsCallable; } @Override public UnaryCallable listAudienceListsPagedCallable() { return listAudienceListsPagedCallable; } @Override public UnaryCallable createRecurringAudienceListCallable() { return createRecurringAudienceListCallable; } @Override public UnaryCallable getRecurringAudienceListCallable() { return getRecurringAudienceListCallable; } @Override public UnaryCallable listRecurringAudienceListsCallable() { return listRecurringAudienceListsCallable; } @Override public UnaryCallable listRecurringAudienceListsPagedCallable() { return listRecurringAudienceListsPagedCallable; } @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