• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package com.google.analytics.data.v1beta;
17 
18 import static io.grpc.MethodDescriptor.generateFullMethodName;
19 
20 /**
21  *
22  *
23  * <pre>
24  * Google Analytics reporting data service.
25  * </pre>
26  */
27 @javax.annotation.Generated(
28     value = "by gRPC proto compiler",
29     comments = "Source: google/analytics/data/v1beta/analytics_data_api.proto")
30 @io.grpc.stub.annotations.GrpcGenerated
31 public final class BetaAnalyticsDataGrpc {
32 
BetaAnalyticsDataGrpc()33   private BetaAnalyticsDataGrpc() {}
34 
35   public static final String SERVICE_NAME = "google.analytics.data.v1beta.BetaAnalyticsData";
36 
37   // Static method descriptors that strictly reflect the proto.
38   private static volatile io.grpc.MethodDescriptor<
39           com.google.analytics.data.v1beta.RunReportRequest,
40           com.google.analytics.data.v1beta.RunReportResponse>
41       getRunReportMethod;
42 
43   @io.grpc.stub.annotations.RpcMethod(
44       fullMethodName = SERVICE_NAME + '/' + "RunReport",
45       requestType = com.google.analytics.data.v1beta.RunReportRequest.class,
46       responseType = com.google.analytics.data.v1beta.RunReportResponse.class,
47       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
48   public static io.grpc.MethodDescriptor<
49           com.google.analytics.data.v1beta.RunReportRequest,
50           com.google.analytics.data.v1beta.RunReportResponse>
getRunReportMethod()51       getRunReportMethod() {
52     io.grpc.MethodDescriptor<
53             com.google.analytics.data.v1beta.RunReportRequest,
54             com.google.analytics.data.v1beta.RunReportResponse>
55         getRunReportMethod;
56     if ((getRunReportMethod = BetaAnalyticsDataGrpc.getRunReportMethod) == null) {
57       synchronized (BetaAnalyticsDataGrpc.class) {
58         if ((getRunReportMethod = BetaAnalyticsDataGrpc.getRunReportMethod) == null) {
59           BetaAnalyticsDataGrpc.getRunReportMethod =
60               getRunReportMethod =
61                   io.grpc.MethodDescriptor
62                       .<com.google.analytics.data.v1beta.RunReportRequest,
63                           com.google.analytics.data.v1beta.RunReportResponse>
64                           newBuilder()
65                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
66                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunReport"))
67                       .setSampledToLocalTracing(true)
68                       .setRequestMarshaller(
69                           io.grpc.protobuf.ProtoUtils.marshaller(
70                               com.google.analytics.data.v1beta.RunReportRequest
71                                   .getDefaultInstance()))
72                       .setResponseMarshaller(
73                           io.grpc.protobuf.ProtoUtils.marshaller(
74                               com.google.analytics.data.v1beta.RunReportResponse
75                                   .getDefaultInstance()))
76                       .setSchemaDescriptor(
77                           new BetaAnalyticsDataMethodDescriptorSupplier("RunReport"))
78                       .build();
79         }
80       }
81     }
82     return getRunReportMethod;
83   }
84 
85   private static volatile io.grpc.MethodDescriptor<
86           com.google.analytics.data.v1beta.RunPivotReportRequest,
87           com.google.analytics.data.v1beta.RunPivotReportResponse>
88       getRunPivotReportMethod;
89 
90   @io.grpc.stub.annotations.RpcMethod(
91       fullMethodName = SERVICE_NAME + '/' + "RunPivotReport",
92       requestType = com.google.analytics.data.v1beta.RunPivotReportRequest.class,
93       responseType = com.google.analytics.data.v1beta.RunPivotReportResponse.class,
94       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
95   public static io.grpc.MethodDescriptor<
96           com.google.analytics.data.v1beta.RunPivotReportRequest,
97           com.google.analytics.data.v1beta.RunPivotReportResponse>
getRunPivotReportMethod()98       getRunPivotReportMethod() {
99     io.grpc.MethodDescriptor<
100             com.google.analytics.data.v1beta.RunPivotReportRequest,
101             com.google.analytics.data.v1beta.RunPivotReportResponse>
102         getRunPivotReportMethod;
103     if ((getRunPivotReportMethod = BetaAnalyticsDataGrpc.getRunPivotReportMethod) == null) {
104       synchronized (BetaAnalyticsDataGrpc.class) {
105         if ((getRunPivotReportMethod = BetaAnalyticsDataGrpc.getRunPivotReportMethod) == null) {
106           BetaAnalyticsDataGrpc.getRunPivotReportMethod =
107               getRunPivotReportMethod =
108                   io.grpc.MethodDescriptor
109                       .<com.google.analytics.data.v1beta.RunPivotReportRequest,
110                           com.google.analytics.data.v1beta.RunPivotReportResponse>
111                           newBuilder()
112                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
113                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunPivotReport"))
114                       .setSampledToLocalTracing(true)
115                       .setRequestMarshaller(
116                           io.grpc.protobuf.ProtoUtils.marshaller(
117                               com.google.analytics.data.v1beta.RunPivotReportRequest
118                                   .getDefaultInstance()))
119                       .setResponseMarshaller(
120                           io.grpc.protobuf.ProtoUtils.marshaller(
121                               com.google.analytics.data.v1beta.RunPivotReportResponse
122                                   .getDefaultInstance()))
123                       .setSchemaDescriptor(
124                           new BetaAnalyticsDataMethodDescriptorSupplier("RunPivotReport"))
125                       .build();
126         }
127       }
128     }
129     return getRunPivotReportMethod;
130   }
131 
132   private static volatile io.grpc.MethodDescriptor<
133           com.google.analytics.data.v1beta.BatchRunReportsRequest,
134           com.google.analytics.data.v1beta.BatchRunReportsResponse>
135       getBatchRunReportsMethod;
136 
137   @io.grpc.stub.annotations.RpcMethod(
138       fullMethodName = SERVICE_NAME + '/' + "BatchRunReports",
139       requestType = com.google.analytics.data.v1beta.BatchRunReportsRequest.class,
140       responseType = com.google.analytics.data.v1beta.BatchRunReportsResponse.class,
141       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
142   public static io.grpc.MethodDescriptor<
143           com.google.analytics.data.v1beta.BatchRunReportsRequest,
144           com.google.analytics.data.v1beta.BatchRunReportsResponse>
getBatchRunReportsMethod()145       getBatchRunReportsMethod() {
146     io.grpc.MethodDescriptor<
147             com.google.analytics.data.v1beta.BatchRunReportsRequest,
148             com.google.analytics.data.v1beta.BatchRunReportsResponse>
149         getBatchRunReportsMethod;
150     if ((getBatchRunReportsMethod = BetaAnalyticsDataGrpc.getBatchRunReportsMethod) == null) {
151       synchronized (BetaAnalyticsDataGrpc.class) {
152         if ((getBatchRunReportsMethod = BetaAnalyticsDataGrpc.getBatchRunReportsMethod) == null) {
153           BetaAnalyticsDataGrpc.getBatchRunReportsMethod =
154               getBatchRunReportsMethod =
155                   io.grpc.MethodDescriptor
156                       .<com.google.analytics.data.v1beta.BatchRunReportsRequest,
157                           com.google.analytics.data.v1beta.BatchRunReportsResponse>
158                           newBuilder()
159                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
160                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchRunReports"))
161                       .setSampledToLocalTracing(true)
162                       .setRequestMarshaller(
163                           io.grpc.protobuf.ProtoUtils.marshaller(
164                               com.google.analytics.data.v1beta.BatchRunReportsRequest
165                                   .getDefaultInstance()))
166                       .setResponseMarshaller(
167                           io.grpc.protobuf.ProtoUtils.marshaller(
168                               com.google.analytics.data.v1beta.BatchRunReportsResponse
169                                   .getDefaultInstance()))
170                       .setSchemaDescriptor(
171                           new BetaAnalyticsDataMethodDescriptorSupplier("BatchRunReports"))
172                       .build();
173         }
174       }
175     }
176     return getBatchRunReportsMethod;
177   }
178 
179   private static volatile io.grpc.MethodDescriptor<
180           com.google.analytics.data.v1beta.BatchRunPivotReportsRequest,
181           com.google.analytics.data.v1beta.BatchRunPivotReportsResponse>
182       getBatchRunPivotReportsMethod;
183 
184   @io.grpc.stub.annotations.RpcMethod(
185       fullMethodName = SERVICE_NAME + '/' + "BatchRunPivotReports",
186       requestType = com.google.analytics.data.v1beta.BatchRunPivotReportsRequest.class,
187       responseType = com.google.analytics.data.v1beta.BatchRunPivotReportsResponse.class,
188       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
189   public static io.grpc.MethodDescriptor<
190           com.google.analytics.data.v1beta.BatchRunPivotReportsRequest,
191           com.google.analytics.data.v1beta.BatchRunPivotReportsResponse>
getBatchRunPivotReportsMethod()192       getBatchRunPivotReportsMethod() {
193     io.grpc.MethodDescriptor<
194             com.google.analytics.data.v1beta.BatchRunPivotReportsRequest,
195             com.google.analytics.data.v1beta.BatchRunPivotReportsResponse>
196         getBatchRunPivotReportsMethod;
197     if ((getBatchRunPivotReportsMethod = BetaAnalyticsDataGrpc.getBatchRunPivotReportsMethod)
198         == null) {
199       synchronized (BetaAnalyticsDataGrpc.class) {
200         if ((getBatchRunPivotReportsMethod = BetaAnalyticsDataGrpc.getBatchRunPivotReportsMethod)
201             == null) {
202           BetaAnalyticsDataGrpc.getBatchRunPivotReportsMethod =
203               getBatchRunPivotReportsMethod =
204                   io.grpc.MethodDescriptor
205                       .<com.google.analytics.data.v1beta.BatchRunPivotReportsRequest,
206                           com.google.analytics.data.v1beta.BatchRunPivotReportsResponse>
207                           newBuilder()
208                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
209                       .setFullMethodName(
210                           generateFullMethodName(SERVICE_NAME, "BatchRunPivotReports"))
211                       .setSampledToLocalTracing(true)
212                       .setRequestMarshaller(
213                           io.grpc.protobuf.ProtoUtils.marshaller(
214                               com.google.analytics.data.v1beta.BatchRunPivotReportsRequest
215                                   .getDefaultInstance()))
216                       .setResponseMarshaller(
217                           io.grpc.protobuf.ProtoUtils.marshaller(
218                               com.google.analytics.data.v1beta.BatchRunPivotReportsResponse
219                                   .getDefaultInstance()))
220                       .setSchemaDescriptor(
221                           new BetaAnalyticsDataMethodDescriptorSupplier("BatchRunPivotReports"))
222                       .build();
223         }
224       }
225     }
226     return getBatchRunPivotReportsMethod;
227   }
228 
229   private static volatile io.grpc.MethodDescriptor<
230           com.google.analytics.data.v1beta.GetMetadataRequest,
231           com.google.analytics.data.v1beta.Metadata>
232       getGetMetadataMethod;
233 
234   @io.grpc.stub.annotations.RpcMethod(
235       fullMethodName = SERVICE_NAME + '/' + "GetMetadata",
236       requestType = com.google.analytics.data.v1beta.GetMetadataRequest.class,
237       responseType = com.google.analytics.data.v1beta.Metadata.class,
238       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
239   public static io.grpc.MethodDescriptor<
240           com.google.analytics.data.v1beta.GetMetadataRequest,
241           com.google.analytics.data.v1beta.Metadata>
getGetMetadataMethod()242       getGetMetadataMethod() {
243     io.grpc.MethodDescriptor<
244             com.google.analytics.data.v1beta.GetMetadataRequest,
245             com.google.analytics.data.v1beta.Metadata>
246         getGetMetadataMethod;
247     if ((getGetMetadataMethod = BetaAnalyticsDataGrpc.getGetMetadataMethod) == null) {
248       synchronized (BetaAnalyticsDataGrpc.class) {
249         if ((getGetMetadataMethod = BetaAnalyticsDataGrpc.getGetMetadataMethod) == null) {
250           BetaAnalyticsDataGrpc.getGetMetadataMethod =
251               getGetMetadataMethod =
252                   io.grpc.MethodDescriptor
253                       .<com.google.analytics.data.v1beta.GetMetadataRequest,
254                           com.google.analytics.data.v1beta.Metadata>
255                           newBuilder()
256                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
257                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMetadata"))
258                       .setSampledToLocalTracing(true)
259                       .setRequestMarshaller(
260                           io.grpc.protobuf.ProtoUtils.marshaller(
261                               com.google.analytics.data.v1beta.GetMetadataRequest
262                                   .getDefaultInstance()))
263                       .setResponseMarshaller(
264                           io.grpc.protobuf.ProtoUtils.marshaller(
265                               com.google.analytics.data.v1beta.Metadata.getDefaultInstance()))
266                       .setSchemaDescriptor(
267                           new BetaAnalyticsDataMethodDescriptorSupplier("GetMetadata"))
268                       .build();
269         }
270       }
271     }
272     return getGetMetadataMethod;
273   }
274 
275   private static volatile io.grpc.MethodDescriptor<
276           com.google.analytics.data.v1beta.RunRealtimeReportRequest,
277           com.google.analytics.data.v1beta.RunRealtimeReportResponse>
278       getRunRealtimeReportMethod;
279 
280   @io.grpc.stub.annotations.RpcMethod(
281       fullMethodName = SERVICE_NAME + '/' + "RunRealtimeReport",
282       requestType = com.google.analytics.data.v1beta.RunRealtimeReportRequest.class,
283       responseType = com.google.analytics.data.v1beta.RunRealtimeReportResponse.class,
284       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
285   public static io.grpc.MethodDescriptor<
286           com.google.analytics.data.v1beta.RunRealtimeReportRequest,
287           com.google.analytics.data.v1beta.RunRealtimeReportResponse>
getRunRealtimeReportMethod()288       getRunRealtimeReportMethod() {
289     io.grpc.MethodDescriptor<
290             com.google.analytics.data.v1beta.RunRealtimeReportRequest,
291             com.google.analytics.data.v1beta.RunRealtimeReportResponse>
292         getRunRealtimeReportMethod;
293     if ((getRunRealtimeReportMethod = BetaAnalyticsDataGrpc.getRunRealtimeReportMethod) == null) {
294       synchronized (BetaAnalyticsDataGrpc.class) {
295         if ((getRunRealtimeReportMethod = BetaAnalyticsDataGrpc.getRunRealtimeReportMethod)
296             == null) {
297           BetaAnalyticsDataGrpc.getRunRealtimeReportMethod =
298               getRunRealtimeReportMethod =
299                   io.grpc.MethodDescriptor
300                       .<com.google.analytics.data.v1beta.RunRealtimeReportRequest,
301                           com.google.analytics.data.v1beta.RunRealtimeReportResponse>
302                           newBuilder()
303                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
304                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunRealtimeReport"))
305                       .setSampledToLocalTracing(true)
306                       .setRequestMarshaller(
307                           io.grpc.protobuf.ProtoUtils.marshaller(
308                               com.google.analytics.data.v1beta.RunRealtimeReportRequest
309                                   .getDefaultInstance()))
310                       .setResponseMarshaller(
311                           io.grpc.protobuf.ProtoUtils.marshaller(
312                               com.google.analytics.data.v1beta.RunRealtimeReportResponse
313                                   .getDefaultInstance()))
314                       .setSchemaDescriptor(
315                           new BetaAnalyticsDataMethodDescriptorSupplier("RunRealtimeReport"))
316                       .build();
317         }
318       }
319     }
320     return getRunRealtimeReportMethod;
321   }
322 
323   private static volatile io.grpc.MethodDescriptor<
324           com.google.analytics.data.v1beta.CheckCompatibilityRequest,
325           com.google.analytics.data.v1beta.CheckCompatibilityResponse>
326       getCheckCompatibilityMethod;
327 
328   @io.grpc.stub.annotations.RpcMethod(
329       fullMethodName = SERVICE_NAME + '/' + "CheckCompatibility",
330       requestType = com.google.analytics.data.v1beta.CheckCompatibilityRequest.class,
331       responseType = com.google.analytics.data.v1beta.CheckCompatibilityResponse.class,
332       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
333   public static io.grpc.MethodDescriptor<
334           com.google.analytics.data.v1beta.CheckCompatibilityRequest,
335           com.google.analytics.data.v1beta.CheckCompatibilityResponse>
getCheckCompatibilityMethod()336       getCheckCompatibilityMethod() {
337     io.grpc.MethodDescriptor<
338             com.google.analytics.data.v1beta.CheckCompatibilityRequest,
339             com.google.analytics.data.v1beta.CheckCompatibilityResponse>
340         getCheckCompatibilityMethod;
341     if ((getCheckCompatibilityMethod = BetaAnalyticsDataGrpc.getCheckCompatibilityMethod) == null) {
342       synchronized (BetaAnalyticsDataGrpc.class) {
343         if ((getCheckCompatibilityMethod = BetaAnalyticsDataGrpc.getCheckCompatibilityMethod)
344             == null) {
345           BetaAnalyticsDataGrpc.getCheckCompatibilityMethod =
346               getCheckCompatibilityMethod =
347                   io.grpc.MethodDescriptor
348                       .<com.google.analytics.data.v1beta.CheckCompatibilityRequest,
349                           com.google.analytics.data.v1beta.CheckCompatibilityResponse>
350                           newBuilder()
351                       .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
352                       .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CheckCompatibility"))
353                       .setSampledToLocalTracing(true)
354                       .setRequestMarshaller(
355                           io.grpc.protobuf.ProtoUtils.marshaller(
356                               com.google.analytics.data.v1beta.CheckCompatibilityRequest
357                                   .getDefaultInstance()))
358                       .setResponseMarshaller(
359                           io.grpc.protobuf.ProtoUtils.marshaller(
360                               com.google.analytics.data.v1beta.CheckCompatibilityResponse
361                                   .getDefaultInstance()))
362                       .setSchemaDescriptor(
363                           new BetaAnalyticsDataMethodDescriptorSupplier("CheckCompatibility"))
364                       .build();
365         }
366       }
367     }
368     return getCheckCompatibilityMethod;
369   }
370 
371   /** Creates a new async stub that supports all call types for the service */
newStub(io.grpc.Channel channel)372   public static BetaAnalyticsDataStub newStub(io.grpc.Channel channel) {
373     io.grpc.stub.AbstractStub.StubFactory<BetaAnalyticsDataStub> factory =
374         new io.grpc.stub.AbstractStub.StubFactory<BetaAnalyticsDataStub>() {
375           @java.lang.Override
376           public BetaAnalyticsDataStub newStub(
377               io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
378             return new BetaAnalyticsDataStub(channel, callOptions);
379           }
380         };
381     return BetaAnalyticsDataStub.newStub(factory, channel);
382   }
383 
384   /**
385    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
386    */
newBlockingStub(io.grpc.Channel channel)387   public static BetaAnalyticsDataBlockingStub newBlockingStub(io.grpc.Channel channel) {
388     io.grpc.stub.AbstractStub.StubFactory<BetaAnalyticsDataBlockingStub> factory =
389         new io.grpc.stub.AbstractStub.StubFactory<BetaAnalyticsDataBlockingStub>() {
390           @java.lang.Override
391           public BetaAnalyticsDataBlockingStub newStub(
392               io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
393             return new BetaAnalyticsDataBlockingStub(channel, callOptions);
394           }
395         };
396     return BetaAnalyticsDataBlockingStub.newStub(factory, channel);
397   }
398 
399   /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
newFutureStub(io.grpc.Channel channel)400   public static BetaAnalyticsDataFutureStub newFutureStub(io.grpc.Channel channel) {
401     io.grpc.stub.AbstractStub.StubFactory<BetaAnalyticsDataFutureStub> factory =
402         new io.grpc.stub.AbstractStub.StubFactory<BetaAnalyticsDataFutureStub>() {
403           @java.lang.Override
404           public BetaAnalyticsDataFutureStub newStub(
405               io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
406             return new BetaAnalyticsDataFutureStub(channel, callOptions);
407           }
408         };
409     return BetaAnalyticsDataFutureStub.newStub(factory, channel);
410   }
411 
412   /**
413    *
414    *
415    * <pre>
416    * Google Analytics reporting data service.
417    * </pre>
418    */
419   public interface AsyncService {
420 
421     /**
422      *
423      *
424      * <pre>
425      * Returns a customized report of your Google Analytics event data. Reports
426      * contain statistics derived from data collected by the Google Analytics
427      * tracking code. The data returned from the API is as a table with columns
428      * for the requested dimensions and metrics. Metrics are individual
429      * measurements of user activity on your property, such as active users or
430      * event count. Dimensions break down metrics across some common criteria,
431      * such as country or event name.
432      * For a guide to constructing requests &amp; understanding responses, see
433      * [Creating a
434      * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics).
435      * </pre>
436      */
runReport( com.google.analytics.data.v1beta.RunReportRequest request, io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.RunReportResponse> responseObserver)437     default void runReport(
438         com.google.analytics.data.v1beta.RunReportRequest request,
439         io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.RunReportResponse>
440             responseObserver) {
441       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunReportMethod(), responseObserver);
442     }
443 
444     /**
445      *
446      *
447      * <pre>
448      * Returns a customized pivot report of your Google Analytics event data.
449      * Pivot reports are more advanced and expressive formats than regular
450      * reports. In a pivot report, dimensions are only visible if they are
451      * included in a pivot. Multiple pivots can be specified to further dissect
452      * your data.
453      * </pre>
454      */
runPivotReport( com.google.analytics.data.v1beta.RunPivotReportRequest request, io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.RunPivotReportResponse> responseObserver)455     default void runPivotReport(
456         com.google.analytics.data.v1beta.RunPivotReportRequest request,
457         io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.RunPivotReportResponse>
458             responseObserver) {
459       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
460           getRunPivotReportMethod(), responseObserver);
461     }
462 
463     /**
464      *
465      *
466      * <pre>
467      * Returns multiple reports in a batch. All reports must be for the same
468      * GA4 Property.
469      * </pre>
470      */
batchRunReports( com.google.analytics.data.v1beta.BatchRunReportsRequest request, io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.BatchRunReportsResponse> responseObserver)471     default void batchRunReports(
472         com.google.analytics.data.v1beta.BatchRunReportsRequest request,
473         io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.BatchRunReportsResponse>
474             responseObserver) {
475       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
476           getBatchRunReportsMethod(), responseObserver);
477     }
478 
479     /**
480      *
481      *
482      * <pre>
483      * Returns multiple pivot reports in a batch. All reports must be for the same
484      * GA4 Property.
485      * </pre>
486      */
batchRunPivotReports( com.google.analytics.data.v1beta.BatchRunPivotReportsRequest request, io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.BatchRunPivotReportsResponse> responseObserver)487     default void batchRunPivotReports(
488         com.google.analytics.data.v1beta.BatchRunPivotReportsRequest request,
489         io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.BatchRunPivotReportsResponse>
490             responseObserver) {
491       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
492           getBatchRunPivotReportsMethod(), responseObserver);
493     }
494 
495     /**
496      *
497      *
498      * <pre>
499      * Returns metadata for dimensions and metrics available in reporting methods.
500      * Used to explore the dimensions and metrics. In this method, a Google
501      * Analytics GA4 Property Identifier is specified in the request, and
502      * the metadata response includes Custom dimensions and metrics as well as
503      * Universal metadata.
504      * For example if a custom metric with parameter name `levels_unlocked` is
505      * registered to a property, the Metadata response will contain
506      * `customEvent:levels_unlocked`. Universal metadata are dimensions and
507      * metrics applicable to any property such as `country` and `totalUsers`.
508      * </pre>
509      */
getMetadata( com.google.analytics.data.v1beta.GetMetadataRequest request, io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.Metadata> responseObserver)510     default void getMetadata(
511         com.google.analytics.data.v1beta.GetMetadataRequest request,
512         io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.Metadata> responseObserver) {
513       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
514           getGetMetadataMethod(), responseObserver);
515     }
516 
517     /**
518      *
519      *
520      * <pre>
521      * Returns a customized report of realtime event data for your property.
522      * Events appear in realtime reports seconds after they have been sent to
523      * the Google Analytics. Realtime reports show events and usage data for the
524      * periods of time ranging from the present moment to 30 minutes ago (up to
525      * 60 minutes for Google Analytics 360 properties).
526      * For a guide to constructing realtime requests &amp; understanding responses,
527      * see [Creating a Realtime
528      * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).
529      * </pre>
530      */
runRealtimeReport( com.google.analytics.data.v1beta.RunRealtimeReportRequest request, io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.RunRealtimeReportResponse> responseObserver)531     default void runRealtimeReport(
532         com.google.analytics.data.v1beta.RunRealtimeReportRequest request,
533         io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.RunRealtimeReportResponse>
534             responseObserver) {
535       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
536           getRunRealtimeReportMethod(), responseObserver);
537     }
538 
539     /**
540      *
541      *
542      * <pre>
543      * This compatibility method lists dimensions and metrics that can be added to
544      * a report request and maintain compatibility. This method fails if the
545      * request's dimensions and metrics are incompatible.
546      * In Google Analytics, reports fail if they request incompatible dimensions
547      * and/or metrics; in that case, you will need to remove dimensions and/or
548      * metrics from the incompatible report until the report is compatible.
549      * The Realtime and Core reports have different compatibility rules. This
550      * method checks compatibility for Core reports.
551      * </pre>
552      */
checkCompatibility( com.google.analytics.data.v1beta.CheckCompatibilityRequest request, io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.CheckCompatibilityResponse> responseObserver)553     default void checkCompatibility(
554         com.google.analytics.data.v1beta.CheckCompatibilityRequest request,
555         io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.CheckCompatibilityResponse>
556             responseObserver) {
557       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
558           getCheckCompatibilityMethod(), responseObserver);
559     }
560   }
561 
562   /**
563    * Base class for the server implementation of the service BetaAnalyticsData.
564    *
565    * <pre>
566    * Google Analytics reporting data service.
567    * </pre>
568    */
569   public abstract static class BetaAnalyticsDataImplBase
570       implements io.grpc.BindableService, AsyncService {
571 
572     @java.lang.Override
bindService()573     public final io.grpc.ServerServiceDefinition bindService() {
574       return BetaAnalyticsDataGrpc.bindService(this);
575     }
576   }
577 
578   /**
579    * A stub to allow clients to do asynchronous rpc calls to service BetaAnalyticsData.
580    *
581    * <pre>
582    * Google Analytics reporting data service.
583    * </pre>
584    */
585   public static final class BetaAnalyticsDataStub
586       extends io.grpc.stub.AbstractAsyncStub<BetaAnalyticsDataStub> {
BetaAnalyticsDataStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)587     private BetaAnalyticsDataStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
588       super(channel, callOptions);
589     }
590 
591     @java.lang.Override
build( io.grpc.Channel channel, io.grpc.CallOptions callOptions)592     protected BetaAnalyticsDataStub build(
593         io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
594       return new BetaAnalyticsDataStub(channel, callOptions);
595     }
596 
597     /**
598      *
599      *
600      * <pre>
601      * Returns a customized report of your Google Analytics event data. Reports
602      * contain statistics derived from data collected by the Google Analytics
603      * tracking code. The data returned from the API is as a table with columns
604      * for the requested dimensions and metrics. Metrics are individual
605      * measurements of user activity on your property, such as active users or
606      * event count. Dimensions break down metrics across some common criteria,
607      * such as country or event name.
608      * For a guide to constructing requests &amp; understanding responses, see
609      * [Creating a
610      * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics).
611      * </pre>
612      */
runReport( com.google.analytics.data.v1beta.RunReportRequest request, io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.RunReportResponse> responseObserver)613     public void runReport(
614         com.google.analytics.data.v1beta.RunReportRequest request,
615         io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.RunReportResponse>
616             responseObserver) {
617       io.grpc.stub.ClientCalls.asyncUnaryCall(
618           getChannel().newCall(getRunReportMethod(), getCallOptions()), request, responseObserver);
619     }
620 
621     /**
622      *
623      *
624      * <pre>
625      * Returns a customized pivot report of your Google Analytics event data.
626      * Pivot reports are more advanced and expressive formats than regular
627      * reports. In a pivot report, dimensions are only visible if they are
628      * included in a pivot. Multiple pivots can be specified to further dissect
629      * your data.
630      * </pre>
631      */
runPivotReport( com.google.analytics.data.v1beta.RunPivotReportRequest request, io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.RunPivotReportResponse> responseObserver)632     public void runPivotReport(
633         com.google.analytics.data.v1beta.RunPivotReportRequest request,
634         io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.RunPivotReportResponse>
635             responseObserver) {
636       io.grpc.stub.ClientCalls.asyncUnaryCall(
637           getChannel().newCall(getRunPivotReportMethod(), getCallOptions()),
638           request,
639           responseObserver);
640     }
641 
642     /**
643      *
644      *
645      * <pre>
646      * Returns multiple reports in a batch. All reports must be for the same
647      * GA4 Property.
648      * </pre>
649      */
batchRunReports( com.google.analytics.data.v1beta.BatchRunReportsRequest request, io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.BatchRunReportsResponse> responseObserver)650     public void batchRunReports(
651         com.google.analytics.data.v1beta.BatchRunReportsRequest request,
652         io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.BatchRunReportsResponse>
653             responseObserver) {
654       io.grpc.stub.ClientCalls.asyncUnaryCall(
655           getChannel().newCall(getBatchRunReportsMethod(), getCallOptions()),
656           request,
657           responseObserver);
658     }
659 
660     /**
661      *
662      *
663      * <pre>
664      * Returns multiple pivot reports in a batch. All reports must be for the same
665      * GA4 Property.
666      * </pre>
667      */
batchRunPivotReports( com.google.analytics.data.v1beta.BatchRunPivotReportsRequest request, io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.BatchRunPivotReportsResponse> responseObserver)668     public void batchRunPivotReports(
669         com.google.analytics.data.v1beta.BatchRunPivotReportsRequest request,
670         io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.BatchRunPivotReportsResponse>
671             responseObserver) {
672       io.grpc.stub.ClientCalls.asyncUnaryCall(
673           getChannel().newCall(getBatchRunPivotReportsMethod(), getCallOptions()),
674           request,
675           responseObserver);
676     }
677 
678     /**
679      *
680      *
681      * <pre>
682      * Returns metadata for dimensions and metrics available in reporting methods.
683      * Used to explore the dimensions and metrics. In this method, a Google
684      * Analytics GA4 Property Identifier is specified in the request, and
685      * the metadata response includes Custom dimensions and metrics as well as
686      * Universal metadata.
687      * For example if a custom metric with parameter name `levels_unlocked` is
688      * registered to a property, the Metadata response will contain
689      * `customEvent:levels_unlocked`. Universal metadata are dimensions and
690      * metrics applicable to any property such as `country` and `totalUsers`.
691      * </pre>
692      */
getMetadata( com.google.analytics.data.v1beta.GetMetadataRequest request, io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.Metadata> responseObserver)693     public void getMetadata(
694         com.google.analytics.data.v1beta.GetMetadataRequest request,
695         io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.Metadata> responseObserver) {
696       io.grpc.stub.ClientCalls.asyncUnaryCall(
697           getChannel().newCall(getGetMetadataMethod(), getCallOptions()),
698           request,
699           responseObserver);
700     }
701 
702     /**
703      *
704      *
705      * <pre>
706      * Returns a customized report of realtime event data for your property.
707      * Events appear in realtime reports seconds after they have been sent to
708      * the Google Analytics. Realtime reports show events and usage data for the
709      * periods of time ranging from the present moment to 30 minutes ago (up to
710      * 60 minutes for Google Analytics 360 properties).
711      * For a guide to constructing realtime requests &amp; understanding responses,
712      * see [Creating a Realtime
713      * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).
714      * </pre>
715      */
runRealtimeReport( com.google.analytics.data.v1beta.RunRealtimeReportRequest request, io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.RunRealtimeReportResponse> responseObserver)716     public void runRealtimeReport(
717         com.google.analytics.data.v1beta.RunRealtimeReportRequest request,
718         io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.RunRealtimeReportResponse>
719             responseObserver) {
720       io.grpc.stub.ClientCalls.asyncUnaryCall(
721           getChannel().newCall(getRunRealtimeReportMethod(), getCallOptions()),
722           request,
723           responseObserver);
724     }
725 
726     /**
727      *
728      *
729      * <pre>
730      * This compatibility method lists dimensions and metrics that can be added to
731      * a report request and maintain compatibility. This method fails if the
732      * request's dimensions and metrics are incompatible.
733      * In Google Analytics, reports fail if they request incompatible dimensions
734      * and/or metrics; in that case, you will need to remove dimensions and/or
735      * metrics from the incompatible report until the report is compatible.
736      * The Realtime and Core reports have different compatibility rules. This
737      * method checks compatibility for Core reports.
738      * </pre>
739      */
checkCompatibility( com.google.analytics.data.v1beta.CheckCompatibilityRequest request, io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.CheckCompatibilityResponse> responseObserver)740     public void checkCompatibility(
741         com.google.analytics.data.v1beta.CheckCompatibilityRequest request,
742         io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.CheckCompatibilityResponse>
743             responseObserver) {
744       io.grpc.stub.ClientCalls.asyncUnaryCall(
745           getChannel().newCall(getCheckCompatibilityMethod(), getCallOptions()),
746           request,
747           responseObserver);
748     }
749   }
750 
751   /**
752    * A stub to allow clients to do synchronous rpc calls to service BetaAnalyticsData.
753    *
754    * <pre>
755    * Google Analytics reporting data service.
756    * </pre>
757    */
758   public static final class BetaAnalyticsDataBlockingStub
759       extends io.grpc.stub.AbstractBlockingStub<BetaAnalyticsDataBlockingStub> {
BetaAnalyticsDataBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions)760     private BetaAnalyticsDataBlockingStub(
761         io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
762       super(channel, callOptions);
763     }
764 
765     @java.lang.Override
build( io.grpc.Channel channel, io.grpc.CallOptions callOptions)766     protected BetaAnalyticsDataBlockingStub build(
767         io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
768       return new BetaAnalyticsDataBlockingStub(channel, callOptions);
769     }
770 
771     /**
772      *
773      *
774      * <pre>
775      * Returns a customized report of your Google Analytics event data. Reports
776      * contain statistics derived from data collected by the Google Analytics
777      * tracking code. The data returned from the API is as a table with columns
778      * for the requested dimensions and metrics. Metrics are individual
779      * measurements of user activity on your property, such as active users or
780      * event count. Dimensions break down metrics across some common criteria,
781      * such as country or event name.
782      * For a guide to constructing requests &amp; understanding responses, see
783      * [Creating a
784      * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics).
785      * </pre>
786      */
runReport( com.google.analytics.data.v1beta.RunReportRequest request)787     public com.google.analytics.data.v1beta.RunReportResponse runReport(
788         com.google.analytics.data.v1beta.RunReportRequest request) {
789       return io.grpc.stub.ClientCalls.blockingUnaryCall(
790           getChannel(), getRunReportMethod(), getCallOptions(), request);
791     }
792 
793     /**
794      *
795      *
796      * <pre>
797      * Returns a customized pivot report of your Google Analytics event data.
798      * Pivot reports are more advanced and expressive formats than regular
799      * reports. In a pivot report, dimensions are only visible if they are
800      * included in a pivot. Multiple pivots can be specified to further dissect
801      * your data.
802      * </pre>
803      */
runPivotReport( com.google.analytics.data.v1beta.RunPivotReportRequest request)804     public com.google.analytics.data.v1beta.RunPivotReportResponse runPivotReport(
805         com.google.analytics.data.v1beta.RunPivotReportRequest request) {
806       return io.grpc.stub.ClientCalls.blockingUnaryCall(
807           getChannel(), getRunPivotReportMethod(), getCallOptions(), request);
808     }
809 
810     /**
811      *
812      *
813      * <pre>
814      * Returns multiple reports in a batch. All reports must be for the same
815      * GA4 Property.
816      * </pre>
817      */
batchRunReports( com.google.analytics.data.v1beta.BatchRunReportsRequest request)818     public com.google.analytics.data.v1beta.BatchRunReportsResponse batchRunReports(
819         com.google.analytics.data.v1beta.BatchRunReportsRequest request) {
820       return io.grpc.stub.ClientCalls.blockingUnaryCall(
821           getChannel(), getBatchRunReportsMethod(), getCallOptions(), request);
822     }
823 
824     /**
825      *
826      *
827      * <pre>
828      * Returns multiple pivot reports in a batch. All reports must be for the same
829      * GA4 Property.
830      * </pre>
831      */
batchRunPivotReports( com.google.analytics.data.v1beta.BatchRunPivotReportsRequest request)832     public com.google.analytics.data.v1beta.BatchRunPivotReportsResponse batchRunPivotReports(
833         com.google.analytics.data.v1beta.BatchRunPivotReportsRequest request) {
834       return io.grpc.stub.ClientCalls.blockingUnaryCall(
835           getChannel(), getBatchRunPivotReportsMethod(), getCallOptions(), request);
836     }
837 
838     /**
839      *
840      *
841      * <pre>
842      * Returns metadata for dimensions and metrics available in reporting methods.
843      * Used to explore the dimensions and metrics. In this method, a Google
844      * Analytics GA4 Property Identifier is specified in the request, and
845      * the metadata response includes Custom dimensions and metrics as well as
846      * Universal metadata.
847      * For example if a custom metric with parameter name `levels_unlocked` is
848      * registered to a property, the Metadata response will contain
849      * `customEvent:levels_unlocked`. Universal metadata are dimensions and
850      * metrics applicable to any property such as `country` and `totalUsers`.
851      * </pre>
852      */
getMetadata( com.google.analytics.data.v1beta.GetMetadataRequest request)853     public com.google.analytics.data.v1beta.Metadata getMetadata(
854         com.google.analytics.data.v1beta.GetMetadataRequest request) {
855       return io.grpc.stub.ClientCalls.blockingUnaryCall(
856           getChannel(), getGetMetadataMethod(), getCallOptions(), request);
857     }
858 
859     /**
860      *
861      *
862      * <pre>
863      * Returns a customized report of realtime event data for your property.
864      * Events appear in realtime reports seconds after they have been sent to
865      * the Google Analytics. Realtime reports show events and usage data for the
866      * periods of time ranging from the present moment to 30 minutes ago (up to
867      * 60 minutes for Google Analytics 360 properties).
868      * For a guide to constructing realtime requests &amp; understanding responses,
869      * see [Creating a Realtime
870      * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).
871      * </pre>
872      */
runRealtimeReport( com.google.analytics.data.v1beta.RunRealtimeReportRequest request)873     public com.google.analytics.data.v1beta.RunRealtimeReportResponse runRealtimeReport(
874         com.google.analytics.data.v1beta.RunRealtimeReportRequest request) {
875       return io.grpc.stub.ClientCalls.blockingUnaryCall(
876           getChannel(), getRunRealtimeReportMethod(), getCallOptions(), request);
877     }
878 
879     /**
880      *
881      *
882      * <pre>
883      * This compatibility method lists dimensions and metrics that can be added to
884      * a report request and maintain compatibility. This method fails if the
885      * request's dimensions and metrics are incompatible.
886      * In Google Analytics, reports fail if they request incompatible dimensions
887      * and/or metrics; in that case, you will need to remove dimensions and/or
888      * metrics from the incompatible report until the report is compatible.
889      * The Realtime and Core reports have different compatibility rules. This
890      * method checks compatibility for Core reports.
891      * </pre>
892      */
checkCompatibility( com.google.analytics.data.v1beta.CheckCompatibilityRequest request)893     public com.google.analytics.data.v1beta.CheckCompatibilityResponse checkCompatibility(
894         com.google.analytics.data.v1beta.CheckCompatibilityRequest request) {
895       return io.grpc.stub.ClientCalls.blockingUnaryCall(
896           getChannel(), getCheckCompatibilityMethod(), getCallOptions(), request);
897     }
898   }
899 
900   /**
901    * A stub to allow clients to do ListenableFuture-style rpc calls to service BetaAnalyticsData.
902    *
903    * <pre>
904    * Google Analytics reporting data service.
905    * </pre>
906    */
907   public static final class BetaAnalyticsDataFutureStub
908       extends io.grpc.stub.AbstractFutureStub<BetaAnalyticsDataFutureStub> {
BetaAnalyticsDataFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions)909     private BetaAnalyticsDataFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
910       super(channel, callOptions);
911     }
912 
913     @java.lang.Override
build( io.grpc.Channel channel, io.grpc.CallOptions callOptions)914     protected BetaAnalyticsDataFutureStub build(
915         io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
916       return new BetaAnalyticsDataFutureStub(channel, callOptions);
917     }
918 
919     /**
920      *
921      *
922      * <pre>
923      * Returns a customized report of your Google Analytics event data. Reports
924      * contain statistics derived from data collected by the Google Analytics
925      * tracking code. The data returned from the API is as a table with columns
926      * for the requested dimensions and metrics. Metrics are individual
927      * measurements of user activity on your property, such as active users or
928      * event count. Dimensions break down metrics across some common criteria,
929      * such as country or event name.
930      * For a guide to constructing requests &amp; understanding responses, see
931      * [Creating a
932      * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics).
933      * </pre>
934      */
935     public com.google.common.util.concurrent.ListenableFuture<
936             com.google.analytics.data.v1beta.RunReportResponse>
runReport(com.google.analytics.data.v1beta.RunReportRequest request)937         runReport(com.google.analytics.data.v1beta.RunReportRequest request) {
938       return io.grpc.stub.ClientCalls.futureUnaryCall(
939           getChannel().newCall(getRunReportMethod(), getCallOptions()), request);
940     }
941 
942     /**
943      *
944      *
945      * <pre>
946      * Returns a customized pivot report of your Google Analytics event data.
947      * Pivot reports are more advanced and expressive formats than regular
948      * reports. In a pivot report, dimensions are only visible if they are
949      * included in a pivot. Multiple pivots can be specified to further dissect
950      * your data.
951      * </pre>
952      */
953     public com.google.common.util.concurrent.ListenableFuture<
954             com.google.analytics.data.v1beta.RunPivotReportResponse>
runPivotReport(com.google.analytics.data.v1beta.RunPivotReportRequest request)955         runPivotReport(com.google.analytics.data.v1beta.RunPivotReportRequest request) {
956       return io.grpc.stub.ClientCalls.futureUnaryCall(
957           getChannel().newCall(getRunPivotReportMethod(), getCallOptions()), request);
958     }
959 
960     /**
961      *
962      *
963      * <pre>
964      * Returns multiple reports in a batch. All reports must be for the same
965      * GA4 Property.
966      * </pre>
967      */
968     public com.google.common.util.concurrent.ListenableFuture<
969             com.google.analytics.data.v1beta.BatchRunReportsResponse>
batchRunReports(com.google.analytics.data.v1beta.BatchRunReportsRequest request)970         batchRunReports(com.google.analytics.data.v1beta.BatchRunReportsRequest request) {
971       return io.grpc.stub.ClientCalls.futureUnaryCall(
972           getChannel().newCall(getBatchRunReportsMethod(), getCallOptions()), request);
973     }
974 
975     /**
976      *
977      *
978      * <pre>
979      * Returns multiple pivot reports in a batch. All reports must be for the same
980      * GA4 Property.
981      * </pre>
982      */
983     public com.google.common.util.concurrent.ListenableFuture<
984             com.google.analytics.data.v1beta.BatchRunPivotReportsResponse>
batchRunPivotReports(com.google.analytics.data.v1beta.BatchRunPivotReportsRequest request)985         batchRunPivotReports(com.google.analytics.data.v1beta.BatchRunPivotReportsRequest request) {
986       return io.grpc.stub.ClientCalls.futureUnaryCall(
987           getChannel().newCall(getBatchRunPivotReportsMethod(), getCallOptions()), request);
988     }
989 
990     /**
991      *
992      *
993      * <pre>
994      * Returns metadata for dimensions and metrics available in reporting methods.
995      * Used to explore the dimensions and metrics. In this method, a Google
996      * Analytics GA4 Property Identifier is specified in the request, and
997      * the metadata response includes Custom dimensions and metrics as well as
998      * Universal metadata.
999      * For example if a custom metric with parameter name `levels_unlocked` is
1000      * registered to a property, the Metadata response will contain
1001      * `customEvent:levels_unlocked`. Universal metadata are dimensions and
1002      * metrics applicable to any property such as `country` and `totalUsers`.
1003      * </pre>
1004      */
1005     public com.google.common.util.concurrent.ListenableFuture<
1006             com.google.analytics.data.v1beta.Metadata>
getMetadata(com.google.analytics.data.v1beta.GetMetadataRequest request)1007         getMetadata(com.google.analytics.data.v1beta.GetMetadataRequest request) {
1008       return io.grpc.stub.ClientCalls.futureUnaryCall(
1009           getChannel().newCall(getGetMetadataMethod(), getCallOptions()), request);
1010     }
1011 
1012     /**
1013      *
1014      *
1015      * <pre>
1016      * Returns a customized report of realtime event data for your property.
1017      * Events appear in realtime reports seconds after they have been sent to
1018      * the Google Analytics. Realtime reports show events and usage data for the
1019      * periods of time ranging from the present moment to 30 minutes ago (up to
1020      * 60 minutes for Google Analytics 360 properties).
1021      * For a guide to constructing realtime requests &amp; understanding responses,
1022      * see [Creating a Realtime
1023      * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).
1024      * </pre>
1025      */
1026     public com.google.common.util.concurrent.ListenableFuture<
1027             com.google.analytics.data.v1beta.RunRealtimeReportResponse>
runRealtimeReport(com.google.analytics.data.v1beta.RunRealtimeReportRequest request)1028         runRealtimeReport(com.google.analytics.data.v1beta.RunRealtimeReportRequest request) {
1029       return io.grpc.stub.ClientCalls.futureUnaryCall(
1030           getChannel().newCall(getRunRealtimeReportMethod(), getCallOptions()), request);
1031     }
1032 
1033     /**
1034      *
1035      *
1036      * <pre>
1037      * This compatibility method lists dimensions and metrics that can be added to
1038      * a report request and maintain compatibility. This method fails if the
1039      * request's dimensions and metrics are incompatible.
1040      * In Google Analytics, reports fail if they request incompatible dimensions
1041      * and/or metrics; in that case, you will need to remove dimensions and/or
1042      * metrics from the incompatible report until the report is compatible.
1043      * The Realtime and Core reports have different compatibility rules. This
1044      * method checks compatibility for Core reports.
1045      * </pre>
1046      */
1047     public com.google.common.util.concurrent.ListenableFuture<
1048             com.google.analytics.data.v1beta.CheckCompatibilityResponse>
checkCompatibility(com.google.analytics.data.v1beta.CheckCompatibilityRequest request)1049         checkCompatibility(com.google.analytics.data.v1beta.CheckCompatibilityRequest request) {
1050       return io.grpc.stub.ClientCalls.futureUnaryCall(
1051           getChannel().newCall(getCheckCompatibilityMethod(), getCallOptions()), request);
1052     }
1053   }
1054 
1055   private static final int METHODID_RUN_REPORT = 0;
1056   private static final int METHODID_RUN_PIVOT_REPORT = 1;
1057   private static final int METHODID_BATCH_RUN_REPORTS = 2;
1058   private static final int METHODID_BATCH_RUN_PIVOT_REPORTS = 3;
1059   private static final int METHODID_GET_METADATA = 4;
1060   private static final int METHODID_RUN_REALTIME_REPORT = 5;
1061   private static final int METHODID_CHECK_COMPATIBILITY = 6;
1062 
1063   private static final class MethodHandlers<Req, Resp>
1064       implements io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
1065           io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
1066           io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
1067           io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
1068     private final AsyncService serviceImpl;
1069     private final int methodId;
1070 
MethodHandlers(AsyncService serviceImpl, int methodId)1071     MethodHandlers(AsyncService serviceImpl, int methodId) {
1072       this.serviceImpl = serviceImpl;
1073       this.methodId = methodId;
1074     }
1075 
1076     @java.lang.Override
1077     @java.lang.SuppressWarnings("unchecked")
invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver)1078     public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
1079       switch (methodId) {
1080         case METHODID_RUN_REPORT:
1081           serviceImpl.runReport(
1082               (com.google.analytics.data.v1beta.RunReportRequest) request,
1083               (io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.RunReportResponse>)
1084                   responseObserver);
1085           break;
1086         case METHODID_RUN_PIVOT_REPORT:
1087           serviceImpl.runPivotReport(
1088               (com.google.analytics.data.v1beta.RunPivotReportRequest) request,
1089               (io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.RunPivotReportResponse>)
1090                   responseObserver);
1091           break;
1092         case METHODID_BATCH_RUN_REPORTS:
1093           serviceImpl.batchRunReports(
1094               (com.google.analytics.data.v1beta.BatchRunReportsRequest) request,
1095               (io.grpc.stub.StreamObserver<
1096                       com.google.analytics.data.v1beta.BatchRunReportsResponse>)
1097                   responseObserver);
1098           break;
1099         case METHODID_BATCH_RUN_PIVOT_REPORTS:
1100           serviceImpl.batchRunPivotReports(
1101               (com.google.analytics.data.v1beta.BatchRunPivotReportsRequest) request,
1102               (io.grpc.stub.StreamObserver<
1103                       com.google.analytics.data.v1beta.BatchRunPivotReportsResponse>)
1104                   responseObserver);
1105           break;
1106         case METHODID_GET_METADATA:
1107           serviceImpl.getMetadata(
1108               (com.google.analytics.data.v1beta.GetMetadataRequest) request,
1109               (io.grpc.stub.StreamObserver<com.google.analytics.data.v1beta.Metadata>)
1110                   responseObserver);
1111           break;
1112         case METHODID_RUN_REALTIME_REPORT:
1113           serviceImpl.runRealtimeReport(
1114               (com.google.analytics.data.v1beta.RunRealtimeReportRequest) request,
1115               (io.grpc.stub.StreamObserver<
1116                       com.google.analytics.data.v1beta.RunRealtimeReportResponse>)
1117                   responseObserver);
1118           break;
1119         case METHODID_CHECK_COMPATIBILITY:
1120           serviceImpl.checkCompatibility(
1121               (com.google.analytics.data.v1beta.CheckCompatibilityRequest) request,
1122               (io.grpc.stub.StreamObserver<
1123                       com.google.analytics.data.v1beta.CheckCompatibilityResponse>)
1124                   responseObserver);
1125           break;
1126         default:
1127           throw new AssertionError();
1128       }
1129     }
1130 
1131     @java.lang.Override
1132     @java.lang.SuppressWarnings("unchecked")
invoke( io.grpc.stub.StreamObserver<Resp> responseObserver)1133     public io.grpc.stub.StreamObserver<Req> invoke(
1134         io.grpc.stub.StreamObserver<Resp> responseObserver) {
1135       switch (methodId) {
1136         default:
1137           throw new AssertionError();
1138       }
1139     }
1140   }
1141 
bindService(AsyncService service)1142   public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
1143     return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
1144         .addMethod(
1145             getRunReportMethod(),
1146             io.grpc.stub.ServerCalls.asyncUnaryCall(
1147                 new MethodHandlers<
1148                     com.google.analytics.data.v1beta.RunReportRequest,
1149                     com.google.analytics.data.v1beta.RunReportResponse>(
1150                     service, METHODID_RUN_REPORT)))
1151         .addMethod(
1152             getRunPivotReportMethod(),
1153             io.grpc.stub.ServerCalls.asyncUnaryCall(
1154                 new MethodHandlers<
1155                     com.google.analytics.data.v1beta.RunPivotReportRequest,
1156                     com.google.analytics.data.v1beta.RunPivotReportResponse>(
1157                     service, METHODID_RUN_PIVOT_REPORT)))
1158         .addMethod(
1159             getBatchRunReportsMethod(),
1160             io.grpc.stub.ServerCalls.asyncUnaryCall(
1161                 new MethodHandlers<
1162                     com.google.analytics.data.v1beta.BatchRunReportsRequest,
1163                     com.google.analytics.data.v1beta.BatchRunReportsResponse>(
1164                     service, METHODID_BATCH_RUN_REPORTS)))
1165         .addMethod(
1166             getBatchRunPivotReportsMethod(),
1167             io.grpc.stub.ServerCalls.asyncUnaryCall(
1168                 new MethodHandlers<
1169                     com.google.analytics.data.v1beta.BatchRunPivotReportsRequest,
1170                     com.google.analytics.data.v1beta.BatchRunPivotReportsResponse>(
1171                     service, METHODID_BATCH_RUN_PIVOT_REPORTS)))
1172         .addMethod(
1173             getGetMetadataMethod(),
1174             io.grpc.stub.ServerCalls.asyncUnaryCall(
1175                 new MethodHandlers<
1176                     com.google.analytics.data.v1beta.GetMetadataRequest,
1177                     com.google.analytics.data.v1beta.Metadata>(service, METHODID_GET_METADATA)))
1178         .addMethod(
1179             getRunRealtimeReportMethod(),
1180             io.grpc.stub.ServerCalls.asyncUnaryCall(
1181                 new MethodHandlers<
1182                     com.google.analytics.data.v1beta.RunRealtimeReportRequest,
1183                     com.google.analytics.data.v1beta.RunRealtimeReportResponse>(
1184                     service, METHODID_RUN_REALTIME_REPORT)))
1185         .addMethod(
1186             getCheckCompatibilityMethod(),
1187             io.grpc.stub.ServerCalls.asyncUnaryCall(
1188                 new MethodHandlers<
1189                     com.google.analytics.data.v1beta.CheckCompatibilityRequest,
1190                     com.google.analytics.data.v1beta.CheckCompatibilityResponse>(
1191                     service, METHODID_CHECK_COMPATIBILITY)))
1192         .build();
1193   }
1194 
1195   private abstract static class BetaAnalyticsDataBaseDescriptorSupplier
1196       implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
1197           io.grpc.protobuf.ProtoServiceDescriptorSupplier {
BetaAnalyticsDataBaseDescriptorSupplier()1198     BetaAnalyticsDataBaseDescriptorSupplier() {}
1199 
1200     @java.lang.Override
getFileDescriptor()1201     public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
1202       return com.google.analytics.data.v1beta.AnalyticsDataApiProto.getDescriptor();
1203     }
1204 
1205     @java.lang.Override
getServiceDescriptor()1206     public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
1207       return getFileDescriptor().findServiceByName("BetaAnalyticsData");
1208     }
1209   }
1210 
1211   private static final class BetaAnalyticsDataFileDescriptorSupplier
1212       extends BetaAnalyticsDataBaseDescriptorSupplier {
BetaAnalyticsDataFileDescriptorSupplier()1213     BetaAnalyticsDataFileDescriptorSupplier() {}
1214   }
1215 
1216   private static final class BetaAnalyticsDataMethodDescriptorSupplier
1217       extends BetaAnalyticsDataBaseDescriptorSupplier
1218       implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
1219     private final String methodName;
1220 
BetaAnalyticsDataMethodDescriptorSupplier(String methodName)1221     BetaAnalyticsDataMethodDescriptorSupplier(String methodName) {
1222       this.methodName = methodName;
1223     }
1224 
1225     @java.lang.Override
getMethodDescriptor()1226     public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
1227       return getServiceDescriptor().findMethodByName(methodName);
1228     }
1229   }
1230 
1231   private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
1232 
getServiceDescriptor()1233   public static io.grpc.ServiceDescriptor getServiceDescriptor() {
1234     io.grpc.ServiceDescriptor result = serviceDescriptor;
1235     if (result == null) {
1236       synchronized (BetaAnalyticsDataGrpc.class) {
1237         result = serviceDescriptor;
1238         if (result == null) {
1239           serviceDescriptor =
1240               result =
1241                   io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
1242                       .setSchemaDescriptor(new BetaAnalyticsDataFileDescriptorSupplier())
1243                       .addMethod(getRunReportMethod())
1244                       .addMethod(getRunPivotReportMethod())
1245                       .addMethod(getBatchRunReportsMethod())
1246                       .addMethod(getBatchRunPivotReportsMethod())
1247                       .addMethod(getGetMetadataMethod())
1248                       .addMethod(getRunRealtimeReportMethod())
1249                       .addMethod(getCheckCompatibilityMethod())
1250                       .build();
1251         }
1252       }
1253     }
1254     return result;
1255   }
1256 }
1257