google-analytics-admin 0.23.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. google/analytics/admin/__init__.py +615 -0
  2. google/analytics/admin/gapic_version.py +16 -0
  3. google/analytics/admin/py.typed +2 -0
  4. google/analytics/admin_v1alpha/__init__.py +613 -0
  5. google/analytics/admin_v1alpha/gapic_metadata.json +2278 -0
  6. google/analytics/admin_v1alpha/gapic_version.py +16 -0
  7. google/analytics/admin_v1alpha/py.typed +2 -0
  8. google/analytics/admin_v1alpha/services/__init__.py +15 -0
  9. google/analytics/admin_v1alpha/services/analytics_admin_service/__init__.py +22 -0
  10. google/analytics/admin_v1alpha/services/analytics_admin_service/async_client.py +14122 -0
  11. google/analytics/admin_v1alpha/services/analytics_admin_service/client.py +14680 -0
  12. google/analytics/admin_v1alpha/services/analytics_admin_service/pagers.py +4337 -0
  13. google/analytics/admin_v1alpha/services/analytics_admin_service/transports/__init__.py +41 -0
  14. google/analytics/admin_v1alpha/services/analytics_admin_service/transports/base.py +2494 -0
  15. google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc.py +4797 -0
  16. google/analytics/admin_v1alpha/services/analytics_admin_service/transports/grpc_asyncio.py +5671 -0
  17. google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest.py +31875 -0
  18. google/analytics/admin_v1alpha/services/analytics_admin_service/transports/rest_base.py +7944 -0
  19. google/analytics/admin_v1alpha/types/__init__.py +602 -0
  20. google/analytics/admin_v1alpha/types/access_report.py +705 -0
  21. google/analytics/admin_v1alpha/types/analytics_admin.py +4997 -0
  22. google/analytics/admin_v1alpha/types/audience.py +781 -0
  23. google/analytics/admin_v1alpha/types/channel_group.py +309 -0
  24. google/analytics/admin_v1alpha/types/event_create_and_edit.py +298 -0
  25. google/analytics/admin_v1alpha/types/expanded_data_set.py +282 -0
  26. google/analytics/admin_v1alpha/types/resources.py +3289 -0
  27. google/analytics/admin_v1alpha/types/subproperty_event_filter.py +292 -0
  28. google/analytics/admin_v1beta/__init__.py +255 -0
  29. google/analytics/admin_v1beta/gapic_metadata.json +838 -0
  30. google/analytics/admin_v1beta/gapic_version.py +16 -0
  31. google/analytics/admin_v1beta/py.typed +2 -0
  32. google/analytics/admin_v1beta/services/__init__.py +15 -0
  33. google/analytics/admin_v1beta/services/analytics_admin_service/__init__.py +22 -0
  34. google/analytics/admin_v1beta/services/analytics_admin_service/async_client.py +6707 -0
  35. google/analytics/admin_v1beta/services/analytics_admin_service/client.py +7164 -0
  36. google/analytics/admin_v1beta/services/analytics_admin_service/pagers.py +1927 -0
  37. google/analytics/admin_v1beta/services/analytics_admin_service/transports/__init__.py +41 -0
  38. google/analytics/admin_v1beta/services/analytics_admin_service/transports/base.py +965 -0
  39. google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc.py +1917 -0
  40. google/analytics/admin_v1beta/services/analytics_admin_service/transports/grpc_asyncio.py +2251 -0
  41. google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest.py +11423 -0
  42. google/analytics/admin_v1beta/services/analytics_admin_service/transports/rest_base.py +2857 -0
  43. google/analytics/admin_v1beta/types/__init__.py +244 -0
  44. google/analytics/admin_v1beta/types/access_report.py +705 -0
  45. google/analytics/admin_v1beta/types/analytics_admin.py +2006 -0
  46. google/analytics/admin_v1beta/types/resources.py +1677 -0
  47. google_analytics_admin-0.23.6.dist-info/LICENSE +202 -0
  48. google_analytics_admin-0.23.6.dist-info/METADATA +228 -0
  49. google_analytics_admin-0.23.6.dist-info/RECORD +51 -0
  50. google_analytics_admin-0.23.6.dist-info/WHEEL +5 -0
  51. google_analytics_admin-0.23.6.dist-info/top_level.txt +1 -0
@@ -0,0 +1,4797 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 2024 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
+ # http://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
+ import json
17
+ import logging as std_logging
18
+ import pickle
19
+ from typing import Callable, Dict, Optional, Sequence, Tuple, Union
20
+ import warnings
21
+
22
+ from google.api_core import gapic_v1, grpc_helpers
23
+ import google.auth # type: ignore
24
+ from google.auth import credentials as ga_credentials # type: ignore
25
+ from google.auth.transport.grpc import SslCredentials # type: ignore
26
+ from google.protobuf import empty_pb2 # type: ignore
27
+ from google.protobuf.json_format import MessageToJson
28
+ import google.protobuf.message
29
+ import grpc # type: ignore
30
+ import proto # type: ignore
31
+
32
+ from google.analytics.admin_v1alpha.types import channel_group as gaa_channel_group
33
+ from google.analytics.admin_v1alpha.types import (
34
+ expanded_data_set as gaa_expanded_data_set,
35
+ )
36
+ from google.analytics.admin_v1alpha.types import (
37
+ subproperty_event_filter as gaa_subproperty_event_filter,
38
+ )
39
+ from google.analytics.admin_v1alpha.types import analytics_admin
40
+ from google.analytics.admin_v1alpha.types import audience
41
+ from google.analytics.admin_v1alpha.types import audience as gaa_audience
42
+ from google.analytics.admin_v1alpha.types import channel_group
43
+ from google.analytics.admin_v1alpha.types import event_create_and_edit
44
+ from google.analytics.admin_v1alpha.types import expanded_data_set
45
+ from google.analytics.admin_v1alpha.types import resources
46
+ from google.analytics.admin_v1alpha.types import subproperty_event_filter
47
+
48
+ from .base import DEFAULT_CLIENT_INFO, AnalyticsAdminServiceTransport
49
+
50
+ try:
51
+ from google.api_core import client_logging # type: ignore
52
+
53
+ CLIENT_LOGGING_SUPPORTED = True # pragma: NO COVER
54
+ except ImportError: # pragma: NO COVER
55
+ CLIENT_LOGGING_SUPPORTED = False
56
+
57
+ _LOGGER = std_logging.getLogger(__name__)
58
+
59
+
60
+ class _LoggingClientInterceptor(grpc.UnaryUnaryClientInterceptor): # pragma: NO COVER
61
+ def intercept_unary_unary(self, continuation, client_call_details, request):
62
+ logging_enabled = CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor(
63
+ std_logging.DEBUG
64
+ )
65
+ if logging_enabled: # pragma: NO COVER
66
+ request_metadata = client_call_details.metadata
67
+ if isinstance(request, proto.Message):
68
+ request_payload = type(request).to_json(request)
69
+ elif isinstance(request, google.protobuf.message.Message):
70
+ request_payload = MessageToJson(request)
71
+ else:
72
+ request_payload = f"{type(request).__name__}: {pickle.dumps(request)}"
73
+
74
+ request_metadata = {
75
+ key: value.decode("utf-8") if isinstance(value, bytes) else value
76
+ for key, value in request_metadata
77
+ }
78
+ grpc_request = {
79
+ "payload": request_payload,
80
+ "requestMethod": "grpc",
81
+ "metadata": dict(request_metadata),
82
+ }
83
+ _LOGGER.debug(
84
+ f"Sending request for {client_call_details.method}",
85
+ extra={
86
+ "serviceName": "google.analytics.admin.v1alpha.AnalyticsAdminService",
87
+ "rpcName": client_call_details.method,
88
+ "request": grpc_request,
89
+ "metadata": grpc_request["metadata"],
90
+ },
91
+ )
92
+
93
+ response = continuation(client_call_details, request)
94
+ if logging_enabled: # pragma: NO COVER
95
+ response_metadata = response.trailing_metadata()
96
+ # Convert gRPC metadata `<class 'grpc.aio._metadata.Metadata'>` to list of tuples
97
+ metadata = (
98
+ dict([(k, str(v)) for k, v in response_metadata])
99
+ if response_metadata
100
+ else None
101
+ )
102
+ result = response.result()
103
+ if isinstance(result, proto.Message):
104
+ response_payload = type(result).to_json(result)
105
+ elif isinstance(result, google.protobuf.message.Message):
106
+ response_payload = MessageToJson(result)
107
+ else:
108
+ response_payload = f"{type(result).__name__}: {pickle.dumps(result)}"
109
+ grpc_response = {
110
+ "payload": response_payload,
111
+ "metadata": metadata,
112
+ "status": "OK",
113
+ }
114
+ _LOGGER.debug(
115
+ f"Received response for {client_call_details.method}.",
116
+ extra={
117
+ "serviceName": "google.analytics.admin.v1alpha.AnalyticsAdminService",
118
+ "rpcName": client_call_details.method,
119
+ "response": grpc_response,
120
+ "metadata": grpc_response["metadata"],
121
+ },
122
+ )
123
+ return response
124
+
125
+
126
+ class AnalyticsAdminServiceGrpcTransport(AnalyticsAdminServiceTransport):
127
+ """gRPC backend transport for AnalyticsAdminService.
128
+
129
+ Service Interface for the Google Analytics Admin API.
130
+
131
+ This class defines the same methods as the primary client, so the
132
+ primary client can load the underlying transport implementation
133
+ and call it.
134
+
135
+ It sends protocol buffers over the wire using gRPC (which is built on
136
+ top of HTTP/2); the ``grpcio`` package must be installed.
137
+ """
138
+
139
+ _stubs: Dict[str, Callable]
140
+
141
+ def __init__(
142
+ self,
143
+ *,
144
+ host: str = "analyticsadmin.googleapis.com",
145
+ credentials: Optional[ga_credentials.Credentials] = None,
146
+ credentials_file: Optional[str] = None,
147
+ scopes: Optional[Sequence[str]] = None,
148
+ channel: Optional[Union[grpc.Channel, Callable[..., grpc.Channel]]] = None,
149
+ api_mtls_endpoint: Optional[str] = None,
150
+ client_cert_source: Optional[Callable[[], Tuple[bytes, bytes]]] = None,
151
+ ssl_channel_credentials: Optional[grpc.ChannelCredentials] = None,
152
+ client_cert_source_for_mtls: Optional[Callable[[], Tuple[bytes, bytes]]] = None,
153
+ quota_project_id: Optional[str] = None,
154
+ client_info: gapic_v1.client_info.ClientInfo = DEFAULT_CLIENT_INFO,
155
+ always_use_jwt_access: Optional[bool] = False,
156
+ api_audience: Optional[str] = None,
157
+ ) -> None:
158
+ """Instantiate the transport.
159
+
160
+ Args:
161
+ host (Optional[str]):
162
+ The hostname to connect to (default: 'analyticsadmin.googleapis.com').
163
+ credentials (Optional[google.auth.credentials.Credentials]): The
164
+ authorization credentials to attach to requests. These
165
+ credentials identify the application to the service; if none
166
+ are specified, the client will attempt to ascertain the
167
+ credentials from the environment.
168
+ This argument is ignored if a ``channel`` instance is provided.
169
+ credentials_file (Optional[str]): A file with credentials that can
170
+ be loaded with :func:`google.auth.load_credentials_from_file`.
171
+ This argument is ignored if a ``channel`` instance is provided.
172
+ scopes (Optional(Sequence[str])): A list of scopes. This argument is
173
+ ignored if a ``channel`` instance is provided.
174
+ channel (Optional[Union[grpc.Channel, Callable[..., grpc.Channel]]]):
175
+ A ``Channel`` instance through which to make calls, or a Callable
176
+ that constructs and returns one. If set to None, ``self.create_channel``
177
+ is used to create the channel. If a Callable is given, it will be called
178
+ with the same arguments as used in ``self.create_channel``.
179
+ api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
180
+ If provided, it overrides the ``host`` argument and tries to create
181
+ a mutual TLS channel with client SSL credentials from
182
+ ``client_cert_source`` or application default SSL credentials.
183
+ client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
184
+ Deprecated. A callback to provide client SSL certificate bytes and
185
+ private key bytes, both in PEM format. It is ignored if
186
+ ``api_mtls_endpoint`` is None.
187
+ ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
188
+ for the grpc channel. It is ignored if a ``channel`` instance is provided.
189
+ client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
190
+ A callback to provide client certificate bytes and private key bytes,
191
+ both in PEM format. It is used to configure a mutual TLS channel. It is
192
+ ignored if a ``channel`` instance or ``ssl_channel_credentials`` is provided.
193
+ quota_project_id (Optional[str]): An optional project to use for billing
194
+ and quota.
195
+ client_info (google.api_core.gapic_v1.client_info.ClientInfo):
196
+ The client info used to send a user-agent string along with
197
+ API requests. If ``None``, then default info will be used.
198
+ Generally, you only need to set this if you're developing
199
+ your own client library.
200
+ always_use_jwt_access (Optional[bool]): Whether self signed JWT should
201
+ be used for service account credentials.
202
+
203
+ Raises:
204
+ google.auth.exceptions.MutualTLSChannelError: If mutual TLS transport
205
+ creation failed for any reason.
206
+ google.api_core.exceptions.DuplicateCredentialArgs: If both ``credentials``
207
+ and ``credentials_file`` are passed.
208
+ """
209
+ self._grpc_channel = None
210
+ self._ssl_channel_credentials = ssl_channel_credentials
211
+ self._stubs: Dict[str, Callable] = {}
212
+
213
+ if api_mtls_endpoint:
214
+ warnings.warn("api_mtls_endpoint is deprecated", DeprecationWarning)
215
+ if client_cert_source:
216
+ warnings.warn("client_cert_source is deprecated", DeprecationWarning)
217
+
218
+ if isinstance(channel, grpc.Channel):
219
+ # Ignore credentials if a channel was passed.
220
+ credentials = None
221
+ self._ignore_credentials = True
222
+ # If a channel was explicitly provided, set it.
223
+ self._grpc_channel = channel
224
+ self._ssl_channel_credentials = None
225
+
226
+ else:
227
+ if api_mtls_endpoint:
228
+ host = api_mtls_endpoint
229
+
230
+ # Create SSL credentials with client_cert_source or application
231
+ # default SSL credentials.
232
+ if client_cert_source:
233
+ cert, key = client_cert_source()
234
+ self._ssl_channel_credentials = grpc.ssl_channel_credentials(
235
+ certificate_chain=cert, private_key=key
236
+ )
237
+ else:
238
+ self._ssl_channel_credentials = SslCredentials().ssl_credentials
239
+
240
+ else:
241
+ if client_cert_source_for_mtls and not ssl_channel_credentials:
242
+ cert, key = client_cert_source_for_mtls()
243
+ self._ssl_channel_credentials = grpc.ssl_channel_credentials(
244
+ certificate_chain=cert, private_key=key
245
+ )
246
+
247
+ # The base transport sets the host, credentials and scopes
248
+ super().__init__(
249
+ host=host,
250
+ credentials=credentials,
251
+ credentials_file=credentials_file,
252
+ scopes=scopes,
253
+ quota_project_id=quota_project_id,
254
+ client_info=client_info,
255
+ always_use_jwt_access=always_use_jwt_access,
256
+ api_audience=api_audience,
257
+ )
258
+
259
+ if not self._grpc_channel:
260
+ # initialize with the provided callable or the default channel
261
+ channel_init = channel or type(self).create_channel
262
+ self._grpc_channel = channel_init(
263
+ self._host,
264
+ # use the credentials which are saved
265
+ credentials=self._credentials,
266
+ # Set ``credentials_file`` to ``None`` here as
267
+ # the credentials that we saved earlier should be used.
268
+ credentials_file=None,
269
+ scopes=self._scopes,
270
+ ssl_credentials=self._ssl_channel_credentials,
271
+ quota_project_id=quota_project_id,
272
+ options=[
273
+ ("grpc.max_send_message_length", -1),
274
+ ("grpc.max_receive_message_length", -1),
275
+ ],
276
+ )
277
+
278
+ self._interceptor = _LoggingClientInterceptor()
279
+ self._logged_channel = grpc.intercept_channel(
280
+ self._grpc_channel, self._interceptor
281
+ )
282
+
283
+ # Wrap messages. This must be done after self._logged_channel exists
284
+ self._prep_wrapped_messages(client_info)
285
+
286
+ @classmethod
287
+ def create_channel(
288
+ cls,
289
+ host: str = "analyticsadmin.googleapis.com",
290
+ credentials: Optional[ga_credentials.Credentials] = None,
291
+ credentials_file: Optional[str] = None,
292
+ scopes: Optional[Sequence[str]] = None,
293
+ quota_project_id: Optional[str] = None,
294
+ **kwargs,
295
+ ) -> grpc.Channel:
296
+ """Create and return a gRPC channel object.
297
+ Args:
298
+ host (Optional[str]): The host for the channel to use.
299
+ credentials (Optional[~.Credentials]): The
300
+ authorization credentials to attach to requests. These
301
+ credentials identify this application to the service. If
302
+ none are specified, the client will attempt to ascertain
303
+ the credentials from the environment.
304
+ credentials_file (Optional[str]): A file with credentials that can
305
+ be loaded with :func:`google.auth.load_credentials_from_file`.
306
+ This argument is mutually exclusive with credentials.
307
+ scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
308
+ service. These are only used when credentials are not specified and
309
+ are passed to :func:`google.auth.default`.
310
+ quota_project_id (Optional[str]): An optional project to use for billing
311
+ and quota.
312
+ kwargs (Optional[dict]): Keyword arguments, which are passed to the
313
+ channel creation.
314
+ Returns:
315
+ grpc.Channel: A gRPC channel object.
316
+
317
+ Raises:
318
+ google.api_core.exceptions.DuplicateCredentialArgs: If both ``credentials``
319
+ and ``credentials_file`` are passed.
320
+ """
321
+
322
+ return grpc_helpers.create_channel(
323
+ host,
324
+ credentials=credentials,
325
+ credentials_file=credentials_file,
326
+ quota_project_id=quota_project_id,
327
+ default_scopes=cls.AUTH_SCOPES,
328
+ scopes=scopes,
329
+ default_host=cls.DEFAULT_HOST,
330
+ **kwargs,
331
+ )
332
+
333
+ @property
334
+ def grpc_channel(self) -> grpc.Channel:
335
+ """Return the channel designed to connect to this service."""
336
+ return self._grpc_channel
337
+
338
+ @property
339
+ def get_account(
340
+ self,
341
+ ) -> Callable[[analytics_admin.GetAccountRequest], resources.Account]:
342
+ r"""Return a callable for the get account method over gRPC.
343
+
344
+ Lookup for a single Account.
345
+
346
+ Returns:
347
+ Callable[[~.GetAccountRequest],
348
+ ~.Account]:
349
+ A function that, when called, will call the underlying RPC
350
+ on the server.
351
+ """
352
+ # Generate a "stub function" on-the-fly which will actually make
353
+ # the request.
354
+ # gRPC handles serialization and deserialization, so we just need
355
+ # to pass in the functions for each.
356
+ if "get_account" not in self._stubs:
357
+ self._stubs["get_account"] = self._logged_channel.unary_unary(
358
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccount",
359
+ request_serializer=analytics_admin.GetAccountRequest.serialize,
360
+ response_deserializer=resources.Account.deserialize,
361
+ )
362
+ return self._stubs["get_account"]
363
+
364
+ @property
365
+ def list_accounts(
366
+ self,
367
+ ) -> Callable[
368
+ [analytics_admin.ListAccountsRequest], analytics_admin.ListAccountsResponse
369
+ ]:
370
+ r"""Return a callable for the list accounts method over gRPC.
371
+
372
+ Returns all accounts accessible by the caller.
373
+
374
+ Note that these accounts might not currently have GA
375
+ properties. Soft-deleted (ie: "trashed") accounts are
376
+ excluded by default. Returns an empty list if no
377
+ relevant accounts are found.
378
+
379
+ Returns:
380
+ Callable[[~.ListAccountsRequest],
381
+ ~.ListAccountsResponse]:
382
+ A function that, when called, will call the underlying RPC
383
+ on the server.
384
+ """
385
+ # Generate a "stub function" on-the-fly which will actually make
386
+ # the request.
387
+ # gRPC handles serialization and deserialization, so we just need
388
+ # to pass in the functions for each.
389
+ if "list_accounts" not in self._stubs:
390
+ self._stubs["list_accounts"] = self._logged_channel.unary_unary(
391
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccounts",
392
+ request_serializer=analytics_admin.ListAccountsRequest.serialize,
393
+ response_deserializer=analytics_admin.ListAccountsResponse.deserialize,
394
+ )
395
+ return self._stubs["list_accounts"]
396
+
397
+ @property
398
+ def delete_account(
399
+ self,
400
+ ) -> Callable[[analytics_admin.DeleteAccountRequest], empty_pb2.Empty]:
401
+ r"""Return a callable for the delete account method over gRPC.
402
+
403
+ Marks target Account as soft-deleted (ie: "trashed")
404
+ and returns it.
405
+ This API does not have a method to restore soft-deleted
406
+ accounts. However, they can be restored using the Trash
407
+ Can UI.
408
+
409
+ If the accounts are not restored before the expiration
410
+ time, the account and all child resources (eg:
411
+ Properties, GoogleAdsLinks, Streams, AccessBindings)
412
+ will be permanently purged.
413
+ https://support.google.com/analytics/answer/6154772
414
+
415
+ Returns an error if the target is not found.
416
+
417
+ Returns:
418
+ Callable[[~.DeleteAccountRequest],
419
+ ~.Empty]:
420
+ A function that, when called, will call the underlying RPC
421
+ on the server.
422
+ """
423
+ # Generate a "stub function" on-the-fly which will actually make
424
+ # the request.
425
+ # gRPC handles serialization and deserialization, so we just need
426
+ # to pass in the functions for each.
427
+ if "delete_account" not in self._stubs:
428
+ self._stubs["delete_account"] = self._logged_channel.unary_unary(
429
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccount",
430
+ request_serializer=analytics_admin.DeleteAccountRequest.serialize,
431
+ response_deserializer=empty_pb2.Empty.FromString,
432
+ )
433
+ return self._stubs["delete_account"]
434
+
435
+ @property
436
+ def update_account(
437
+ self,
438
+ ) -> Callable[[analytics_admin.UpdateAccountRequest], resources.Account]:
439
+ r"""Return a callable for the update account method over gRPC.
440
+
441
+ Updates an account.
442
+
443
+ Returns:
444
+ Callable[[~.UpdateAccountRequest],
445
+ ~.Account]:
446
+ A function that, when called, will call the underlying RPC
447
+ on the server.
448
+ """
449
+ # Generate a "stub function" on-the-fly which will actually make
450
+ # the request.
451
+ # gRPC handles serialization and deserialization, so we just need
452
+ # to pass in the functions for each.
453
+ if "update_account" not in self._stubs:
454
+ self._stubs["update_account"] = self._logged_channel.unary_unary(
455
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccount",
456
+ request_serializer=analytics_admin.UpdateAccountRequest.serialize,
457
+ response_deserializer=resources.Account.deserialize,
458
+ )
459
+ return self._stubs["update_account"]
460
+
461
+ @property
462
+ def provision_account_ticket(
463
+ self,
464
+ ) -> Callable[
465
+ [analytics_admin.ProvisionAccountTicketRequest],
466
+ analytics_admin.ProvisionAccountTicketResponse,
467
+ ]:
468
+ r"""Return a callable for the provision account ticket method over gRPC.
469
+
470
+ Requests a ticket for creating an account.
471
+
472
+ Returns:
473
+ Callable[[~.ProvisionAccountTicketRequest],
474
+ ~.ProvisionAccountTicketResponse]:
475
+ A function that, when called, will call the underlying RPC
476
+ on the server.
477
+ """
478
+ # Generate a "stub function" on-the-fly which will actually make
479
+ # the request.
480
+ # gRPC handles serialization and deserialization, so we just need
481
+ # to pass in the functions for each.
482
+ if "provision_account_ticket" not in self._stubs:
483
+ self._stubs["provision_account_ticket"] = self._logged_channel.unary_unary(
484
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ProvisionAccountTicket",
485
+ request_serializer=analytics_admin.ProvisionAccountTicketRequest.serialize,
486
+ response_deserializer=analytics_admin.ProvisionAccountTicketResponse.deserialize,
487
+ )
488
+ return self._stubs["provision_account_ticket"]
489
+
490
+ @property
491
+ def list_account_summaries(
492
+ self,
493
+ ) -> Callable[
494
+ [analytics_admin.ListAccountSummariesRequest],
495
+ analytics_admin.ListAccountSummariesResponse,
496
+ ]:
497
+ r"""Return a callable for the list account summaries method over gRPC.
498
+
499
+ Returns summaries of all accounts accessible by the
500
+ caller.
501
+
502
+ Returns:
503
+ Callable[[~.ListAccountSummariesRequest],
504
+ ~.ListAccountSummariesResponse]:
505
+ A function that, when called, will call the underlying RPC
506
+ on the server.
507
+ """
508
+ # Generate a "stub function" on-the-fly which will actually make
509
+ # the request.
510
+ # gRPC handles serialization and deserialization, so we just need
511
+ # to pass in the functions for each.
512
+ if "list_account_summaries" not in self._stubs:
513
+ self._stubs["list_account_summaries"] = self._logged_channel.unary_unary(
514
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccountSummaries",
515
+ request_serializer=analytics_admin.ListAccountSummariesRequest.serialize,
516
+ response_deserializer=analytics_admin.ListAccountSummariesResponse.deserialize,
517
+ )
518
+ return self._stubs["list_account_summaries"]
519
+
520
+ @property
521
+ def get_property(
522
+ self,
523
+ ) -> Callable[[analytics_admin.GetPropertyRequest], resources.Property]:
524
+ r"""Return a callable for the get property method over gRPC.
525
+
526
+ Lookup for a single GA Property.
527
+
528
+ Returns:
529
+ Callable[[~.GetPropertyRequest],
530
+ ~.Property]:
531
+ A function that, when called, will call the underlying RPC
532
+ on the server.
533
+ """
534
+ # Generate a "stub function" on-the-fly which will actually make
535
+ # the request.
536
+ # gRPC handles serialization and deserialization, so we just need
537
+ # to pass in the functions for each.
538
+ if "get_property" not in self._stubs:
539
+ self._stubs["get_property"] = self._logged_channel.unary_unary(
540
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetProperty",
541
+ request_serializer=analytics_admin.GetPropertyRequest.serialize,
542
+ response_deserializer=resources.Property.deserialize,
543
+ )
544
+ return self._stubs["get_property"]
545
+
546
+ @property
547
+ def list_properties(
548
+ self,
549
+ ) -> Callable[
550
+ [analytics_admin.ListPropertiesRequest], analytics_admin.ListPropertiesResponse
551
+ ]:
552
+ r"""Return a callable for the list properties method over gRPC.
553
+
554
+ Returns child Properties under the specified parent
555
+ Account.
556
+ Properties will be excluded if the caller does not have
557
+ access. Soft-deleted (ie: "trashed") properties are
558
+ excluded by default. Returns an empty list if no
559
+ relevant properties are found.
560
+
561
+ Returns:
562
+ Callable[[~.ListPropertiesRequest],
563
+ ~.ListPropertiesResponse]:
564
+ A function that, when called, will call the underlying RPC
565
+ on the server.
566
+ """
567
+ # Generate a "stub function" on-the-fly which will actually make
568
+ # the request.
569
+ # gRPC handles serialization and deserialization, so we just need
570
+ # to pass in the functions for each.
571
+ if "list_properties" not in self._stubs:
572
+ self._stubs["list_properties"] = self._logged_channel.unary_unary(
573
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListProperties",
574
+ request_serializer=analytics_admin.ListPropertiesRequest.serialize,
575
+ response_deserializer=analytics_admin.ListPropertiesResponse.deserialize,
576
+ )
577
+ return self._stubs["list_properties"]
578
+
579
+ @property
580
+ def create_property(
581
+ self,
582
+ ) -> Callable[[analytics_admin.CreatePropertyRequest], resources.Property]:
583
+ r"""Return a callable for the create property method over gRPC.
584
+
585
+ Creates a Google Analytics property with the
586
+ specified location and attributes.
587
+
588
+ Returns:
589
+ Callable[[~.CreatePropertyRequest],
590
+ ~.Property]:
591
+ A function that, when called, will call the underlying RPC
592
+ on the server.
593
+ """
594
+ # Generate a "stub function" on-the-fly which will actually make
595
+ # the request.
596
+ # gRPC handles serialization and deserialization, so we just need
597
+ # to pass in the functions for each.
598
+ if "create_property" not in self._stubs:
599
+ self._stubs["create_property"] = self._logged_channel.unary_unary(
600
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateProperty",
601
+ request_serializer=analytics_admin.CreatePropertyRequest.serialize,
602
+ response_deserializer=resources.Property.deserialize,
603
+ )
604
+ return self._stubs["create_property"]
605
+
606
+ @property
607
+ def delete_property(
608
+ self,
609
+ ) -> Callable[[analytics_admin.DeletePropertyRequest], resources.Property]:
610
+ r"""Return a callable for the delete property method over gRPC.
611
+
612
+ Marks target Property as soft-deleted (ie: "trashed")
613
+ and returns it.
614
+ This API does not have a method to restore soft-deleted
615
+ properties. However, they can be restored using the
616
+ Trash Can UI.
617
+
618
+ If the properties are not restored before the expiration
619
+ time, the Property and all child resources (eg:
620
+ GoogleAdsLinks, Streams, AccessBindings) will be
621
+ permanently purged.
622
+ https://support.google.com/analytics/answer/6154772
623
+
624
+ Returns an error if the target is not found.
625
+
626
+ Returns:
627
+ Callable[[~.DeletePropertyRequest],
628
+ ~.Property]:
629
+ A function that, when called, will call the underlying RPC
630
+ on the server.
631
+ """
632
+ # Generate a "stub function" on-the-fly which will actually make
633
+ # the request.
634
+ # gRPC handles serialization and deserialization, so we just need
635
+ # to pass in the functions for each.
636
+ if "delete_property" not in self._stubs:
637
+ self._stubs["delete_property"] = self._logged_channel.unary_unary(
638
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteProperty",
639
+ request_serializer=analytics_admin.DeletePropertyRequest.serialize,
640
+ response_deserializer=resources.Property.deserialize,
641
+ )
642
+ return self._stubs["delete_property"]
643
+
644
+ @property
645
+ def update_property(
646
+ self,
647
+ ) -> Callable[[analytics_admin.UpdatePropertyRequest], resources.Property]:
648
+ r"""Return a callable for the update property method over gRPC.
649
+
650
+ Updates a property.
651
+
652
+ Returns:
653
+ Callable[[~.UpdatePropertyRequest],
654
+ ~.Property]:
655
+ A function that, when called, will call the underlying RPC
656
+ on the server.
657
+ """
658
+ # Generate a "stub function" on-the-fly which will actually make
659
+ # the request.
660
+ # gRPC handles serialization and deserialization, so we just need
661
+ # to pass in the functions for each.
662
+ if "update_property" not in self._stubs:
663
+ self._stubs["update_property"] = self._logged_channel.unary_unary(
664
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateProperty",
665
+ request_serializer=analytics_admin.UpdatePropertyRequest.serialize,
666
+ response_deserializer=resources.Property.deserialize,
667
+ )
668
+ return self._stubs["update_property"]
669
+
670
+ @property
671
+ def create_firebase_link(
672
+ self,
673
+ ) -> Callable[[analytics_admin.CreateFirebaseLinkRequest], resources.FirebaseLink]:
674
+ r"""Return a callable for the create firebase link method over gRPC.
675
+
676
+ Creates a FirebaseLink.
677
+
678
+ Properties can have at most one FirebaseLink.
679
+
680
+ Returns:
681
+ Callable[[~.CreateFirebaseLinkRequest],
682
+ ~.FirebaseLink]:
683
+ A function that, when called, will call the underlying RPC
684
+ on the server.
685
+ """
686
+ # Generate a "stub function" on-the-fly which will actually make
687
+ # the request.
688
+ # gRPC handles serialization and deserialization, so we just need
689
+ # to pass in the functions for each.
690
+ if "create_firebase_link" not in self._stubs:
691
+ self._stubs["create_firebase_link"] = self._logged_channel.unary_unary(
692
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateFirebaseLink",
693
+ request_serializer=analytics_admin.CreateFirebaseLinkRequest.serialize,
694
+ response_deserializer=resources.FirebaseLink.deserialize,
695
+ )
696
+ return self._stubs["create_firebase_link"]
697
+
698
+ @property
699
+ def delete_firebase_link(
700
+ self,
701
+ ) -> Callable[[analytics_admin.DeleteFirebaseLinkRequest], empty_pb2.Empty]:
702
+ r"""Return a callable for the delete firebase link method over gRPC.
703
+
704
+ Deletes a FirebaseLink on a property
705
+
706
+ Returns:
707
+ Callable[[~.DeleteFirebaseLinkRequest],
708
+ ~.Empty]:
709
+ A function that, when called, will call the underlying RPC
710
+ on the server.
711
+ """
712
+ # Generate a "stub function" on-the-fly which will actually make
713
+ # the request.
714
+ # gRPC handles serialization and deserialization, so we just need
715
+ # to pass in the functions for each.
716
+ if "delete_firebase_link" not in self._stubs:
717
+ self._stubs["delete_firebase_link"] = self._logged_channel.unary_unary(
718
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteFirebaseLink",
719
+ request_serializer=analytics_admin.DeleteFirebaseLinkRequest.serialize,
720
+ response_deserializer=empty_pb2.Empty.FromString,
721
+ )
722
+ return self._stubs["delete_firebase_link"]
723
+
724
+ @property
725
+ def list_firebase_links(
726
+ self,
727
+ ) -> Callable[
728
+ [analytics_admin.ListFirebaseLinksRequest],
729
+ analytics_admin.ListFirebaseLinksResponse,
730
+ ]:
731
+ r"""Return a callable for the list firebase links method over gRPC.
732
+
733
+ Lists FirebaseLinks on a property.
734
+ Properties can have at most one FirebaseLink.
735
+
736
+ Returns:
737
+ Callable[[~.ListFirebaseLinksRequest],
738
+ ~.ListFirebaseLinksResponse]:
739
+ A function that, when called, will call the underlying RPC
740
+ on the server.
741
+ """
742
+ # Generate a "stub function" on-the-fly which will actually make
743
+ # the request.
744
+ # gRPC handles serialization and deserialization, so we just need
745
+ # to pass in the functions for each.
746
+ if "list_firebase_links" not in self._stubs:
747
+ self._stubs["list_firebase_links"] = self._logged_channel.unary_unary(
748
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListFirebaseLinks",
749
+ request_serializer=analytics_admin.ListFirebaseLinksRequest.serialize,
750
+ response_deserializer=analytics_admin.ListFirebaseLinksResponse.deserialize,
751
+ )
752
+ return self._stubs["list_firebase_links"]
753
+
754
+ @property
755
+ def get_global_site_tag(
756
+ self,
757
+ ) -> Callable[[analytics_admin.GetGlobalSiteTagRequest], resources.GlobalSiteTag]:
758
+ r"""Return a callable for the get global site tag method over gRPC.
759
+
760
+ Returns the Site Tag for the specified web stream.
761
+ Site Tags are immutable singletons.
762
+
763
+ Returns:
764
+ Callable[[~.GetGlobalSiteTagRequest],
765
+ ~.GlobalSiteTag]:
766
+ A function that, when called, will call the underlying RPC
767
+ on the server.
768
+ """
769
+ # Generate a "stub function" on-the-fly which will actually make
770
+ # the request.
771
+ # gRPC handles serialization and deserialization, so we just need
772
+ # to pass in the functions for each.
773
+ if "get_global_site_tag" not in self._stubs:
774
+ self._stubs["get_global_site_tag"] = self._logged_channel.unary_unary(
775
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetGlobalSiteTag",
776
+ request_serializer=analytics_admin.GetGlobalSiteTagRequest.serialize,
777
+ response_deserializer=resources.GlobalSiteTag.deserialize,
778
+ )
779
+ return self._stubs["get_global_site_tag"]
780
+
781
+ @property
782
+ def create_google_ads_link(
783
+ self,
784
+ ) -> Callable[
785
+ [analytics_admin.CreateGoogleAdsLinkRequest], resources.GoogleAdsLink
786
+ ]:
787
+ r"""Return a callable for the create google ads link method over gRPC.
788
+
789
+ Creates a GoogleAdsLink.
790
+
791
+ Returns:
792
+ Callable[[~.CreateGoogleAdsLinkRequest],
793
+ ~.GoogleAdsLink]:
794
+ A function that, when called, will call the underlying RPC
795
+ on the server.
796
+ """
797
+ # Generate a "stub function" on-the-fly which will actually make
798
+ # the request.
799
+ # gRPC handles serialization and deserialization, so we just need
800
+ # to pass in the functions for each.
801
+ if "create_google_ads_link" not in self._stubs:
802
+ self._stubs["create_google_ads_link"] = self._logged_channel.unary_unary(
803
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateGoogleAdsLink",
804
+ request_serializer=analytics_admin.CreateGoogleAdsLinkRequest.serialize,
805
+ response_deserializer=resources.GoogleAdsLink.deserialize,
806
+ )
807
+ return self._stubs["create_google_ads_link"]
808
+
809
+ @property
810
+ def update_google_ads_link(
811
+ self,
812
+ ) -> Callable[
813
+ [analytics_admin.UpdateGoogleAdsLinkRequest], resources.GoogleAdsLink
814
+ ]:
815
+ r"""Return a callable for the update google ads link method over gRPC.
816
+
817
+ Updates a GoogleAdsLink on a property
818
+
819
+ Returns:
820
+ Callable[[~.UpdateGoogleAdsLinkRequest],
821
+ ~.GoogleAdsLink]:
822
+ A function that, when called, will call the underlying RPC
823
+ on the server.
824
+ """
825
+ # Generate a "stub function" on-the-fly which will actually make
826
+ # the request.
827
+ # gRPC handles serialization and deserialization, so we just need
828
+ # to pass in the functions for each.
829
+ if "update_google_ads_link" not in self._stubs:
830
+ self._stubs["update_google_ads_link"] = self._logged_channel.unary_unary(
831
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleAdsLink",
832
+ request_serializer=analytics_admin.UpdateGoogleAdsLinkRequest.serialize,
833
+ response_deserializer=resources.GoogleAdsLink.deserialize,
834
+ )
835
+ return self._stubs["update_google_ads_link"]
836
+
837
+ @property
838
+ def delete_google_ads_link(
839
+ self,
840
+ ) -> Callable[[analytics_admin.DeleteGoogleAdsLinkRequest], empty_pb2.Empty]:
841
+ r"""Return a callable for the delete google ads link method over gRPC.
842
+
843
+ Deletes a GoogleAdsLink on a property
844
+
845
+ Returns:
846
+ Callable[[~.DeleteGoogleAdsLinkRequest],
847
+ ~.Empty]:
848
+ A function that, when called, will call the underlying RPC
849
+ on the server.
850
+ """
851
+ # Generate a "stub function" on-the-fly which will actually make
852
+ # the request.
853
+ # gRPC handles serialization and deserialization, so we just need
854
+ # to pass in the functions for each.
855
+ if "delete_google_ads_link" not in self._stubs:
856
+ self._stubs["delete_google_ads_link"] = self._logged_channel.unary_unary(
857
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteGoogleAdsLink",
858
+ request_serializer=analytics_admin.DeleteGoogleAdsLinkRequest.serialize,
859
+ response_deserializer=empty_pb2.Empty.FromString,
860
+ )
861
+ return self._stubs["delete_google_ads_link"]
862
+
863
+ @property
864
+ def list_google_ads_links(
865
+ self,
866
+ ) -> Callable[
867
+ [analytics_admin.ListGoogleAdsLinksRequest],
868
+ analytics_admin.ListGoogleAdsLinksResponse,
869
+ ]:
870
+ r"""Return a callable for the list google ads links method over gRPC.
871
+
872
+ Lists GoogleAdsLinks on a property.
873
+
874
+ Returns:
875
+ Callable[[~.ListGoogleAdsLinksRequest],
876
+ ~.ListGoogleAdsLinksResponse]:
877
+ A function that, when called, will call the underlying RPC
878
+ on the server.
879
+ """
880
+ # Generate a "stub function" on-the-fly which will actually make
881
+ # the request.
882
+ # gRPC handles serialization and deserialization, so we just need
883
+ # to pass in the functions for each.
884
+ if "list_google_ads_links" not in self._stubs:
885
+ self._stubs["list_google_ads_links"] = self._logged_channel.unary_unary(
886
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListGoogleAdsLinks",
887
+ request_serializer=analytics_admin.ListGoogleAdsLinksRequest.serialize,
888
+ response_deserializer=analytics_admin.ListGoogleAdsLinksResponse.deserialize,
889
+ )
890
+ return self._stubs["list_google_ads_links"]
891
+
892
+ @property
893
+ def get_data_sharing_settings(
894
+ self,
895
+ ) -> Callable[
896
+ [analytics_admin.GetDataSharingSettingsRequest], resources.DataSharingSettings
897
+ ]:
898
+ r"""Return a callable for the get data sharing settings method over gRPC.
899
+
900
+ Get data sharing settings on an account.
901
+ Data sharing settings are singletons.
902
+
903
+ Returns:
904
+ Callable[[~.GetDataSharingSettingsRequest],
905
+ ~.DataSharingSettings]:
906
+ A function that, when called, will call the underlying RPC
907
+ on the server.
908
+ """
909
+ # Generate a "stub function" on-the-fly which will actually make
910
+ # the request.
911
+ # gRPC handles serialization and deserialization, so we just need
912
+ # to pass in the functions for each.
913
+ if "get_data_sharing_settings" not in self._stubs:
914
+ self._stubs["get_data_sharing_settings"] = self._logged_channel.unary_unary(
915
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataSharingSettings",
916
+ request_serializer=analytics_admin.GetDataSharingSettingsRequest.serialize,
917
+ response_deserializer=resources.DataSharingSettings.deserialize,
918
+ )
919
+ return self._stubs["get_data_sharing_settings"]
920
+
921
+ @property
922
+ def get_measurement_protocol_secret(
923
+ self,
924
+ ) -> Callable[
925
+ [analytics_admin.GetMeasurementProtocolSecretRequest],
926
+ resources.MeasurementProtocolSecret,
927
+ ]:
928
+ r"""Return a callable for the get measurement protocol
929
+ secret method over gRPC.
930
+
931
+ Lookup for a single MeasurementProtocolSecret.
932
+
933
+ Returns:
934
+ Callable[[~.GetMeasurementProtocolSecretRequest],
935
+ ~.MeasurementProtocolSecret]:
936
+ A function that, when called, will call the underlying RPC
937
+ on the server.
938
+ """
939
+ # Generate a "stub function" on-the-fly which will actually make
940
+ # the request.
941
+ # gRPC handles serialization and deserialization, so we just need
942
+ # to pass in the functions for each.
943
+ if "get_measurement_protocol_secret" not in self._stubs:
944
+ self._stubs[
945
+ "get_measurement_protocol_secret"
946
+ ] = self._logged_channel.unary_unary(
947
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetMeasurementProtocolSecret",
948
+ request_serializer=analytics_admin.GetMeasurementProtocolSecretRequest.serialize,
949
+ response_deserializer=resources.MeasurementProtocolSecret.deserialize,
950
+ )
951
+ return self._stubs["get_measurement_protocol_secret"]
952
+
953
+ @property
954
+ def list_measurement_protocol_secrets(
955
+ self,
956
+ ) -> Callable[
957
+ [analytics_admin.ListMeasurementProtocolSecretsRequest],
958
+ analytics_admin.ListMeasurementProtocolSecretsResponse,
959
+ ]:
960
+ r"""Return a callable for the list measurement protocol
961
+ secrets method over gRPC.
962
+
963
+ Returns child MeasurementProtocolSecrets under the
964
+ specified parent Property.
965
+
966
+ Returns:
967
+ Callable[[~.ListMeasurementProtocolSecretsRequest],
968
+ ~.ListMeasurementProtocolSecretsResponse]:
969
+ A function that, when called, will call the underlying RPC
970
+ on the server.
971
+ """
972
+ # Generate a "stub function" on-the-fly which will actually make
973
+ # the request.
974
+ # gRPC handles serialization and deserialization, so we just need
975
+ # to pass in the functions for each.
976
+ if "list_measurement_protocol_secrets" not in self._stubs:
977
+ self._stubs[
978
+ "list_measurement_protocol_secrets"
979
+ ] = self._logged_channel.unary_unary(
980
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListMeasurementProtocolSecrets",
981
+ request_serializer=analytics_admin.ListMeasurementProtocolSecretsRequest.serialize,
982
+ response_deserializer=analytics_admin.ListMeasurementProtocolSecretsResponse.deserialize,
983
+ )
984
+ return self._stubs["list_measurement_protocol_secrets"]
985
+
986
+ @property
987
+ def create_measurement_protocol_secret(
988
+ self,
989
+ ) -> Callable[
990
+ [analytics_admin.CreateMeasurementProtocolSecretRequest],
991
+ resources.MeasurementProtocolSecret,
992
+ ]:
993
+ r"""Return a callable for the create measurement protocol
994
+ secret method over gRPC.
995
+
996
+ Creates a measurement protocol secret.
997
+
998
+ Returns:
999
+ Callable[[~.CreateMeasurementProtocolSecretRequest],
1000
+ ~.MeasurementProtocolSecret]:
1001
+ A function that, when called, will call the underlying RPC
1002
+ on the server.
1003
+ """
1004
+ # Generate a "stub function" on-the-fly which will actually make
1005
+ # the request.
1006
+ # gRPC handles serialization and deserialization, so we just need
1007
+ # to pass in the functions for each.
1008
+ if "create_measurement_protocol_secret" not in self._stubs:
1009
+ self._stubs[
1010
+ "create_measurement_protocol_secret"
1011
+ ] = self._logged_channel.unary_unary(
1012
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateMeasurementProtocolSecret",
1013
+ request_serializer=analytics_admin.CreateMeasurementProtocolSecretRequest.serialize,
1014
+ response_deserializer=resources.MeasurementProtocolSecret.deserialize,
1015
+ )
1016
+ return self._stubs["create_measurement_protocol_secret"]
1017
+
1018
+ @property
1019
+ def delete_measurement_protocol_secret(
1020
+ self,
1021
+ ) -> Callable[
1022
+ [analytics_admin.DeleteMeasurementProtocolSecretRequest], empty_pb2.Empty
1023
+ ]:
1024
+ r"""Return a callable for the delete measurement protocol
1025
+ secret method over gRPC.
1026
+
1027
+ Deletes target MeasurementProtocolSecret.
1028
+
1029
+ Returns:
1030
+ Callable[[~.DeleteMeasurementProtocolSecretRequest],
1031
+ ~.Empty]:
1032
+ A function that, when called, will call the underlying RPC
1033
+ on the server.
1034
+ """
1035
+ # Generate a "stub function" on-the-fly which will actually make
1036
+ # the request.
1037
+ # gRPC handles serialization and deserialization, so we just need
1038
+ # to pass in the functions for each.
1039
+ if "delete_measurement_protocol_secret" not in self._stubs:
1040
+ self._stubs[
1041
+ "delete_measurement_protocol_secret"
1042
+ ] = self._logged_channel.unary_unary(
1043
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteMeasurementProtocolSecret",
1044
+ request_serializer=analytics_admin.DeleteMeasurementProtocolSecretRequest.serialize,
1045
+ response_deserializer=empty_pb2.Empty.FromString,
1046
+ )
1047
+ return self._stubs["delete_measurement_protocol_secret"]
1048
+
1049
+ @property
1050
+ def update_measurement_protocol_secret(
1051
+ self,
1052
+ ) -> Callable[
1053
+ [analytics_admin.UpdateMeasurementProtocolSecretRequest],
1054
+ resources.MeasurementProtocolSecret,
1055
+ ]:
1056
+ r"""Return a callable for the update measurement protocol
1057
+ secret method over gRPC.
1058
+
1059
+ Updates a measurement protocol secret.
1060
+
1061
+ Returns:
1062
+ Callable[[~.UpdateMeasurementProtocolSecretRequest],
1063
+ ~.MeasurementProtocolSecret]:
1064
+ A function that, when called, will call the underlying RPC
1065
+ on the server.
1066
+ """
1067
+ # Generate a "stub function" on-the-fly which will actually make
1068
+ # the request.
1069
+ # gRPC handles serialization and deserialization, so we just need
1070
+ # to pass in the functions for each.
1071
+ if "update_measurement_protocol_secret" not in self._stubs:
1072
+ self._stubs[
1073
+ "update_measurement_protocol_secret"
1074
+ ] = self._logged_channel.unary_unary(
1075
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateMeasurementProtocolSecret",
1076
+ request_serializer=analytics_admin.UpdateMeasurementProtocolSecretRequest.serialize,
1077
+ response_deserializer=resources.MeasurementProtocolSecret.deserialize,
1078
+ )
1079
+ return self._stubs["update_measurement_protocol_secret"]
1080
+
1081
+ @property
1082
+ def acknowledge_user_data_collection(
1083
+ self,
1084
+ ) -> Callable[
1085
+ [analytics_admin.AcknowledgeUserDataCollectionRequest],
1086
+ analytics_admin.AcknowledgeUserDataCollectionResponse,
1087
+ ]:
1088
+ r"""Return a callable for the acknowledge user data
1089
+ collection method over gRPC.
1090
+
1091
+ Acknowledges the terms of user data collection for
1092
+ the specified property.
1093
+ This acknowledgement must be completed (either in the
1094
+ Google Analytics UI or through this API) before
1095
+ MeasurementProtocolSecret resources may be created.
1096
+
1097
+ Returns:
1098
+ Callable[[~.AcknowledgeUserDataCollectionRequest],
1099
+ ~.AcknowledgeUserDataCollectionResponse]:
1100
+ A function that, when called, will call the underlying RPC
1101
+ on the server.
1102
+ """
1103
+ # Generate a "stub function" on-the-fly which will actually make
1104
+ # the request.
1105
+ # gRPC handles serialization and deserialization, so we just need
1106
+ # to pass in the functions for each.
1107
+ if "acknowledge_user_data_collection" not in self._stubs:
1108
+ self._stubs[
1109
+ "acknowledge_user_data_collection"
1110
+ ] = self._logged_channel.unary_unary(
1111
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/AcknowledgeUserDataCollection",
1112
+ request_serializer=analytics_admin.AcknowledgeUserDataCollectionRequest.serialize,
1113
+ response_deserializer=analytics_admin.AcknowledgeUserDataCollectionResponse.deserialize,
1114
+ )
1115
+ return self._stubs["acknowledge_user_data_collection"]
1116
+
1117
+ @property
1118
+ def get_sk_ad_network_conversion_value_schema(
1119
+ self,
1120
+ ) -> Callable[
1121
+ [analytics_admin.GetSKAdNetworkConversionValueSchemaRequest],
1122
+ resources.SKAdNetworkConversionValueSchema,
1123
+ ]:
1124
+ r"""Return a callable for the get sk ad network conversion
1125
+ value schema method over gRPC.
1126
+
1127
+ Looks up a single SKAdNetworkConversionValueSchema.
1128
+
1129
+ Returns:
1130
+ Callable[[~.GetSKAdNetworkConversionValueSchemaRequest],
1131
+ ~.SKAdNetworkConversionValueSchema]:
1132
+ A function that, when called, will call the underlying RPC
1133
+ on the server.
1134
+ """
1135
+ # Generate a "stub function" on-the-fly which will actually make
1136
+ # the request.
1137
+ # gRPC handles serialization and deserialization, so we just need
1138
+ # to pass in the functions for each.
1139
+ if "get_sk_ad_network_conversion_value_schema" not in self._stubs:
1140
+ self._stubs[
1141
+ "get_sk_ad_network_conversion_value_schema"
1142
+ ] = self._logged_channel.unary_unary(
1143
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetSKAdNetworkConversionValueSchema",
1144
+ request_serializer=analytics_admin.GetSKAdNetworkConversionValueSchemaRequest.serialize,
1145
+ response_deserializer=resources.SKAdNetworkConversionValueSchema.deserialize,
1146
+ )
1147
+ return self._stubs["get_sk_ad_network_conversion_value_schema"]
1148
+
1149
+ @property
1150
+ def create_sk_ad_network_conversion_value_schema(
1151
+ self,
1152
+ ) -> Callable[
1153
+ [analytics_admin.CreateSKAdNetworkConversionValueSchemaRequest],
1154
+ resources.SKAdNetworkConversionValueSchema,
1155
+ ]:
1156
+ r"""Return a callable for the create sk ad network
1157
+ conversion value schema method over gRPC.
1158
+
1159
+ Creates a SKAdNetworkConversionValueSchema.
1160
+
1161
+ Returns:
1162
+ Callable[[~.CreateSKAdNetworkConversionValueSchemaRequest],
1163
+ ~.SKAdNetworkConversionValueSchema]:
1164
+ A function that, when called, will call the underlying RPC
1165
+ on the server.
1166
+ """
1167
+ # Generate a "stub function" on-the-fly which will actually make
1168
+ # the request.
1169
+ # gRPC handles serialization and deserialization, so we just need
1170
+ # to pass in the functions for each.
1171
+ if "create_sk_ad_network_conversion_value_schema" not in self._stubs:
1172
+ self._stubs[
1173
+ "create_sk_ad_network_conversion_value_schema"
1174
+ ] = self._logged_channel.unary_unary(
1175
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSKAdNetworkConversionValueSchema",
1176
+ request_serializer=analytics_admin.CreateSKAdNetworkConversionValueSchemaRequest.serialize,
1177
+ response_deserializer=resources.SKAdNetworkConversionValueSchema.deserialize,
1178
+ )
1179
+ return self._stubs["create_sk_ad_network_conversion_value_schema"]
1180
+
1181
+ @property
1182
+ def delete_sk_ad_network_conversion_value_schema(
1183
+ self,
1184
+ ) -> Callable[
1185
+ [analytics_admin.DeleteSKAdNetworkConversionValueSchemaRequest], empty_pb2.Empty
1186
+ ]:
1187
+ r"""Return a callable for the delete sk ad network
1188
+ conversion value schema method over gRPC.
1189
+
1190
+ Deletes target SKAdNetworkConversionValueSchema.
1191
+
1192
+ Returns:
1193
+ Callable[[~.DeleteSKAdNetworkConversionValueSchemaRequest],
1194
+ ~.Empty]:
1195
+ A function that, when called, will call the underlying RPC
1196
+ on the server.
1197
+ """
1198
+ # Generate a "stub function" on-the-fly which will actually make
1199
+ # the request.
1200
+ # gRPC handles serialization and deserialization, so we just need
1201
+ # to pass in the functions for each.
1202
+ if "delete_sk_ad_network_conversion_value_schema" not in self._stubs:
1203
+ self._stubs[
1204
+ "delete_sk_ad_network_conversion_value_schema"
1205
+ ] = self._logged_channel.unary_unary(
1206
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSKAdNetworkConversionValueSchema",
1207
+ request_serializer=analytics_admin.DeleteSKAdNetworkConversionValueSchemaRequest.serialize,
1208
+ response_deserializer=empty_pb2.Empty.FromString,
1209
+ )
1210
+ return self._stubs["delete_sk_ad_network_conversion_value_schema"]
1211
+
1212
+ @property
1213
+ def update_sk_ad_network_conversion_value_schema(
1214
+ self,
1215
+ ) -> Callable[
1216
+ [analytics_admin.UpdateSKAdNetworkConversionValueSchemaRequest],
1217
+ resources.SKAdNetworkConversionValueSchema,
1218
+ ]:
1219
+ r"""Return a callable for the update sk ad network
1220
+ conversion value schema method over gRPC.
1221
+
1222
+ Updates a SKAdNetworkConversionValueSchema.
1223
+
1224
+ Returns:
1225
+ Callable[[~.UpdateSKAdNetworkConversionValueSchemaRequest],
1226
+ ~.SKAdNetworkConversionValueSchema]:
1227
+ A function that, when called, will call the underlying RPC
1228
+ on the server.
1229
+ """
1230
+ # Generate a "stub function" on-the-fly which will actually make
1231
+ # the request.
1232
+ # gRPC handles serialization and deserialization, so we just need
1233
+ # to pass in the functions for each.
1234
+ if "update_sk_ad_network_conversion_value_schema" not in self._stubs:
1235
+ self._stubs[
1236
+ "update_sk_ad_network_conversion_value_schema"
1237
+ ] = self._logged_channel.unary_unary(
1238
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSKAdNetworkConversionValueSchema",
1239
+ request_serializer=analytics_admin.UpdateSKAdNetworkConversionValueSchemaRequest.serialize,
1240
+ response_deserializer=resources.SKAdNetworkConversionValueSchema.deserialize,
1241
+ )
1242
+ return self._stubs["update_sk_ad_network_conversion_value_schema"]
1243
+
1244
+ @property
1245
+ def list_sk_ad_network_conversion_value_schemas(
1246
+ self,
1247
+ ) -> Callable[
1248
+ [analytics_admin.ListSKAdNetworkConversionValueSchemasRequest],
1249
+ analytics_admin.ListSKAdNetworkConversionValueSchemasResponse,
1250
+ ]:
1251
+ r"""Return a callable for the list sk ad network conversion
1252
+ value schemas method over gRPC.
1253
+
1254
+ Lists SKAdNetworkConversionValueSchema on a stream.
1255
+ Properties can have at most one
1256
+ SKAdNetworkConversionValueSchema.
1257
+
1258
+ Returns:
1259
+ Callable[[~.ListSKAdNetworkConversionValueSchemasRequest],
1260
+ ~.ListSKAdNetworkConversionValueSchemasResponse]:
1261
+ A function that, when called, will call the underlying RPC
1262
+ on the server.
1263
+ """
1264
+ # Generate a "stub function" on-the-fly which will actually make
1265
+ # the request.
1266
+ # gRPC handles serialization and deserialization, so we just need
1267
+ # to pass in the functions for each.
1268
+ if "list_sk_ad_network_conversion_value_schemas" not in self._stubs:
1269
+ self._stubs[
1270
+ "list_sk_ad_network_conversion_value_schemas"
1271
+ ] = self._logged_channel.unary_unary(
1272
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListSKAdNetworkConversionValueSchemas",
1273
+ request_serializer=analytics_admin.ListSKAdNetworkConversionValueSchemasRequest.serialize,
1274
+ response_deserializer=analytics_admin.ListSKAdNetworkConversionValueSchemasResponse.deserialize,
1275
+ )
1276
+ return self._stubs["list_sk_ad_network_conversion_value_schemas"]
1277
+
1278
+ @property
1279
+ def search_change_history_events(
1280
+ self,
1281
+ ) -> Callable[
1282
+ [analytics_admin.SearchChangeHistoryEventsRequest],
1283
+ analytics_admin.SearchChangeHistoryEventsResponse,
1284
+ ]:
1285
+ r"""Return a callable for the search change history events method over gRPC.
1286
+
1287
+ Searches through all changes to an account or its
1288
+ children given the specified set of filters.
1289
+
1290
+ Only returns the subset of changes supported by the API.
1291
+ The UI may return additional changes.
1292
+
1293
+ Returns:
1294
+ Callable[[~.SearchChangeHistoryEventsRequest],
1295
+ ~.SearchChangeHistoryEventsResponse]:
1296
+ A function that, when called, will call the underlying RPC
1297
+ on the server.
1298
+ """
1299
+ # Generate a "stub function" on-the-fly which will actually make
1300
+ # the request.
1301
+ # gRPC handles serialization and deserialization, so we just need
1302
+ # to pass in the functions for each.
1303
+ if "search_change_history_events" not in self._stubs:
1304
+ self._stubs[
1305
+ "search_change_history_events"
1306
+ ] = self._logged_channel.unary_unary(
1307
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/SearchChangeHistoryEvents",
1308
+ request_serializer=analytics_admin.SearchChangeHistoryEventsRequest.serialize,
1309
+ response_deserializer=analytics_admin.SearchChangeHistoryEventsResponse.deserialize,
1310
+ )
1311
+ return self._stubs["search_change_history_events"]
1312
+
1313
+ @property
1314
+ def get_google_signals_settings(
1315
+ self,
1316
+ ) -> Callable[
1317
+ [analytics_admin.GetGoogleSignalsSettingsRequest],
1318
+ resources.GoogleSignalsSettings,
1319
+ ]:
1320
+ r"""Return a callable for the get google signals settings method over gRPC.
1321
+
1322
+ Lookup for Google Signals settings for a property.
1323
+
1324
+ Returns:
1325
+ Callable[[~.GetGoogleSignalsSettingsRequest],
1326
+ ~.GoogleSignalsSettings]:
1327
+ A function that, when called, will call the underlying RPC
1328
+ on the server.
1329
+ """
1330
+ # Generate a "stub function" on-the-fly which will actually make
1331
+ # the request.
1332
+ # gRPC handles serialization and deserialization, so we just need
1333
+ # to pass in the functions for each.
1334
+ if "get_google_signals_settings" not in self._stubs:
1335
+ self._stubs[
1336
+ "get_google_signals_settings"
1337
+ ] = self._logged_channel.unary_unary(
1338
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetGoogleSignalsSettings",
1339
+ request_serializer=analytics_admin.GetGoogleSignalsSettingsRequest.serialize,
1340
+ response_deserializer=resources.GoogleSignalsSettings.deserialize,
1341
+ )
1342
+ return self._stubs["get_google_signals_settings"]
1343
+
1344
+ @property
1345
+ def update_google_signals_settings(
1346
+ self,
1347
+ ) -> Callable[
1348
+ [analytics_admin.UpdateGoogleSignalsSettingsRequest],
1349
+ resources.GoogleSignalsSettings,
1350
+ ]:
1351
+ r"""Return a callable for the update google signals settings method over gRPC.
1352
+
1353
+ Updates Google Signals settings for a property.
1354
+
1355
+ Returns:
1356
+ Callable[[~.UpdateGoogleSignalsSettingsRequest],
1357
+ ~.GoogleSignalsSettings]:
1358
+ A function that, when called, will call the underlying RPC
1359
+ on the server.
1360
+ """
1361
+ # Generate a "stub function" on-the-fly which will actually make
1362
+ # the request.
1363
+ # gRPC handles serialization and deserialization, so we just need
1364
+ # to pass in the functions for each.
1365
+ if "update_google_signals_settings" not in self._stubs:
1366
+ self._stubs[
1367
+ "update_google_signals_settings"
1368
+ ] = self._logged_channel.unary_unary(
1369
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleSignalsSettings",
1370
+ request_serializer=analytics_admin.UpdateGoogleSignalsSettingsRequest.serialize,
1371
+ response_deserializer=resources.GoogleSignalsSettings.deserialize,
1372
+ )
1373
+ return self._stubs["update_google_signals_settings"]
1374
+
1375
+ @property
1376
+ def create_conversion_event(
1377
+ self,
1378
+ ) -> Callable[
1379
+ [analytics_admin.CreateConversionEventRequest], resources.ConversionEvent
1380
+ ]:
1381
+ r"""Return a callable for the create conversion event method over gRPC.
1382
+
1383
+ Deprecated: Use ``CreateKeyEvent`` instead. Creates a conversion
1384
+ event with the specified attributes.
1385
+
1386
+ Returns:
1387
+ Callable[[~.CreateConversionEventRequest],
1388
+ ~.ConversionEvent]:
1389
+ A function that, when called, will call the underlying RPC
1390
+ on the server.
1391
+ """
1392
+ # Generate a "stub function" on-the-fly which will actually make
1393
+ # the request.
1394
+ # gRPC handles serialization and deserialization, so we just need
1395
+ # to pass in the functions for each.
1396
+ if "create_conversion_event" not in self._stubs:
1397
+ self._stubs["create_conversion_event"] = self._logged_channel.unary_unary(
1398
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConversionEvent",
1399
+ request_serializer=analytics_admin.CreateConversionEventRequest.serialize,
1400
+ response_deserializer=resources.ConversionEvent.deserialize,
1401
+ )
1402
+ return self._stubs["create_conversion_event"]
1403
+
1404
+ @property
1405
+ def update_conversion_event(
1406
+ self,
1407
+ ) -> Callable[
1408
+ [analytics_admin.UpdateConversionEventRequest], resources.ConversionEvent
1409
+ ]:
1410
+ r"""Return a callable for the update conversion event method over gRPC.
1411
+
1412
+ Deprecated: Use ``UpdateKeyEvent`` instead. Updates a conversion
1413
+ event with the specified attributes.
1414
+
1415
+ Returns:
1416
+ Callable[[~.UpdateConversionEventRequest],
1417
+ ~.ConversionEvent]:
1418
+ A function that, when called, will call the underlying RPC
1419
+ on the server.
1420
+ """
1421
+ # Generate a "stub function" on-the-fly which will actually make
1422
+ # the request.
1423
+ # gRPC handles serialization and deserialization, so we just need
1424
+ # to pass in the functions for each.
1425
+ if "update_conversion_event" not in self._stubs:
1426
+ self._stubs["update_conversion_event"] = self._logged_channel.unary_unary(
1427
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateConversionEvent",
1428
+ request_serializer=analytics_admin.UpdateConversionEventRequest.serialize,
1429
+ response_deserializer=resources.ConversionEvent.deserialize,
1430
+ )
1431
+ return self._stubs["update_conversion_event"]
1432
+
1433
+ @property
1434
+ def get_conversion_event(
1435
+ self,
1436
+ ) -> Callable[
1437
+ [analytics_admin.GetConversionEventRequest], resources.ConversionEvent
1438
+ ]:
1439
+ r"""Return a callable for the get conversion event method over gRPC.
1440
+
1441
+ Deprecated: Use ``GetKeyEvent`` instead. Retrieve a single
1442
+ conversion event.
1443
+
1444
+ Returns:
1445
+ Callable[[~.GetConversionEventRequest],
1446
+ ~.ConversionEvent]:
1447
+ A function that, when called, will call the underlying RPC
1448
+ on the server.
1449
+ """
1450
+ # Generate a "stub function" on-the-fly which will actually make
1451
+ # the request.
1452
+ # gRPC handles serialization and deserialization, so we just need
1453
+ # to pass in the functions for each.
1454
+ if "get_conversion_event" not in self._stubs:
1455
+ self._stubs["get_conversion_event"] = self._logged_channel.unary_unary(
1456
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetConversionEvent",
1457
+ request_serializer=analytics_admin.GetConversionEventRequest.serialize,
1458
+ response_deserializer=resources.ConversionEvent.deserialize,
1459
+ )
1460
+ return self._stubs["get_conversion_event"]
1461
+
1462
+ @property
1463
+ def delete_conversion_event(
1464
+ self,
1465
+ ) -> Callable[[analytics_admin.DeleteConversionEventRequest], empty_pb2.Empty]:
1466
+ r"""Return a callable for the delete conversion event method over gRPC.
1467
+
1468
+ Deprecated: Use ``DeleteKeyEvent`` instead. Deletes a conversion
1469
+ event in a property.
1470
+
1471
+ Returns:
1472
+ Callable[[~.DeleteConversionEventRequest],
1473
+ ~.Empty]:
1474
+ A function that, when called, will call the underlying RPC
1475
+ on the server.
1476
+ """
1477
+ # Generate a "stub function" on-the-fly which will actually make
1478
+ # the request.
1479
+ # gRPC handles serialization and deserialization, so we just need
1480
+ # to pass in the functions for each.
1481
+ if "delete_conversion_event" not in self._stubs:
1482
+ self._stubs["delete_conversion_event"] = self._logged_channel.unary_unary(
1483
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConversionEvent",
1484
+ request_serializer=analytics_admin.DeleteConversionEventRequest.serialize,
1485
+ response_deserializer=empty_pb2.Empty.FromString,
1486
+ )
1487
+ return self._stubs["delete_conversion_event"]
1488
+
1489
+ @property
1490
+ def list_conversion_events(
1491
+ self,
1492
+ ) -> Callable[
1493
+ [analytics_admin.ListConversionEventsRequest],
1494
+ analytics_admin.ListConversionEventsResponse,
1495
+ ]:
1496
+ r"""Return a callable for the list conversion events method over gRPC.
1497
+
1498
+ Deprecated: Use ``ListKeyEvents`` instead. Returns a list of
1499
+ conversion events in the specified parent property.
1500
+
1501
+ Returns an empty list if no conversion events are found.
1502
+
1503
+ Returns:
1504
+ Callable[[~.ListConversionEventsRequest],
1505
+ ~.ListConversionEventsResponse]:
1506
+ A function that, when called, will call the underlying RPC
1507
+ on the server.
1508
+ """
1509
+ # Generate a "stub function" on-the-fly which will actually make
1510
+ # the request.
1511
+ # gRPC handles serialization and deserialization, so we just need
1512
+ # to pass in the functions for each.
1513
+ if "list_conversion_events" not in self._stubs:
1514
+ self._stubs["list_conversion_events"] = self._logged_channel.unary_unary(
1515
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListConversionEvents",
1516
+ request_serializer=analytics_admin.ListConversionEventsRequest.serialize,
1517
+ response_deserializer=analytics_admin.ListConversionEventsResponse.deserialize,
1518
+ )
1519
+ return self._stubs["list_conversion_events"]
1520
+
1521
+ @property
1522
+ def create_key_event(
1523
+ self,
1524
+ ) -> Callable[[analytics_admin.CreateKeyEventRequest], resources.KeyEvent]:
1525
+ r"""Return a callable for the create key event method over gRPC.
1526
+
1527
+ Creates a Key Event.
1528
+
1529
+ Returns:
1530
+ Callable[[~.CreateKeyEventRequest],
1531
+ ~.KeyEvent]:
1532
+ A function that, when called, will call the underlying RPC
1533
+ on the server.
1534
+ """
1535
+ # Generate a "stub function" on-the-fly which will actually make
1536
+ # the request.
1537
+ # gRPC handles serialization and deserialization, so we just need
1538
+ # to pass in the functions for each.
1539
+ if "create_key_event" not in self._stubs:
1540
+ self._stubs["create_key_event"] = self._logged_channel.unary_unary(
1541
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateKeyEvent",
1542
+ request_serializer=analytics_admin.CreateKeyEventRequest.serialize,
1543
+ response_deserializer=resources.KeyEvent.deserialize,
1544
+ )
1545
+ return self._stubs["create_key_event"]
1546
+
1547
+ @property
1548
+ def update_key_event(
1549
+ self,
1550
+ ) -> Callable[[analytics_admin.UpdateKeyEventRequest], resources.KeyEvent]:
1551
+ r"""Return a callable for the update key event method over gRPC.
1552
+
1553
+ Updates a Key Event.
1554
+
1555
+ Returns:
1556
+ Callable[[~.UpdateKeyEventRequest],
1557
+ ~.KeyEvent]:
1558
+ A function that, when called, will call the underlying RPC
1559
+ on the server.
1560
+ """
1561
+ # Generate a "stub function" on-the-fly which will actually make
1562
+ # the request.
1563
+ # gRPC handles serialization and deserialization, so we just need
1564
+ # to pass in the functions for each.
1565
+ if "update_key_event" not in self._stubs:
1566
+ self._stubs["update_key_event"] = self._logged_channel.unary_unary(
1567
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateKeyEvent",
1568
+ request_serializer=analytics_admin.UpdateKeyEventRequest.serialize,
1569
+ response_deserializer=resources.KeyEvent.deserialize,
1570
+ )
1571
+ return self._stubs["update_key_event"]
1572
+
1573
+ @property
1574
+ def get_key_event(
1575
+ self,
1576
+ ) -> Callable[[analytics_admin.GetKeyEventRequest], resources.KeyEvent]:
1577
+ r"""Return a callable for the get key event method over gRPC.
1578
+
1579
+ Retrieve a single Key Event.
1580
+
1581
+ Returns:
1582
+ Callable[[~.GetKeyEventRequest],
1583
+ ~.KeyEvent]:
1584
+ A function that, when called, will call the underlying RPC
1585
+ on the server.
1586
+ """
1587
+ # Generate a "stub function" on-the-fly which will actually make
1588
+ # the request.
1589
+ # gRPC handles serialization and deserialization, so we just need
1590
+ # to pass in the functions for each.
1591
+ if "get_key_event" not in self._stubs:
1592
+ self._stubs["get_key_event"] = self._logged_channel.unary_unary(
1593
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetKeyEvent",
1594
+ request_serializer=analytics_admin.GetKeyEventRequest.serialize,
1595
+ response_deserializer=resources.KeyEvent.deserialize,
1596
+ )
1597
+ return self._stubs["get_key_event"]
1598
+
1599
+ @property
1600
+ def delete_key_event(
1601
+ self,
1602
+ ) -> Callable[[analytics_admin.DeleteKeyEventRequest], empty_pb2.Empty]:
1603
+ r"""Return a callable for the delete key event method over gRPC.
1604
+
1605
+ Deletes a Key Event.
1606
+
1607
+ Returns:
1608
+ Callable[[~.DeleteKeyEventRequest],
1609
+ ~.Empty]:
1610
+ A function that, when called, will call the underlying RPC
1611
+ on the server.
1612
+ """
1613
+ # Generate a "stub function" on-the-fly which will actually make
1614
+ # the request.
1615
+ # gRPC handles serialization and deserialization, so we just need
1616
+ # to pass in the functions for each.
1617
+ if "delete_key_event" not in self._stubs:
1618
+ self._stubs["delete_key_event"] = self._logged_channel.unary_unary(
1619
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteKeyEvent",
1620
+ request_serializer=analytics_admin.DeleteKeyEventRequest.serialize,
1621
+ response_deserializer=empty_pb2.Empty.FromString,
1622
+ )
1623
+ return self._stubs["delete_key_event"]
1624
+
1625
+ @property
1626
+ def list_key_events(
1627
+ self,
1628
+ ) -> Callable[
1629
+ [analytics_admin.ListKeyEventsRequest], analytics_admin.ListKeyEventsResponse
1630
+ ]:
1631
+ r"""Return a callable for the list key events method over gRPC.
1632
+
1633
+ Returns a list of Key Events in the specified parent
1634
+ property. Returns an empty list if no Key Events are
1635
+ found.
1636
+
1637
+ Returns:
1638
+ Callable[[~.ListKeyEventsRequest],
1639
+ ~.ListKeyEventsResponse]:
1640
+ A function that, when called, will call the underlying RPC
1641
+ on the server.
1642
+ """
1643
+ # Generate a "stub function" on-the-fly which will actually make
1644
+ # the request.
1645
+ # gRPC handles serialization and deserialization, so we just need
1646
+ # to pass in the functions for each.
1647
+ if "list_key_events" not in self._stubs:
1648
+ self._stubs["list_key_events"] = self._logged_channel.unary_unary(
1649
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListKeyEvents",
1650
+ request_serializer=analytics_admin.ListKeyEventsRequest.serialize,
1651
+ response_deserializer=analytics_admin.ListKeyEventsResponse.deserialize,
1652
+ )
1653
+ return self._stubs["list_key_events"]
1654
+
1655
+ @property
1656
+ def get_display_video360_advertiser_link(
1657
+ self,
1658
+ ) -> Callable[
1659
+ [analytics_admin.GetDisplayVideo360AdvertiserLinkRequest],
1660
+ resources.DisplayVideo360AdvertiserLink,
1661
+ ]:
1662
+ r"""Return a callable for the get display video360
1663
+ advertiser link method over gRPC.
1664
+
1665
+ Look up a single DisplayVideo360AdvertiserLink
1666
+
1667
+ Returns:
1668
+ Callable[[~.GetDisplayVideo360AdvertiserLinkRequest],
1669
+ ~.DisplayVideo360AdvertiserLink]:
1670
+ A function that, when called, will call the underlying RPC
1671
+ on the server.
1672
+ """
1673
+ # Generate a "stub function" on-the-fly which will actually make
1674
+ # the request.
1675
+ # gRPC handles serialization and deserialization, so we just need
1676
+ # to pass in the functions for each.
1677
+ if "get_display_video360_advertiser_link" not in self._stubs:
1678
+ self._stubs[
1679
+ "get_display_video360_advertiser_link"
1680
+ ] = self._logged_channel.unary_unary(
1681
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLink",
1682
+ request_serializer=analytics_admin.GetDisplayVideo360AdvertiserLinkRequest.serialize,
1683
+ response_deserializer=resources.DisplayVideo360AdvertiserLink.deserialize,
1684
+ )
1685
+ return self._stubs["get_display_video360_advertiser_link"]
1686
+
1687
+ @property
1688
+ def list_display_video360_advertiser_links(
1689
+ self,
1690
+ ) -> Callable[
1691
+ [analytics_admin.ListDisplayVideo360AdvertiserLinksRequest],
1692
+ analytics_admin.ListDisplayVideo360AdvertiserLinksResponse,
1693
+ ]:
1694
+ r"""Return a callable for the list display video360
1695
+ advertiser links method over gRPC.
1696
+
1697
+ Lists all DisplayVideo360AdvertiserLinks on a
1698
+ property.
1699
+
1700
+ Returns:
1701
+ Callable[[~.ListDisplayVideo360AdvertiserLinksRequest],
1702
+ ~.ListDisplayVideo360AdvertiserLinksResponse]:
1703
+ A function that, when called, will call the underlying RPC
1704
+ on the server.
1705
+ """
1706
+ # Generate a "stub function" on-the-fly which will actually make
1707
+ # the request.
1708
+ # gRPC handles serialization and deserialization, so we just need
1709
+ # to pass in the functions for each.
1710
+ if "list_display_video360_advertiser_links" not in self._stubs:
1711
+ self._stubs[
1712
+ "list_display_video360_advertiser_links"
1713
+ ] = self._logged_channel.unary_unary(
1714
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinks",
1715
+ request_serializer=analytics_admin.ListDisplayVideo360AdvertiserLinksRequest.serialize,
1716
+ response_deserializer=analytics_admin.ListDisplayVideo360AdvertiserLinksResponse.deserialize,
1717
+ )
1718
+ return self._stubs["list_display_video360_advertiser_links"]
1719
+
1720
+ @property
1721
+ def create_display_video360_advertiser_link(
1722
+ self,
1723
+ ) -> Callable[
1724
+ [analytics_admin.CreateDisplayVideo360AdvertiserLinkRequest],
1725
+ resources.DisplayVideo360AdvertiserLink,
1726
+ ]:
1727
+ r"""Return a callable for the create display video360
1728
+ advertiser link method over gRPC.
1729
+
1730
+ Creates a DisplayVideo360AdvertiserLink.
1731
+ This can only be utilized by users who have proper
1732
+ authorization both on the Google Analytics property and
1733
+ on the Display & Video 360 advertiser. Users who do not
1734
+ have access to the Display & Video 360 advertiser should
1735
+ instead seek to create a DisplayVideo360LinkProposal.
1736
+
1737
+ Returns:
1738
+ Callable[[~.CreateDisplayVideo360AdvertiserLinkRequest],
1739
+ ~.DisplayVideo360AdvertiserLink]:
1740
+ A function that, when called, will call the underlying RPC
1741
+ on the server.
1742
+ """
1743
+ # Generate a "stub function" on-the-fly which will actually make
1744
+ # the request.
1745
+ # gRPC handles serialization and deserialization, so we just need
1746
+ # to pass in the functions for each.
1747
+ if "create_display_video360_advertiser_link" not in self._stubs:
1748
+ self._stubs[
1749
+ "create_display_video360_advertiser_link"
1750
+ ] = self._logged_channel.unary_unary(
1751
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLink",
1752
+ request_serializer=analytics_admin.CreateDisplayVideo360AdvertiserLinkRequest.serialize,
1753
+ response_deserializer=resources.DisplayVideo360AdvertiserLink.deserialize,
1754
+ )
1755
+ return self._stubs["create_display_video360_advertiser_link"]
1756
+
1757
+ @property
1758
+ def delete_display_video360_advertiser_link(
1759
+ self,
1760
+ ) -> Callable[
1761
+ [analytics_admin.DeleteDisplayVideo360AdvertiserLinkRequest], empty_pb2.Empty
1762
+ ]:
1763
+ r"""Return a callable for the delete display video360
1764
+ advertiser link method over gRPC.
1765
+
1766
+ Deletes a DisplayVideo360AdvertiserLink on a
1767
+ property.
1768
+
1769
+ Returns:
1770
+ Callable[[~.DeleteDisplayVideo360AdvertiserLinkRequest],
1771
+ ~.Empty]:
1772
+ A function that, when called, will call the underlying RPC
1773
+ on the server.
1774
+ """
1775
+ # Generate a "stub function" on-the-fly which will actually make
1776
+ # the request.
1777
+ # gRPC handles serialization and deserialization, so we just need
1778
+ # to pass in the functions for each.
1779
+ if "delete_display_video360_advertiser_link" not in self._stubs:
1780
+ self._stubs[
1781
+ "delete_display_video360_advertiser_link"
1782
+ ] = self._logged_channel.unary_unary(
1783
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLink",
1784
+ request_serializer=analytics_admin.DeleteDisplayVideo360AdvertiserLinkRequest.serialize,
1785
+ response_deserializer=empty_pb2.Empty.FromString,
1786
+ )
1787
+ return self._stubs["delete_display_video360_advertiser_link"]
1788
+
1789
+ @property
1790
+ def update_display_video360_advertiser_link(
1791
+ self,
1792
+ ) -> Callable[
1793
+ [analytics_admin.UpdateDisplayVideo360AdvertiserLinkRequest],
1794
+ resources.DisplayVideo360AdvertiserLink,
1795
+ ]:
1796
+ r"""Return a callable for the update display video360
1797
+ advertiser link method over gRPC.
1798
+
1799
+ Updates a DisplayVideo360AdvertiserLink on a
1800
+ property.
1801
+
1802
+ Returns:
1803
+ Callable[[~.UpdateDisplayVideo360AdvertiserLinkRequest],
1804
+ ~.DisplayVideo360AdvertiserLink]:
1805
+ A function that, when called, will call the underlying RPC
1806
+ on the server.
1807
+ """
1808
+ # Generate a "stub function" on-the-fly which will actually make
1809
+ # the request.
1810
+ # gRPC handles serialization and deserialization, so we just need
1811
+ # to pass in the functions for each.
1812
+ if "update_display_video360_advertiser_link" not in self._stubs:
1813
+ self._stubs[
1814
+ "update_display_video360_advertiser_link"
1815
+ ] = self._logged_channel.unary_unary(
1816
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDisplayVideo360AdvertiserLink",
1817
+ request_serializer=analytics_admin.UpdateDisplayVideo360AdvertiserLinkRequest.serialize,
1818
+ response_deserializer=resources.DisplayVideo360AdvertiserLink.deserialize,
1819
+ )
1820
+ return self._stubs["update_display_video360_advertiser_link"]
1821
+
1822
+ @property
1823
+ def get_display_video360_advertiser_link_proposal(
1824
+ self,
1825
+ ) -> Callable[
1826
+ [analytics_admin.GetDisplayVideo360AdvertiserLinkProposalRequest],
1827
+ resources.DisplayVideo360AdvertiserLinkProposal,
1828
+ ]:
1829
+ r"""Return a callable for the get display video360
1830
+ advertiser link proposal method over gRPC.
1831
+
1832
+ Lookup for a single
1833
+ DisplayVideo360AdvertiserLinkProposal.
1834
+
1835
+ Returns:
1836
+ Callable[[~.GetDisplayVideo360AdvertiserLinkProposalRequest],
1837
+ ~.DisplayVideo360AdvertiserLinkProposal]:
1838
+ A function that, when called, will call the underlying RPC
1839
+ on the server.
1840
+ """
1841
+ # Generate a "stub function" on-the-fly which will actually make
1842
+ # the request.
1843
+ # gRPC handles serialization and deserialization, so we just need
1844
+ # to pass in the functions for each.
1845
+ if "get_display_video360_advertiser_link_proposal" not in self._stubs:
1846
+ self._stubs[
1847
+ "get_display_video360_advertiser_link_proposal"
1848
+ ] = self._logged_channel.unary_unary(
1849
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLinkProposal",
1850
+ request_serializer=analytics_admin.GetDisplayVideo360AdvertiserLinkProposalRequest.serialize,
1851
+ response_deserializer=resources.DisplayVideo360AdvertiserLinkProposal.deserialize,
1852
+ )
1853
+ return self._stubs["get_display_video360_advertiser_link_proposal"]
1854
+
1855
+ @property
1856
+ def list_display_video360_advertiser_link_proposals(
1857
+ self,
1858
+ ) -> Callable[
1859
+ [analytics_admin.ListDisplayVideo360AdvertiserLinkProposalsRequest],
1860
+ analytics_admin.ListDisplayVideo360AdvertiserLinkProposalsResponse,
1861
+ ]:
1862
+ r"""Return a callable for the list display video360
1863
+ advertiser link proposals method over gRPC.
1864
+
1865
+ Lists DisplayVideo360AdvertiserLinkProposals on a
1866
+ property.
1867
+
1868
+ Returns:
1869
+ Callable[[~.ListDisplayVideo360AdvertiserLinkProposalsRequest],
1870
+ ~.ListDisplayVideo360AdvertiserLinkProposalsResponse]:
1871
+ A function that, when called, will call the underlying RPC
1872
+ on the server.
1873
+ """
1874
+ # Generate a "stub function" on-the-fly which will actually make
1875
+ # the request.
1876
+ # gRPC handles serialization and deserialization, so we just need
1877
+ # to pass in the functions for each.
1878
+ if "list_display_video360_advertiser_link_proposals" not in self._stubs:
1879
+ self._stubs[
1880
+ "list_display_video360_advertiser_link_proposals"
1881
+ ] = self._logged_channel.unary_unary(
1882
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinkProposals",
1883
+ request_serializer=analytics_admin.ListDisplayVideo360AdvertiserLinkProposalsRequest.serialize,
1884
+ response_deserializer=analytics_admin.ListDisplayVideo360AdvertiserLinkProposalsResponse.deserialize,
1885
+ )
1886
+ return self._stubs["list_display_video360_advertiser_link_proposals"]
1887
+
1888
+ @property
1889
+ def create_display_video360_advertiser_link_proposal(
1890
+ self,
1891
+ ) -> Callable[
1892
+ [analytics_admin.CreateDisplayVideo360AdvertiserLinkProposalRequest],
1893
+ resources.DisplayVideo360AdvertiserLinkProposal,
1894
+ ]:
1895
+ r"""Return a callable for the create display video360
1896
+ advertiser link proposal method over gRPC.
1897
+
1898
+ Creates a DisplayVideo360AdvertiserLinkProposal.
1899
+
1900
+ Returns:
1901
+ Callable[[~.CreateDisplayVideo360AdvertiserLinkProposalRequest],
1902
+ ~.DisplayVideo360AdvertiserLinkProposal]:
1903
+ A function that, when called, will call the underlying RPC
1904
+ on the server.
1905
+ """
1906
+ # Generate a "stub function" on-the-fly which will actually make
1907
+ # the request.
1908
+ # gRPC handles serialization and deserialization, so we just need
1909
+ # to pass in the functions for each.
1910
+ if "create_display_video360_advertiser_link_proposal" not in self._stubs:
1911
+ self._stubs[
1912
+ "create_display_video360_advertiser_link_proposal"
1913
+ ] = self._logged_channel.unary_unary(
1914
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLinkProposal",
1915
+ request_serializer=analytics_admin.CreateDisplayVideo360AdvertiserLinkProposalRequest.serialize,
1916
+ response_deserializer=resources.DisplayVideo360AdvertiserLinkProposal.deserialize,
1917
+ )
1918
+ return self._stubs["create_display_video360_advertiser_link_proposal"]
1919
+
1920
+ @property
1921
+ def delete_display_video360_advertiser_link_proposal(
1922
+ self,
1923
+ ) -> Callable[
1924
+ [analytics_admin.DeleteDisplayVideo360AdvertiserLinkProposalRequest],
1925
+ empty_pb2.Empty,
1926
+ ]:
1927
+ r"""Return a callable for the delete display video360
1928
+ advertiser link proposal method over gRPC.
1929
+
1930
+ Deletes a DisplayVideo360AdvertiserLinkProposal on a
1931
+ property. This can only be used on cancelled proposals.
1932
+
1933
+ Returns:
1934
+ Callable[[~.DeleteDisplayVideo360AdvertiserLinkProposalRequest],
1935
+ ~.Empty]:
1936
+ A function that, when called, will call the underlying RPC
1937
+ on the server.
1938
+ """
1939
+ # Generate a "stub function" on-the-fly which will actually make
1940
+ # the request.
1941
+ # gRPC handles serialization and deserialization, so we just need
1942
+ # to pass in the functions for each.
1943
+ if "delete_display_video360_advertiser_link_proposal" not in self._stubs:
1944
+ self._stubs[
1945
+ "delete_display_video360_advertiser_link_proposal"
1946
+ ] = self._logged_channel.unary_unary(
1947
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLinkProposal",
1948
+ request_serializer=analytics_admin.DeleteDisplayVideo360AdvertiserLinkProposalRequest.serialize,
1949
+ response_deserializer=empty_pb2.Empty.FromString,
1950
+ )
1951
+ return self._stubs["delete_display_video360_advertiser_link_proposal"]
1952
+
1953
+ @property
1954
+ def approve_display_video360_advertiser_link_proposal(
1955
+ self,
1956
+ ) -> Callable[
1957
+ [analytics_admin.ApproveDisplayVideo360AdvertiserLinkProposalRequest],
1958
+ analytics_admin.ApproveDisplayVideo360AdvertiserLinkProposalResponse,
1959
+ ]:
1960
+ r"""Return a callable for the approve display video360
1961
+ advertiser link proposal method over gRPC.
1962
+
1963
+ Approves a DisplayVideo360AdvertiserLinkProposal.
1964
+ The DisplayVideo360AdvertiserLinkProposal will be
1965
+ deleted and a new DisplayVideo360AdvertiserLink will be
1966
+ created.
1967
+
1968
+ Returns:
1969
+ Callable[[~.ApproveDisplayVideo360AdvertiserLinkProposalRequest],
1970
+ ~.ApproveDisplayVideo360AdvertiserLinkProposalResponse]:
1971
+ A function that, when called, will call the underlying RPC
1972
+ on the server.
1973
+ """
1974
+ # Generate a "stub function" on-the-fly which will actually make
1975
+ # the request.
1976
+ # gRPC handles serialization and deserialization, so we just need
1977
+ # to pass in the functions for each.
1978
+ if "approve_display_video360_advertiser_link_proposal" not in self._stubs:
1979
+ self._stubs[
1980
+ "approve_display_video360_advertiser_link_proposal"
1981
+ ] = self._logged_channel.unary_unary(
1982
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ApproveDisplayVideo360AdvertiserLinkProposal",
1983
+ request_serializer=analytics_admin.ApproveDisplayVideo360AdvertiserLinkProposalRequest.serialize,
1984
+ response_deserializer=analytics_admin.ApproveDisplayVideo360AdvertiserLinkProposalResponse.deserialize,
1985
+ )
1986
+ return self._stubs["approve_display_video360_advertiser_link_proposal"]
1987
+
1988
+ @property
1989
+ def cancel_display_video360_advertiser_link_proposal(
1990
+ self,
1991
+ ) -> Callable[
1992
+ [analytics_admin.CancelDisplayVideo360AdvertiserLinkProposalRequest],
1993
+ resources.DisplayVideo360AdvertiserLinkProposal,
1994
+ ]:
1995
+ r"""Return a callable for the cancel display video360
1996
+ advertiser link proposal method over gRPC.
1997
+
1998
+ Cancels a DisplayVideo360AdvertiserLinkProposal.
1999
+ Cancelling can mean either:
2000
+
2001
+ - Declining a proposal initiated from Display & Video
2002
+ 360
2003
+ - Withdrawing a proposal initiated from Google Analytics
2004
+ After being cancelled, a proposal will eventually be
2005
+ deleted automatically.
2006
+
2007
+ Returns:
2008
+ Callable[[~.CancelDisplayVideo360AdvertiserLinkProposalRequest],
2009
+ ~.DisplayVideo360AdvertiserLinkProposal]:
2010
+ A function that, when called, will call the underlying RPC
2011
+ on the server.
2012
+ """
2013
+ # Generate a "stub function" on-the-fly which will actually make
2014
+ # the request.
2015
+ # gRPC handles serialization and deserialization, so we just need
2016
+ # to pass in the functions for each.
2017
+ if "cancel_display_video360_advertiser_link_proposal" not in self._stubs:
2018
+ self._stubs[
2019
+ "cancel_display_video360_advertiser_link_proposal"
2020
+ ] = self._logged_channel.unary_unary(
2021
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CancelDisplayVideo360AdvertiserLinkProposal",
2022
+ request_serializer=analytics_admin.CancelDisplayVideo360AdvertiserLinkProposalRequest.serialize,
2023
+ response_deserializer=resources.DisplayVideo360AdvertiserLinkProposal.deserialize,
2024
+ )
2025
+ return self._stubs["cancel_display_video360_advertiser_link_proposal"]
2026
+
2027
+ @property
2028
+ def create_custom_dimension(
2029
+ self,
2030
+ ) -> Callable[
2031
+ [analytics_admin.CreateCustomDimensionRequest], resources.CustomDimension
2032
+ ]:
2033
+ r"""Return a callable for the create custom dimension method over gRPC.
2034
+
2035
+ Creates a CustomDimension.
2036
+
2037
+ Returns:
2038
+ Callable[[~.CreateCustomDimensionRequest],
2039
+ ~.CustomDimension]:
2040
+ A function that, when called, will call the underlying RPC
2041
+ on the server.
2042
+ """
2043
+ # Generate a "stub function" on-the-fly which will actually make
2044
+ # the request.
2045
+ # gRPC handles serialization and deserialization, so we just need
2046
+ # to pass in the functions for each.
2047
+ if "create_custom_dimension" not in self._stubs:
2048
+ self._stubs["create_custom_dimension"] = self._logged_channel.unary_unary(
2049
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomDimension",
2050
+ request_serializer=analytics_admin.CreateCustomDimensionRequest.serialize,
2051
+ response_deserializer=resources.CustomDimension.deserialize,
2052
+ )
2053
+ return self._stubs["create_custom_dimension"]
2054
+
2055
+ @property
2056
+ def update_custom_dimension(
2057
+ self,
2058
+ ) -> Callable[
2059
+ [analytics_admin.UpdateCustomDimensionRequest], resources.CustomDimension
2060
+ ]:
2061
+ r"""Return a callable for the update custom dimension method over gRPC.
2062
+
2063
+ Updates a CustomDimension on a property.
2064
+
2065
+ Returns:
2066
+ Callable[[~.UpdateCustomDimensionRequest],
2067
+ ~.CustomDimension]:
2068
+ A function that, when called, will call the underlying RPC
2069
+ on the server.
2070
+ """
2071
+ # Generate a "stub function" on-the-fly which will actually make
2072
+ # the request.
2073
+ # gRPC handles serialization and deserialization, so we just need
2074
+ # to pass in the functions for each.
2075
+ if "update_custom_dimension" not in self._stubs:
2076
+ self._stubs["update_custom_dimension"] = self._logged_channel.unary_unary(
2077
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomDimension",
2078
+ request_serializer=analytics_admin.UpdateCustomDimensionRequest.serialize,
2079
+ response_deserializer=resources.CustomDimension.deserialize,
2080
+ )
2081
+ return self._stubs["update_custom_dimension"]
2082
+
2083
+ @property
2084
+ def list_custom_dimensions(
2085
+ self,
2086
+ ) -> Callable[
2087
+ [analytics_admin.ListCustomDimensionsRequest],
2088
+ analytics_admin.ListCustomDimensionsResponse,
2089
+ ]:
2090
+ r"""Return a callable for the list custom dimensions method over gRPC.
2091
+
2092
+ Lists CustomDimensions on a property.
2093
+
2094
+ Returns:
2095
+ Callable[[~.ListCustomDimensionsRequest],
2096
+ ~.ListCustomDimensionsResponse]:
2097
+ A function that, when called, will call the underlying RPC
2098
+ on the server.
2099
+ """
2100
+ # Generate a "stub function" on-the-fly which will actually make
2101
+ # the request.
2102
+ # gRPC handles serialization and deserialization, so we just need
2103
+ # to pass in the functions for each.
2104
+ if "list_custom_dimensions" not in self._stubs:
2105
+ self._stubs["list_custom_dimensions"] = self._logged_channel.unary_unary(
2106
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomDimensions",
2107
+ request_serializer=analytics_admin.ListCustomDimensionsRequest.serialize,
2108
+ response_deserializer=analytics_admin.ListCustomDimensionsResponse.deserialize,
2109
+ )
2110
+ return self._stubs["list_custom_dimensions"]
2111
+
2112
+ @property
2113
+ def archive_custom_dimension(
2114
+ self,
2115
+ ) -> Callable[[analytics_admin.ArchiveCustomDimensionRequest], empty_pb2.Empty]:
2116
+ r"""Return a callable for the archive custom dimension method over gRPC.
2117
+
2118
+ Archives a CustomDimension on a property.
2119
+
2120
+ Returns:
2121
+ Callable[[~.ArchiveCustomDimensionRequest],
2122
+ ~.Empty]:
2123
+ A function that, when called, will call the underlying RPC
2124
+ on the server.
2125
+ """
2126
+ # Generate a "stub function" on-the-fly which will actually make
2127
+ # the request.
2128
+ # gRPC handles serialization and deserialization, so we just need
2129
+ # to pass in the functions for each.
2130
+ if "archive_custom_dimension" not in self._stubs:
2131
+ self._stubs["archive_custom_dimension"] = self._logged_channel.unary_unary(
2132
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomDimension",
2133
+ request_serializer=analytics_admin.ArchiveCustomDimensionRequest.serialize,
2134
+ response_deserializer=empty_pb2.Empty.FromString,
2135
+ )
2136
+ return self._stubs["archive_custom_dimension"]
2137
+
2138
+ @property
2139
+ def get_custom_dimension(
2140
+ self,
2141
+ ) -> Callable[
2142
+ [analytics_admin.GetCustomDimensionRequest], resources.CustomDimension
2143
+ ]:
2144
+ r"""Return a callable for the get custom dimension method over gRPC.
2145
+
2146
+ Lookup for a single CustomDimension.
2147
+
2148
+ Returns:
2149
+ Callable[[~.GetCustomDimensionRequest],
2150
+ ~.CustomDimension]:
2151
+ A function that, when called, will call the underlying RPC
2152
+ on the server.
2153
+ """
2154
+ # Generate a "stub function" on-the-fly which will actually make
2155
+ # the request.
2156
+ # gRPC handles serialization and deserialization, so we just need
2157
+ # to pass in the functions for each.
2158
+ if "get_custom_dimension" not in self._stubs:
2159
+ self._stubs["get_custom_dimension"] = self._logged_channel.unary_unary(
2160
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomDimension",
2161
+ request_serializer=analytics_admin.GetCustomDimensionRequest.serialize,
2162
+ response_deserializer=resources.CustomDimension.deserialize,
2163
+ )
2164
+ return self._stubs["get_custom_dimension"]
2165
+
2166
+ @property
2167
+ def create_custom_metric(
2168
+ self,
2169
+ ) -> Callable[[analytics_admin.CreateCustomMetricRequest], resources.CustomMetric]:
2170
+ r"""Return a callable for the create custom metric method over gRPC.
2171
+
2172
+ Creates a CustomMetric.
2173
+
2174
+ Returns:
2175
+ Callable[[~.CreateCustomMetricRequest],
2176
+ ~.CustomMetric]:
2177
+ A function that, when called, will call the underlying RPC
2178
+ on the server.
2179
+ """
2180
+ # Generate a "stub function" on-the-fly which will actually make
2181
+ # the request.
2182
+ # gRPC handles serialization and deserialization, so we just need
2183
+ # to pass in the functions for each.
2184
+ if "create_custom_metric" not in self._stubs:
2185
+ self._stubs["create_custom_metric"] = self._logged_channel.unary_unary(
2186
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomMetric",
2187
+ request_serializer=analytics_admin.CreateCustomMetricRequest.serialize,
2188
+ response_deserializer=resources.CustomMetric.deserialize,
2189
+ )
2190
+ return self._stubs["create_custom_metric"]
2191
+
2192
+ @property
2193
+ def update_custom_metric(
2194
+ self,
2195
+ ) -> Callable[[analytics_admin.UpdateCustomMetricRequest], resources.CustomMetric]:
2196
+ r"""Return a callable for the update custom metric method over gRPC.
2197
+
2198
+ Updates a CustomMetric on a property.
2199
+
2200
+ Returns:
2201
+ Callable[[~.UpdateCustomMetricRequest],
2202
+ ~.CustomMetric]:
2203
+ A function that, when called, will call the underlying RPC
2204
+ on the server.
2205
+ """
2206
+ # Generate a "stub function" on-the-fly which will actually make
2207
+ # the request.
2208
+ # gRPC handles serialization and deserialization, so we just need
2209
+ # to pass in the functions for each.
2210
+ if "update_custom_metric" not in self._stubs:
2211
+ self._stubs["update_custom_metric"] = self._logged_channel.unary_unary(
2212
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomMetric",
2213
+ request_serializer=analytics_admin.UpdateCustomMetricRequest.serialize,
2214
+ response_deserializer=resources.CustomMetric.deserialize,
2215
+ )
2216
+ return self._stubs["update_custom_metric"]
2217
+
2218
+ @property
2219
+ def list_custom_metrics(
2220
+ self,
2221
+ ) -> Callable[
2222
+ [analytics_admin.ListCustomMetricsRequest],
2223
+ analytics_admin.ListCustomMetricsResponse,
2224
+ ]:
2225
+ r"""Return a callable for the list custom metrics method over gRPC.
2226
+
2227
+ Lists CustomMetrics on a property.
2228
+
2229
+ Returns:
2230
+ Callable[[~.ListCustomMetricsRequest],
2231
+ ~.ListCustomMetricsResponse]:
2232
+ A function that, when called, will call the underlying RPC
2233
+ on the server.
2234
+ """
2235
+ # Generate a "stub function" on-the-fly which will actually make
2236
+ # the request.
2237
+ # gRPC handles serialization and deserialization, so we just need
2238
+ # to pass in the functions for each.
2239
+ if "list_custom_metrics" not in self._stubs:
2240
+ self._stubs["list_custom_metrics"] = self._logged_channel.unary_unary(
2241
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomMetrics",
2242
+ request_serializer=analytics_admin.ListCustomMetricsRequest.serialize,
2243
+ response_deserializer=analytics_admin.ListCustomMetricsResponse.deserialize,
2244
+ )
2245
+ return self._stubs["list_custom_metrics"]
2246
+
2247
+ @property
2248
+ def archive_custom_metric(
2249
+ self,
2250
+ ) -> Callable[[analytics_admin.ArchiveCustomMetricRequest], empty_pb2.Empty]:
2251
+ r"""Return a callable for the archive custom metric method over gRPC.
2252
+
2253
+ Archives a CustomMetric on a property.
2254
+
2255
+ Returns:
2256
+ Callable[[~.ArchiveCustomMetricRequest],
2257
+ ~.Empty]:
2258
+ A function that, when called, will call the underlying RPC
2259
+ on the server.
2260
+ """
2261
+ # Generate a "stub function" on-the-fly which will actually make
2262
+ # the request.
2263
+ # gRPC handles serialization and deserialization, so we just need
2264
+ # to pass in the functions for each.
2265
+ if "archive_custom_metric" not in self._stubs:
2266
+ self._stubs["archive_custom_metric"] = self._logged_channel.unary_unary(
2267
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomMetric",
2268
+ request_serializer=analytics_admin.ArchiveCustomMetricRequest.serialize,
2269
+ response_deserializer=empty_pb2.Empty.FromString,
2270
+ )
2271
+ return self._stubs["archive_custom_metric"]
2272
+
2273
+ @property
2274
+ def get_custom_metric(
2275
+ self,
2276
+ ) -> Callable[[analytics_admin.GetCustomMetricRequest], resources.CustomMetric]:
2277
+ r"""Return a callable for the get custom metric method over gRPC.
2278
+
2279
+ Lookup for a single CustomMetric.
2280
+
2281
+ Returns:
2282
+ Callable[[~.GetCustomMetricRequest],
2283
+ ~.CustomMetric]:
2284
+ A function that, when called, will call the underlying RPC
2285
+ on the server.
2286
+ """
2287
+ # Generate a "stub function" on-the-fly which will actually make
2288
+ # the request.
2289
+ # gRPC handles serialization and deserialization, so we just need
2290
+ # to pass in the functions for each.
2291
+ if "get_custom_metric" not in self._stubs:
2292
+ self._stubs["get_custom_metric"] = self._logged_channel.unary_unary(
2293
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomMetric",
2294
+ request_serializer=analytics_admin.GetCustomMetricRequest.serialize,
2295
+ response_deserializer=resources.CustomMetric.deserialize,
2296
+ )
2297
+ return self._stubs["get_custom_metric"]
2298
+
2299
+ @property
2300
+ def get_data_retention_settings(
2301
+ self,
2302
+ ) -> Callable[
2303
+ [analytics_admin.GetDataRetentionSettingsRequest],
2304
+ resources.DataRetentionSettings,
2305
+ ]:
2306
+ r"""Return a callable for the get data retention settings method over gRPC.
2307
+
2308
+ Returns the singleton data retention settings for
2309
+ this property.
2310
+
2311
+ Returns:
2312
+ Callable[[~.GetDataRetentionSettingsRequest],
2313
+ ~.DataRetentionSettings]:
2314
+ A function that, when called, will call the underlying RPC
2315
+ on the server.
2316
+ """
2317
+ # Generate a "stub function" on-the-fly which will actually make
2318
+ # the request.
2319
+ # gRPC handles serialization and deserialization, so we just need
2320
+ # to pass in the functions for each.
2321
+ if "get_data_retention_settings" not in self._stubs:
2322
+ self._stubs[
2323
+ "get_data_retention_settings"
2324
+ ] = self._logged_channel.unary_unary(
2325
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRetentionSettings",
2326
+ request_serializer=analytics_admin.GetDataRetentionSettingsRequest.serialize,
2327
+ response_deserializer=resources.DataRetentionSettings.deserialize,
2328
+ )
2329
+ return self._stubs["get_data_retention_settings"]
2330
+
2331
+ @property
2332
+ def update_data_retention_settings(
2333
+ self,
2334
+ ) -> Callable[
2335
+ [analytics_admin.UpdateDataRetentionSettingsRequest],
2336
+ resources.DataRetentionSettings,
2337
+ ]:
2338
+ r"""Return a callable for the update data retention settings method over gRPC.
2339
+
2340
+ Updates the singleton data retention settings for
2341
+ this property.
2342
+
2343
+ Returns:
2344
+ Callable[[~.UpdateDataRetentionSettingsRequest],
2345
+ ~.DataRetentionSettings]:
2346
+ A function that, when called, will call the underlying RPC
2347
+ on the server.
2348
+ """
2349
+ # Generate a "stub function" on-the-fly which will actually make
2350
+ # the request.
2351
+ # gRPC handles serialization and deserialization, so we just need
2352
+ # to pass in the functions for each.
2353
+ if "update_data_retention_settings" not in self._stubs:
2354
+ self._stubs[
2355
+ "update_data_retention_settings"
2356
+ ] = self._logged_channel.unary_unary(
2357
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRetentionSettings",
2358
+ request_serializer=analytics_admin.UpdateDataRetentionSettingsRequest.serialize,
2359
+ response_deserializer=resources.DataRetentionSettings.deserialize,
2360
+ )
2361
+ return self._stubs["update_data_retention_settings"]
2362
+
2363
+ @property
2364
+ def create_data_stream(
2365
+ self,
2366
+ ) -> Callable[[analytics_admin.CreateDataStreamRequest], resources.DataStream]:
2367
+ r"""Return a callable for the create data stream method over gRPC.
2368
+
2369
+ Creates a DataStream.
2370
+
2371
+ Returns:
2372
+ Callable[[~.CreateDataStreamRequest],
2373
+ ~.DataStream]:
2374
+ A function that, when called, will call the underlying RPC
2375
+ on the server.
2376
+ """
2377
+ # Generate a "stub function" on-the-fly which will actually make
2378
+ # the request.
2379
+ # gRPC handles serialization and deserialization, so we just need
2380
+ # to pass in the functions for each.
2381
+ if "create_data_stream" not in self._stubs:
2382
+ self._stubs["create_data_stream"] = self._logged_channel.unary_unary(
2383
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDataStream",
2384
+ request_serializer=analytics_admin.CreateDataStreamRequest.serialize,
2385
+ response_deserializer=resources.DataStream.deserialize,
2386
+ )
2387
+ return self._stubs["create_data_stream"]
2388
+
2389
+ @property
2390
+ def delete_data_stream(
2391
+ self,
2392
+ ) -> Callable[[analytics_admin.DeleteDataStreamRequest], empty_pb2.Empty]:
2393
+ r"""Return a callable for the delete data stream method over gRPC.
2394
+
2395
+ Deletes a DataStream on a property.
2396
+
2397
+ Returns:
2398
+ Callable[[~.DeleteDataStreamRequest],
2399
+ ~.Empty]:
2400
+ A function that, when called, will call the underlying RPC
2401
+ on the server.
2402
+ """
2403
+ # Generate a "stub function" on-the-fly which will actually make
2404
+ # the request.
2405
+ # gRPC handles serialization and deserialization, so we just need
2406
+ # to pass in the functions for each.
2407
+ if "delete_data_stream" not in self._stubs:
2408
+ self._stubs["delete_data_stream"] = self._logged_channel.unary_unary(
2409
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDataStream",
2410
+ request_serializer=analytics_admin.DeleteDataStreamRequest.serialize,
2411
+ response_deserializer=empty_pb2.Empty.FromString,
2412
+ )
2413
+ return self._stubs["delete_data_stream"]
2414
+
2415
+ @property
2416
+ def update_data_stream(
2417
+ self,
2418
+ ) -> Callable[[analytics_admin.UpdateDataStreamRequest], resources.DataStream]:
2419
+ r"""Return a callable for the update data stream method over gRPC.
2420
+
2421
+ Updates a DataStream on a property.
2422
+
2423
+ Returns:
2424
+ Callable[[~.UpdateDataStreamRequest],
2425
+ ~.DataStream]:
2426
+ A function that, when called, will call the underlying RPC
2427
+ on the server.
2428
+ """
2429
+ # Generate a "stub function" on-the-fly which will actually make
2430
+ # the request.
2431
+ # gRPC handles serialization and deserialization, so we just need
2432
+ # to pass in the functions for each.
2433
+ if "update_data_stream" not in self._stubs:
2434
+ self._stubs["update_data_stream"] = self._logged_channel.unary_unary(
2435
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataStream",
2436
+ request_serializer=analytics_admin.UpdateDataStreamRequest.serialize,
2437
+ response_deserializer=resources.DataStream.deserialize,
2438
+ )
2439
+ return self._stubs["update_data_stream"]
2440
+
2441
+ @property
2442
+ def list_data_streams(
2443
+ self,
2444
+ ) -> Callable[
2445
+ [analytics_admin.ListDataStreamsRequest],
2446
+ analytics_admin.ListDataStreamsResponse,
2447
+ ]:
2448
+ r"""Return a callable for the list data streams method over gRPC.
2449
+
2450
+ Lists DataStreams on a property.
2451
+
2452
+ Returns:
2453
+ Callable[[~.ListDataStreamsRequest],
2454
+ ~.ListDataStreamsResponse]:
2455
+ A function that, when called, will call the underlying RPC
2456
+ on the server.
2457
+ """
2458
+ # Generate a "stub function" on-the-fly which will actually make
2459
+ # the request.
2460
+ # gRPC handles serialization and deserialization, so we just need
2461
+ # to pass in the functions for each.
2462
+ if "list_data_streams" not in self._stubs:
2463
+ self._stubs["list_data_streams"] = self._logged_channel.unary_unary(
2464
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListDataStreams",
2465
+ request_serializer=analytics_admin.ListDataStreamsRequest.serialize,
2466
+ response_deserializer=analytics_admin.ListDataStreamsResponse.deserialize,
2467
+ )
2468
+ return self._stubs["list_data_streams"]
2469
+
2470
+ @property
2471
+ def get_data_stream(
2472
+ self,
2473
+ ) -> Callable[[analytics_admin.GetDataStreamRequest], resources.DataStream]:
2474
+ r"""Return a callable for the get data stream method over gRPC.
2475
+
2476
+ Lookup for a single DataStream.
2477
+
2478
+ Returns:
2479
+ Callable[[~.GetDataStreamRequest],
2480
+ ~.DataStream]:
2481
+ A function that, when called, will call the underlying RPC
2482
+ on the server.
2483
+ """
2484
+ # Generate a "stub function" on-the-fly which will actually make
2485
+ # the request.
2486
+ # gRPC handles serialization and deserialization, so we just need
2487
+ # to pass in the functions for each.
2488
+ if "get_data_stream" not in self._stubs:
2489
+ self._stubs["get_data_stream"] = self._logged_channel.unary_unary(
2490
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataStream",
2491
+ request_serializer=analytics_admin.GetDataStreamRequest.serialize,
2492
+ response_deserializer=resources.DataStream.deserialize,
2493
+ )
2494
+ return self._stubs["get_data_stream"]
2495
+
2496
+ @property
2497
+ def get_audience(
2498
+ self,
2499
+ ) -> Callable[[analytics_admin.GetAudienceRequest], audience.Audience]:
2500
+ r"""Return a callable for the get audience method over gRPC.
2501
+
2502
+ Lookup for a single Audience.
2503
+ Audiences created before 2020 may not be supported.
2504
+ Default audiences will not show filter definitions.
2505
+
2506
+ Returns:
2507
+ Callable[[~.GetAudienceRequest],
2508
+ ~.Audience]:
2509
+ A function that, when called, will call the underlying RPC
2510
+ on the server.
2511
+ """
2512
+ # Generate a "stub function" on-the-fly which will actually make
2513
+ # the request.
2514
+ # gRPC handles serialization and deserialization, so we just need
2515
+ # to pass in the functions for each.
2516
+ if "get_audience" not in self._stubs:
2517
+ self._stubs["get_audience"] = self._logged_channel.unary_unary(
2518
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAudience",
2519
+ request_serializer=analytics_admin.GetAudienceRequest.serialize,
2520
+ response_deserializer=audience.Audience.deserialize,
2521
+ )
2522
+ return self._stubs["get_audience"]
2523
+
2524
+ @property
2525
+ def list_audiences(
2526
+ self,
2527
+ ) -> Callable[
2528
+ [analytics_admin.ListAudiencesRequest], analytics_admin.ListAudiencesResponse
2529
+ ]:
2530
+ r"""Return a callable for the list audiences method over gRPC.
2531
+
2532
+ Lists Audiences on a property.
2533
+ Audiences created before 2020 may not be supported.
2534
+ Default audiences will not show filter definitions.
2535
+
2536
+ Returns:
2537
+ Callable[[~.ListAudiencesRequest],
2538
+ ~.ListAudiencesResponse]:
2539
+ A function that, when called, will call the underlying RPC
2540
+ on the server.
2541
+ """
2542
+ # Generate a "stub function" on-the-fly which will actually make
2543
+ # the request.
2544
+ # gRPC handles serialization and deserialization, so we just need
2545
+ # to pass in the functions for each.
2546
+ if "list_audiences" not in self._stubs:
2547
+ self._stubs["list_audiences"] = self._logged_channel.unary_unary(
2548
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAudiences",
2549
+ request_serializer=analytics_admin.ListAudiencesRequest.serialize,
2550
+ response_deserializer=analytics_admin.ListAudiencesResponse.deserialize,
2551
+ )
2552
+ return self._stubs["list_audiences"]
2553
+
2554
+ @property
2555
+ def create_audience(
2556
+ self,
2557
+ ) -> Callable[[analytics_admin.CreateAudienceRequest], gaa_audience.Audience]:
2558
+ r"""Return a callable for the create audience method over gRPC.
2559
+
2560
+ Creates an Audience.
2561
+
2562
+ Returns:
2563
+ Callable[[~.CreateAudienceRequest],
2564
+ ~.Audience]:
2565
+ A function that, when called, will call the underlying RPC
2566
+ on the server.
2567
+ """
2568
+ # Generate a "stub function" on-the-fly which will actually make
2569
+ # the request.
2570
+ # gRPC handles serialization and deserialization, so we just need
2571
+ # to pass in the functions for each.
2572
+ if "create_audience" not in self._stubs:
2573
+ self._stubs["create_audience"] = self._logged_channel.unary_unary(
2574
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAudience",
2575
+ request_serializer=analytics_admin.CreateAudienceRequest.serialize,
2576
+ response_deserializer=gaa_audience.Audience.deserialize,
2577
+ )
2578
+ return self._stubs["create_audience"]
2579
+
2580
+ @property
2581
+ def update_audience(
2582
+ self,
2583
+ ) -> Callable[[analytics_admin.UpdateAudienceRequest], gaa_audience.Audience]:
2584
+ r"""Return a callable for the update audience method over gRPC.
2585
+
2586
+ Updates an Audience on a property.
2587
+
2588
+ Returns:
2589
+ Callable[[~.UpdateAudienceRequest],
2590
+ ~.Audience]:
2591
+ A function that, when called, will call the underlying RPC
2592
+ on the server.
2593
+ """
2594
+ # Generate a "stub function" on-the-fly which will actually make
2595
+ # the request.
2596
+ # gRPC handles serialization and deserialization, so we just need
2597
+ # to pass in the functions for each.
2598
+ if "update_audience" not in self._stubs:
2599
+ self._stubs["update_audience"] = self._logged_channel.unary_unary(
2600
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAudience",
2601
+ request_serializer=analytics_admin.UpdateAudienceRequest.serialize,
2602
+ response_deserializer=gaa_audience.Audience.deserialize,
2603
+ )
2604
+ return self._stubs["update_audience"]
2605
+
2606
+ @property
2607
+ def archive_audience(
2608
+ self,
2609
+ ) -> Callable[[analytics_admin.ArchiveAudienceRequest], empty_pb2.Empty]:
2610
+ r"""Return a callable for the archive audience method over gRPC.
2611
+
2612
+ Archives an Audience on a property.
2613
+
2614
+ Returns:
2615
+ Callable[[~.ArchiveAudienceRequest],
2616
+ ~.Empty]:
2617
+ A function that, when called, will call the underlying RPC
2618
+ on the server.
2619
+ """
2620
+ # Generate a "stub function" on-the-fly which will actually make
2621
+ # the request.
2622
+ # gRPC handles serialization and deserialization, so we just need
2623
+ # to pass in the functions for each.
2624
+ if "archive_audience" not in self._stubs:
2625
+ self._stubs["archive_audience"] = self._logged_channel.unary_unary(
2626
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveAudience",
2627
+ request_serializer=analytics_admin.ArchiveAudienceRequest.serialize,
2628
+ response_deserializer=empty_pb2.Empty.FromString,
2629
+ )
2630
+ return self._stubs["archive_audience"]
2631
+
2632
+ @property
2633
+ def get_search_ads360_link(
2634
+ self,
2635
+ ) -> Callable[
2636
+ [analytics_admin.GetSearchAds360LinkRequest], resources.SearchAds360Link
2637
+ ]:
2638
+ r"""Return a callable for the get search ads360 link method over gRPC.
2639
+
2640
+ Look up a single SearchAds360Link
2641
+
2642
+ Returns:
2643
+ Callable[[~.GetSearchAds360LinkRequest],
2644
+ ~.SearchAds360Link]:
2645
+ A function that, when called, will call the underlying RPC
2646
+ on the server.
2647
+ """
2648
+ # Generate a "stub function" on-the-fly which will actually make
2649
+ # the request.
2650
+ # gRPC handles serialization and deserialization, so we just need
2651
+ # to pass in the functions for each.
2652
+ if "get_search_ads360_link" not in self._stubs:
2653
+ self._stubs["get_search_ads360_link"] = self._logged_channel.unary_unary(
2654
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetSearchAds360Link",
2655
+ request_serializer=analytics_admin.GetSearchAds360LinkRequest.serialize,
2656
+ response_deserializer=resources.SearchAds360Link.deserialize,
2657
+ )
2658
+ return self._stubs["get_search_ads360_link"]
2659
+
2660
+ @property
2661
+ def list_search_ads360_links(
2662
+ self,
2663
+ ) -> Callable[
2664
+ [analytics_admin.ListSearchAds360LinksRequest],
2665
+ analytics_admin.ListSearchAds360LinksResponse,
2666
+ ]:
2667
+ r"""Return a callable for the list search ads360 links method over gRPC.
2668
+
2669
+ Lists all SearchAds360Links on a property.
2670
+
2671
+ Returns:
2672
+ Callable[[~.ListSearchAds360LinksRequest],
2673
+ ~.ListSearchAds360LinksResponse]:
2674
+ A function that, when called, will call the underlying RPC
2675
+ on the server.
2676
+ """
2677
+ # Generate a "stub function" on-the-fly which will actually make
2678
+ # the request.
2679
+ # gRPC handles serialization and deserialization, so we just need
2680
+ # to pass in the functions for each.
2681
+ if "list_search_ads360_links" not in self._stubs:
2682
+ self._stubs["list_search_ads360_links"] = self._logged_channel.unary_unary(
2683
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListSearchAds360Links",
2684
+ request_serializer=analytics_admin.ListSearchAds360LinksRequest.serialize,
2685
+ response_deserializer=analytics_admin.ListSearchAds360LinksResponse.deserialize,
2686
+ )
2687
+ return self._stubs["list_search_ads360_links"]
2688
+
2689
+ @property
2690
+ def create_search_ads360_link(
2691
+ self,
2692
+ ) -> Callable[
2693
+ [analytics_admin.CreateSearchAds360LinkRequest], resources.SearchAds360Link
2694
+ ]:
2695
+ r"""Return a callable for the create search ads360 link method over gRPC.
2696
+
2697
+ Creates a SearchAds360Link.
2698
+
2699
+ Returns:
2700
+ Callable[[~.CreateSearchAds360LinkRequest],
2701
+ ~.SearchAds360Link]:
2702
+ A function that, when called, will call the underlying RPC
2703
+ on the server.
2704
+ """
2705
+ # Generate a "stub function" on-the-fly which will actually make
2706
+ # the request.
2707
+ # gRPC handles serialization and deserialization, so we just need
2708
+ # to pass in the functions for each.
2709
+ if "create_search_ads360_link" not in self._stubs:
2710
+ self._stubs["create_search_ads360_link"] = self._logged_channel.unary_unary(
2711
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSearchAds360Link",
2712
+ request_serializer=analytics_admin.CreateSearchAds360LinkRequest.serialize,
2713
+ response_deserializer=resources.SearchAds360Link.deserialize,
2714
+ )
2715
+ return self._stubs["create_search_ads360_link"]
2716
+
2717
+ @property
2718
+ def delete_search_ads360_link(
2719
+ self,
2720
+ ) -> Callable[[analytics_admin.DeleteSearchAds360LinkRequest], empty_pb2.Empty]:
2721
+ r"""Return a callable for the delete search ads360 link method over gRPC.
2722
+
2723
+ Deletes a SearchAds360Link on a property.
2724
+
2725
+ Returns:
2726
+ Callable[[~.DeleteSearchAds360LinkRequest],
2727
+ ~.Empty]:
2728
+ A function that, when called, will call the underlying RPC
2729
+ on the server.
2730
+ """
2731
+ # Generate a "stub function" on-the-fly which will actually make
2732
+ # the request.
2733
+ # gRPC handles serialization and deserialization, so we just need
2734
+ # to pass in the functions for each.
2735
+ if "delete_search_ads360_link" not in self._stubs:
2736
+ self._stubs["delete_search_ads360_link"] = self._logged_channel.unary_unary(
2737
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSearchAds360Link",
2738
+ request_serializer=analytics_admin.DeleteSearchAds360LinkRequest.serialize,
2739
+ response_deserializer=empty_pb2.Empty.FromString,
2740
+ )
2741
+ return self._stubs["delete_search_ads360_link"]
2742
+
2743
+ @property
2744
+ def update_search_ads360_link(
2745
+ self,
2746
+ ) -> Callable[
2747
+ [analytics_admin.UpdateSearchAds360LinkRequest], resources.SearchAds360Link
2748
+ ]:
2749
+ r"""Return a callable for the update search ads360 link method over gRPC.
2750
+
2751
+ Updates a SearchAds360Link on a property.
2752
+
2753
+ Returns:
2754
+ Callable[[~.UpdateSearchAds360LinkRequest],
2755
+ ~.SearchAds360Link]:
2756
+ A function that, when called, will call the underlying RPC
2757
+ on the server.
2758
+ """
2759
+ # Generate a "stub function" on-the-fly which will actually make
2760
+ # the request.
2761
+ # gRPC handles serialization and deserialization, so we just need
2762
+ # to pass in the functions for each.
2763
+ if "update_search_ads360_link" not in self._stubs:
2764
+ self._stubs["update_search_ads360_link"] = self._logged_channel.unary_unary(
2765
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSearchAds360Link",
2766
+ request_serializer=analytics_admin.UpdateSearchAds360LinkRequest.serialize,
2767
+ response_deserializer=resources.SearchAds360Link.deserialize,
2768
+ )
2769
+ return self._stubs["update_search_ads360_link"]
2770
+
2771
+ @property
2772
+ def get_attribution_settings(
2773
+ self,
2774
+ ) -> Callable[
2775
+ [analytics_admin.GetAttributionSettingsRequest], resources.AttributionSettings
2776
+ ]:
2777
+ r"""Return a callable for the get attribution settings method over gRPC.
2778
+
2779
+ Lookup for a AttributionSettings singleton.
2780
+
2781
+ Returns:
2782
+ Callable[[~.GetAttributionSettingsRequest],
2783
+ ~.AttributionSettings]:
2784
+ A function that, when called, will call the underlying RPC
2785
+ on the server.
2786
+ """
2787
+ # Generate a "stub function" on-the-fly which will actually make
2788
+ # the request.
2789
+ # gRPC handles serialization and deserialization, so we just need
2790
+ # to pass in the functions for each.
2791
+ if "get_attribution_settings" not in self._stubs:
2792
+ self._stubs["get_attribution_settings"] = self._logged_channel.unary_unary(
2793
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAttributionSettings",
2794
+ request_serializer=analytics_admin.GetAttributionSettingsRequest.serialize,
2795
+ response_deserializer=resources.AttributionSettings.deserialize,
2796
+ )
2797
+ return self._stubs["get_attribution_settings"]
2798
+
2799
+ @property
2800
+ def update_attribution_settings(
2801
+ self,
2802
+ ) -> Callable[
2803
+ [analytics_admin.UpdateAttributionSettingsRequest],
2804
+ resources.AttributionSettings,
2805
+ ]:
2806
+ r"""Return a callable for the update attribution settings method over gRPC.
2807
+
2808
+ Updates attribution settings on a property.
2809
+
2810
+ Returns:
2811
+ Callable[[~.UpdateAttributionSettingsRequest],
2812
+ ~.AttributionSettings]:
2813
+ A function that, when called, will call the underlying RPC
2814
+ on the server.
2815
+ """
2816
+ # Generate a "stub function" on-the-fly which will actually make
2817
+ # the request.
2818
+ # gRPC handles serialization and deserialization, so we just need
2819
+ # to pass in the functions for each.
2820
+ if "update_attribution_settings" not in self._stubs:
2821
+ self._stubs[
2822
+ "update_attribution_settings"
2823
+ ] = self._logged_channel.unary_unary(
2824
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAttributionSettings",
2825
+ request_serializer=analytics_admin.UpdateAttributionSettingsRequest.serialize,
2826
+ response_deserializer=resources.AttributionSettings.deserialize,
2827
+ )
2828
+ return self._stubs["update_attribution_settings"]
2829
+
2830
+ @property
2831
+ def run_access_report(
2832
+ self,
2833
+ ) -> Callable[
2834
+ [analytics_admin.RunAccessReportRequest],
2835
+ analytics_admin.RunAccessReportResponse,
2836
+ ]:
2837
+ r"""Return a callable for the run access report method over gRPC.
2838
+
2839
+ Returns a customized report of data access records. The report
2840
+ provides records of each time a user reads Google Analytics
2841
+ reporting data. Access records are retained for up to 2 years.
2842
+
2843
+ Data Access Reports can be requested for a property. Reports may
2844
+ be requested for any property, but dimensions that aren't
2845
+ related to quota can only be requested on Google Analytics 360
2846
+ properties. This method is only available to Administrators.
2847
+
2848
+ These data access records include GA UI Reporting, GA UI
2849
+ Explorations, GA Data API, and other products like Firebase &
2850
+ Admob that can retrieve data from Google Analytics through a
2851
+ linkage. These records don't include property configuration
2852
+ changes like adding a stream or changing a property's time zone.
2853
+ For configuration change history, see
2854
+ `searchChangeHistoryEvents <https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents>`__.
2855
+
2856
+ To give your feedback on this API, complete the `Google
2857
+ Analytics Access Reports
2858
+ feedback <https://docs.google.com/forms/d/e/1FAIpQLSdmEBUrMzAEdiEKk5TV5dEHvDUZDRlgWYdQdAeSdtR4hVjEhw/viewform>`__
2859
+ form.
2860
+
2861
+ Returns:
2862
+ Callable[[~.RunAccessReportRequest],
2863
+ ~.RunAccessReportResponse]:
2864
+ A function that, when called, will call the underlying RPC
2865
+ on the server.
2866
+ """
2867
+ # Generate a "stub function" on-the-fly which will actually make
2868
+ # the request.
2869
+ # gRPC handles serialization and deserialization, so we just need
2870
+ # to pass in the functions for each.
2871
+ if "run_access_report" not in self._stubs:
2872
+ self._stubs["run_access_report"] = self._logged_channel.unary_unary(
2873
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/RunAccessReport",
2874
+ request_serializer=analytics_admin.RunAccessReportRequest.serialize,
2875
+ response_deserializer=analytics_admin.RunAccessReportResponse.deserialize,
2876
+ )
2877
+ return self._stubs["run_access_report"]
2878
+
2879
+ @property
2880
+ def create_access_binding(
2881
+ self,
2882
+ ) -> Callable[
2883
+ [analytics_admin.CreateAccessBindingRequest], resources.AccessBinding
2884
+ ]:
2885
+ r"""Return a callable for the create access binding method over gRPC.
2886
+
2887
+ Creates an access binding on an account or property.
2888
+
2889
+ Returns:
2890
+ Callable[[~.CreateAccessBindingRequest],
2891
+ ~.AccessBinding]:
2892
+ A function that, when called, will call the underlying RPC
2893
+ on the server.
2894
+ """
2895
+ # Generate a "stub function" on-the-fly which will actually make
2896
+ # the request.
2897
+ # gRPC handles serialization and deserialization, so we just need
2898
+ # to pass in the functions for each.
2899
+ if "create_access_binding" not in self._stubs:
2900
+ self._stubs["create_access_binding"] = self._logged_channel.unary_unary(
2901
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAccessBinding",
2902
+ request_serializer=analytics_admin.CreateAccessBindingRequest.serialize,
2903
+ response_deserializer=resources.AccessBinding.deserialize,
2904
+ )
2905
+ return self._stubs["create_access_binding"]
2906
+
2907
+ @property
2908
+ def get_access_binding(
2909
+ self,
2910
+ ) -> Callable[[analytics_admin.GetAccessBindingRequest], resources.AccessBinding]:
2911
+ r"""Return a callable for the get access binding method over gRPC.
2912
+
2913
+ Gets information about an access binding.
2914
+
2915
+ Returns:
2916
+ Callable[[~.GetAccessBindingRequest],
2917
+ ~.AccessBinding]:
2918
+ A function that, when called, will call the underlying RPC
2919
+ on the server.
2920
+ """
2921
+ # Generate a "stub function" on-the-fly which will actually make
2922
+ # the request.
2923
+ # gRPC handles serialization and deserialization, so we just need
2924
+ # to pass in the functions for each.
2925
+ if "get_access_binding" not in self._stubs:
2926
+ self._stubs["get_access_binding"] = self._logged_channel.unary_unary(
2927
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccessBinding",
2928
+ request_serializer=analytics_admin.GetAccessBindingRequest.serialize,
2929
+ response_deserializer=resources.AccessBinding.deserialize,
2930
+ )
2931
+ return self._stubs["get_access_binding"]
2932
+
2933
+ @property
2934
+ def update_access_binding(
2935
+ self,
2936
+ ) -> Callable[
2937
+ [analytics_admin.UpdateAccessBindingRequest], resources.AccessBinding
2938
+ ]:
2939
+ r"""Return a callable for the update access binding method over gRPC.
2940
+
2941
+ Updates an access binding on an account or property.
2942
+
2943
+ Returns:
2944
+ Callable[[~.UpdateAccessBindingRequest],
2945
+ ~.AccessBinding]:
2946
+ A function that, when called, will call the underlying RPC
2947
+ on the server.
2948
+ """
2949
+ # Generate a "stub function" on-the-fly which will actually make
2950
+ # the request.
2951
+ # gRPC handles serialization and deserialization, so we just need
2952
+ # to pass in the functions for each.
2953
+ if "update_access_binding" not in self._stubs:
2954
+ self._stubs["update_access_binding"] = self._logged_channel.unary_unary(
2955
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccessBinding",
2956
+ request_serializer=analytics_admin.UpdateAccessBindingRequest.serialize,
2957
+ response_deserializer=resources.AccessBinding.deserialize,
2958
+ )
2959
+ return self._stubs["update_access_binding"]
2960
+
2961
+ @property
2962
+ def delete_access_binding(
2963
+ self,
2964
+ ) -> Callable[[analytics_admin.DeleteAccessBindingRequest], empty_pb2.Empty]:
2965
+ r"""Return a callable for the delete access binding method over gRPC.
2966
+
2967
+ Deletes an access binding on an account or property.
2968
+
2969
+ Returns:
2970
+ Callable[[~.DeleteAccessBindingRequest],
2971
+ ~.Empty]:
2972
+ A function that, when called, will call the underlying RPC
2973
+ on the server.
2974
+ """
2975
+ # Generate a "stub function" on-the-fly which will actually make
2976
+ # the request.
2977
+ # gRPC handles serialization and deserialization, so we just need
2978
+ # to pass in the functions for each.
2979
+ if "delete_access_binding" not in self._stubs:
2980
+ self._stubs["delete_access_binding"] = self._logged_channel.unary_unary(
2981
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccessBinding",
2982
+ request_serializer=analytics_admin.DeleteAccessBindingRequest.serialize,
2983
+ response_deserializer=empty_pb2.Empty.FromString,
2984
+ )
2985
+ return self._stubs["delete_access_binding"]
2986
+
2987
+ @property
2988
+ def list_access_bindings(
2989
+ self,
2990
+ ) -> Callable[
2991
+ [analytics_admin.ListAccessBindingsRequest],
2992
+ analytics_admin.ListAccessBindingsResponse,
2993
+ ]:
2994
+ r"""Return a callable for the list access bindings method over gRPC.
2995
+
2996
+ Lists all access bindings on an account or property.
2997
+
2998
+ Returns:
2999
+ Callable[[~.ListAccessBindingsRequest],
3000
+ ~.ListAccessBindingsResponse]:
3001
+ A function that, when called, will call the underlying RPC
3002
+ on the server.
3003
+ """
3004
+ # Generate a "stub function" on-the-fly which will actually make
3005
+ # the request.
3006
+ # gRPC handles serialization and deserialization, so we just need
3007
+ # to pass in the functions for each.
3008
+ if "list_access_bindings" not in self._stubs:
3009
+ self._stubs["list_access_bindings"] = self._logged_channel.unary_unary(
3010
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccessBindings",
3011
+ request_serializer=analytics_admin.ListAccessBindingsRequest.serialize,
3012
+ response_deserializer=analytics_admin.ListAccessBindingsResponse.deserialize,
3013
+ )
3014
+ return self._stubs["list_access_bindings"]
3015
+
3016
+ @property
3017
+ def batch_create_access_bindings(
3018
+ self,
3019
+ ) -> Callable[
3020
+ [analytics_admin.BatchCreateAccessBindingsRequest],
3021
+ analytics_admin.BatchCreateAccessBindingsResponse,
3022
+ ]:
3023
+ r"""Return a callable for the batch create access bindings method over gRPC.
3024
+
3025
+ Creates information about multiple access bindings to
3026
+ an account or property.
3027
+
3028
+ This method is transactional. If any AccessBinding
3029
+ cannot be created, none of the AccessBindings will be
3030
+ created.
3031
+
3032
+ Returns:
3033
+ Callable[[~.BatchCreateAccessBindingsRequest],
3034
+ ~.BatchCreateAccessBindingsResponse]:
3035
+ A function that, when called, will call the underlying RPC
3036
+ on the server.
3037
+ """
3038
+ # Generate a "stub function" on-the-fly which will actually make
3039
+ # the request.
3040
+ # gRPC handles serialization and deserialization, so we just need
3041
+ # to pass in the functions for each.
3042
+ if "batch_create_access_bindings" not in self._stubs:
3043
+ self._stubs[
3044
+ "batch_create_access_bindings"
3045
+ ] = self._logged_channel.unary_unary(
3046
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchCreateAccessBindings",
3047
+ request_serializer=analytics_admin.BatchCreateAccessBindingsRequest.serialize,
3048
+ response_deserializer=analytics_admin.BatchCreateAccessBindingsResponse.deserialize,
3049
+ )
3050
+ return self._stubs["batch_create_access_bindings"]
3051
+
3052
+ @property
3053
+ def batch_get_access_bindings(
3054
+ self,
3055
+ ) -> Callable[
3056
+ [analytics_admin.BatchGetAccessBindingsRequest],
3057
+ analytics_admin.BatchGetAccessBindingsResponse,
3058
+ ]:
3059
+ r"""Return a callable for the batch get access bindings method over gRPC.
3060
+
3061
+ Gets information about multiple access bindings to an
3062
+ account or property.
3063
+
3064
+ Returns:
3065
+ Callable[[~.BatchGetAccessBindingsRequest],
3066
+ ~.BatchGetAccessBindingsResponse]:
3067
+ A function that, when called, will call the underlying RPC
3068
+ on the server.
3069
+ """
3070
+ # Generate a "stub function" on-the-fly which will actually make
3071
+ # the request.
3072
+ # gRPC handles serialization and deserialization, so we just need
3073
+ # to pass in the functions for each.
3074
+ if "batch_get_access_bindings" not in self._stubs:
3075
+ self._stubs["batch_get_access_bindings"] = self._logged_channel.unary_unary(
3076
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchGetAccessBindings",
3077
+ request_serializer=analytics_admin.BatchGetAccessBindingsRequest.serialize,
3078
+ response_deserializer=analytics_admin.BatchGetAccessBindingsResponse.deserialize,
3079
+ )
3080
+ return self._stubs["batch_get_access_bindings"]
3081
+
3082
+ @property
3083
+ def batch_update_access_bindings(
3084
+ self,
3085
+ ) -> Callable[
3086
+ [analytics_admin.BatchUpdateAccessBindingsRequest],
3087
+ analytics_admin.BatchUpdateAccessBindingsResponse,
3088
+ ]:
3089
+ r"""Return a callable for the batch update access bindings method over gRPC.
3090
+
3091
+ Updates information about multiple access bindings to
3092
+ an account or property.
3093
+
3094
+ Returns:
3095
+ Callable[[~.BatchUpdateAccessBindingsRequest],
3096
+ ~.BatchUpdateAccessBindingsResponse]:
3097
+ A function that, when called, will call the underlying RPC
3098
+ on the server.
3099
+ """
3100
+ # Generate a "stub function" on-the-fly which will actually make
3101
+ # the request.
3102
+ # gRPC handles serialization and deserialization, so we just need
3103
+ # to pass in the functions for each.
3104
+ if "batch_update_access_bindings" not in self._stubs:
3105
+ self._stubs[
3106
+ "batch_update_access_bindings"
3107
+ ] = self._logged_channel.unary_unary(
3108
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchUpdateAccessBindings",
3109
+ request_serializer=analytics_admin.BatchUpdateAccessBindingsRequest.serialize,
3110
+ response_deserializer=analytics_admin.BatchUpdateAccessBindingsResponse.deserialize,
3111
+ )
3112
+ return self._stubs["batch_update_access_bindings"]
3113
+
3114
+ @property
3115
+ def batch_delete_access_bindings(
3116
+ self,
3117
+ ) -> Callable[[analytics_admin.BatchDeleteAccessBindingsRequest], empty_pb2.Empty]:
3118
+ r"""Return a callable for the batch delete access bindings method over gRPC.
3119
+
3120
+ Deletes information about multiple users' links to an
3121
+ account or property.
3122
+
3123
+ Returns:
3124
+ Callable[[~.BatchDeleteAccessBindingsRequest],
3125
+ ~.Empty]:
3126
+ A function that, when called, will call the underlying RPC
3127
+ on the server.
3128
+ """
3129
+ # Generate a "stub function" on-the-fly which will actually make
3130
+ # the request.
3131
+ # gRPC handles serialization and deserialization, so we just need
3132
+ # to pass in the functions for each.
3133
+ if "batch_delete_access_bindings" not in self._stubs:
3134
+ self._stubs[
3135
+ "batch_delete_access_bindings"
3136
+ ] = self._logged_channel.unary_unary(
3137
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/BatchDeleteAccessBindings",
3138
+ request_serializer=analytics_admin.BatchDeleteAccessBindingsRequest.serialize,
3139
+ response_deserializer=empty_pb2.Empty.FromString,
3140
+ )
3141
+ return self._stubs["batch_delete_access_bindings"]
3142
+
3143
+ @property
3144
+ def get_expanded_data_set(
3145
+ self,
3146
+ ) -> Callable[
3147
+ [analytics_admin.GetExpandedDataSetRequest], expanded_data_set.ExpandedDataSet
3148
+ ]:
3149
+ r"""Return a callable for the get expanded data set method over gRPC.
3150
+
3151
+ Lookup for a single ExpandedDataSet.
3152
+
3153
+ Returns:
3154
+ Callable[[~.GetExpandedDataSetRequest],
3155
+ ~.ExpandedDataSet]:
3156
+ A function that, when called, will call the underlying RPC
3157
+ on the server.
3158
+ """
3159
+ # Generate a "stub function" on-the-fly which will actually make
3160
+ # the request.
3161
+ # gRPC handles serialization and deserialization, so we just need
3162
+ # to pass in the functions for each.
3163
+ if "get_expanded_data_set" not in self._stubs:
3164
+ self._stubs["get_expanded_data_set"] = self._logged_channel.unary_unary(
3165
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetExpandedDataSet",
3166
+ request_serializer=analytics_admin.GetExpandedDataSetRequest.serialize,
3167
+ response_deserializer=expanded_data_set.ExpandedDataSet.deserialize,
3168
+ )
3169
+ return self._stubs["get_expanded_data_set"]
3170
+
3171
+ @property
3172
+ def list_expanded_data_sets(
3173
+ self,
3174
+ ) -> Callable[
3175
+ [analytics_admin.ListExpandedDataSetsRequest],
3176
+ analytics_admin.ListExpandedDataSetsResponse,
3177
+ ]:
3178
+ r"""Return a callable for the list expanded data sets method over gRPC.
3179
+
3180
+ Lists ExpandedDataSets on a property.
3181
+
3182
+ Returns:
3183
+ Callable[[~.ListExpandedDataSetsRequest],
3184
+ ~.ListExpandedDataSetsResponse]:
3185
+ A function that, when called, will call the underlying RPC
3186
+ on the server.
3187
+ """
3188
+ # Generate a "stub function" on-the-fly which will actually make
3189
+ # the request.
3190
+ # gRPC handles serialization and deserialization, so we just need
3191
+ # to pass in the functions for each.
3192
+ if "list_expanded_data_sets" not in self._stubs:
3193
+ self._stubs["list_expanded_data_sets"] = self._logged_channel.unary_unary(
3194
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListExpandedDataSets",
3195
+ request_serializer=analytics_admin.ListExpandedDataSetsRequest.serialize,
3196
+ response_deserializer=analytics_admin.ListExpandedDataSetsResponse.deserialize,
3197
+ )
3198
+ return self._stubs["list_expanded_data_sets"]
3199
+
3200
+ @property
3201
+ def create_expanded_data_set(
3202
+ self,
3203
+ ) -> Callable[
3204
+ [analytics_admin.CreateExpandedDataSetRequest],
3205
+ gaa_expanded_data_set.ExpandedDataSet,
3206
+ ]:
3207
+ r"""Return a callable for the create expanded data set method over gRPC.
3208
+
3209
+ Creates a ExpandedDataSet.
3210
+
3211
+ Returns:
3212
+ Callable[[~.CreateExpandedDataSetRequest],
3213
+ ~.ExpandedDataSet]:
3214
+ A function that, when called, will call the underlying RPC
3215
+ on the server.
3216
+ """
3217
+ # Generate a "stub function" on-the-fly which will actually make
3218
+ # the request.
3219
+ # gRPC handles serialization and deserialization, so we just need
3220
+ # to pass in the functions for each.
3221
+ if "create_expanded_data_set" not in self._stubs:
3222
+ self._stubs["create_expanded_data_set"] = self._logged_channel.unary_unary(
3223
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateExpandedDataSet",
3224
+ request_serializer=analytics_admin.CreateExpandedDataSetRequest.serialize,
3225
+ response_deserializer=gaa_expanded_data_set.ExpandedDataSet.deserialize,
3226
+ )
3227
+ return self._stubs["create_expanded_data_set"]
3228
+
3229
+ @property
3230
+ def update_expanded_data_set(
3231
+ self,
3232
+ ) -> Callable[
3233
+ [analytics_admin.UpdateExpandedDataSetRequest],
3234
+ gaa_expanded_data_set.ExpandedDataSet,
3235
+ ]:
3236
+ r"""Return a callable for the update expanded data set method over gRPC.
3237
+
3238
+ Updates a ExpandedDataSet on a property.
3239
+
3240
+ Returns:
3241
+ Callable[[~.UpdateExpandedDataSetRequest],
3242
+ ~.ExpandedDataSet]:
3243
+ A function that, when called, will call the underlying RPC
3244
+ on the server.
3245
+ """
3246
+ # Generate a "stub function" on-the-fly which will actually make
3247
+ # the request.
3248
+ # gRPC handles serialization and deserialization, so we just need
3249
+ # to pass in the functions for each.
3250
+ if "update_expanded_data_set" not in self._stubs:
3251
+ self._stubs["update_expanded_data_set"] = self._logged_channel.unary_unary(
3252
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateExpandedDataSet",
3253
+ request_serializer=analytics_admin.UpdateExpandedDataSetRequest.serialize,
3254
+ response_deserializer=gaa_expanded_data_set.ExpandedDataSet.deserialize,
3255
+ )
3256
+ return self._stubs["update_expanded_data_set"]
3257
+
3258
+ @property
3259
+ def delete_expanded_data_set(
3260
+ self,
3261
+ ) -> Callable[[analytics_admin.DeleteExpandedDataSetRequest], empty_pb2.Empty]:
3262
+ r"""Return a callable for the delete expanded data set method over gRPC.
3263
+
3264
+ Deletes a ExpandedDataSet on a property.
3265
+
3266
+ Returns:
3267
+ Callable[[~.DeleteExpandedDataSetRequest],
3268
+ ~.Empty]:
3269
+ A function that, when called, will call the underlying RPC
3270
+ on the server.
3271
+ """
3272
+ # Generate a "stub function" on-the-fly which will actually make
3273
+ # the request.
3274
+ # gRPC handles serialization and deserialization, so we just need
3275
+ # to pass in the functions for each.
3276
+ if "delete_expanded_data_set" not in self._stubs:
3277
+ self._stubs["delete_expanded_data_set"] = self._logged_channel.unary_unary(
3278
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteExpandedDataSet",
3279
+ request_serializer=analytics_admin.DeleteExpandedDataSetRequest.serialize,
3280
+ response_deserializer=empty_pb2.Empty.FromString,
3281
+ )
3282
+ return self._stubs["delete_expanded_data_set"]
3283
+
3284
+ @property
3285
+ def get_channel_group(
3286
+ self,
3287
+ ) -> Callable[[analytics_admin.GetChannelGroupRequest], channel_group.ChannelGroup]:
3288
+ r"""Return a callable for the get channel group method over gRPC.
3289
+
3290
+ Lookup for a single ChannelGroup.
3291
+
3292
+ Returns:
3293
+ Callable[[~.GetChannelGroupRequest],
3294
+ ~.ChannelGroup]:
3295
+ A function that, when called, will call the underlying RPC
3296
+ on the server.
3297
+ """
3298
+ # Generate a "stub function" on-the-fly which will actually make
3299
+ # the request.
3300
+ # gRPC handles serialization and deserialization, so we just need
3301
+ # to pass in the functions for each.
3302
+ if "get_channel_group" not in self._stubs:
3303
+ self._stubs["get_channel_group"] = self._logged_channel.unary_unary(
3304
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetChannelGroup",
3305
+ request_serializer=analytics_admin.GetChannelGroupRequest.serialize,
3306
+ response_deserializer=channel_group.ChannelGroup.deserialize,
3307
+ )
3308
+ return self._stubs["get_channel_group"]
3309
+
3310
+ @property
3311
+ def list_channel_groups(
3312
+ self,
3313
+ ) -> Callable[
3314
+ [analytics_admin.ListChannelGroupsRequest],
3315
+ analytics_admin.ListChannelGroupsResponse,
3316
+ ]:
3317
+ r"""Return a callable for the list channel groups method over gRPC.
3318
+
3319
+ Lists ChannelGroups on a property.
3320
+
3321
+ Returns:
3322
+ Callable[[~.ListChannelGroupsRequest],
3323
+ ~.ListChannelGroupsResponse]:
3324
+ A function that, when called, will call the underlying RPC
3325
+ on the server.
3326
+ """
3327
+ # Generate a "stub function" on-the-fly which will actually make
3328
+ # the request.
3329
+ # gRPC handles serialization and deserialization, so we just need
3330
+ # to pass in the functions for each.
3331
+ if "list_channel_groups" not in self._stubs:
3332
+ self._stubs["list_channel_groups"] = self._logged_channel.unary_unary(
3333
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListChannelGroups",
3334
+ request_serializer=analytics_admin.ListChannelGroupsRequest.serialize,
3335
+ response_deserializer=analytics_admin.ListChannelGroupsResponse.deserialize,
3336
+ )
3337
+ return self._stubs["list_channel_groups"]
3338
+
3339
+ @property
3340
+ def create_channel_group(
3341
+ self,
3342
+ ) -> Callable[
3343
+ [analytics_admin.CreateChannelGroupRequest], gaa_channel_group.ChannelGroup
3344
+ ]:
3345
+ r"""Return a callable for the create channel group method over gRPC.
3346
+
3347
+ Creates a ChannelGroup.
3348
+
3349
+ Returns:
3350
+ Callable[[~.CreateChannelGroupRequest],
3351
+ ~.ChannelGroup]:
3352
+ A function that, when called, will call the underlying RPC
3353
+ on the server.
3354
+ """
3355
+ # Generate a "stub function" on-the-fly which will actually make
3356
+ # the request.
3357
+ # gRPC handles serialization and deserialization, so we just need
3358
+ # to pass in the functions for each.
3359
+ if "create_channel_group" not in self._stubs:
3360
+ self._stubs["create_channel_group"] = self._logged_channel.unary_unary(
3361
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateChannelGroup",
3362
+ request_serializer=analytics_admin.CreateChannelGroupRequest.serialize,
3363
+ response_deserializer=gaa_channel_group.ChannelGroup.deserialize,
3364
+ )
3365
+ return self._stubs["create_channel_group"]
3366
+
3367
+ @property
3368
+ def update_channel_group(
3369
+ self,
3370
+ ) -> Callable[
3371
+ [analytics_admin.UpdateChannelGroupRequest], gaa_channel_group.ChannelGroup
3372
+ ]:
3373
+ r"""Return a callable for the update channel group method over gRPC.
3374
+
3375
+ Updates a ChannelGroup.
3376
+
3377
+ Returns:
3378
+ Callable[[~.UpdateChannelGroupRequest],
3379
+ ~.ChannelGroup]:
3380
+ A function that, when called, will call the underlying RPC
3381
+ on the server.
3382
+ """
3383
+ # Generate a "stub function" on-the-fly which will actually make
3384
+ # the request.
3385
+ # gRPC handles serialization and deserialization, so we just need
3386
+ # to pass in the functions for each.
3387
+ if "update_channel_group" not in self._stubs:
3388
+ self._stubs["update_channel_group"] = self._logged_channel.unary_unary(
3389
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateChannelGroup",
3390
+ request_serializer=analytics_admin.UpdateChannelGroupRequest.serialize,
3391
+ response_deserializer=gaa_channel_group.ChannelGroup.deserialize,
3392
+ )
3393
+ return self._stubs["update_channel_group"]
3394
+
3395
+ @property
3396
+ def delete_channel_group(
3397
+ self,
3398
+ ) -> Callable[[analytics_admin.DeleteChannelGroupRequest], empty_pb2.Empty]:
3399
+ r"""Return a callable for the delete channel group method over gRPC.
3400
+
3401
+ Deletes a ChannelGroup on a property.
3402
+
3403
+ Returns:
3404
+ Callable[[~.DeleteChannelGroupRequest],
3405
+ ~.Empty]:
3406
+ A function that, when called, will call the underlying RPC
3407
+ on the server.
3408
+ """
3409
+ # Generate a "stub function" on-the-fly which will actually make
3410
+ # the request.
3411
+ # gRPC handles serialization and deserialization, so we just need
3412
+ # to pass in the functions for each.
3413
+ if "delete_channel_group" not in self._stubs:
3414
+ self._stubs["delete_channel_group"] = self._logged_channel.unary_unary(
3415
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteChannelGroup",
3416
+ request_serializer=analytics_admin.DeleteChannelGroupRequest.serialize,
3417
+ response_deserializer=empty_pb2.Empty.FromString,
3418
+ )
3419
+ return self._stubs["delete_channel_group"]
3420
+
3421
+ @property
3422
+ def set_automated_ga4_configuration_opt_out(
3423
+ self,
3424
+ ) -> Callable[
3425
+ [analytics_admin.SetAutomatedGa4ConfigurationOptOutRequest],
3426
+ analytics_admin.SetAutomatedGa4ConfigurationOptOutResponse,
3427
+ ]:
3428
+ r"""Return a callable for the set automated ga4
3429
+ configuration opt out method over gRPC.
3430
+
3431
+ Sets the opt out status for the automated GA4 setup
3432
+ process for a UA property.
3433
+ Note: this has no effect on GA4 property.
3434
+
3435
+ Returns:
3436
+ Callable[[~.SetAutomatedGa4ConfigurationOptOutRequest],
3437
+ ~.SetAutomatedGa4ConfigurationOptOutResponse]:
3438
+ A function that, when called, will call the underlying RPC
3439
+ on the server.
3440
+ """
3441
+ # Generate a "stub function" on-the-fly which will actually make
3442
+ # the request.
3443
+ # gRPC handles serialization and deserialization, so we just need
3444
+ # to pass in the functions for each.
3445
+ if "set_automated_ga4_configuration_opt_out" not in self._stubs:
3446
+ self._stubs[
3447
+ "set_automated_ga4_configuration_opt_out"
3448
+ ] = self._logged_channel.unary_unary(
3449
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/SetAutomatedGa4ConfigurationOptOut",
3450
+ request_serializer=analytics_admin.SetAutomatedGa4ConfigurationOptOutRequest.serialize,
3451
+ response_deserializer=analytics_admin.SetAutomatedGa4ConfigurationOptOutResponse.deserialize,
3452
+ )
3453
+ return self._stubs["set_automated_ga4_configuration_opt_out"]
3454
+
3455
+ @property
3456
+ def fetch_automated_ga4_configuration_opt_out(
3457
+ self,
3458
+ ) -> Callable[
3459
+ [analytics_admin.FetchAutomatedGa4ConfigurationOptOutRequest],
3460
+ analytics_admin.FetchAutomatedGa4ConfigurationOptOutResponse,
3461
+ ]:
3462
+ r"""Return a callable for the fetch automated ga4
3463
+ configuration opt out method over gRPC.
3464
+
3465
+ Fetches the opt out status for the automated GA4
3466
+ setup process for a UA property.
3467
+ Note: this has no effect on GA4 property.
3468
+
3469
+ Returns:
3470
+ Callable[[~.FetchAutomatedGa4ConfigurationOptOutRequest],
3471
+ ~.FetchAutomatedGa4ConfigurationOptOutResponse]:
3472
+ A function that, when called, will call the underlying RPC
3473
+ on the server.
3474
+ """
3475
+ # Generate a "stub function" on-the-fly which will actually make
3476
+ # the request.
3477
+ # gRPC handles serialization and deserialization, so we just need
3478
+ # to pass in the functions for each.
3479
+ if "fetch_automated_ga4_configuration_opt_out" not in self._stubs:
3480
+ self._stubs[
3481
+ "fetch_automated_ga4_configuration_opt_out"
3482
+ ] = self._logged_channel.unary_unary(
3483
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/FetchAutomatedGa4ConfigurationOptOut",
3484
+ request_serializer=analytics_admin.FetchAutomatedGa4ConfigurationOptOutRequest.serialize,
3485
+ response_deserializer=analytics_admin.FetchAutomatedGa4ConfigurationOptOutResponse.deserialize,
3486
+ )
3487
+ return self._stubs["fetch_automated_ga4_configuration_opt_out"]
3488
+
3489
+ @property
3490
+ def create_big_query_link(
3491
+ self,
3492
+ ) -> Callable[[analytics_admin.CreateBigQueryLinkRequest], resources.BigQueryLink]:
3493
+ r"""Return a callable for the create big query link method over gRPC.
3494
+
3495
+ Creates a BigQueryLink.
3496
+
3497
+ Returns:
3498
+ Callable[[~.CreateBigQueryLinkRequest],
3499
+ ~.BigQueryLink]:
3500
+ A function that, when called, will call the underlying RPC
3501
+ on the server.
3502
+ """
3503
+ # Generate a "stub function" on-the-fly which will actually make
3504
+ # the request.
3505
+ # gRPC handles serialization and deserialization, so we just need
3506
+ # to pass in the functions for each.
3507
+ if "create_big_query_link" not in self._stubs:
3508
+ self._stubs["create_big_query_link"] = self._logged_channel.unary_unary(
3509
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateBigQueryLink",
3510
+ request_serializer=analytics_admin.CreateBigQueryLinkRequest.serialize,
3511
+ response_deserializer=resources.BigQueryLink.deserialize,
3512
+ )
3513
+ return self._stubs["create_big_query_link"]
3514
+
3515
+ @property
3516
+ def get_big_query_link(
3517
+ self,
3518
+ ) -> Callable[[analytics_admin.GetBigQueryLinkRequest], resources.BigQueryLink]:
3519
+ r"""Return a callable for the get big query link method over gRPC.
3520
+
3521
+ Lookup for a single BigQuery Link.
3522
+
3523
+ Returns:
3524
+ Callable[[~.GetBigQueryLinkRequest],
3525
+ ~.BigQueryLink]:
3526
+ A function that, when called, will call the underlying RPC
3527
+ on the server.
3528
+ """
3529
+ # Generate a "stub function" on-the-fly which will actually make
3530
+ # the request.
3531
+ # gRPC handles serialization and deserialization, so we just need
3532
+ # to pass in the functions for each.
3533
+ if "get_big_query_link" not in self._stubs:
3534
+ self._stubs["get_big_query_link"] = self._logged_channel.unary_unary(
3535
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetBigQueryLink",
3536
+ request_serializer=analytics_admin.GetBigQueryLinkRequest.serialize,
3537
+ response_deserializer=resources.BigQueryLink.deserialize,
3538
+ )
3539
+ return self._stubs["get_big_query_link"]
3540
+
3541
+ @property
3542
+ def list_big_query_links(
3543
+ self,
3544
+ ) -> Callable[
3545
+ [analytics_admin.ListBigQueryLinksRequest],
3546
+ analytics_admin.ListBigQueryLinksResponse,
3547
+ ]:
3548
+ r"""Return a callable for the list big query links method over gRPC.
3549
+
3550
+ Lists BigQuery Links on a property.
3551
+
3552
+ Returns:
3553
+ Callable[[~.ListBigQueryLinksRequest],
3554
+ ~.ListBigQueryLinksResponse]:
3555
+ A function that, when called, will call the underlying RPC
3556
+ on the server.
3557
+ """
3558
+ # Generate a "stub function" on-the-fly which will actually make
3559
+ # the request.
3560
+ # gRPC handles serialization and deserialization, so we just need
3561
+ # to pass in the functions for each.
3562
+ if "list_big_query_links" not in self._stubs:
3563
+ self._stubs["list_big_query_links"] = self._logged_channel.unary_unary(
3564
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListBigQueryLinks",
3565
+ request_serializer=analytics_admin.ListBigQueryLinksRequest.serialize,
3566
+ response_deserializer=analytics_admin.ListBigQueryLinksResponse.deserialize,
3567
+ )
3568
+ return self._stubs["list_big_query_links"]
3569
+
3570
+ @property
3571
+ def delete_big_query_link(
3572
+ self,
3573
+ ) -> Callable[[analytics_admin.DeleteBigQueryLinkRequest], empty_pb2.Empty]:
3574
+ r"""Return a callable for the delete big query link method over gRPC.
3575
+
3576
+ Deletes a BigQueryLink on a property.
3577
+
3578
+ Returns:
3579
+ Callable[[~.DeleteBigQueryLinkRequest],
3580
+ ~.Empty]:
3581
+ A function that, when called, will call the underlying RPC
3582
+ on the server.
3583
+ """
3584
+ # Generate a "stub function" on-the-fly which will actually make
3585
+ # the request.
3586
+ # gRPC handles serialization and deserialization, so we just need
3587
+ # to pass in the functions for each.
3588
+ if "delete_big_query_link" not in self._stubs:
3589
+ self._stubs["delete_big_query_link"] = self._logged_channel.unary_unary(
3590
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteBigQueryLink",
3591
+ request_serializer=analytics_admin.DeleteBigQueryLinkRequest.serialize,
3592
+ response_deserializer=empty_pb2.Empty.FromString,
3593
+ )
3594
+ return self._stubs["delete_big_query_link"]
3595
+
3596
+ @property
3597
+ def update_big_query_link(
3598
+ self,
3599
+ ) -> Callable[[analytics_admin.UpdateBigQueryLinkRequest], resources.BigQueryLink]:
3600
+ r"""Return a callable for the update big query link method over gRPC.
3601
+
3602
+ Updates a BigQueryLink.
3603
+
3604
+ Returns:
3605
+ Callable[[~.UpdateBigQueryLinkRequest],
3606
+ ~.BigQueryLink]:
3607
+ A function that, when called, will call the underlying RPC
3608
+ on the server.
3609
+ """
3610
+ # Generate a "stub function" on-the-fly which will actually make
3611
+ # the request.
3612
+ # gRPC handles serialization and deserialization, so we just need
3613
+ # to pass in the functions for each.
3614
+ if "update_big_query_link" not in self._stubs:
3615
+ self._stubs["update_big_query_link"] = self._logged_channel.unary_unary(
3616
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateBigQueryLink",
3617
+ request_serializer=analytics_admin.UpdateBigQueryLinkRequest.serialize,
3618
+ response_deserializer=resources.BigQueryLink.deserialize,
3619
+ )
3620
+ return self._stubs["update_big_query_link"]
3621
+
3622
+ @property
3623
+ def get_enhanced_measurement_settings(
3624
+ self,
3625
+ ) -> Callable[
3626
+ [analytics_admin.GetEnhancedMeasurementSettingsRequest],
3627
+ resources.EnhancedMeasurementSettings,
3628
+ ]:
3629
+ r"""Return a callable for the get enhanced measurement
3630
+ settings method over gRPC.
3631
+
3632
+ Returns the enhanced measurement settings for this
3633
+ data stream. Note that the stream must enable enhanced
3634
+ measurement for these settings to take effect.
3635
+
3636
+ Returns:
3637
+ Callable[[~.GetEnhancedMeasurementSettingsRequest],
3638
+ ~.EnhancedMeasurementSettings]:
3639
+ A function that, when called, will call the underlying RPC
3640
+ on the server.
3641
+ """
3642
+ # Generate a "stub function" on-the-fly which will actually make
3643
+ # the request.
3644
+ # gRPC handles serialization and deserialization, so we just need
3645
+ # to pass in the functions for each.
3646
+ if "get_enhanced_measurement_settings" not in self._stubs:
3647
+ self._stubs[
3648
+ "get_enhanced_measurement_settings"
3649
+ ] = self._logged_channel.unary_unary(
3650
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetEnhancedMeasurementSettings",
3651
+ request_serializer=analytics_admin.GetEnhancedMeasurementSettingsRequest.serialize,
3652
+ response_deserializer=resources.EnhancedMeasurementSettings.deserialize,
3653
+ )
3654
+ return self._stubs["get_enhanced_measurement_settings"]
3655
+
3656
+ @property
3657
+ def update_enhanced_measurement_settings(
3658
+ self,
3659
+ ) -> Callable[
3660
+ [analytics_admin.UpdateEnhancedMeasurementSettingsRequest],
3661
+ resources.EnhancedMeasurementSettings,
3662
+ ]:
3663
+ r"""Return a callable for the update enhanced measurement
3664
+ settings method over gRPC.
3665
+
3666
+ Updates the enhanced measurement settings for this
3667
+ data stream. Note that the stream must enable enhanced
3668
+ measurement for these settings to take effect.
3669
+
3670
+ Returns:
3671
+ Callable[[~.UpdateEnhancedMeasurementSettingsRequest],
3672
+ ~.EnhancedMeasurementSettings]:
3673
+ A function that, when called, will call the underlying RPC
3674
+ on the server.
3675
+ """
3676
+ # Generate a "stub function" on-the-fly which will actually make
3677
+ # the request.
3678
+ # gRPC handles serialization and deserialization, so we just need
3679
+ # to pass in the functions for each.
3680
+ if "update_enhanced_measurement_settings" not in self._stubs:
3681
+ self._stubs[
3682
+ "update_enhanced_measurement_settings"
3683
+ ] = self._logged_channel.unary_unary(
3684
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEnhancedMeasurementSettings",
3685
+ request_serializer=analytics_admin.UpdateEnhancedMeasurementSettingsRequest.serialize,
3686
+ response_deserializer=resources.EnhancedMeasurementSettings.deserialize,
3687
+ )
3688
+ return self._stubs["update_enhanced_measurement_settings"]
3689
+
3690
+ @property
3691
+ def create_connected_site_tag(
3692
+ self,
3693
+ ) -> Callable[
3694
+ [analytics_admin.CreateConnectedSiteTagRequest],
3695
+ analytics_admin.CreateConnectedSiteTagResponse,
3696
+ ]:
3697
+ r"""Return a callable for the create connected site tag method over gRPC.
3698
+
3699
+ Creates a connected site tag for a Universal
3700
+ Analytics property. You can create a maximum of 20
3701
+ connected site tags per property. Note: This API cannot
3702
+ be used on GA4 properties.
3703
+
3704
+ Returns:
3705
+ Callable[[~.CreateConnectedSiteTagRequest],
3706
+ ~.CreateConnectedSiteTagResponse]:
3707
+ A function that, when called, will call the underlying RPC
3708
+ on the server.
3709
+ """
3710
+ # Generate a "stub function" on-the-fly which will actually make
3711
+ # the request.
3712
+ # gRPC handles serialization and deserialization, so we just need
3713
+ # to pass in the functions for each.
3714
+ if "create_connected_site_tag" not in self._stubs:
3715
+ self._stubs["create_connected_site_tag"] = self._logged_channel.unary_unary(
3716
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConnectedSiteTag",
3717
+ request_serializer=analytics_admin.CreateConnectedSiteTagRequest.serialize,
3718
+ response_deserializer=analytics_admin.CreateConnectedSiteTagResponse.deserialize,
3719
+ )
3720
+ return self._stubs["create_connected_site_tag"]
3721
+
3722
+ @property
3723
+ def delete_connected_site_tag(
3724
+ self,
3725
+ ) -> Callable[[analytics_admin.DeleteConnectedSiteTagRequest], empty_pb2.Empty]:
3726
+ r"""Return a callable for the delete connected site tag method over gRPC.
3727
+
3728
+ Deletes a connected site tag for a Universal
3729
+ Analytics property. Note: this has no effect on GA4
3730
+ properties.
3731
+
3732
+ Returns:
3733
+ Callable[[~.DeleteConnectedSiteTagRequest],
3734
+ ~.Empty]:
3735
+ A function that, when called, will call the underlying RPC
3736
+ on the server.
3737
+ """
3738
+ # Generate a "stub function" on-the-fly which will actually make
3739
+ # the request.
3740
+ # gRPC handles serialization and deserialization, so we just need
3741
+ # to pass in the functions for each.
3742
+ if "delete_connected_site_tag" not in self._stubs:
3743
+ self._stubs["delete_connected_site_tag"] = self._logged_channel.unary_unary(
3744
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConnectedSiteTag",
3745
+ request_serializer=analytics_admin.DeleteConnectedSiteTagRequest.serialize,
3746
+ response_deserializer=empty_pb2.Empty.FromString,
3747
+ )
3748
+ return self._stubs["delete_connected_site_tag"]
3749
+
3750
+ @property
3751
+ def list_connected_site_tags(
3752
+ self,
3753
+ ) -> Callable[
3754
+ [analytics_admin.ListConnectedSiteTagsRequest],
3755
+ analytics_admin.ListConnectedSiteTagsResponse,
3756
+ ]:
3757
+ r"""Return a callable for the list connected site tags method over gRPC.
3758
+
3759
+ Lists the connected site tags for a Universal
3760
+ Analytics property. A maximum of 20 connected site tags
3761
+ will be returned. Note: this has no effect on GA4
3762
+ property.
3763
+
3764
+ Returns:
3765
+ Callable[[~.ListConnectedSiteTagsRequest],
3766
+ ~.ListConnectedSiteTagsResponse]:
3767
+ A function that, when called, will call the underlying RPC
3768
+ on the server.
3769
+ """
3770
+ # Generate a "stub function" on-the-fly which will actually make
3771
+ # the request.
3772
+ # gRPC handles serialization and deserialization, so we just need
3773
+ # to pass in the functions for each.
3774
+ if "list_connected_site_tags" not in self._stubs:
3775
+ self._stubs["list_connected_site_tags"] = self._logged_channel.unary_unary(
3776
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListConnectedSiteTags",
3777
+ request_serializer=analytics_admin.ListConnectedSiteTagsRequest.serialize,
3778
+ response_deserializer=analytics_admin.ListConnectedSiteTagsResponse.deserialize,
3779
+ )
3780
+ return self._stubs["list_connected_site_tags"]
3781
+
3782
+ @property
3783
+ def fetch_connected_ga4_property(
3784
+ self,
3785
+ ) -> Callable[
3786
+ [analytics_admin.FetchConnectedGa4PropertyRequest],
3787
+ analytics_admin.FetchConnectedGa4PropertyResponse,
3788
+ ]:
3789
+ r"""Return a callable for the fetch connected ga4 property method over gRPC.
3790
+
3791
+ Given a specified UA property, looks up the GA4
3792
+ property connected to it. Note: this cannot be used with
3793
+ GA4 properties.
3794
+
3795
+ Returns:
3796
+ Callable[[~.FetchConnectedGa4PropertyRequest],
3797
+ ~.FetchConnectedGa4PropertyResponse]:
3798
+ A function that, when called, will call the underlying RPC
3799
+ on the server.
3800
+ """
3801
+ # Generate a "stub function" on-the-fly which will actually make
3802
+ # the request.
3803
+ # gRPC handles serialization and deserialization, so we just need
3804
+ # to pass in the functions for each.
3805
+ if "fetch_connected_ga4_property" not in self._stubs:
3806
+ self._stubs[
3807
+ "fetch_connected_ga4_property"
3808
+ ] = self._logged_channel.unary_unary(
3809
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/FetchConnectedGa4Property",
3810
+ request_serializer=analytics_admin.FetchConnectedGa4PropertyRequest.serialize,
3811
+ response_deserializer=analytics_admin.FetchConnectedGa4PropertyResponse.deserialize,
3812
+ )
3813
+ return self._stubs["fetch_connected_ga4_property"]
3814
+
3815
+ @property
3816
+ def get_ad_sense_link(
3817
+ self,
3818
+ ) -> Callable[[analytics_admin.GetAdSenseLinkRequest], resources.AdSenseLink]:
3819
+ r"""Return a callable for the get ad sense link method over gRPC.
3820
+
3821
+ Looks up a single AdSenseLink.
3822
+
3823
+ Returns:
3824
+ Callable[[~.GetAdSenseLinkRequest],
3825
+ ~.AdSenseLink]:
3826
+ A function that, when called, will call the underlying RPC
3827
+ on the server.
3828
+ """
3829
+ # Generate a "stub function" on-the-fly which will actually make
3830
+ # the request.
3831
+ # gRPC handles serialization and deserialization, so we just need
3832
+ # to pass in the functions for each.
3833
+ if "get_ad_sense_link" not in self._stubs:
3834
+ self._stubs["get_ad_sense_link"] = self._logged_channel.unary_unary(
3835
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetAdSenseLink",
3836
+ request_serializer=analytics_admin.GetAdSenseLinkRequest.serialize,
3837
+ response_deserializer=resources.AdSenseLink.deserialize,
3838
+ )
3839
+ return self._stubs["get_ad_sense_link"]
3840
+
3841
+ @property
3842
+ def create_ad_sense_link(
3843
+ self,
3844
+ ) -> Callable[[analytics_admin.CreateAdSenseLinkRequest], resources.AdSenseLink]:
3845
+ r"""Return a callable for the create ad sense link method over gRPC.
3846
+
3847
+ Creates an AdSenseLink.
3848
+
3849
+ Returns:
3850
+ Callable[[~.CreateAdSenseLinkRequest],
3851
+ ~.AdSenseLink]:
3852
+ A function that, when called, will call the underlying RPC
3853
+ on the server.
3854
+ """
3855
+ # Generate a "stub function" on-the-fly which will actually make
3856
+ # the request.
3857
+ # gRPC handles serialization and deserialization, so we just need
3858
+ # to pass in the functions for each.
3859
+ if "create_ad_sense_link" not in self._stubs:
3860
+ self._stubs["create_ad_sense_link"] = self._logged_channel.unary_unary(
3861
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAdSenseLink",
3862
+ request_serializer=analytics_admin.CreateAdSenseLinkRequest.serialize,
3863
+ response_deserializer=resources.AdSenseLink.deserialize,
3864
+ )
3865
+ return self._stubs["create_ad_sense_link"]
3866
+
3867
+ @property
3868
+ def delete_ad_sense_link(
3869
+ self,
3870
+ ) -> Callable[[analytics_admin.DeleteAdSenseLinkRequest], empty_pb2.Empty]:
3871
+ r"""Return a callable for the delete ad sense link method over gRPC.
3872
+
3873
+ Deletes an AdSenseLink.
3874
+
3875
+ Returns:
3876
+ Callable[[~.DeleteAdSenseLinkRequest],
3877
+ ~.Empty]:
3878
+ A function that, when called, will call the underlying RPC
3879
+ on the server.
3880
+ """
3881
+ # Generate a "stub function" on-the-fly which will actually make
3882
+ # the request.
3883
+ # gRPC handles serialization and deserialization, so we just need
3884
+ # to pass in the functions for each.
3885
+ if "delete_ad_sense_link" not in self._stubs:
3886
+ self._stubs["delete_ad_sense_link"] = self._logged_channel.unary_unary(
3887
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAdSenseLink",
3888
+ request_serializer=analytics_admin.DeleteAdSenseLinkRequest.serialize,
3889
+ response_deserializer=empty_pb2.Empty.FromString,
3890
+ )
3891
+ return self._stubs["delete_ad_sense_link"]
3892
+
3893
+ @property
3894
+ def list_ad_sense_links(
3895
+ self,
3896
+ ) -> Callable[
3897
+ [analytics_admin.ListAdSenseLinksRequest],
3898
+ analytics_admin.ListAdSenseLinksResponse,
3899
+ ]:
3900
+ r"""Return a callable for the list ad sense links method over gRPC.
3901
+
3902
+ Lists AdSenseLinks on a property.
3903
+
3904
+ Returns:
3905
+ Callable[[~.ListAdSenseLinksRequest],
3906
+ ~.ListAdSenseLinksResponse]:
3907
+ A function that, when called, will call the underlying RPC
3908
+ on the server.
3909
+ """
3910
+ # Generate a "stub function" on-the-fly which will actually make
3911
+ # the request.
3912
+ # gRPC handles serialization and deserialization, so we just need
3913
+ # to pass in the functions for each.
3914
+ if "list_ad_sense_links" not in self._stubs:
3915
+ self._stubs["list_ad_sense_links"] = self._logged_channel.unary_unary(
3916
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListAdSenseLinks",
3917
+ request_serializer=analytics_admin.ListAdSenseLinksRequest.serialize,
3918
+ response_deserializer=analytics_admin.ListAdSenseLinksResponse.deserialize,
3919
+ )
3920
+ return self._stubs["list_ad_sense_links"]
3921
+
3922
+ @property
3923
+ def get_event_create_rule(
3924
+ self,
3925
+ ) -> Callable[
3926
+ [analytics_admin.GetEventCreateRuleRequest],
3927
+ event_create_and_edit.EventCreateRule,
3928
+ ]:
3929
+ r"""Return a callable for the get event create rule method over gRPC.
3930
+
3931
+ Lookup for a single EventCreateRule.
3932
+
3933
+ Returns:
3934
+ Callable[[~.GetEventCreateRuleRequest],
3935
+ ~.EventCreateRule]:
3936
+ A function that, when called, will call the underlying RPC
3937
+ on the server.
3938
+ """
3939
+ # Generate a "stub function" on-the-fly which will actually make
3940
+ # the request.
3941
+ # gRPC handles serialization and deserialization, so we just need
3942
+ # to pass in the functions for each.
3943
+ if "get_event_create_rule" not in self._stubs:
3944
+ self._stubs["get_event_create_rule"] = self._logged_channel.unary_unary(
3945
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetEventCreateRule",
3946
+ request_serializer=analytics_admin.GetEventCreateRuleRequest.serialize,
3947
+ response_deserializer=event_create_and_edit.EventCreateRule.deserialize,
3948
+ )
3949
+ return self._stubs["get_event_create_rule"]
3950
+
3951
+ @property
3952
+ def list_event_create_rules(
3953
+ self,
3954
+ ) -> Callable[
3955
+ [analytics_admin.ListEventCreateRulesRequest],
3956
+ analytics_admin.ListEventCreateRulesResponse,
3957
+ ]:
3958
+ r"""Return a callable for the list event create rules method over gRPC.
3959
+
3960
+ Lists EventCreateRules on a web data stream.
3961
+
3962
+ Returns:
3963
+ Callable[[~.ListEventCreateRulesRequest],
3964
+ ~.ListEventCreateRulesResponse]:
3965
+ A function that, when called, will call the underlying RPC
3966
+ on the server.
3967
+ """
3968
+ # Generate a "stub function" on-the-fly which will actually make
3969
+ # the request.
3970
+ # gRPC handles serialization and deserialization, so we just need
3971
+ # to pass in the functions for each.
3972
+ if "list_event_create_rules" not in self._stubs:
3973
+ self._stubs["list_event_create_rules"] = self._logged_channel.unary_unary(
3974
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListEventCreateRules",
3975
+ request_serializer=analytics_admin.ListEventCreateRulesRequest.serialize,
3976
+ response_deserializer=analytics_admin.ListEventCreateRulesResponse.deserialize,
3977
+ )
3978
+ return self._stubs["list_event_create_rules"]
3979
+
3980
+ @property
3981
+ def create_event_create_rule(
3982
+ self,
3983
+ ) -> Callable[
3984
+ [analytics_admin.CreateEventCreateRuleRequest],
3985
+ event_create_and_edit.EventCreateRule,
3986
+ ]:
3987
+ r"""Return a callable for the create event create rule method over gRPC.
3988
+
3989
+ Creates an EventCreateRule.
3990
+
3991
+ Returns:
3992
+ Callable[[~.CreateEventCreateRuleRequest],
3993
+ ~.EventCreateRule]:
3994
+ A function that, when called, will call the underlying RPC
3995
+ on the server.
3996
+ """
3997
+ # Generate a "stub function" on-the-fly which will actually make
3998
+ # the request.
3999
+ # gRPC handles serialization and deserialization, so we just need
4000
+ # to pass in the functions for each.
4001
+ if "create_event_create_rule" not in self._stubs:
4002
+ self._stubs["create_event_create_rule"] = self._logged_channel.unary_unary(
4003
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateEventCreateRule",
4004
+ request_serializer=analytics_admin.CreateEventCreateRuleRequest.serialize,
4005
+ response_deserializer=event_create_and_edit.EventCreateRule.deserialize,
4006
+ )
4007
+ return self._stubs["create_event_create_rule"]
4008
+
4009
+ @property
4010
+ def update_event_create_rule(
4011
+ self,
4012
+ ) -> Callable[
4013
+ [analytics_admin.UpdateEventCreateRuleRequest],
4014
+ event_create_and_edit.EventCreateRule,
4015
+ ]:
4016
+ r"""Return a callable for the update event create rule method over gRPC.
4017
+
4018
+ Updates an EventCreateRule.
4019
+
4020
+ Returns:
4021
+ Callable[[~.UpdateEventCreateRuleRequest],
4022
+ ~.EventCreateRule]:
4023
+ A function that, when called, will call the underlying RPC
4024
+ on the server.
4025
+ """
4026
+ # Generate a "stub function" on-the-fly which will actually make
4027
+ # the request.
4028
+ # gRPC handles serialization and deserialization, so we just need
4029
+ # to pass in the functions for each.
4030
+ if "update_event_create_rule" not in self._stubs:
4031
+ self._stubs["update_event_create_rule"] = self._logged_channel.unary_unary(
4032
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEventCreateRule",
4033
+ request_serializer=analytics_admin.UpdateEventCreateRuleRequest.serialize,
4034
+ response_deserializer=event_create_and_edit.EventCreateRule.deserialize,
4035
+ )
4036
+ return self._stubs["update_event_create_rule"]
4037
+
4038
+ @property
4039
+ def delete_event_create_rule(
4040
+ self,
4041
+ ) -> Callable[[analytics_admin.DeleteEventCreateRuleRequest], empty_pb2.Empty]:
4042
+ r"""Return a callable for the delete event create rule method over gRPC.
4043
+
4044
+ Deletes an EventCreateRule.
4045
+
4046
+ Returns:
4047
+ Callable[[~.DeleteEventCreateRuleRequest],
4048
+ ~.Empty]:
4049
+ A function that, when called, will call the underlying RPC
4050
+ on the server.
4051
+ """
4052
+ # Generate a "stub function" on-the-fly which will actually make
4053
+ # the request.
4054
+ # gRPC handles serialization and deserialization, so we just need
4055
+ # to pass in the functions for each.
4056
+ if "delete_event_create_rule" not in self._stubs:
4057
+ self._stubs["delete_event_create_rule"] = self._logged_channel.unary_unary(
4058
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteEventCreateRule",
4059
+ request_serializer=analytics_admin.DeleteEventCreateRuleRequest.serialize,
4060
+ response_deserializer=empty_pb2.Empty.FromString,
4061
+ )
4062
+ return self._stubs["delete_event_create_rule"]
4063
+
4064
+ @property
4065
+ def get_event_edit_rule(
4066
+ self,
4067
+ ) -> Callable[
4068
+ [analytics_admin.GetEventEditRuleRequest], event_create_and_edit.EventEditRule
4069
+ ]:
4070
+ r"""Return a callable for the get event edit rule method over gRPC.
4071
+
4072
+ Lookup for a single EventEditRule.
4073
+
4074
+ Returns:
4075
+ Callable[[~.GetEventEditRuleRequest],
4076
+ ~.EventEditRule]:
4077
+ A function that, when called, will call the underlying RPC
4078
+ on the server.
4079
+ """
4080
+ # Generate a "stub function" on-the-fly which will actually make
4081
+ # the request.
4082
+ # gRPC handles serialization and deserialization, so we just need
4083
+ # to pass in the functions for each.
4084
+ if "get_event_edit_rule" not in self._stubs:
4085
+ self._stubs["get_event_edit_rule"] = self._logged_channel.unary_unary(
4086
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetEventEditRule",
4087
+ request_serializer=analytics_admin.GetEventEditRuleRequest.serialize,
4088
+ response_deserializer=event_create_and_edit.EventEditRule.deserialize,
4089
+ )
4090
+ return self._stubs["get_event_edit_rule"]
4091
+
4092
+ @property
4093
+ def list_event_edit_rules(
4094
+ self,
4095
+ ) -> Callable[
4096
+ [analytics_admin.ListEventEditRulesRequest],
4097
+ analytics_admin.ListEventEditRulesResponse,
4098
+ ]:
4099
+ r"""Return a callable for the list event edit rules method over gRPC.
4100
+
4101
+ Lists EventEditRules on a web data stream.
4102
+
4103
+ Returns:
4104
+ Callable[[~.ListEventEditRulesRequest],
4105
+ ~.ListEventEditRulesResponse]:
4106
+ A function that, when called, will call the underlying RPC
4107
+ on the server.
4108
+ """
4109
+ # Generate a "stub function" on-the-fly which will actually make
4110
+ # the request.
4111
+ # gRPC handles serialization and deserialization, so we just need
4112
+ # to pass in the functions for each.
4113
+ if "list_event_edit_rules" not in self._stubs:
4114
+ self._stubs["list_event_edit_rules"] = self._logged_channel.unary_unary(
4115
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListEventEditRules",
4116
+ request_serializer=analytics_admin.ListEventEditRulesRequest.serialize,
4117
+ response_deserializer=analytics_admin.ListEventEditRulesResponse.deserialize,
4118
+ )
4119
+ return self._stubs["list_event_edit_rules"]
4120
+
4121
+ @property
4122
+ def create_event_edit_rule(
4123
+ self,
4124
+ ) -> Callable[
4125
+ [analytics_admin.CreateEventEditRuleRequest],
4126
+ event_create_and_edit.EventEditRule,
4127
+ ]:
4128
+ r"""Return a callable for the create event edit rule method over gRPC.
4129
+
4130
+ Creates an EventEditRule.
4131
+
4132
+ Returns:
4133
+ Callable[[~.CreateEventEditRuleRequest],
4134
+ ~.EventEditRule]:
4135
+ A function that, when called, will call the underlying RPC
4136
+ on the server.
4137
+ """
4138
+ # Generate a "stub function" on-the-fly which will actually make
4139
+ # the request.
4140
+ # gRPC handles serialization and deserialization, so we just need
4141
+ # to pass in the functions for each.
4142
+ if "create_event_edit_rule" not in self._stubs:
4143
+ self._stubs["create_event_edit_rule"] = self._logged_channel.unary_unary(
4144
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateEventEditRule",
4145
+ request_serializer=analytics_admin.CreateEventEditRuleRequest.serialize,
4146
+ response_deserializer=event_create_and_edit.EventEditRule.deserialize,
4147
+ )
4148
+ return self._stubs["create_event_edit_rule"]
4149
+
4150
+ @property
4151
+ def update_event_edit_rule(
4152
+ self,
4153
+ ) -> Callable[
4154
+ [analytics_admin.UpdateEventEditRuleRequest],
4155
+ event_create_and_edit.EventEditRule,
4156
+ ]:
4157
+ r"""Return a callable for the update event edit rule method over gRPC.
4158
+
4159
+ Updates an EventEditRule.
4160
+
4161
+ Returns:
4162
+ Callable[[~.UpdateEventEditRuleRequest],
4163
+ ~.EventEditRule]:
4164
+ A function that, when called, will call the underlying RPC
4165
+ on the server.
4166
+ """
4167
+ # Generate a "stub function" on-the-fly which will actually make
4168
+ # the request.
4169
+ # gRPC handles serialization and deserialization, so we just need
4170
+ # to pass in the functions for each.
4171
+ if "update_event_edit_rule" not in self._stubs:
4172
+ self._stubs["update_event_edit_rule"] = self._logged_channel.unary_unary(
4173
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEventEditRule",
4174
+ request_serializer=analytics_admin.UpdateEventEditRuleRequest.serialize,
4175
+ response_deserializer=event_create_and_edit.EventEditRule.deserialize,
4176
+ )
4177
+ return self._stubs["update_event_edit_rule"]
4178
+
4179
+ @property
4180
+ def delete_event_edit_rule(
4181
+ self,
4182
+ ) -> Callable[[analytics_admin.DeleteEventEditRuleRequest], empty_pb2.Empty]:
4183
+ r"""Return a callable for the delete event edit rule method over gRPC.
4184
+
4185
+ Deletes an EventEditRule.
4186
+
4187
+ Returns:
4188
+ Callable[[~.DeleteEventEditRuleRequest],
4189
+ ~.Empty]:
4190
+ A function that, when called, will call the underlying RPC
4191
+ on the server.
4192
+ """
4193
+ # Generate a "stub function" on-the-fly which will actually make
4194
+ # the request.
4195
+ # gRPC handles serialization and deserialization, so we just need
4196
+ # to pass in the functions for each.
4197
+ if "delete_event_edit_rule" not in self._stubs:
4198
+ self._stubs["delete_event_edit_rule"] = self._logged_channel.unary_unary(
4199
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteEventEditRule",
4200
+ request_serializer=analytics_admin.DeleteEventEditRuleRequest.serialize,
4201
+ response_deserializer=empty_pb2.Empty.FromString,
4202
+ )
4203
+ return self._stubs["delete_event_edit_rule"]
4204
+
4205
+ @property
4206
+ def reorder_event_edit_rules(
4207
+ self,
4208
+ ) -> Callable[[analytics_admin.ReorderEventEditRulesRequest], empty_pb2.Empty]:
4209
+ r"""Return a callable for the reorder event edit rules method over gRPC.
4210
+
4211
+ Changes the processing order of event edit rules on
4212
+ the specified stream.
4213
+
4214
+ Returns:
4215
+ Callable[[~.ReorderEventEditRulesRequest],
4216
+ ~.Empty]:
4217
+ A function that, when called, will call the underlying RPC
4218
+ on the server.
4219
+ """
4220
+ # Generate a "stub function" on-the-fly which will actually make
4221
+ # the request.
4222
+ # gRPC handles serialization and deserialization, so we just need
4223
+ # to pass in the functions for each.
4224
+ if "reorder_event_edit_rules" not in self._stubs:
4225
+ self._stubs["reorder_event_edit_rules"] = self._logged_channel.unary_unary(
4226
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ReorderEventEditRules",
4227
+ request_serializer=analytics_admin.ReorderEventEditRulesRequest.serialize,
4228
+ response_deserializer=empty_pb2.Empty.FromString,
4229
+ )
4230
+ return self._stubs["reorder_event_edit_rules"]
4231
+
4232
+ @property
4233
+ def update_data_redaction_settings(
4234
+ self,
4235
+ ) -> Callable[
4236
+ [analytics_admin.UpdateDataRedactionSettingsRequest],
4237
+ resources.DataRedactionSettings,
4238
+ ]:
4239
+ r"""Return a callable for the update data redaction settings method over gRPC.
4240
+
4241
+ Updates a DataRedactionSettings on a property.
4242
+
4243
+ Returns:
4244
+ Callable[[~.UpdateDataRedactionSettingsRequest],
4245
+ ~.DataRedactionSettings]:
4246
+ A function that, when called, will call the underlying RPC
4247
+ on the server.
4248
+ """
4249
+ # Generate a "stub function" on-the-fly which will actually make
4250
+ # the request.
4251
+ # gRPC handles serialization and deserialization, so we just need
4252
+ # to pass in the functions for each.
4253
+ if "update_data_redaction_settings" not in self._stubs:
4254
+ self._stubs[
4255
+ "update_data_redaction_settings"
4256
+ ] = self._logged_channel.unary_unary(
4257
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRedactionSettings",
4258
+ request_serializer=analytics_admin.UpdateDataRedactionSettingsRequest.serialize,
4259
+ response_deserializer=resources.DataRedactionSettings.deserialize,
4260
+ )
4261
+ return self._stubs["update_data_redaction_settings"]
4262
+
4263
+ @property
4264
+ def get_data_redaction_settings(
4265
+ self,
4266
+ ) -> Callable[
4267
+ [analytics_admin.GetDataRedactionSettingsRequest],
4268
+ resources.DataRedactionSettings,
4269
+ ]:
4270
+ r"""Return a callable for the get data redaction settings method over gRPC.
4271
+
4272
+ Lookup for a single DataRedactionSettings.
4273
+
4274
+ Returns:
4275
+ Callable[[~.GetDataRedactionSettingsRequest],
4276
+ ~.DataRedactionSettings]:
4277
+ A function that, when called, will call the underlying RPC
4278
+ on the server.
4279
+ """
4280
+ # Generate a "stub function" on-the-fly which will actually make
4281
+ # the request.
4282
+ # gRPC handles serialization and deserialization, so we just need
4283
+ # to pass in the functions for each.
4284
+ if "get_data_redaction_settings" not in self._stubs:
4285
+ self._stubs[
4286
+ "get_data_redaction_settings"
4287
+ ] = self._logged_channel.unary_unary(
4288
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRedactionSettings",
4289
+ request_serializer=analytics_admin.GetDataRedactionSettingsRequest.serialize,
4290
+ response_deserializer=resources.DataRedactionSettings.deserialize,
4291
+ )
4292
+ return self._stubs["get_data_redaction_settings"]
4293
+
4294
+ @property
4295
+ def get_calculated_metric(
4296
+ self,
4297
+ ) -> Callable[
4298
+ [analytics_admin.GetCalculatedMetricRequest], resources.CalculatedMetric
4299
+ ]:
4300
+ r"""Return a callable for the get calculated metric method over gRPC.
4301
+
4302
+ Lookup for a single CalculatedMetric.
4303
+
4304
+ Returns:
4305
+ Callable[[~.GetCalculatedMetricRequest],
4306
+ ~.CalculatedMetric]:
4307
+ A function that, when called, will call the underlying RPC
4308
+ on the server.
4309
+ """
4310
+ # Generate a "stub function" on-the-fly which will actually make
4311
+ # the request.
4312
+ # gRPC handles serialization and deserialization, so we just need
4313
+ # to pass in the functions for each.
4314
+ if "get_calculated_metric" not in self._stubs:
4315
+ self._stubs["get_calculated_metric"] = self._logged_channel.unary_unary(
4316
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetCalculatedMetric",
4317
+ request_serializer=analytics_admin.GetCalculatedMetricRequest.serialize,
4318
+ response_deserializer=resources.CalculatedMetric.deserialize,
4319
+ )
4320
+ return self._stubs["get_calculated_metric"]
4321
+
4322
+ @property
4323
+ def create_calculated_metric(
4324
+ self,
4325
+ ) -> Callable[
4326
+ [analytics_admin.CreateCalculatedMetricRequest], resources.CalculatedMetric
4327
+ ]:
4328
+ r"""Return a callable for the create calculated metric method over gRPC.
4329
+
4330
+ Creates a CalculatedMetric.
4331
+
4332
+ Returns:
4333
+ Callable[[~.CreateCalculatedMetricRequest],
4334
+ ~.CalculatedMetric]:
4335
+ A function that, when called, will call the underlying RPC
4336
+ on the server.
4337
+ """
4338
+ # Generate a "stub function" on-the-fly which will actually make
4339
+ # the request.
4340
+ # gRPC handles serialization and deserialization, so we just need
4341
+ # to pass in the functions for each.
4342
+ if "create_calculated_metric" not in self._stubs:
4343
+ self._stubs["create_calculated_metric"] = self._logged_channel.unary_unary(
4344
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCalculatedMetric",
4345
+ request_serializer=analytics_admin.CreateCalculatedMetricRequest.serialize,
4346
+ response_deserializer=resources.CalculatedMetric.deserialize,
4347
+ )
4348
+ return self._stubs["create_calculated_metric"]
4349
+
4350
+ @property
4351
+ def list_calculated_metrics(
4352
+ self,
4353
+ ) -> Callable[
4354
+ [analytics_admin.ListCalculatedMetricsRequest],
4355
+ analytics_admin.ListCalculatedMetricsResponse,
4356
+ ]:
4357
+ r"""Return a callable for the list calculated metrics method over gRPC.
4358
+
4359
+ Lists CalculatedMetrics on a property.
4360
+
4361
+ Returns:
4362
+ Callable[[~.ListCalculatedMetricsRequest],
4363
+ ~.ListCalculatedMetricsResponse]:
4364
+ A function that, when called, will call the underlying RPC
4365
+ on the server.
4366
+ """
4367
+ # Generate a "stub function" on-the-fly which will actually make
4368
+ # the request.
4369
+ # gRPC handles serialization and deserialization, so we just need
4370
+ # to pass in the functions for each.
4371
+ if "list_calculated_metrics" not in self._stubs:
4372
+ self._stubs["list_calculated_metrics"] = self._logged_channel.unary_unary(
4373
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListCalculatedMetrics",
4374
+ request_serializer=analytics_admin.ListCalculatedMetricsRequest.serialize,
4375
+ response_deserializer=analytics_admin.ListCalculatedMetricsResponse.deserialize,
4376
+ )
4377
+ return self._stubs["list_calculated_metrics"]
4378
+
4379
+ @property
4380
+ def update_calculated_metric(
4381
+ self,
4382
+ ) -> Callable[
4383
+ [analytics_admin.UpdateCalculatedMetricRequest], resources.CalculatedMetric
4384
+ ]:
4385
+ r"""Return a callable for the update calculated metric method over gRPC.
4386
+
4387
+ Updates a CalculatedMetric on a property.
4388
+
4389
+ Returns:
4390
+ Callable[[~.UpdateCalculatedMetricRequest],
4391
+ ~.CalculatedMetric]:
4392
+ A function that, when called, will call the underlying RPC
4393
+ on the server.
4394
+ """
4395
+ # Generate a "stub function" on-the-fly which will actually make
4396
+ # the request.
4397
+ # gRPC handles serialization and deserialization, so we just need
4398
+ # to pass in the functions for each.
4399
+ if "update_calculated_metric" not in self._stubs:
4400
+ self._stubs["update_calculated_metric"] = self._logged_channel.unary_unary(
4401
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCalculatedMetric",
4402
+ request_serializer=analytics_admin.UpdateCalculatedMetricRequest.serialize,
4403
+ response_deserializer=resources.CalculatedMetric.deserialize,
4404
+ )
4405
+ return self._stubs["update_calculated_metric"]
4406
+
4407
+ @property
4408
+ def delete_calculated_metric(
4409
+ self,
4410
+ ) -> Callable[[analytics_admin.DeleteCalculatedMetricRequest], empty_pb2.Empty]:
4411
+ r"""Return a callable for the delete calculated metric method over gRPC.
4412
+
4413
+ Deletes a CalculatedMetric on a property.
4414
+
4415
+ Returns:
4416
+ Callable[[~.DeleteCalculatedMetricRequest],
4417
+ ~.Empty]:
4418
+ A function that, when called, will call the underlying RPC
4419
+ on the server.
4420
+ """
4421
+ # Generate a "stub function" on-the-fly which will actually make
4422
+ # the request.
4423
+ # gRPC handles serialization and deserialization, so we just need
4424
+ # to pass in the functions for each.
4425
+ if "delete_calculated_metric" not in self._stubs:
4426
+ self._stubs["delete_calculated_metric"] = self._logged_channel.unary_unary(
4427
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteCalculatedMetric",
4428
+ request_serializer=analytics_admin.DeleteCalculatedMetricRequest.serialize,
4429
+ response_deserializer=empty_pb2.Empty.FromString,
4430
+ )
4431
+ return self._stubs["delete_calculated_metric"]
4432
+
4433
+ @property
4434
+ def create_rollup_property(
4435
+ self,
4436
+ ) -> Callable[
4437
+ [analytics_admin.CreateRollupPropertyRequest],
4438
+ analytics_admin.CreateRollupPropertyResponse,
4439
+ ]:
4440
+ r"""Return a callable for the create rollup property method over gRPC.
4441
+
4442
+ Create a roll-up property and all roll-up property
4443
+ source links.
4444
+
4445
+ Returns:
4446
+ Callable[[~.CreateRollupPropertyRequest],
4447
+ ~.CreateRollupPropertyResponse]:
4448
+ A function that, when called, will call the underlying RPC
4449
+ on the server.
4450
+ """
4451
+ # Generate a "stub function" on-the-fly which will actually make
4452
+ # the request.
4453
+ # gRPC handles serialization and deserialization, so we just need
4454
+ # to pass in the functions for each.
4455
+ if "create_rollup_property" not in self._stubs:
4456
+ self._stubs["create_rollup_property"] = self._logged_channel.unary_unary(
4457
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupProperty",
4458
+ request_serializer=analytics_admin.CreateRollupPropertyRequest.serialize,
4459
+ response_deserializer=analytics_admin.CreateRollupPropertyResponse.deserialize,
4460
+ )
4461
+ return self._stubs["create_rollup_property"]
4462
+
4463
+ @property
4464
+ def get_rollup_property_source_link(
4465
+ self,
4466
+ ) -> Callable[
4467
+ [analytics_admin.GetRollupPropertySourceLinkRequest],
4468
+ resources.RollupPropertySourceLink,
4469
+ ]:
4470
+ r"""Return a callable for the get rollup property source
4471
+ link method over gRPC.
4472
+
4473
+ Lookup for a single roll-up property source Link.
4474
+ Only roll-up properties can have source links, so this
4475
+ method will throw an error if used on other types of
4476
+ properties.
4477
+
4478
+ Returns:
4479
+ Callable[[~.GetRollupPropertySourceLinkRequest],
4480
+ ~.RollupPropertySourceLink]:
4481
+ A function that, when called, will call the underlying RPC
4482
+ on the server.
4483
+ """
4484
+ # Generate a "stub function" on-the-fly which will actually make
4485
+ # the request.
4486
+ # gRPC handles serialization and deserialization, so we just need
4487
+ # to pass in the functions for each.
4488
+ if "get_rollup_property_source_link" not in self._stubs:
4489
+ self._stubs[
4490
+ "get_rollup_property_source_link"
4491
+ ] = self._logged_channel.unary_unary(
4492
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetRollupPropertySourceLink",
4493
+ request_serializer=analytics_admin.GetRollupPropertySourceLinkRequest.serialize,
4494
+ response_deserializer=resources.RollupPropertySourceLink.deserialize,
4495
+ )
4496
+ return self._stubs["get_rollup_property_source_link"]
4497
+
4498
+ @property
4499
+ def list_rollup_property_source_links(
4500
+ self,
4501
+ ) -> Callable[
4502
+ [analytics_admin.ListRollupPropertySourceLinksRequest],
4503
+ analytics_admin.ListRollupPropertySourceLinksResponse,
4504
+ ]:
4505
+ r"""Return a callable for the list rollup property source
4506
+ links method over gRPC.
4507
+
4508
+ Lists roll-up property source Links on a property.
4509
+ Only roll-up properties can have source links, so this
4510
+ method will throw an error if used on other types of
4511
+ properties.
4512
+
4513
+ Returns:
4514
+ Callable[[~.ListRollupPropertySourceLinksRequest],
4515
+ ~.ListRollupPropertySourceLinksResponse]:
4516
+ A function that, when called, will call the underlying RPC
4517
+ on the server.
4518
+ """
4519
+ # Generate a "stub function" on-the-fly which will actually make
4520
+ # the request.
4521
+ # gRPC handles serialization and deserialization, so we just need
4522
+ # to pass in the functions for each.
4523
+ if "list_rollup_property_source_links" not in self._stubs:
4524
+ self._stubs[
4525
+ "list_rollup_property_source_links"
4526
+ ] = self._logged_channel.unary_unary(
4527
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListRollupPropertySourceLinks",
4528
+ request_serializer=analytics_admin.ListRollupPropertySourceLinksRequest.serialize,
4529
+ response_deserializer=analytics_admin.ListRollupPropertySourceLinksResponse.deserialize,
4530
+ )
4531
+ return self._stubs["list_rollup_property_source_links"]
4532
+
4533
+ @property
4534
+ def create_rollup_property_source_link(
4535
+ self,
4536
+ ) -> Callable[
4537
+ [analytics_admin.CreateRollupPropertySourceLinkRequest],
4538
+ resources.RollupPropertySourceLink,
4539
+ ]:
4540
+ r"""Return a callable for the create rollup property source
4541
+ link method over gRPC.
4542
+
4543
+ Creates a roll-up property source link.
4544
+ Only roll-up properties can have source links, so this
4545
+ method will throw an error if used on other types of
4546
+ properties.
4547
+
4548
+ Returns:
4549
+ Callable[[~.CreateRollupPropertySourceLinkRequest],
4550
+ ~.RollupPropertySourceLink]:
4551
+ A function that, when called, will call the underlying RPC
4552
+ on the server.
4553
+ """
4554
+ # Generate a "stub function" on-the-fly which will actually make
4555
+ # the request.
4556
+ # gRPC handles serialization and deserialization, so we just need
4557
+ # to pass in the functions for each.
4558
+ if "create_rollup_property_source_link" not in self._stubs:
4559
+ self._stubs[
4560
+ "create_rollup_property_source_link"
4561
+ ] = self._logged_channel.unary_unary(
4562
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupPropertySourceLink",
4563
+ request_serializer=analytics_admin.CreateRollupPropertySourceLinkRequest.serialize,
4564
+ response_deserializer=resources.RollupPropertySourceLink.deserialize,
4565
+ )
4566
+ return self._stubs["create_rollup_property_source_link"]
4567
+
4568
+ @property
4569
+ def delete_rollup_property_source_link(
4570
+ self,
4571
+ ) -> Callable[
4572
+ [analytics_admin.DeleteRollupPropertySourceLinkRequest], empty_pb2.Empty
4573
+ ]:
4574
+ r"""Return a callable for the delete rollup property source
4575
+ link method over gRPC.
4576
+
4577
+ Deletes a roll-up property source link.
4578
+ Only roll-up properties can have source links, so this
4579
+ method will throw an error if used on other types of
4580
+ properties.
4581
+
4582
+ Returns:
4583
+ Callable[[~.DeleteRollupPropertySourceLinkRequest],
4584
+ ~.Empty]:
4585
+ A function that, when called, will call the underlying RPC
4586
+ on the server.
4587
+ """
4588
+ # Generate a "stub function" on-the-fly which will actually make
4589
+ # the request.
4590
+ # gRPC handles serialization and deserialization, so we just need
4591
+ # to pass in the functions for each.
4592
+ if "delete_rollup_property_source_link" not in self._stubs:
4593
+ self._stubs[
4594
+ "delete_rollup_property_source_link"
4595
+ ] = self._logged_channel.unary_unary(
4596
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteRollupPropertySourceLink",
4597
+ request_serializer=analytics_admin.DeleteRollupPropertySourceLinkRequest.serialize,
4598
+ response_deserializer=empty_pb2.Empty.FromString,
4599
+ )
4600
+ return self._stubs["delete_rollup_property_source_link"]
4601
+
4602
+ @property
4603
+ def provision_subproperty(
4604
+ self,
4605
+ ) -> Callable[
4606
+ [analytics_admin.ProvisionSubpropertyRequest],
4607
+ analytics_admin.ProvisionSubpropertyResponse,
4608
+ ]:
4609
+ r"""Return a callable for the provision subproperty method over gRPC.
4610
+
4611
+ Create a subproperty and a subproperty event filter
4612
+ that applies to the created subproperty.
4613
+
4614
+ Returns:
4615
+ Callable[[~.ProvisionSubpropertyRequest],
4616
+ ~.ProvisionSubpropertyResponse]:
4617
+ A function that, when called, will call the underlying RPC
4618
+ on the server.
4619
+ """
4620
+ # Generate a "stub function" on-the-fly which will actually make
4621
+ # the request.
4622
+ # gRPC handles serialization and deserialization, so we just need
4623
+ # to pass in the functions for each.
4624
+ if "provision_subproperty" not in self._stubs:
4625
+ self._stubs["provision_subproperty"] = self._logged_channel.unary_unary(
4626
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ProvisionSubproperty",
4627
+ request_serializer=analytics_admin.ProvisionSubpropertyRequest.serialize,
4628
+ response_deserializer=analytics_admin.ProvisionSubpropertyResponse.deserialize,
4629
+ )
4630
+ return self._stubs["provision_subproperty"]
4631
+
4632
+ @property
4633
+ def create_subproperty_event_filter(
4634
+ self,
4635
+ ) -> Callable[
4636
+ [analytics_admin.CreateSubpropertyEventFilterRequest],
4637
+ gaa_subproperty_event_filter.SubpropertyEventFilter,
4638
+ ]:
4639
+ r"""Return a callable for the create subproperty event
4640
+ filter method over gRPC.
4641
+
4642
+ Creates a subproperty Event Filter.
4643
+
4644
+ Returns:
4645
+ Callable[[~.CreateSubpropertyEventFilterRequest],
4646
+ ~.SubpropertyEventFilter]:
4647
+ A function that, when called, will call the underlying RPC
4648
+ on the server.
4649
+ """
4650
+ # Generate a "stub function" on-the-fly which will actually make
4651
+ # the request.
4652
+ # gRPC handles serialization and deserialization, so we just need
4653
+ # to pass in the functions for each.
4654
+ if "create_subproperty_event_filter" not in self._stubs:
4655
+ self._stubs[
4656
+ "create_subproperty_event_filter"
4657
+ ] = self._logged_channel.unary_unary(
4658
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubpropertyEventFilter",
4659
+ request_serializer=analytics_admin.CreateSubpropertyEventFilterRequest.serialize,
4660
+ response_deserializer=gaa_subproperty_event_filter.SubpropertyEventFilter.deserialize,
4661
+ )
4662
+ return self._stubs["create_subproperty_event_filter"]
4663
+
4664
+ @property
4665
+ def get_subproperty_event_filter(
4666
+ self,
4667
+ ) -> Callable[
4668
+ [analytics_admin.GetSubpropertyEventFilterRequest],
4669
+ subproperty_event_filter.SubpropertyEventFilter,
4670
+ ]:
4671
+ r"""Return a callable for the get subproperty event filter method over gRPC.
4672
+
4673
+ Lookup for a single subproperty Event Filter.
4674
+
4675
+ Returns:
4676
+ Callable[[~.GetSubpropertyEventFilterRequest],
4677
+ ~.SubpropertyEventFilter]:
4678
+ A function that, when called, will call the underlying RPC
4679
+ on the server.
4680
+ """
4681
+ # Generate a "stub function" on-the-fly which will actually make
4682
+ # the request.
4683
+ # gRPC handles serialization and deserialization, so we just need
4684
+ # to pass in the functions for each.
4685
+ if "get_subproperty_event_filter" not in self._stubs:
4686
+ self._stubs[
4687
+ "get_subproperty_event_filter"
4688
+ ] = self._logged_channel.unary_unary(
4689
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/GetSubpropertyEventFilter",
4690
+ request_serializer=analytics_admin.GetSubpropertyEventFilterRequest.serialize,
4691
+ response_deserializer=subproperty_event_filter.SubpropertyEventFilter.deserialize,
4692
+ )
4693
+ return self._stubs["get_subproperty_event_filter"]
4694
+
4695
+ @property
4696
+ def list_subproperty_event_filters(
4697
+ self,
4698
+ ) -> Callable[
4699
+ [analytics_admin.ListSubpropertyEventFiltersRequest],
4700
+ analytics_admin.ListSubpropertyEventFiltersResponse,
4701
+ ]:
4702
+ r"""Return a callable for the list subproperty event filters method over gRPC.
4703
+
4704
+ List all subproperty Event Filters on a property.
4705
+
4706
+ Returns:
4707
+ Callable[[~.ListSubpropertyEventFiltersRequest],
4708
+ ~.ListSubpropertyEventFiltersResponse]:
4709
+ A function that, when called, will call the underlying RPC
4710
+ on the server.
4711
+ """
4712
+ # Generate a "stub function" on-the-fly which will actually make
4713
+ # the request.
4714
+ # gRPC handles serialization and deserialization, so we just need
4715
+ # to pass in the functions for each.
4716
+ if "list_subproperty_event_filters" not in self._stubs:
4717
+ self._stubs[
4718
+ "list_subproperty_event_filters"
4719
+ ] = self._logged_channel.unary_unary(
4720
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/ListSubpropertyEventFilters",
4721
+ request_serializer=analytics_admin.ListSubpropertyEventFiltersRequest.serialize,
4722
+ response_deserializer=analytics_admin.ListSubpropertyEventFiltersResponse.deserialize,
4723
+ )
4724
+ return self._stubs["list_subproperty_event_filters"]
4725
+
4726
+ @property
4727
+ def update_subproperty_event_filter(
4728
+ self,
4729
+ ) -> Callable[
4730
+ [analytics_admin.UpdateSubpropertyEventFilterRequest],
4731
+ gaa_subproperty_event_filter.SubpropertyEventFilter,
4732
+ ]:
4733
+ r"""Return a callable for the update subproperty event
4734
+ filter method over gRPC.
4735
+
4736
+ Updates a subproperty Event Filter.
4737
+
4738
+ Returns:
4739
+ Callable[[~.UpdateSubpropertyEventFilterRequest],
4740
+ ~.SubpropertyEventFilter]:
4741
+ A function that, when called, will call the underlying RPC
4742
+ on the server.
4743
+ """
4744
+ # Generate a "stub function" on-the-fly which will actually make
4745
+ # the request.
4746
+ # gRPC handles serialization and deserialization, so we just need
4747
+ # to pass in the functions for each.
4748
+ if "update_subproperty_event_filter" not in self._stubs:
4749
+ self._stubs[
4750
+ "update_subproperty_event_filter"
4751
+ ] = self._logged_channel.unary_unary(
4752
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSubpropertyEventFilter",
4753
+ request_serializer=analytics_admin.UpdateSubpropertyEventFilterRequest.serialize,
4754
+ response_deserializer=gaa_subproperty_event_filter.SubpropertyEventFilter.deserialize,
4755
+ )
4756
+ return self._stubs["update_subproperty_event_filter"]
4757
+
4758
+ @property
4759
+ def delete_subproperty_event_filter(
4760
+ self,
4761
+ ) -> Callable[
4762
+ [analytics_admin.DeleteSubpropertyEventFilterRequest], empty_pb2.Empty
4763
+ ]:
4764
+ r"""Return a callable for the delete subproperty event
4765
+ filter method over gRPC.
4766
+
4767
+ Deletes a subproperty event filter.
4768
+
4769
+ Returns:
4770
+ Callable[[~.DeleteSubpropertyEventFilterRequest],
4771
+ ~.Empty]:
4772
+ A function that, when called, will call the underlying RPC
4773
+ on the server.
4774
+ """
4775
+ # Generate a "stub function" on-the-fly which will actually make
4776
+ # the request.
4777
+ # gRPC handles serialization and deserialization, so we just need
4778
+ # to pass in the functions for each.
4779
+ if "delete_subproperty_event_filter" not in self._stubs:
4780
+ self._stubs[
4781
+ "delete_subproperty_event_filter"
4782
+ ] = self._logged_channel.unary_unary(
4783
+ "/google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSubpropertyEventFilter",
4784
+ request_serializer=analytics_admin.DeleteSubpropertyEventFilterRequest.serialize,
4785
+ response_deserializer=empty_pb2.Empty.FromString,
4786
+ )
4787
+ return self._stubs["delete_subproperty_event_filter"]
4788
+
4789
+ def close(self):
4790
+ self._logged_channel.close()
4791
+
4792
+ @property
4793
+ def kind(self) -> str:
4794
+ return "grpc"
4795
+
4796
+
4797
+ __all__ = ("AnalyticsAdminServiceGrpcTransport",)