From d44845b725edff9748ad07210e3b1bd12d41aedc Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 4 Aug 2023 21:52:14 +0000 Subject: [PATCH 1/2] docs: Minor formatting docs: Add clarifications PiperOrigin-RevId: 553885123 Source-Link: https://github.com/googleapis/googleapis/commit/9458a5adb714906f10b9ffd7aba1f91497f5b82f Source-Link: https://github.com/googleapis/googleapis-gen/commit/8b7876034fcfb521dbd9297709e073b61cd89351 Copy-Tag: eyJwIjoiQW5hbHl0aWNzRGF0YS8uT3dsQm90LnlhbWwiLCJoIjoiOGI3ODc2MDM0ZmNmYjUyMWRiZDkyOTc3MDllMDczYjYxY2Q4OTM1MSJ9 --- .../Data/V1Beta/AnalyticsDataApi.php | 148 +++ .../Google/Analytics/Data/V1Beta/Data.php | Bin 0 -> 8021 bytes .../V1beta/BatchRunPivotReportsRequest.php | 133 +++ .../V1beta/BatchRunPivotReportsResponse.php | 109 ++ .../Data/V1beta/BatchRunReportsRequest.php | 133 +++ .../Data/V1beta/BatchRunReportsResponse.php | 109 ++ .../Data/V1beta/CheckCompatibilityRequest.php | 300 ++++++ .../V1beta/CheckCompatibilityResponse.php | 101 ++ .../Google/Analytics/Data/V1beta/Cohort.php | 215 ++++ .../Data/V1beta/CohortReportSettings.php | 71 ++ .../Analytics/Data/V1beta/CohortSpec.php | 179 ++++ .../Analytics/Data/V1beta/CohortsRange.php | 208 ++++ .../Data/V1beta/CohortsRange/Granularity.php | 76 ++ .../Analytics/Data/V1beta/Compatibility.php | 63 ++ .../Analytics/Data/V1beta/DateRange.php | 172 +++ .../Analytics/Data/V1beta/Dimension.php | 154 +++ .../Data/V1beta/DimensionCompatibility.php | 133 +++ .../Data/V1beta/DimensionExpression.php | 147 +++ .../DimensionExpression/CaseExpression.php | 74 ++ .../ConcatenateExpression.php | 128 +++ .../Analytics/Data/V1beta/DimensionHeader.php | 70 ++ .../Data/V1beta/DimensionMetadata.php | 261 +++++ .../Analytics/Data/V1beta/DimensionValue.php | 75 ++ .../Google/Analytics/Data/V1beta/Filter.php | 224 ++++ .../Data/V1beta/Filter/BetweenFilter.php | 124 +++ .../Data/V1beta/Filter/InListFilter.php | 108 ++ .../Data/V1beta/Filter/NumericFilter.php | 114 ++ .../V1beta/Filter/NumericFilter/Operation.php | 85 ++ .../Data/V1beta/Filter/StringFilter.php | 138 +++ .../V1beta/Filter/StringFilter/MatchType.php | 92 ++ .../Data/V1beta/FilterExpression.php | 178 ++++ .../Data/V1beta/FilterExpressionList.php | 67 ++ .../Data/V1beta/GetMetadataRequest.php | 123 +++ .../Google/Analytics/Data/V1beta/Metadata.php | 135 +++ .../Google/Analytics/Data/V1beta/Metric.php | 185 ++++ .../Data/V1beta/MetricAggregation.php | 75 ++ .../Data/V1beta/MetricCompatibility.php | 133 +++ .../Analytics/Data/V1beta/MetricHeader.php | 104 ++ .../Analytics/Data/V1beta/MetricMetadata.php | 395 +++++++ .../V1beta/MetricMetadata/BlockedReason.php | 66 ++ .../Analytics/Data/V1beta/MetricType.php | 131 +++ .../Analytics/Data/V1beta/MetricValue.php | 75 ++ .../Analytics/Data/V1beta/MinuteRange.php | 220 ++++ .../Analytics/Data/V1beta/NumericValue.php | 108 ++ .../Google/Analytics/Data/V1beta/OrderBy.php | 177 ++++ .../Data/V1beta/OrderBy/DimensionOrderBy.php | 104 ++ .../OrderBy/DimensionOrderBy/OrderType.php | 76 ++ .../Data/V1beta/OrderBy/MetricOrderBy.php | 70 ++ .../Data/V1beta/OrderBy/PivotOrderBy.php | 120 +++ .../OrderBy/PivotOrderBy/PivotSelection.php | 117 ++ .../Google/Analytics/Data/V1beta/Pivot.php | 255 +++++ .../Data/V1beta/PivotDimensionHeader.php | 67 ++ .../Analytics/Data/V1beta/PivotHeader.php | 113 ++ .../Analytics/Data/V1beta/PropertyQuota.php | 363 +++++++ .../Analytics/Data/V1beta/QuotaStatus.php | 101 ++ .../Data/V1beta/ResponseMetaData.php | 407 +++++++ .../SchemaRestrictionResponse.php | 84 ++ .../ActiveMetricRestriction.php | 114 ++ .../Data/V1beta/RestrictedMetricType.php | 62 ++ .../src/Google/Analytics/Data/V1beta/Row.php | 138 +++ .../Data/V1beta/RunPivotReportRequest.php | 553 ++++++++++ .../Data/V1beta/RunPivotReportResponse.php | 481 +++++++++ .../Data/V1beta/RunRealtimeReportRequest.php | 465 ++++++++ .../Data/V1beta/RunRealtimeReportResponse.php | 381 +++++++ .../Data/V1beta/RunReportRequest.php | 699 ++++++++++++ .../Data/V1beta/RunReportResponse.php | 433 ++++++++ .../batch_run_pivot_reports.php | 58 + .../batch_run_reports.php | 58 + .../check_compatibility.php | 66 ++ .../BetaAnalyticsDataClient/get_metadata.php | 90 ++ .../run_pivot_report.php | 61 ++ .../run_realtime_report.php | 65 ++ .../BetaAnalyticsDataClient/run_report.php | 67 ++ .../src/V1beta/BetaAnalyticsDataClient.php | 36 + .../BetaAnalyticsDataBaseClient.php | 475 +++++++++ .../V1beta/Client/BetaAnalyticsDataClient.php | 42 + .../Gapic/BetaAnalyticsDataGapicClient.php | 997 ++++++++++++++++++ .../v1beta/src/V1beta/gapic_metadata.json | 53 + .../beta_analytics_data_client_config.json | 79 ++ .../beta_analytics_data_descriptor_config.php | 95 ++ ...beta_analytics_data_rest_client_config.php | 92 ++ .../V1beta/BetaAnalyticsDataClientTest.php | 453 ++++++++ .../Client/BetaAnalyticsDataClientTest.php | 500 +++++++++ 83 files changed, 14606 insertions(+) create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/AnalyticsDataApi.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/Data.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunPivotReportsRequest.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunPivotReportsResponse.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsRequest.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsResponse.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityRequest.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityResponse.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Cohort.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortReportSettings.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortSpec.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange/Granularity.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Compatibility.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DateRange.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Dimension.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionCompatibility.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/CaseExpression.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/ConcatenateExpression.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionHeader.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionMetadata.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionValue.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/BetweenFilter.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/InListFilter.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter/Operation.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter/MatchType.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpression.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpressionList.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/GetMetadataRequest.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metadata.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metric.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricAggregation.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricCompatibility.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricHeader.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata/BlockedReason.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricType.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricValue.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MinuteRange.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/NumericValue.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy/OrderType.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/MetricOrderBy.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy/PivotSelection.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Pivot.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotDimensionHeader.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotHeader.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PropertyQuota.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/QuotaStatus.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse/ActiveMetricRestriction.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RestrictedMetricType.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Row.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportRequest.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportResponse.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportRequest.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportResponse.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportRequest.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportResponse.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_pivot_reports.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_reports.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/check_compatibility.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/get_metadata.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_pivot_report.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_realtime_report.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_report.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/src/V1beta/BetaAnalyticsDataClient.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/src/V1beta/Client/BaseClient/BetaAnalyticsDataBaseClient.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/src/V1beta/Client/BetaAnalyticsDataClient.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/src/V1beta/Gapic/BetaAnalyticsDataGapicClient.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/src/V1beta/gapic_metadata.json create mode 100644 owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_client_config.json create mode 100644 owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_descriptor_config.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_rest_client_config.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/BetaAnalyticsDataClientTest.php create mode 100644 owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/Client/BetaAnalyticsDataClientTest.php diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/AnalyticsDataApi.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/AnalyticsDataApi.php new file mode 100644 index 00000000000..168e563b742 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/AnalyticsDataApi.php @@ -0,0 +1,148 @@ +internalAddGeneratedFile( + ' +˛2 +5google/analytics/data/v1beta/analytics_data_api.protogoogle.analytics.data.v1betagoogle/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"ý +CheckCompatibilityRequest +property ( ; + +dimensions ( 2\'.google.analytics.data.v1beta.Dimension5 +metrics ( 2$.google.analytics.data.v1beta.MetricH +dimension_filter ( 2..google.analytics.data.v1beta.FilterExpressionE + metric_filter ( 2..google.analytics.data.v1beta.FilterExpressionI +compatibility_filter (2+.google.analytics.data.v1beta.Compatibility"Č +CheckCompatibilityResponseW +dimension_compatibilities ( 24.google.analytics.data.v1beta.DimensionCompatibilityQ +metric_compatibilities ( 21.google.analytics.data.v1beta.MetricCompatibility"č +Metadata +name ( C + +dimensions ( 2/.google.analytics.data.v1beta.DimensionMetadata= +metrics ( 2,.google.analytics.data.v1beta.MetricMetadata:JęAG +%analyticsdata.googleapis.com/Metadataproperties/{property}/metadata"ś +RunReportRequest +property ( ; + +dimensions ( 2\'.google.analytics.data.v1beta.Dimension5 +metrics ( 2$.google.analytics.data.v1beta.Metric< + date_ranges ( 2\'.google.analytics.data.v1beta.DateRangeH +dimension_filter ( 2..google.analytics.data.v1beta.FilterExpressionE + metric_filter ( 2..google.analytics.data.v1beta.FilterExpression +offset ( +limit (L +metric_aggregations (2/.google.analytics.data.v1beta.MetricAggregation8 + order_bys + ( 2%.google.analytics.data.v1beta.OrderBy + currency_code ( = + cohort_spec ( 2(.google.analytics.data.v1beta.CohortSpec +keep_empty_rows ( +return_property_quota ("— +RunReportResponseH +dimension_headers ( 2-.google.analytics.data.v1beta.DimensionHeaderB +metric_headers ( 2*.google.analytics.data.v1beta.MetricHeader/ +rows ( 2!.google.analytics.data.v1beta.Row1 +totals ( 2!.google.analytics.data.v1beta.Row3 +maximums ( 2!.google.analytics.data.v1beta.Row3 +minimums ( 2!.google.analytics.data.v1beta.Row + row_count (@ +metadata ( 2..google.analytics.data.v1beta.ResponseMetaDataC +property_quota ( 2+.google.analytics.data.v1beta.PropertyQuota +kind + ( "Ż +RunPivotReportRequest +property ( ; + +dimensions ( 2\'.google.analytics.data.v1beta.Dimension5 +metrics ( 2$.google.analytics.data.v1beta.Metric< + date_ranges ( 2\'.google.analytics.data.v1beta.DateRange3 +pivots ( 2#.google.analytics.data.v1beta.PivotH +dimension_filter ( 2..google.analytics.data.v1beta.FilterExpressionE + metric_filter ( 2..google.analytics.data.v1beta.FilterExpression + currency_code ( = + cohort_spec ( 2(.google.analytics.data.v1beta.CohortSpec +keep_empty_rows + ( +return_property_quota ("ĺ +RunPivotReportResponse@ + pivot_headers ( 2).google.analytics.data.v1beta.PivotHeaderH +dimension_headers ( 2-.google.analytics.data.v1beta.DimensionHeaderB +metric_headers ( 2*.google.analytics.data.v1beta.MetricHeader/ +rows ( 2!.google.analytics.data.v1beta.Row5 + +aggregates ( 2!.google.analytics.data.v1beta.Row@ +metadata ( 2..google.analytics.data.v1beta.ResponseMetaDataC +property_quota ( 2+.google.analytics.data.v1beta.PropertyQuota +kind ( "l +BatchRunReportsRequest +property ( @ +requests ( 2..google.analytics.data.v1beta.RunReportRequest"i +BatchRunReportsResponse@ +reports ( 2/.google.analytics.data.v1beta.RunReportResponse +kind ( "v +BatchRunPivotReportsRequest +property ( E +requests ( 23.google.analytics.data.v1beta.RunPivotReportRequest"y +BatchRunPivotReportsResponseK + pivot_reports ( 24.google.analytics.data.v1beta.RunPivotReportResponse +kind ( "Q +GetMetadataRequest; +name ( B-ŕAúA\' +%analyticsdata.googleapis.com/Metadata"© +RunRealtimeReportRequest +property ( ; + +dimensions ( 2\'.google.analytics.data.v1beta.Dimension5 +metrics ( 2$.google.analytics.data.v1beta.MetricH +dimension_filter ( 2..google.analytics.data.v1beta.FilterExpressionE + metric_filter ( 2..google.analytics.data.v1beta.FilterExpression +limit (L +metric_aggregations (2/.google.analytics.data.v1beta.MetricAggregation8 + order_bys ( 2%.google.analytics.data.v1beta.OrderBy +return_property_quota (@ + minute_ranges + ( 2).google.analytics.data.v1beta.MinuteRange"Ý +RunRealtimeReportResponseH +dimension_headers ( 2-.google.analytics.data.v1beta.DimensionHeaderB +metric_headers ( 2*.google.analytics.data.v1beta.MetricHeader/ +rows ( 2!.google.analytics.data.v1beta.Row1 +totals ( 2!.google.analytics.data.v1beta.Row3 +maximums ( 2!.google.analytics.data.v1beta.Row3 +minimums ( 2!.google.analytics.data.v1beta.Row + row_count (C +property_quota ( 2+.google.analytics.data.v1beta.PropertyQuota +kind ( 2¬ +BetaAnalyticsData˘ + RunReport..google.analytics.data.v1beta.RunReportRequest/.google.analytics.data.v1beta.RunReportResponse"4‚Óä“.")/v1beta/{property=properties/*}:runReport:*¶ +RunPivotReport3.google.analytics.data.v1beta.RunPivotReportRequest4.google.analytics.data.v1beta.RunPivotReportResponse"9‚Óä“3"./v1beta/{property=properties/*}:runPivotReport:*ş +BatchRunReports4.google.analytics.data.v1beta.BatchRunReportsRequest5.google.analytics.data.v1beta.BatchRunReportsResponse":‚Óä“4"//v1beta/{property=properties/*}:batchRunReports:*Î +BatchRunPivotReports9.google.analytics.data.v1beta.BatchRunPivotReportsRequest:.google.analytics.data.v1beta.BatchRunPivotReportsResponse"?‚Óä“9"4/v1beta/{property=properties/*}:batchRunPivotReports:*ś + GetMetadata0.google.analytics.data.v1beta.GetMetadataRequest&.google.analytics.data.v1beta.Metadata"3‚Óä“&$/v1beta/{name=properties/*/metadata}ÚAname +RunRealtimeReport6.google.analytics.data.v1beta.RunRealtimeReportRequest7.google.analytics.data.v1beta.RunRealtimeReportResponse"<‚Óä“6"1/v1beta/{property=properties/*}:runRealtimeReport:*Ć +CheckCompatibility7.google.analytics.data.v1beta.CheckCompatibilityRequest8.google.analytics.data.v1beta.CheckCompatibilityResponse"=‚Óä“7"2/v1beta/{property=properties/*}:checkCompatibility:*~ĘAanalyticsdata.googleapis.comŇA\\https://www.googleapis.com/auth/analytics,https://www.googleapis.com/auth/analytics.readonlyB} + com.google.analytics.data.v1betaBAnalyticsDataApiProtoPZ@google.golang.org/genproto/googleapis/analytics/data/v1beta;databproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/Data.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/Data.php new file mode 100644 index 0000000000000000000000000000000000000000..1ffc46acca50497858fda50d44d2c646629ffa16 GIT binary patch literal 8021 zcmcIp&vP4B9gi$ak-qw2dF?ok(uVC4h?5p&szL^wr0q&tOKN0EmDXuPJzdt)v%Iam zD|S~7F4F@8%y0o_I56Cq;l}V6aN@>^3zrVVg(Lq2-}m0`YGuo^+zB~2+PCk0-uL&f zee&MuXawIBtHdO>?vlQEa4Nb-L>$?cYxS(5crZRZB(~VIjz`9j*acCnw8Umh6_rX| zeFKj=*4XZmZE;{(gCTjSoBHt7HG0m&zV7M|Pu@Nt_#gdUV3+`=eoUN^-XmhQUE0OB z^yPk)9p9JzpP8|scD(lz)gi1=?bJ{TH3(Q$RWOuTD2nqeBQp%0BO zkc+3{p+0m79z4JIaBTKm!!kvBpk?;R)_sv<(!F;_7IOVm^a*NHL7))!>!wR=q;9`L zoStorT+43b*6r;9aRc$um96{UwG_@c6t_5y+uP@ed@8#3n1pW^MVq)|+kDLErT||C zzZhlTdDrmhko*1M+8tEQR|5?Md%J5+zSMx;Y?% z0DuhHu7*3vW<-o^C50R$h}q{WOKc?#%T&*sQTinPJOZg*!yNk8+{a+l6`JDFmQOa8UYF6xL>}3(o4Oj%MAYgE5jGcczSYM z?Ha`$k48Rj?3Lku3aOrD_E6O(Rd<{LSHA|q6Ob_7`7Ov!^CE0OcA^SqLrg{aGTbQ7 z0ugS)%JcyTO(}|2xeCcX85+k1Ixf>>vXq0YWs;DFrKb?b7-Sp0GZukne#QaeY!8Q<;@88e zLDsa~5ZlZzQ^ms7s6vV!LHv-h>)GzzMG$J&N^w}G;*>st^;x_MWk^lL%@ufM@}z$! zAkNWglsYuXu&+%lNcaFU4rD<%{?9Q_@6C4Uc?HfL|E9R7%D;t8Hk3wga!YtwQfXGa z$0+)IqTFh#GVaJN)7?9JjfU1ys>;XhTnw!!+m<_OT@Kdb`A3irt53*6oRRNGo%8fl z&rRh2xCEIgRiPx47KUsrU@+6rAeSvZSxAsmFol+nA^adL$yD*dd@v8?IhDOcr8@z- z1vgr4r6a5LR&$1MKircWC|s0fL+N%kwI(-Fv>PASZ+KH{kWM+*LG;0!p)6 zSL@FeZEDMskb>*}{%HPh5lDxHHd7|TCy-;xz(_VEtmAM{!BI3{c`*ftuPCsGu8)+L zF)~rL1uGXyd#XGN1=>;;($uuMDh^I1BqJ2W3*ygJ2>_E_|`&v&c9qv&}=e7a?lK17mE*PG3Vr1 z9d@+qos6iG>?2<>FnQ|FU_FIlm3YoKE=&5NDWXDx~!a&;ap|6y+KIW}dr?DZYjeQRxA!&k`)XTkrM8$H<@8)F!0A#~|0iNrh!P1no>m z>F9z8nm}1`La^bs(>o%^I_jO4o6Pg+ZwBO*&9(W8ID2iO z%Mfwd2lRLFemRfkI<{?M_D;2))hFmY*mm=7c>|Iz+J^Q8Iy>v%lC>q;Mc;xnIUc#E zNSf|o0dk!kiPBeh;ifY__zZ)VhN;s%LgJ6CVIPfmGl9DjwPoCu|LYRmx{xm67ZJ$o z$omP=Jnu#npL*XJfAp%vP>|VGJRF3?l>b8nZeH+C*qo8cxIDXX)2Ei;7=opFmaTZ? z%U;&b`4o^or-K0`LA2727%{#< zTvD+xth0Pz@I&uIyC0h_BQPd?3hOhs?m%vGbEs-h72lfAQgA1)mVX<8Xvcbq{rM}w z6W)i6XJj5xyiT}3pC~S8PEi4}(==i;6GC0GeT9N|QoU4A8u9ay82E*3^z42nM?L+p;-VIQnMclyb<(q7lkbMmj5$Vewd|%WQz-jSynm)vuB>< zXLCrCd_w5L%E8d;ea=jWCVvO>I<2<17YR7N3<@QV(P8z&l-Pi(MM9I!Oz*h^`BI}* zex_7##v*sm4Hs~P&}`wW=Sp)=(RLLT`?D_Ab8E1I>*ZEg4HlQAe??#;FqblZpTfrB zz!+kADzri9`}Hu*xy+KhKK+u8B0%)n1z;;Xjh3up2Y~|v_S{u)R#>5f!W*#4R(9)+M%`bI z1sjpTJyq%E;sI2xwb$w9u4B~8a41!7R^(14mk5^1d!3HbEWgMl>0pf$peSk%0ua0n zK~r>0$!}M1rq<1+se7=6XZ1!48KsMv2O6x;Dno^DgVa&F)U#A{!;9sDL@`KXnXkjGa%;DZ3M|zd=le4htN*&8aKw5uw6at>1^S(Nu1l3xc}t90 zLmnCI<7_+f!}q=Ka|3IL-Fm^Y2M-6t#4P4o5BV#M|IX}h(~oICcMxZr-?google.analytics.data.v1beta.BatchRunPivotReportsRequest + */ +class BatchRunPivotReportsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * This property must be specified for the batch. The property within + * RunPivotReportRequest may either be unspecified or consistent with this + * property. + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + */ + protected $property = ''; + /** + * Individual requests. Each request has a separate pivot report response. + * Each batch request is allowed up to 5 requests. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; + */ + private $requests; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $property + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * This property must be specified for the batch. The property within + * RunPivotReportRequest may either be unspecified or consistent with this + * property. + * Example: properties/1234 + * @type array<\Google\Analytics\Data\V1beta\RunPivotReportRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Individual requests. Each request has a separate pivot report response. + * Each batch request is allowed up to 5 requests. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); + parent::__construct($data); + } + + /** + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * This property must be specified for the batch. The property within + * RunPivotReportRequest may either be unspecified or consistent with this + * property. + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + * @return string + */ + public function getProperty() + { + return $this->property; + } + + /** + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * This property must be specified for the batch. The property within + * RunPivotReportRequest may either be unspecified or consistent with this + * property. + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + * @param string $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkString($var, True); + $this->property = $var; + + return $this; + } + + /** + * Individual requests. Each request has a separate pivot report response. + * Each batch request is allowed up to 5 requests. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Individual requests. Each request has a separate pivot report response. + * Each batch request is allowed up to 5 requests. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; + * @param array<\Google\Analytics\Data\V1beta\RunPivotReportRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\RunPivotReportRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunPivotReportsResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunPivotReportsResponse.php new file mode 100644 index 00000000000..3b7abe9c8ac --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunPivotReportsResponse.php @@ -0,0 +1,109 @@ +google.analytics.data.v1beta.BatchRunPivotReportsResponse + */ +class BatchRunPivotReportsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Individual responses. Each response has a separate pivot report request. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; + */ + private $pivot_reports; + /** + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish + * between response types in JSON. + * + * Generated from protobuf field string kind = 2; + */ + protected $kind = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Data\V1beta\RunPivotReportResponse>|\Google\Protobuf\Internal\RepeatedField $pivot_reports + * Individual responses. Each response has a separate pivot report request. + * @type string $kind + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish + * between response types in JSON. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); + parent::__construct($data); + } + + /** + * Individual responses. Each response has a separate pivot report request. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPivotReports() + { + return $this->pivot_reports; + } + + /** + * Individual responses. Each response has a separate pivot report request. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; + * @param array<\Google\Analytics\Data\V1beta\RunPivotReportResponse>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPivotReports($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\RunPivotReportResponse::class); + $this->pivot_reports = $arr; + + return $this; + } + + /** + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish + * between response types in JSON. + * + * Generated from protobuf field string kind = 2; + * @return string + */ + public function getKind() + { + return $this->kind; + } + + /** + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish + * between response types in JSON. + * + * Generated from protobuf field string kind = 2; + * @param string $var + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkString($var, True); + $this->kind = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsRequest.php new file mode 100644 index 00000000000..5eebae015a4 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsRequest.php @@ -0,0 +1,133 @@ +google.analytics.data.v1beta.BatchRunReportsRequest + */ +class BatchRunReportsRequest extends \Google\Protobuf\Internal\Message +{ + /** + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * This property must be specified for the batch. The property within + * RunReportRequest may either be unspecified or consistent with this + * property. + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + */ + protected $property = ''; + /** + * Individual requests. Each request has a separate report response. Each + * batch request is allowed up to 5 requests. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; + */ + private $requests; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $property + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * This property must be specified for the batch. The property within + * RunReportRequest may either be unspecified or consistent with this + * property. + * Example: properties/1234 + * @type array<\Google\Analytics\Data\V1beta\RunReportRequest>|\Google\Protobuf\Internal\RepeatedField $requests + * Individual requests. Each request has a separate report response. Each + * batch request is allowed up to 5 requests. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); + parent::__construct($data); + } + + /** + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * This property must be specified for the batch. The property within + * RunReportRequest may either be unspecified or consistent with this + * property. + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + * @return string + */ + public function getProperty() + { + return $this->property; + } + + /** + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * This property must be specified for the batch. The property within + * RunReportRequest may either be unspecified or consistent with this + * property. + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + * @param string $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkString($var, True); + $this->property = $var; + + return $this; + } + + /** + * Individual requests. Each request has a separate report response. Each + * batch request is allowed up to 5 requests. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Individual requests. Each request has a separate report response. Each + * batch request is allowed up to 5 requests. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; + * @param array<\Google\Analytics\Data\V1beta\RunReportRequest>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\RunReportRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsResponse.php new file mode 100644 index 00000000000..f45db6b80c2 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsResponse.php @@ -0,0 +1,109 @@ +google.analytics.data.v1beta.BatchRunReportsResponse + */ +class BatchRunReportsResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Individual responses. Each response has a separate report request. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; + */ + private $reports; + /** + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#batchRunReports". Useful to distinguish between + * response types in JSON. + * + * Generated from protobuf field string kind = 2; + */ + protected $kind = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Data\V1beta\RunReportResponse>|\Google\Protobuf\Internal\RepeatedField $reports + * Individual responses. Each response has a separate report request. + * @type string $kind + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#batchRunReports". Useful to distinguish between + * response types in JSON. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); + parent::__construct($data); + } + + /** + * Individual responses. Each response has a separate report request. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getReports() + { + return $this->reports; + } + + /** + * Individual responses. Each response has a separate report request. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; + * @param array<\Google\Analytics\Data\V1beta\RunReportResponse>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setReports($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\RunReportResponse::class); + $this->reports = $arr; + + return $this; + } + + /** + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#batchRunReports". Useful to distinguish between + * response types in JSON. + * + * Generated from protobuf field string kind = 2; + * @return string + */ + public function getKind() + { + return $this->kind; + } + + /** + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#batchRunReports". Useful to distinguish between + * response types in JSON. + * + * Generated from protobuf field string kind = 2; + * @param string $var + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkString($var, True); + $this->kind = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityRequest.php new file mode 100644 index 00000000000..dffa0b43fe7 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityRequest.php @@ -0,0 +1,300 @@ +google.analytics.data.v1beta.CheckCompatibilityRequest + */ +class CheckCompatibilityRequest extends \Google\Protobuf\Internal\Message +{ + /** + * A Google Analytics GA4 property identifier whose events are tracked. To + * learn more, see [where to find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * `property` should be the same value as in your `runReport` request. + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + */ + protected $property = ''; + /** + * The dimensions in this report. `dimensions` should be the same value as in + * your `runReport` request. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; + */ + private $dimensions; + /** + * The metrics in this report. `metrics` should be the same value as in your + * `runReport` request. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; + */ + private $metrics; + /** + * The filter clause of dimensions. `dimensionFilter` should be the same value + * as in your `runReport` request. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; + */ + protected $dimension_filter = null; + /** + * The filter clause of metrics. `metricFilter` should be the same value as in + * your `runReport` request + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 5; + */ + protected $metric_filter = null; + /** + * Filters the dimensions and metrics in the response to just this + * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”` + * to only return compatible dimensions & metrics. + * + * Generated from protobuf field .google.analytics.data.v1beta.Compatibility compatibility_filter = 6; + */ + protected $compatibility_filter = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $property + * A Google Analytics GA4 property identifier whose events are tracked. To + * learn more, see [where to find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * `property` should be the same value as in your `runReport` request. + * Example: properties/1234 + * @type array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $dimensions + * The dimensions in this report. `dimensions` should be the same value as in + * your `runReport` request. + * @type array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $metrics + * The metrics in this report. `metrics` should be the same value as in your + * `runReport` request. + * @type \Google\Analytics\Data\V1beta\FilterExpression $dimension_filter + * The filter clause of dimensions. `dimensionFilter` should be the same value + * as in your `runReport` request. + * @type \Google\Analytics\Data\V1beta\FilterExpression $metric_filter + * The filter clause of metrics. `metricFilter` should be the same value as in + * your `runReport` request + * @type int $compatibility_filter + * Filters the dimensions and metrics in the response to just this + * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”` + * to only return compatible dimensions & metrics. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); + parent::__construct($data); + } + + /** + * A Google Analytics GA4 property identifier whose events are tracked. To + * learn more, see [where to find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * `property` should be the same value as in your `runReport` request. + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + * @return string + */ + public function getProperty() + { + return $this->property; + } + + /** + * A Google Analytics GA4 property identifier whose events are tracked. To + * learn more, see [where to find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * `property` should be the same value as in your `runReport` request. + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + * @param string $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkString($var, True); + $this->property = $var; + + return $this; + } + + /** + * The dimensions in this report. `dimensions` should be the same value as in + * your `runReport` request. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensions() + { + return $this->dimensions; + } + + /** + * The dimensions in this report. `dimensions` should be the same value as in + * your `runReport` request. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; + * @param array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Dimension::class); + $this->dimensions = $arr; + + return $this; + } + + /** + * The metrics in this report. `metrics` should be the same value as in your + * `runReport` request. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * The metrics in this report. `metrics` should be the same value as in your + * `runReport` request. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; + * @param array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Metric::class); + $this->metrics = $arr; + + return $this; + } + + /** + * The filter clause of dimensions. `dimensionFilter` should be the same value + * as in your `runReport` request. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; + * @return \Google\Analytics\Data\V1beta\FilterExpression|null + */ + public function getDimensionFilter() + { + return $this->dimension_filter; + } + + public function hasDimensionFilter() + { + return isset($this->dimension_filter); + } + + public function clearDimensionFilter() + { + unset($this->dimension_filter); + } + + /** + * The filter clause of dimensions. `dimensionFilter` should be the same value + * as in your `runReport` request. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; + * @param \Google\Analytics\Data\V1beta\FilterExpression $var + * @return $this + */ + public function setDimensionFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); + $this->dimension_filter = $var; + + return $this; + } + + /** + * The filter clause of metrics. `metricFilter` should be the same value as in + * your `runReport` request + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 5; + * @return \Google\Analytics\Data\V1beta\FilterExpression|null + */ + public function getMetricFilter() + { + return $this->metric_filter; + } + + public function hasMetricFilter() + { + return isset($this->metric_filter); + } + + public function clearMetricFilter() + { + unset($this->metric_filter); + } + + /** + * The filter clause of metrics. `metricFilter` should be the same value as in + * your `runReport` request + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 5; + * @param \Google\Analytics\Data\V1beta\FilterExpression $var + * @return $this + */ + public function setMetricFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); + $this->metric_filter = $var; + + return $this; + } + + /** + * Filters the dimensions and metrics in the response to just this + * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”` + * to only return compatible dimensions & metrics. + * + * Generated from protobuf field .google.analytics.data.v1beta.Compatibility compatibility_filter = 6; + * @return int + */ + public function getCompatibilityFilter() + { + return $this->compatibility_filter; + } + + /** + * Filters the dimensions and metrics in the response to just this + * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”` + * to only return compatible dimensions & metrics. + * + * Generated from protobuf field .google.analytics.data.v1beta.Compatibility compatibility_filter = 6; + * @param int $var + * @return $this + */ + public function setCompatibilityFilter($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\Compatibility::class); + $this->compatibility_filter = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityResponse.php new file mode 100644 index 00000000000..09d73dc1bcd --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityResponse.php @@ -0,0 +1,101 @@ +google.analytics.data.v1beta.CheckCompatibilityResponse + */ +class CheckCompatibilityResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The compatibility of each dimension. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; + */ + private $dimension_compatibilities; + /** + * The compatibility of each metric. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; + */ + private $metric_compatibilities; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Data\V1beta\DimensionCompatibility>|\Google\Protobuf\Internal\RepeatedField $dimension_compatibilities + * The compatibility of each dimension. + * @type array<\Google\Analytics\Data\V1beta\MetricCompatibility>|\Google\Protobuf\Internal\RepeatedField $metric_compatibilities + * The compatibility of each metric. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); + parent::__construct($data); + } + + /** + * The compatibility of each dimension. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensionCompatibilities() + { + return $this->dimension_compatibilities; + } + + /** + * The compatibility of each dimension. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; + * @param array<\Google\Analytics\Data\V1beta\DimensionCompatibility>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensionCompatibilities($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionCompatibility::class); + $this->dimension_compatibilities = $arr; + + return $this; + } + + /** + * The compatibility of each metric. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetricCompatibilities() + { + return $this->metric_compatibilities; + } + + /** + * The compatibility of each metric. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; + * @param array<\Google\Analytics\Data\V1beta\MetricCompatibility>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetricCompatibilities($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricCompatibility::class); + $this->metric_compatibilities = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Cohort.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Cohort.php new file mode 100644 index 00000000000..2af25ee8e36 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Cohort.php @@ -0,0 +1,215 @@ +google.analytics.data.v1beta.Cohort + */ +class Cohort extends \Google\Protobuf\Internal\Message +{ + /** + * Assigns a name to this cohort. The dimension `cohort` is valued to this + * name in a report response. If set, cannot begin with `cohort_` or + * `RESERVED_`. If not set, cohorts are named by their zero based index + * `cohort_0`, `cohort_1`, etc. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * Dimension used by the cohort. Required and only supports + * `firstSessionDate`. + * + * Generated from protobuf field string dimension = 2; + */ + protected $dimension = ''; + /** + * The cohort selects users whose first touch date is between start date and + * end date defined in the `dateRange`. This `dateRange` does not specify the + * full date range of event data that is present in a cohort report. In a + * cohort report, this `dateRange` is extended by the granularity and offset + * present in the `cohortsRange`; event data for the extended reporting date + * range is present in a cohort report. + * In a cohort request, this `dateRange` is required and the `dateRanges` in + * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. + * This `dateRange` should generally be aligned with the cohort's granularity. + * If `CohortsRange` uses daily granularity, this `dateRange` can be a single + * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be + * aligned to a week boundary, starting at Sunday and ending Saturday. If + * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to + * a month, starting at the first and ending on the last day of the month. + * + * Generated from protobuf field .google.analytics.data.v1beta.DateRange date_range = 3; + */ + protected $date_range = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Assigns a name to this cohort. The dimension `cohort` is valued to this + * name in a report response. If set, cannot begin with `cohort_` or + * `RESERVED_`. If not set, cohorts are named by their zero based index + * `cohort_0`, `cohort_1`, etc. + * @type string $dimension + * Dimension used by the cohort. Required and only supports + * `firstSessionDate`. + * @type \Google\Analytics\Data\V1beta\DateRange $date_range + * The cohort selects users whose first touch date is between start date and + * end date defined in the `dateRange`. This `dateRange` does not specify the + * full date range of event data that is present in a cohort report. In a + * cohort report, this `dateRange` is extended by the granularity and offset + * present in the `cohortsRange`; event data for the extended reporting date + * range is present in a cohort report. + * In a cohort request, this `dateRange` is required and the `dateRanges` in + * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. + * This `dateRange` should generally be aligned with the cohort's granularity. + * If `CohortsRange` uses daily granularity, this `dateRange` can be a single + * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be + * aligned to a week boundary, starting at Sunday and ending Saturday. If + * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to + * a month, starting at the first and ending on the last day of the month. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * Assigns a name to this cohort. The dimension `cohort` is valued to this + * name in a report response. If set, cannot begin with `cohort_` or + * `RESERVED_`. If not set, cohorts are named by their zero based index + * `cohort_0`, `cohort_1`, etc. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Assigns a name to this cohort. The dimension `cohort` is valued to this + * name in a report response. If set, cannot begin with `cohort_` or + * `RESERVED_`. If not set, cohorts are named by their zero based index + * `cohort_0`, `cohort_1`, etc. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Dimension used by the cohort. Required and only supports + * `firstSessionDate`. + * + * Generated from protobuf field string dimension = 2; + * @return string + */ + public function getDimension() + { + return $this->dimension; + } + + /** + * Dimension used by the cohort. Required and only supports + * `firstSessionDate`. + * + * Generated from protobuf field string dimension = 2; + * @param string $var + * @return $this + */ + public function setDimension($var) + { + GPBUtil::checkString($var, True); + $this->dimension = $var; + + return $this; + } + + /** + * The cohort selects users whose first touch date is between start date and + * end date defined in the `dateRange`. This `dateRange` does not specify the + * full date range of event data that is present in a cohort report. In a + * cohort report, this `dateRange` is extended by the granularity and offset + * present in the `cohortsRange`; event data for the extended reporting date + * range is present in a cohort report. + * In a cohort request, this `dateRange` is required and the `dateRanges` in + * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. + * This `dateRange` should generally be aligned with the cohort's granularity. + * If `CohortsRange` uses daily granularity, this `dateRange` can be a single + * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be + * aligned to a week boundary, starting at Sunday and ending Saturday. If + * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to + * a month, starting at the first and ending on the last day of the month. + * + * Generated from protobuf field .google.analytics.data.v1beta.DateRange date_range = 3; + * @return \Google\Analytics\Data\V1beta\DateRange|null + */ + public function getDateRange() + { + return $this->date_range; + } + + public function hasDateRange() + { + return isset($this->date_range); + } + + public function clearDateRange() + { + unset($this->date_range); + } + + /** + * The cohort selects users whose first touch date is between start date and + * end date defined in the `dateRange`. This `dateRange` does not specify the + * full date range of event data that is present in a cohort report. In a + * cohort report, this `dateRange` is extended by the granularity and offset + * present in the `cohortsRange`; event data for the extended reporting date + * range is present in a cohort report. + * In a cohort request, this `dateRange` is required and the `dateRanges` in + * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. + * This `dateRange` should generally be aligned with the cohort's granularity. + * If `CohortsRange` uses daily granularity, this `dateRange` can be a single + * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be + * aligned to a week boundary, starting at Sunday and ending Saturday. If + * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to + * a month, starting at the first and ending on the last day of the month. + * + * Generated from protobuf field .google.analytics.data.v1beta.DateRange date_range = 3; + * @param \Google\Analytics\Data\V1beta\DateRange $var + * @return $this + */ + public function setDateRange($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\DateRange::class); + $this->date_range = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortReportSettings.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortReportSettings.php new file mode 100644 index 00000000000..18831386174 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortReportSettings.php @@ -0,0 +1,71 @@ +google.analytics.data.v1beta.CohortReportSettings + */ +class CohortReportSettings extends \Google\Protobuf\Internal\Message +{ + /** + * If true, accumulates the result from first touch day to the end day. Not + * supported in `RunReportRequest`. + * + * Generated from protobuf field bool accumulate = 1; + */ + protected $accumulate = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $accumulate + * If true, accumulates the result from first touch day to the end day. Not + * supported in `RunReportRequest`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * If true, accumulates the result from first touch day to the end day. Not + * supported in `RunReportRequest`. + * + * Generated from protobuf field bool accumulate = 1; + * @return bool + */ + public function getAccumulate() + { + return $this->accumulate; + } + + /** + * If true, accumulates the result from first touch day to the end day. Not + * supported in `RunReportRequest`. + * + * Generated from protobuf field bool accumulate = 1; + * @param bool $var + * @return $this + */ + public function setAccumulate($var) + { + GPBUtil::checkBool($var); + $this->accumulate = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortSpec.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortSpec.php new file mode 100644 index 00000000000..3fb245a459c --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortSpec.php @@ -0,0 +1,179 @@ +google.analytics.data.v1beta.CohortSpec + */ +class CohortSpec extends \Google\Protobuf\Internal\Message +{ + /** + * Defines the selection criteria to group users into cohorts. + * Most cohort reports define only a single cohort. If multiple cohorts are + * specified, each cohort can be recognized in the report by their name. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Cohort cohorts = 1; + */ + private $cohorts; + /** + * Cohort reports follow cohorts over an extended reporting date range. This + * range specifies an offset duration to follow the cohorts over. + * + * Generated from protobuf field .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; + */ + protected $cohorts_range = null; + /** + * Optional settings for a cohort report. + * + * Generated from protobuf field .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; + */ + protected $cohort_report_settings = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Data\V1beta\Cohort>|\Google\Protobuf\Internal\RepeatedField $cohorts + * Defines the selection criteria to group users into cohorts. + * Most cohort reports define only a single cohort. If multiple cohorts are + * specified, each cohort can be recognized in the report by their name. + * @type \Google\Analytics\Data\V1beta\CohortsRange $cohorts_range + * Cohort reports follow cohorts over an extended reporting date range. This + * range specifies an offset duration to follow the cohorts over. + * @type \Google\Analytics\Data\V1beta\CohortReportSettings $cohort_report_settings + * Optional settings for a cohort report. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * Defines the selection criteria to group users into cohorts. + * Most cohort reports define only a single cohort. If multiple cohorts are + * specified, each cohort can be recognized in the report by their name. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Cohort cohorts = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getCohorts() + { + return $this->cohorts; + } + + /** + * Defines the selection criteria to group users into cohorts. + * Most cohort reports define only a single cohort. If multiple cohorts are + * specified, each cohort can be recognized in the report by their name. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Cohort cohorts = 1; + * @param array<\Google\Analytics\Data\V1beta\Cohort>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setCohorts($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Cohort::class); + $this->cohorts = $arr; + + return $this; + } + + /** + * Cohort reports follow cohorts over an extended reporting date range. This + * range specifies an offset duration to follow the cohorts over. + * + * Generated from protobuf field .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; + * @return \Google\Analytics\Data\V1beta\CohortsRange|null + */ + public function getCohortsRange() + { + return $this->cohorts_range; + } + + public function hasCohortsRange() + { + return isset($this->cohorts_range); + } + + public function clearCohortsRange() + { + unset($this->cohorts_range); + } + + /** + * Cohort reports follow cohorts over an extended reporting date range. This + * range specifies an offset duration to follow the cohorts over. + * + * Generated from protobuf field .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; + * @param \Google\Analytics\Data\V1beta\CohortsRange $var + * @return $this + */ + public function setCohortsRange($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\CohortsRange::class); + $this->cohorts_range = $var; + + return $this; + } + + /** + * Optional settings for a cohort report. + * + * Generated from protobuf field .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; + * @return \Google\Analytics\Data\V1beta\CohortReportSettings|null + */ + public function getCohortReportSettings() + { + return $this->cohort_report_settings; + } + + public function hasCohortReportSettings() + { + return isset($this->cohort_report_settings); + } + + public function clearCohortReportSettings() + { + unset($this->cohort_report_settings); + } + + /** + * Optional settings for a cohort report. + * + * Generated from protobuf field .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; + * @param \Google\Analytics\Data\V1beta\CohortReportSettings $var + * @return $this + */ + public function setCohortReportSettings($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\CohortReportSettings::class); + $this->cohort_report_settings = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange.php new file mode 100644 index 00000000000..2877e4dbc3a --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange.php @@ -0,0 +1,208 @@ +google.analytics.data.v1beta.CohortsRange + */ +class CohortsRange extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The granularity used to interpret the `startOffset` and + * `endOffset` for the extended reporting date range for a cohort report. + * + * Generated from protobuf field .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1; + */ + protected $granularity = 0; + /** + * `startOffset` specifies the start date of the extended reporting date range + * for a cohort report. `startOffset` is commonly set to 0 so that reports + * contain data from the acquisition of the cohort forward. + * If `granularity` is `DAILY`, the `startDate` of the extended reporting date + * range is `startDate` of the cohort plus `startOffset` days. + * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting + * date range is `startDate` of the cohort plus `startOffset * 7` days. + * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting + * date range is `startDate` of the cohort plus `startOffset * 30` days. + * + * Generated from protobuf field int32 start_offset = 2; + */ + protected $start_offset = 0; + /** + * Required. `endOffset` specifies the end date of the extended reporting date + * range for a cohort report. `endOffset` can be any positive integer but is + * commonly set to 5 to 10 so that reports contain data on the cohort for the + * next several granularity time periods. + * If `granularity` is `DAILY`, the `endDate` of the extended reporting date + * range is `endDate` of the cohort plus `endOffset` days. + * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date + * range is `endDate` of the cohort plus `endOffset * 7` days. + * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date + * range is `endDate` of the cohort plus `endOffset * 30` days. + * + * Generated from protobuf field int32 end_offset = 3; + */ + protected $end_offset = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $granularity + * Required. The granularity used to interpret the `startOffset` and + * `endOffset` for the extended reporting date range for a cohort report. + * @type int $start_offset + * `startOffset` specifies the start date of the extended reporting date range + * for a cohort report. `startOffset` is commonly set to 0 so that reports + * contain data from the acquisition of the cohort forward. + * If `granularity` is `DAILY`, the `startDate` of the extended reporting date + * range is `startDate` of the cohort plus `startOffset` days. + * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting + * date range is `startDate` of the cohort plus `startOffset * 7` days. + * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting + * date range is `startDate` of the cohort plus `startOffset * 30` days. + * @type int $end_offset + * Required. `endOffset` specifies the end date of the extended reporting date + * range for a cohort report. `endOffset` can be any positive integer but is + * commonly set to 5 to 10 so that reports contain data on the cohort for the + * next several granularity time periods. + * If `granularity` is `DAILY`, the `endDate` of the extended reporting date + * range is `endDate` of the cohort plus `endOffset` days. + * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date + * range is `endDate` of the cohort plus `endOffset * 7` days. + * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date + * range is `endDate` of the cohort plus `endOffset * 30` days. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * Required. The granularity used to interpret the `startOffset` and + * `endOffset` for the extended reporting date range for a cohort report. + * + * Generated from protobuf field .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1; + * @return int + */ + public function getGranularity() + { + return $this->granularity; + } + + /** + * Required. The granularity used to interpret the `startOffset` and + * `endOffset` for the extended reporting date range for a cohort report. + * + * Generated from protobuf field .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1; + * @param int $var + * @return $this + */ + public function setGranularity($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\CohortsRange\Granularity::class); + $this->granularity = $var; + + return $this; + } + + /** + * `startOffset` specifies the start date of the extended reporting date range + * for a cohort report. `startOffset` is commonly set to 0 so that reports + * contain data from the acquisition of the cohort forward. + * If `granularity` is `DAILY`, the `startDate` of the extended reporting date + * range is `startDate` of the cohort plus `startOffset` days. + * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting + * date range is `startDate` of the cohort plus `startOffset * 7` days. + * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting + * date range is `startDate` of the cohort plus `startOffset * 30` days. + * + * Generated from protobuf field int32 start_offset = 2; + * @return int + */ + public function getStartOffset() + { + return $this->start_offset; + } + + /** + * `startOffset` specifies the start date of the extended reporting date range + * for a cohort report. `startOffset` is commonly set to 0 so that reports + * contain data from the acquisition of the cohort forward. + * If `granularity` is `DAILY`, the `startDate` of the extended reporting date + * range is `startDate` of the cohort plus `startOffset` days. + * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting + * date range is `startDate` of the cohort plus `startOffset * 7` days. + * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting + * date range is `startDate` of the cohort plus `startOffset * 30` days. + * + * Generated from protobuf field int32 start_offset = 2; + * @param int $var + * @return $this + */ + public function setStartOffset($var) + { + GPBUtil::checkInt32($var); + $this->start_offset = $var; + + return $this; + } + + /** + * Required. `endOffset` specifies the end date of the extended reporting date + * range for a cohort report. `endOffset` can be any positive integer but is + * commonly set to 5 to 10 so that reports contain data on the cohort for the + * next several granularity time periods. + * If `granularity` is `DAILY`, the `endDate` of the extended reporting date + * range is `endDate` of the cohort plus `endOffset` days. + * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date + * range is `endDate` of the cohort plus `endOffset * 7` days. + * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date + * range is `endDate` of the cohort plus `endOffset * 30` days. + * + * Generated from protobuf field int32 end_offset = 3; + * @return int + */ + public function getEndOffset() + { + return $this->end_offset; + } + + /** + * Required. `endOffset` specifies the end date of the extended reporting date + * range for a cohort report. `endOffset` can be any positive integer but is + * commonly set to 5 to 10 so that reports contain data on the cohort for the + * next several granularity time periods. + * If `granularity` is `DAILY`, the `endDate` of the extended reporting date + * range is `endDate` of the cohort plus `endOffset` days. + * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date + * range is `endDate` of the cohort plus `endOffset * 7` days. + * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date + * range is `endDate` of the cohort plus `endOffset * 30` days. + * + * Generated from protobuf field int32 end_offset = 3; + * @param int $var + * @return $this + */ + public function setEndOffset($var) + { + GPBUtil::checkInt32($var); + $this->end_offset = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange/Granularity.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange/Granularity.php new file mode 100644 index 00000000000..541e282e316 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange/Granularity.php @@ -0,0 +1,76 @@ +google.analytics.data.v1beta.CohortsRange.Granularity + */ +class Granularity +{ + /** + * Should never be specified. + * + * Generated from protobuf enum GRANULARITY_UNSPECIFIED = 0; + */ + const GRANULARITY_UNSPECIFIED = 0; + /** + * Daily granularity. Commonly used if the cohort's `dateRange` is a single + * day and the request contains `cohortNthDay`. + * + * Generated from protobuf enum DAILY = 1; + */ + const DAILY = 1; + /** + * Weekly granularity. Commonly used if the cohort's `dateRange` is a week + * in duration (starting on Sunday and ending on Saturday) and the request + * contains `cohortNthWeek`. + * + * Generated from protobuf enum WEEKLY = 2; + */ + const WEEKLY = 2; + /** + * Monthly granularity. Commonly used if the cohort's `dateRange` is a month + * in duration and the request contains `cohortNthMonth`. + * + * Generated from protobuf enum MONTHLY = 3; + */ + const MONTHLY = 3; + + private static $valueToName = [ + self::GRANULARITY_UNSPECIFIED => 'GRANULARITY_UNSPECIFIED', + self::DAILY => 'DAILY', + self::WEEKLY => 'WEEKLY', + self::MONTHLY => 'MONTHLY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Granularity::class, \Google\Analytics\Data\V1beta\CohortsRange_Granularity::class); + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Compatibility.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Compatibility.php new file mode 100644 index 00000000000..6a97b7928ec --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Compatibility.php @@ -0,0 +1,63 @@ +google.analytics.data.v1beta.Compatibility + */ +class Compatibility +{ + /** + * Unspecified compatibility. + * + * Generated from protobuf enum COMPATIBILITY_UNSPECIFIED = 0; + */ + const COMPATIBILITY_UNSPECIFIED = 0; + /** + * The dimension or metric is compatible. This dimension or metric can be + * successfully added to a report. + * + * Generated from protobuf enum COMPATIBLE = 1; + */ + const COMPATIBLE = 1; + /** + * The dimension or metric is incompatible. This dimension or metric cannot be + * successfully added to a report. + * + * Generated from protobuf enum INCOMPATIBLE = 2; + */ + const INCOMPATIBLE = 2; + + private static $valueToName = [ + self::COMPATIBILITY_UNSPECIFIED => 'COMPATIBILITY_UNSPECIFIED', + self::COMPATIBLE => 'COMPATIBLE', + self::INCOMPATIBLE => 'INCOMPATIBLE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DateRange.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DateRange.php new file mode 100644 index 00000000000..9c0ef0525f6 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DateRange.php @@ -0,0 +1,172 @@ +google.analytics.data.v1beta.DateRange + */ +class DateRange extends \Google\Protobuf\Internal\Message +{ + /** + * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the property's + * reporting time zone. + * + * Generated from protobuf field string start_date = 1; + */ + protected $start_date = ''; + /** + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the + * property's reporting time zone. + * + * Generated from protobuf field string end_date = 2; + */ + protected $end_date = ''; + /** + * Assigns a name to this date range. The dimension `dateRange` is valued to + * this name in a report response. If set, cannot begin with `date_range_` or + * `RESERVED_`. If not set, date ranges are named by their zero based index in + * the request: `date_range_0`, `date_range_1`, etc. + * + * Generated from protobuf field string name = 3; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $start_date + * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the property's + * reporting time zone. + * @type string $end_date + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the + * property's reporting time zone. + * @type string $name + * Assigns a name to this date range. The dimension `dateRange` is valued to + * this name in a report response. If set, cannot begin with `date_range_` or + * `RESERVED_`. If not set, date ranges are named by their zero based index in + * the request: `date_range_0`, `date_range_1`, etc. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the property's + * reporting time zone. + * + * Generated from protobuf field string start_date = 1; + * @return string + */ + public function getStartDate() + { + return $this->start_date; + } + + /** + * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the property's + * reporting time zone. + * + * Generated from protobuf field string start_date = 1; + * @param string $var + * @return $this + */ + public function setStartDate($var) + { + GPBUtil::checkString($var, True); + $this->start_date = $var; + + return $this; + } + + /** + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the + * property's reporting time zone. + * + * Generated from protobuf field string end_date = 2; + * @return string + */ + public function getEndDate() + { + return $this->end_date; + } + + /** + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the + * property's reporting time zone. + * + * Generated from protobuf field string end_date = 2; + * @param string $var + * @return $this + */ + public function setEndDate($var) + { + GPBUtil::checkString($var, True); + $this->end_date = $var; + + return $this; + } + + /** + * Assigns a name to this date range. The dimension `dateRange` is valued to + * this name in a report response. If set, cannot begin with `date_range_` or + * `RESERVED_`. If not set, date ranges are named by their zero based index in + * the request: `date_range_0`, `date_range_1`, etc. + * + * Generated from protobuf field string name = 3; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Assigns a name to this date range. The dimension `dateRange` is valued to + * this name in a report response. If set, cannot begin with `date_range_` or + * `RESERVED_`. If not set, date ranges are named by their zero based index in + * the request: `date_range_0`, `date_range_1`, etc. + * + * Generated from protobuf field string name = 3; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Dimension.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Dimension.php new file mode 100644 index 00000000000..0b4f745c5dd --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Dimension.php @@ -0,0 +1,154 @@ +google.analytics.data.v1beta.Dimension + */ +class Dimension extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + * for the list of dimension names. + * If `dimensionExpression` is specified, `name` can be any string that you + * would like within the allowed character set. For example if a + * `dimensionExpression` concatenates `country` and `city`, you could call + * that dimension `countryAndCity`. Dimension names that you choose must match + * the regular expression `^[a-zA-Z0-9_]$`. + * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, + * `dimensionExpression`, and `pivots`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * One dimension can be the result of an expression of multiple dimensions. + * For example, dimension "country, city": concatenate(country, ", ", city). + * + * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; + */ + protected $dimension_expression = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + * for the list of dimension names. + * If `dimensionExpression` is specified, `name` can be any string that you + * would like within the allowed character set. For example if a + * `dimensionExpression` concatenates `country` and `city`, you could call + * that dimension `countryAndCity`. Dimension names that you choose must match + * the regular expression `^[a-zA-Z0-9_]$`. + * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, + * `dimensionExpression`, and `pivots`. + * @type \Google\Analytics\Data\V1beta\DimensionExpression $dimension_expression + * One dimension can be the result of an expression of multiple dimensions. + * For example, dimension "country, city": concatenate(country, ", ", city). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * The name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + * for the list of dimension names. + * If `dimensionExpression` is specified, `name` can be any string that you + * would like within the allowed character set. For example if a + * `dimensionExpression` concatenates `country` and `city`, you could call + * that dimension `countryAndCity`. Dimension names that you choose must match + * the regular expression `^[a-zA-Z0-9_]$`. + * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, + * `dimensionExpression`, and `pivots`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + * for the list of dimension names. + * If `dimensionExpression` is specified, `name` can be any string that you + * would like within the allowed character set. For example if a + * `dimensionExpression` concatenates `country` and `city`, you could call + * that dimension `countryAndCity`. Dimension names that you choose must match + * the regular expression `^[a-zA-Z0-9_]$`. + * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, + * `dimensionExpression`, and `pivots`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * One dimension can be the result of an expression of multiple dimensions. + * For example, dimension "country, city": concatenate(country, ", ", city). + * + * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; + * @return \Google\Analytics\Data\V1beta\DimensionExpression|null + */ + public function getDimensionExpression() + { + return $this->dimension_expression; + } + + public function hasDimensionExpression() + { + return isset($this->dimension_expression); + } + + public function clearDimensionExpression() + { + unset($this->dimension_expression); + } + + /** + * One dimension can be the result of an expression of multiple dimensions. + * For example, dimension "country, city": concatenate(country, ", ", city). + * + * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; + * @param \Google\Analytics\Data\V1beta\DimensionExpression $var + * @return $this + */ + public function setDimensionExpression($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\DimensionExpression::class); + $this->dimension_expression = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionCompatibility.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionCompatibility.php new file mode 100644 index 00000000000..ff6d5ae0fc6 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionCompatibility.php @@ -0,0 +1,133 @@ +google.analytics.data.v1beta.DimensionCompatibility + */ +class DimensionCompatibility extends \Google\Protobuf\Internal\Message +{ + /** + * The dimension metadata contains the API name for this compatibility + * information. The dimension metadata also contains other helpful information + * like the UI name and description. + * + * Generated from protobuf field optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; + */ + protected $dimension_metadata = null; + /** + * The compatibility of this dimension. If the compatibility is COMPATIBLE, + * this dimension can be successfully added to the report. + * + * Generated from protobuf field optional .google.analytics.data.v1beta.Compatibility compatibility = 2; + */ + protected $compatibility = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Data\V1beta\DimensionMetadata $dimension_metadata + * The dimension metadata contains the API name for this compatibility + * information. The dimension metadata also contains other helpful information + * like the UI name and description. + * @type int $compatibility + * The compatibility of this dimension. If the compatibility is COMPATIBLE, + * this dimension can be successfully added to the report. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * The dimension metadata contains the API name for this compatibility + * information. The dimension metadata also contains other helpful information + * like the UI name and description. + * + * Generated from protobuf field optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; + * @return \Google\Analytics\Data\V1beta\DimensionMetadata|null + */ + public function getDimensionMetadata() + { + return $this->dimension_metadata; + } + + public function hasDimensionMetadata() + { + return isset($this->dimension_metadata); + } + + public function clearDimensionMetadata() + { + unset($this->dimension_metadata); + } + + /** + * The dimension metadata contains the API name for this compatibility + * information. The dimension metadata also contains other helpful information + * like the UI name and description. + * + * Generated from protobuf field optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; + * @param \Google\Analytics\Data\V1beta\DimensionMetadata $var + * @return $this + */ + public function setDimensionMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\DimensionMetadata::class); + $this->dimension_metadata = $var; + + return $this; + } + + /** + * The compatibility of this dimension. If the compatibility is COMPATIBLE, + * this dimension can be successfully added to the report. + * + * Generated from protobuf field optional .google.analytics.data.v1beta.Compatibility compatibility = 2; + * @return int + */ + public function getCompatibility() + { + return isset($this->compatibility) ? $this->compatibility : 0; + } + + public function hasCompatibility() + { + return isset($this->compatibility); + } + + public function clearCompatibility() + { + unset($this->compatibility); + } + + /** + * The compatibility of this dimension. If the compatibility is COMPATIBLE, + * this dimension can be successfully added to the report. + * + * Generated from protobuf field optional .google.analytics.data.v1beta.Compatibility compatibility = 2; + * @param int $var + * @return $this + */ + public function setCompatibility($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\Compatibility::class); + $this->compatibility = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression.php new file mode 100644 index 00000000000..c7819e050c8 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression.php @@ -0,0 +1,147 @@ +google.analytics.data.v1beta.DimensionExpression + */ +class DimensionExpression extends \Google\Protobuf\Internal\Message +{ + protected $one_expression; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression $lower_case + * Used to convert a dimension value to lower case. + * @type \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression $upper_case + * Used to convert a dimension value to upper case. + * @type \Google\Analytics\Data\V1beta\DimensionExpression\ConcatenateExpression $concatenate + * Used to combine dimension values to a single dimension. + * For example, dimension "country, city": concatenate(country, ", ", city). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * Used to convert a dimension value to lower case. + * + * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; + * @return \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression|null + */ + public function getLowerCase() + { + return $this->readOneof(4); + } + + public function hasLowerCase() + { + return $this->hasOneof(4); + } + + /** + * Used to convert a dimension value to lower case. + * + * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; + * @param \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression $var + * @return $this + */ + public function setLowerCase($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Used to convert a dimension value to upper case. + * + * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; + * @return \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression|null + */ + public function getUpperCase() + { + return $this->readOneof(5); + } + + public function hasUpperCase() + { + return $this->hasOneof(5); + } + + /** + * Used to convert a dimension value to upper case. + * + * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; + * @param \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression $var + * @return $this + */ + public function setUpperCase($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Used to combine dimension values to a single dimension. + * For example, dimension "country, city": concatenate(country, ", ", city). + * + * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; + * @return \Google\Analytics\Data\V1beta\DimensionExpression\ConcatenateExpression|null + */ + public function getConcatenate() + { + return $this->readOneof(6); + } + + public function hasConcatenate() + { + return $this->hasOneof(6); + } + + /** + * Used to combine dimension values to a single dimension. + * For example, dimension "country, city": concatenate(country, ", ", city). + * + * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; + * @param \Google\Analytics\Data\V1beta\DimensionExpression\ConcatenateExpression $var + * @return $this + */ + public function setConcatenate($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\DimensionExpression\ConcatenateExpression::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * @return string + */ + public function getOneExpression() + { + return $this->whichOneof("one_expression"); + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/CaseExpression.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/CaseExpression.php new file mode 100644 index 00000000000..af1e679e55d --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/CaseExpression.php @@ -0,0 +1,74 @@ +google.analytics.data.v1beta.DimensionExpression.CaseExpression + */ +class CaseExpression extends \Google\Protobuf\Internal\Message +{ + /** + * Name of a dimension. The name must refer back to a name in dimensions + * field of the request. + * + * Generated from protobuf field string dimension_name = 1; + */ + protected $dimension_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dimension_name + * Name of a dimension. The name must refer back to a name in dimensions + * field of the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * Name of a dimension. The name must refer back to a name in dimensions + * field of the request. + * + * Generated from protobuf field string dimension_name = 1; + * @return string + */ + public function getDimensionName() + { + return $this->dimension_name; + } + + /** + * Name of a dimension. The name must refer back to a name in dimensions + * field of the request. + * + * Generated from protobuf field string dimension_name = 1; + * @param string $var + * @return $this + */ + public function setDimensionName($var) + { + GPBUtil::checkString($var, True); + $this->dimension_name = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(CaseExpression::class, \Google\Analytics\Data\V1beta\DimensionExpression_CaseExpression::class); + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/ConcatenateExpression.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/ConcatenateExpression.php new file mode 100644 index 00000000000..9d7a101bddd --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/ConcatenateExpression.php @@ -0,0 +1,128 @@ +google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression + */ +class ConcatenateExpression extends \Google\Protobuf\Internal\Message +{ + /** + * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + * + * Generated from protobuf field repeated string dimension_names = 1; + */ + private $dimension_names; + /** + * The delimiter placed between dimension names. + * Delimiters are often single characters such as "|" or "," but can be + * longer strings. If a dimension value contains the delimiter, both will be + * present in response with no distinction. For example if dimension 1 value + * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the + * response will contain "US,FR,JP". + * + * Generated from protobuf field string delimiter = 2; + */ + protected $delimiter = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $dimension_names + * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + * @type string $delimiter + * The delimiter placed between dimension names. + * Delimiters are often single characters such as "|" or "," but can be + * longer strings. If a dimension value contains the delimiter, both will be + * present in response with no distinction. For example if dimension 1 value + * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the + * response will contain "US,FR,JP". + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + * + * Generated from protobuf field repeated string dimension_names = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensionNames() + { + return $this->dimension_names; + } + + /** + * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + * + * Generated from protobuf field repeated string dimension_names = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensionNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->dimension_names = $arr; + + return $this; + } + + /** + * The delimiter placed between dimension names. + * Delimiters are often single characters such as "|" or "," but can be + * longer strings. If a dimension value contains the delimiter, both will be + * present in response with no distinction. For example if dimension 1 value + * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the + * response will contain "US,FR,JP". + * + * Generated from protobuf field string delimiter = 2; + * @return string + */ + public function getDelimiter() + { + return $this->delimiter; + } + + /** + * The delimiter placed between dimension names. + * Delimiters are often single characters such as "|" or "," but can be + * longer strings. If a dimension value contains the delimiter, both will be + * present in response with no distinction. For example if dimension 1 value + * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the + * response will contain "US,FR,JP". + * + * Generated from protobuf field string delimiter = 2; + * @param string $var + * @return $this + */ + public function setDelimiter($var) + { + GPBUtil::checkString($var, True); + $this->delimiter = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ConcatenateExpression::class, \Google\Analytics\Data\V1beta\DimensionExpression_ConcatenateExpression::class); + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionHeader.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionHeader.php new file mode 100644 index 00000000000..fe4f90d2a87 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionHeader.php @@ -0,0 +1,70 @@ +google.analytics.data.v1beta.DimensionHeader + */ +class DimensionHeader extends \Google\Protobuf\Internal\Message +{ + /** + * The dimension's name. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The dimension's name. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * The dimension's name. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The dimension's name. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionMetadata.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionMetadata.php new file mode 100644 index 00000000000..bb0ccba25fd --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionMetadata.php @@ -0,0 +1,261 @@ +google.analytics.data.v1beta.DimensionMetadata + */ +class DimensionMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For + * example, `eventName`. + * + * Generated from protobuf field string api_name = 1; + */ + protected $api_name = ''; + /** + * This dimension's name within the Google Analytics user interface. For + * example, `Event name`. + * + * Generated from protobuf field string ui_name = 2; + */ + protected $ui_name = ''; + /** + * Description of how this dimension is used and calculated. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + * + * Generated from protobuf field repeated string deprecated_api_names = 4; + */ + private $deprecated_api_names; + /** + * True if the dimension is a custom dimension for this property. + * + * Generated from protobuf field bool custom_definition = 5; + */ + protected $custom_definition = false; + /** + * The display name of the category that this dimension belongs to. Similar + * dimensions and metrics are categorized together. + * + * Generated from protobuf field string category = 7; + */ + protected $category = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $api_name + * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For + * example, `eventName`. + * @type string $ui_name + * This dimension's name within the Google Analytics user interface. For + * example, `Event name`. + * @type string $description + * Description of how this dimension is used and calculated. + * @type array|\Google\Protobuf\Internal\RepeatedField $deprecated_api_names + * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + * @type bool $custom_definition + * True if the dimension is a custom dimension for this property. + * @type string $category + * The display name of the category that this dimension belongs to. Similar + * dimensions and metrics are categorized together. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For + * example, `eventName`. + * + * Generated from protobuf field string api_name = 1; + * @return string + */ + public function getApiName() + { + return $this->api_name; + } + + /** + * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For + * example, `eventName`. + * + * Generated from protobuf field string api_name = 1; + * @param string $var + * @return $this + */ + public function setApiName($var) + { + GPBUtil::checkString($var, True); + $this->api_name = $var; + + return $this; + } + + /** + * This dimension's name within the Google Analytics user interface. For + * example, `Event name`. + * + * Generated from protobuf field string ui_name = 2; + * @return string + */ + public function getUiName() + { + return $this->ui_name; + } + + /** + * This dimension's name within the Google Analytics user interface. For + * example, `Event name`. + * + * Generated from protobuf field string ui_name = 2; + * @param string $var + * @return $this + */ + public function setUiName($var) + { + GPBUtil::checkString($var, True); + $this->ui_name = $var; + + return $this; + } + + /** + * Description of how this dimension is used and calculated. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of how this dimension is used and calculated. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + * + * Generated from protobuf field repeated string deprecated_api_names = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDeprecatedApiNames() + { + return $this->deprecated_api_names; + } + + /** + * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + * + * Generated from protobuf field repeated string deprecated_api_names = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDeprecatedApiNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->deprecated_api_names = $arr; + + return $this; + } + + /** + * True if the dimension is a custom dimension for this property. + * + * Generated from protobuf field bool custom_definition = 5; + * @return bool + */ + public function getCustomDefinition() + { + return $this->custom_definition; + } + + /** + * True if the dimension is a custom dimension for this property. + * + * Generated from protobuf field bool custom_definition = 5; + * @param bool $var + * @return $this + */ + public function setCustomDefinition($var) + { + GPBUtil::checkBool($var); + $this->custom_definition = $var; + + return $this; + } + + /** + * The display name of the category that this dimension belongs to. Similar + * dimensions and metrics are categorized together. + * + * Generated from protobuf field string category = 7; + * @return string + */ + public function getCategory() + { + return $this->category; + } + + /** + * The display name of the category that this dimension belongs to. Similar + * dimensions and metrics are categorized together. + * + * Generated from protobuf field string category = 7; + * @param string $var + * @return $this + */ + public function setCategory($var) + { + GPBUtil::checkString($var, True); + $this->category = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionValue.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionValue.php new file mode 100644 index 00000000000..7e0d684c982 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionValue.php @@ -0,0 +1,75 @@ +google.analytics.data.v1beta.DimensionValue + */ +class DimensionValue extends \Google\Protobuf\Internal\Message +{ + protected $one_value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $value + * Value as a string if the dimension type is a string. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * Value as a string if the dimension type is a string. + * + * Generated from protobuf field string value = 1; + * @return string + */ + public function getValue() + { + return $this->readOneof(1); + } + + public function hasValue() + { + return $this->hasOneof(1); + } + + /** + * Value as a string if the dimension type is a string. + * + * Generated from protobuf field string value = 1; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * @return string + */ + public function getOneValue() + { + return $this->whichOneof("one_value"); + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter.php new file mode 100644 index 00000000000..01c955105c4 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter.php @@ -0,0 +1,224 @@ +google.analytics.data.v1beta.Filter + */ +class Filter extends \Google\Protobuf\Internal\Message +{ + /** + * The dimension name or metric name. + * In most methods, dimensions & metrics can be used for the first time in + * this field. However in a RunPivotReportRequest, this field must be + * additionally specified by name in the RunPivotReportRequest's dimensions or + * metrics. + * + * Generated from protobuf field string field_name = 1; + */ + protected $field_name = ''; + protected $one_filter; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $field_name + * The dimension name or metric name. + * In most methods, dimensions & metrics can be used for the first time in + * this field. However in a RunPivotReportRequest, this field must be + * additionally specified by name in the RunPivotReportRequest's dimensions or + * metrics. + * @type \Google\Analytics\Data\V1beta\Filter\StringFilter $string_filter + * Strings related filter. + * @type \Google\Analytics\Data\V1beta\Filter\InListFilter $in_list_filter + * A filter for in list values. + * @type \Google\Analytics\Data\V1beta\Filter\NumericFilter $numeric_filter + * A filter for numeric or date values. + * @type \Google\Analytics\Data\V1beta\Filter\BetweenFilter $between_filter + * A filter for two values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * The dimension name or metric name. + * In most methods, dimensions & metrics can be used for the first time in + * this field. However in a RunPivotReportRequest, this field must be + * additionally specified by name in the RunPivotReportRequest's dimensions or + * metrics. + * + * Generated from protobuf field string field_name = 1; + * @return string + */ + public function getFieldName() + { + return $this->field_name; + } + + /** + * The dimension name or metric name. + * In most methods, dimensions & metrics can be used for the first time in + * this field. However in a RunPivotReportRequest, this field must be + * additionally specified by name in the RunPivotReportRequest's dimensions or + * metrics. + * + * Generated from protobuf field string field_name = 1; + * @param string $var + * @return $this + */ + public function setFieldName($var) + { + GPBUtil::checkString($var, True); + $this->field_name = $var; + + return $this; + } + + /** + * Strings related filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; + * @return \Google\Analytics\Data\V1beta\Filter\StringFilter|null + */ + public function getStringFilter() + { + return $this->readOneof(3); + } + + public function hasStringFilter() + { + return $this->hasOneof(3); + } + + /** + * Strings related filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; + * @param \Google\Analytics\Data\V1beta\Filter\StringFilter $var + * @return $this + */ + public function setStringFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\Filter\StringFilter::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * A filter for in list values. + * + * Generated from protobuf field .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; + * @return \Google\Analytics\Data\V1beta\Filter\InListFilter|null + */ + public function getInListFilter() + { + return $this->readOneof(4); + } + + public function hasInListFilter() + { + return $this->hasOneof(4); + } + + /** + * A filter for in list values. + * + * Generated from protobuf field .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; + * @param \Google\Analytics\Data\V1beta\Filter\InListFilter $var + * @return $this + */ + public function setInListFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\Filter\InListFilter::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * A filter for numeric or date values. + * + * Generated from protobuf field .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; + * @return \Google\Analytics\Data\V1beta\Filter\NumericFilter|null + */ + public function getNumericFilter() + { + return $this->readOneof(5); + } + + public function hasNumericFilter() + { + return $this->hasOneof(5); + } + + /** + * A filter for numeric or date values. + * + * Generated from protobuf field .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; + * @param \Google\Analytics\Data\V1beta\Filter\NumericFilter $var + * @return $this + */ + public function setNumericFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\Filter\NumericFilter::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * A filter for two values. + * + * Generated from protobuf field .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; + * @return \Google\Analytics\Data\V1beta\Filter\BetweenFilter|null + */ + public function getBetweenFilter() + { + return $this->readOneof(6); + } + + public function hasBetweenFilter() + { + return $this->hasOneof(6); + } + + /** + * A filter for two values. + * + * Generated from protobuf field .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; + * @param \Google\Analytics\Data\V1beta\Filter\BetweenFilter $var + * @return $this + */ + public function setBetweenFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\Filter\BetweenFilter::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * @return string + */ + public function getOneFilter() + { + return $this->whichOneof("one_filter"); + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/BetweenFilter.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/BetweenFilter.php new file mode 100644 index 00000000000..39b91d0e3f6 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/BetweenFilter.php @@ -0,0 +1,124 @@ +google.analytics.data.v1beta.Filter.BetweenFilter + */ +class BetweenFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Begins with this number. + * + * Generated from protobuf field .google.analytics.data.v1beta.NumericValue from_value = 1; + */ + protected $from_value = null; + /** + * Ends with this number. + * + * Generated from protobuf field .google.analytics.data.v1beta.NumericValue to_value = 2; + */ + protected $to_value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Data\V1beta\NumericValue $from_value + * Begins with this number. + * @type \Google\Analytics\Data\V1beta\NumericValue $to_value + * Ends with this number. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * Begins with this number. + * + * Generated from protobuf field .google.analytics.data.v1beta.NumericValue from_value = 1; + * @return \Google\Analytics\Data\V1beta\NumericValue|null + */ + public function getFromValue() + { + return $this->from_value; + } + + public function hasFromValue() + { + return isset($this->from_value); + } + + public function clearFromValue() + { + unset($this->from_value); + } + + /** + * Begins with this number. + * + * Generated from protobuf field .google.analytics.data.v1beta.NumericValue from_value = 1; + * @param \Google\Analytics\Data\V1beta\NumericValue $var + * @return $this + */ + public function setFromValue($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\NumericValue::class); + $this->from_value = $var; + + return $this; + } + + /** + * Ends with this number. + * + * Generated from protobuf field .google.analytics.data.v1beta.NumericValue to_value = 2; + * @return \Google\Analytics\Data\V1beta\NumericValue|null + */ + public function getToValue() + { + return $this->to_value; + } + + public function hasToValue() + { + return isset($this->to_value); + } + + public function clearToValue() + { + unset($this->to_value); + } + + /** + * Ends with this number. + * + * Generated from protobuf field .google.analytics.data.v1beta.NumericValue to_value = 2; + * @param \Google\Analytics\Data\V1beta\NumericValue $var + * @return $this + */ + public function setToValue($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\NumericValue::class); + $this->to_value = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(BetweenFilter::class, \Google\Analytics\Data\V1beta\Filter_BetweenFilter::class); + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/InListFilter.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/InListFilter.php new file mode 100644 index 00000000000..cad215417f8 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/InListFilter.php @@ -0,0 +1,108 @@ +google.analytics.data.v1beta.Filter.InListFilter + */ +class InListFilter extends \Google\Protobuf\Internal\Message +{ + /** + * The list of string values. + * Must be non-empty. + * + * Generated from protobuf field repeated string values = 1; + */ + private $values; + /** + * If true, the string value is case sensitive. + * + * Generated from protobuf field bool case_sensitive = 2; + */ + protected $case_sensitive = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $values + * The list of string values. + * Must be non-empty. + * @type bool $case_sensitive + * If true, the string value is case sensitive. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * The list of string values. + * Must be non-empty. + * + * Generated from protobuf field repeated string values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getValues() + { + return $this->values; + } + + /** + * The list of string values. + * Must be non-empty. + * + * Generated from protobuf field repeated string values = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->values = $arr; + + return $this; + } + + /** + * If true, the string value is case sensitive. + * + * Generated from protobuf field bool case_sensitive = 2; + * @return bool + */ + public function getCaseSensitive() + { + return $this->case_sensitive; + } + + /** + * If true, the string value is case sensitive. + * + * Generated from protobuf field bool case_sensitive = 2; + * @param bool $var + * @return $this + */ + public function setCaseSensitive($var) + { + GPBUtil::checkBool($var); + $this->case_sensitive = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(InListFilter::class, \Google\Analytics\Data\V1beta\Filter_InListFilter::class); + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter.php new file mode 100644 index 00000000000..cd95e5399a2 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter.php @@ -0,0 +1,114 @@ +google.analytics.data.v1beta.Filter.NumericFilter + */ +class NumericFilter extends \Google\Protobuf\Internal\Message +{ + /** + * The operation type for this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.Filter.NumericFilter.Operation operation = 1; + */ + protected $operation = 0; + /** + * A numeric value or a date value. + * + * Generated from protobuf field .google.analytics.data.v1beta.NumericValue value = 2; + */ + protected $value = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $operation + * The operation type for this filter. + * @type \Google\Analytics\Data\V1beta\NumericValue $value + * A numeric value or a date value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * The operation type for this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.Filter.NumericFilter.Operation operation = 1; + * @return int + */ + public function getOperation() + { + return $this->operation; + } + + /** + * The operation type for this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.Filter.NumericFilter.Operation operation = 1; + * @param int $var + * @return $this + */ + public function setOperation($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\Filter\NumericFilter\Operation::class); + $this->operation = $var; + + return $this; + } + + /** + * A numeric value or a date value. + * + * Generated from protobuf field .google.analytics.data.v1beta.NumericValue value = 2; + * @return \Google\Analytics\Data\V1beta\NumericValue|null + */ + public function getValue() + { + return $this->value; + } + + public function hasValue() + { + return isset($this->value); + } + + public function clearValue() + { + unset($this->value); + } + + /** + * A numeric value or a date value. + * + * Generated from protobuf field .google.analytics.data.v1beta.NumericValue value = 2; + * @param \Google\Analytics\Data\V1beta\NumericValue $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\NumericValue::class); + $this->value = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(NumericFilter::class, \Google\Analytics\Data\V1beta\Filter_NumericFilter::class); + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter/Operation.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter/Operation.php new file mode 100644 index 00000000000..4633829403b --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter/Operation.php @@ -0,0 +1,85 @@ +google.analytics.data.v1beta.Filter.NumericFilter.Operation + */ +class Operation +{ + /** + * Unspecified. + * + * Generated from protobuf enum OPERATION_UNSPECIFIED = 0; + */ + const OPERATION_UNSPECIFIED = 0; + /** + * Equal + * + * Generated from protobuf enum EQUAL = 1; + */ + const EQUAL = 1; + /** + * Less than + * + * Generated from protobuf enum LESS_THAN = 2; + */ + const LESS_THAN = 2; + /** + * Less than or equal + * + * Generated from protobuf enum LESS_THAN_OR_EQUAL = 3; + */ + const LESS_THAN_OR_EQUAL = 3; + /** + * Greater than + * + * Generated from protobuf enum GREATER_THAN = 4; + */ + const GREATER_THAN = 4; + /** + * Greater than or equal + * + * Generated from protobuf enum GREATER_THAN_OR_EQUAL = 5; + */ + const GREATER_THAN_OR_EQUAL = 5; + + private static $valueToName = [ + self::OPERATION_UNSPECIFIED => 'OPERATION_UNSPECIFIED', + self::EQUAL => 'EQUAL', + self::LESS_THAN => 'LESS_THAN', + self::LESS_THAN_OR_EQUAL => 'LESS_THAN_OR_EQUAL', + self::GREATER_THAN => 'GREATER_THAN', + self::GREATER_THAN_OR_EQUAL => 'GREATER_THAN_OR_EQUAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Operation::class, \Google\Analytics\Data\V1beta\Filter_NumericFilter_Operation::class); + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter.php new file mode 100644 index 00000000000..f4feeb9aff3 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter.php @@ -0,0 +1,138 @@ +google.analytics.data.v1beta.Filter.StringFilter + */ +class StringFilter extends \Google\Protobuf\Internal\Message +{ + /** + * The match type for this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.Filter.StringFilter.MatchType match_type = 1; + */ + protected $match_type = 0; + /** + * The string value used for the matching. + * + * Generated from protobuf field string value = 2; + */ + protected $value = ''; + /** + * If true, the string value is case sensitive. + * + * Generated from protobuf field bool case_sensitive = 3; + */ + protected $case_sensitive = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $match_type + * The match type for this filter. + * @type string $value + * The string value used for the matching. + * @type bool $case_sensitive + * If true, the string value is case sensitive. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * The match type for this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.Filter.StringFilter.MatchType match_type = 1; + * @return int + */ + public function getMatchType() + { + return $this->match_type; + } + + /** + * The match type for this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.Filter.StringFilter.MatchType match_type = 1; + * @param int $var + * @return $this + */ + public function setMatchType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\Filter\StringFilter\MatchType::class); + $this->match_type = $var; + + return $this; + } + + /** + * The string value used for the matching. + * + * Generated from protobuf field string value = 2; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * The string value used for the matching. + * + * Generated from protobuf field string value = 2; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + + /** + * If true, the string value is case sensitive. + * + * Generated from protobuf field bool case_sensitive = 3; + * @return bool + */ + public function getCaseSensitive() + { + return $this->case_sensitive; + } + + /** + * If true, the string value is case sensitive. + * + * Generated from protobuf field bool case_sensitive = 3; + * @param bool $var + * @return $this + */ + public function setCaseSensitive($var) + { + GPBUtil::checkBool($var); + $this->case_sensitive = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(StringFilter::class, \Google\Analytics\Data\V1beta\Filter_StringFilter::class); + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter/MatchType.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter/MatchType.php new file mode 100644 index 00000000000..4e40f9c5c3b --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter/MatchType.php @@ -0,0 +1,92 @@ +google.analytics.data.v1beta.Filter.StringFilter.MatchType + */ +class MatchType +{ + /** + * Unspecified + * + * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; + */ + const MATCH_TYPE_UNSPECIFIED = 0; + /** + * Exact match of the string value. + * + * Generated from protobuf enum EXACT = 1; + */ + const EXACT = 1; + /** + * Begins with the string value. + * + * Generated from protobuf enum BEGINS_WITH = 2; + */ + const BEGINS_WITH = 2; + /** + * Ends with the string value. + * + * Generated from protobuf enum ENDS_WITH = 3; + */ + const ENDS_WITH = 3; + /** + * Contains the string value. + * + * Generated from protobuf enum CONTAINS = 4; + */ + const CONTAINS = 4; + /** + * Full match for the regular expression with the string value. + * + * Generated from protobuf enum FULL_REGEXP = 5; + */ + const FULL_REGEXP = 5; + /** + * Partial match for the regular expression with the string value. + * + * Generated from protobuf enum PARTIAL_REGEXP = 6; + */ + const PARTIAL_REGEXP = 6; + + private static $valueToName = [ + self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', + self::EXACT => 'EXACT', + self::BEGINS_WITH => 'BEGINS_WITH', + self::ENDS_WITH => 'ENDS_WITH', + self::CONTAINS => 'CONTAINS', + self::FULL_REGEXP => 'FULL_REGEXP', + self::PARTIAL_REGEXP => 'PARTIAL_REGEXP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MatchType::class, \Google\Analytics\Data\V1beta\Filter_StringFilter_MatchType::class); + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpression.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpression.php new file mode 100644 index 00000000000..99e554d09c3 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpression.php @@ -0,0 +1,178 @@ +google.analytics.data.v1beta.FilterExpression + */ +class FilterExpression extends \Google\Protobuf\Internal\Message +{ + protected $expr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Data\V1beta\FilterExpressionList $and_group + * The FilterExpressions in and_group have an AND relationship. + * @type \Google\Analytics\Data\V1beta\FilterExpressionList $or_group + * The FilterExpressions in or_group have an OR relationship. + * @type \Google\Analytics\Data\V1beta\FilterExpression $not_expression + * The FilterExpression is NOT of not_expression. + * @type \Google\Analytics\Data\V1beta\Filter $filter + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * The FilterExpressions in and_group have an AND relationship. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpressionList and_group = 1; + * @return \Google\Analytics\Data\V1beta\FilterExpressionList|null + */ + public function getAndGroup() + { + return $this->readOneof(1); + } + + public function hasAndGroup() + { + return $this->hasOneof(1); + } + + /** + * The FilterExpressions in and_group have an AND relationship. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpressionList and_group = 1; + * @param \Google\Analytics\Data\V1beta\FilterExpressionList $var + * @return $this + */ + public function setAndGroup($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpressionList::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * The FilterExpressions in or_group have an OR relationship. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpressionList or_group = 2; + * @return \Google\Analytics\Data\V1beta\FilterExpressionList|null + */ + public function getOrGroup() + { + return $this->readOneof(2); + } + + public function hasOrGroup() + { + return $this->hasOneof(2); + } + + /** + * The FilterExpressions in or_group have an OR relationship. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpressionList or_group = 2; + * @param \Google\Analytics\Data\V1beta\FilterExpressionList $var + * @return $this + */ + public function setOrGroup($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpressionList::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * The FilterExpression is NOT of not_expression. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression not_expression = 3; + * @return \Google\Analytics\Data\V1beta\FilterExpression|null + */ + public function getNotExpression() + { + return $this->readOneof(3); + } + + public function hasNotExpression() + { + return $this->hasOneof(3); + } + + /** + * The FilterExpression is NOT of not_expression. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression not_expression = 3; + * @param \Google\Analytics\Data\V1beta\FilterExpression $var + * @return $this + */ + public function setNotExpression($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + * + * Generated from protobuf field .google.analytics.data.v1beta.Filter filter = 4; + * @return \Google\Analytics\Data\V1beta\Filter|null + */ + public function getFilter() + { + return $this->readOneof(4); + } + + public function hasFilter() + { + return $this->hasOneof(4); + } + + /** + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + * + * Generated from protobuf field .google.analytics.data.v1beta.Filter filter = 4; + * @param \Google\Analytics\Data\V1beta\Filter $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\Filter::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getExpr() + { + return $this->whichOneof("expr"); + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpressionList.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpressionList.php new file mode 100644 index 00000000000..d7eb56f9b25 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpressionList.php @@ -0,0 +1,67 @@ +google.analytics.data.v1beta.FilterExpressionList + */ +class FilterExpressionList extends \Google\Protobuf\Internal\Message +{ + /** + * A list of filter expressions. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; + */ + private $expressions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Data\V1beta\FilterExpression>|\Google\Protobuf\Internal\RepeatedField $expressions + * A list of filter expressions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * A list of filter expressions. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getExpressions() + { + return $this->expressions; + } + + /** + * A list of filter expressions. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; + * @param array<\Google\Analytics\Data\V1beta\FilterExpression>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setExpressions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\FilterExpression::class); + $this->expressions = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/GetMetadataRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/GetMetadataRequest.php new file mode 100644 index 00000000000..e2c983e6925 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/GetMetadataRequest.php @@ -0,0 +1,123 @@ +google.analytics.data.v1beta.GetMetadataRequest + */ +class GetMetadataRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the metadata to retrieve. This name field is + * specified in the URL path and not URL parameters. Property is a numeric + * Google Analytics GA4 Property identifier. To learn more, see [where to find + * your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * Example: properties/1234/metadata + * Set the Property ID to 0 for dimensions and metrics common to all + * properties. In this special mode, this method will not return custom + * dimensions and metrics. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the metadata to retrieve. This name field is + * specified in the URL path and not URL parameters. Property is a numeric + * Google Analytics GA4 Property identifier. To learn more, see [where to find + * your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * + * Example: properties/1234/metadata + * + * Set the Property ID to 0 for dimensions and metrics common to all + * properties. In this special mode, this method will not return custom + * dimensions and metrics. Please see + * {@see BetaAnalyticsDataClient::metadataName()} for help formatting this field. + * + * @return \Google\Analytics\Data\V1beta\GetMetadataRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the metadata to retrieve. This name field is + * specified in the URL path and not URL parameters. Property is a numeric + * Google Analytics GA4 Property identifier. To learn more, see [where to find + * your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * Example: properties/1234/metadata + * Set the Property ID to 0 for dimensions and metrics common to all + * properties. In this special mode, this method will not return custom + * dimensions and metrics. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the metadata to retrieve. This name field is + * specified in the URL path and not URL parameters. Property is a numeric + * Google Analytics GA4 Property identifier. To learn more, see [where to find + * your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * Example: properties/1234/metadata + * Set the Property ID to 0 for dimensions and metrics common to all + * properties. In this special mode, this method will not return custom + * dimensions and metrics. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the metadata to retrieve. This name field is + * specified in the URL path and not URL parameters. Property is a numeric + * Google Analytics GA4 Property identifier. To learn more, see [where to find + * your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * Example: properties/1234/metadata + * Set the Property ID to 0 for dimensions and metrics common to all + * properties. In this special mode, this method will not return custom + * dimensions and metrics. + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metadata.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metadata.php new file mode 100644 index 00000000000..ff3315ae2a2 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metadata.php @@ -0,0 +1,135 @@ +google.analytics.data.v1beta.Metadata + */ +class Metadata extends \Google\Protobuf\Internal\Message +{ + /** + * Resource name of this metadata. + * + * Generated from protobuf field string name = 3; + */ + protected $name = ''; + /** + * The dimension descriptions. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; + */ + private $dimensions; + /** + * The metric descriptions. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; + */ + private $metrics; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Resource name of this metadata. + * @type array<\Google\Analytics\Data\V1beta\DimensionMetadata>|\Google\Protobuf\Internal\RepeatedField $dimensions + * The dimension descriptions. + * @type array<\Google\Analytics\Data\V1beta\MetricMetadata>|\Google\Protobuf\Internal\RepeatedField $metrics + * The metric descriptions. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); + parent::__construct($data); + } + + /** + * Resource name of this metadata. + * + * Generated from protobuf field string name = 3; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Resource name of this metadata. + * + * Generated from protobuf field string name = 3; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The dimension descriptions. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensions() + { + return $this->dimensions; + } + + /** + * The dimension descriptions. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; + * @param array<\Google\Analytics\Data\V1beta\DimensionMetadata>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionMetadata::class); + $this->dimensions = $arr; + + return $this; + } + + /** + * The metric descriptions. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * The metric descriptions. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; + * @param array<\Google\Analytics\Data\V1beta\MetricMetadata>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricMetadata::class); + $this->metrics = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metric.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metric.php new file mode 100644 index 00000000000..f57e836d7b6 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metric.php @@ -0,0 +1,185 @@ +google.analytics.data.v1beta.Metric + */ +class Metric extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the metric. See the [API + * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) + * for the list of metric names. + * If `expression` is specified, `name` can be any string that you would like + * within the allowed character set. For example if `expression` is + * `screenPageViews/sessions`, you could call that metric's name = + * `viewsPerSession`. Metric names that you choose must match the regular + * expression `^[a-zA-Z0-9_]$`. + * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric + * `expression`. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * A mathematical expression for derived metrics. For example, the metric + * Event count per user is `eventCount/totalUsers`. + * + * Generated from protobuf field string expression = 2; + */ + protected $expression = ''; + /** + * Indicates if a metric is invisible in the report response. If a metric is + * invisible, the metric will not produce a column in the response, but can be + * used in `metricFilter`, `orderBys`, or a metric `expression`. + * + * Generated from protobuf field bool invisible = 3; + */ + protected $invisible = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The name of the metric. See the [API + * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) + * for the list of metric names. + * If `expression` is specified, `name` can be any string that you would like + * within the allowed character set. For example if `expression` is + * `screenPageViews/sessions`, you could call that metric's name = + * `viewsPerSession`. Metric names that you choose must match the regular + * expression `^[a-zA-Z0-9_]$`. + * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric + * `expression`. + * @type string $expression + * A mathematical expression for derived metrics. For example, the metric + * Event count per user is `eventCount/totalUsers`. + * @type bool $invisible + * Indicates if a metric is invisible in the report response. If a metric is + * invisible, the metric will not produce a column in the response, but can be + * used in `metricFilter`, `orderBys`, or a metric `expression`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * The name of the metric. See the [API + * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) + * for the list of metric names. + * If `expression` is specified, `name` can be any string that you would like + * within the allowed character set. For example if `expression` is + * `screenPageViews/sessions`, you could call that metric's name = + * `viewsPerSession`. Metric names that you choose must match the regular + * expression `^[a-zA-Z0-9_]$`. + * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric + * `expression`. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The name of the metric. See the [API + * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) + * for the list of metric names. + * If `expression` is specified, `name` can be any string that you would like + * within the allowed character set. For example if `expression` is + * `screenPageViews/sessions`, you could call that metric's name = + * `viewsPerSession`. Metric names that you choose must match the regular + * expression `^[a-zA-Z0-9_]$`. + * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric + * `expression`. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * A mathematical expression for derived metrics. For example, the metric + * Event count per user is `eventCount/totalUsers`. + * + * Generated from protobuf field string expression = 2; + * @return string + */ + public function getExpression() + { + return $this->expression; + } + + /** + * A mathematical expression for derived metrics. For example, the metric + * Event count per user is `eventCount/totalUsers`. + * + * Generated from protobuf field string expression = 2; + * @param string $var + * @return $this + */ + public function setExpression($var) + { + GPBUtil::checkString($var, True); + $this->expression = $var; + + return $this; + } + + /** + * Indicates if a metric is invisible in the report response. If a metric is + * invisible, the metric will not produce a column in the response, but can be + * used in `metricFilter`, `orderBys`, or a metric `expression`. + * + * Generated from protobuf field bool invisible = 3; + * @return bool + */ + public function getInvisible() + { + return $this->invisible; + } + + /** + * Indicates if a metric is invisible in the report response. If a metric is + * invisible, the metric will not produce a column in the response, but can be + * used in `metricFilter`, `orderBys`, or a metric `expression`. + * + * Generated from protobuf field bool invisible = 3; + * @param bool $var + * @return $this + */ + public function setInvisible($var) + { + GPBUtil::checkBool($var); + $this->invisible = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricAggregation.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricAggregation.php new file mode 100644 index 00000000000..af5158b3729 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricAggregation.php @@ -0,0 +1,75 @@ +google.analytics.data.v1beta.MetricAggregation + */ +class MetricAggregation +{ + /** + * Unspecified operator. + * + * Generated from protobuf enum METRIC_AGGREGATION_UNSPECIFIED = 0; + */ + const METRIC_AGGREGATION_UNSPECIFIED = 0; + /** + * SUM operator. + * + * Generated from protobuf enum TOTAL = 1; + */ + const TOTAL = 1; + /** + * Minimum operator. + * + * Generated from protobuf enum MINIMUM = 5; + */ + const MINIMUM = 5; + /** + * Maximum operator. + * + * Generated from protobuf enum MAXIMUM = 6; + */ + const MAXIMUM = 6; + /** + * Count operator. + * + * Generated from protobuf enum COUNT = 4; + */ + const COUNT = 4; + + private static $valueToName = [ + self::METRIC_AGGREGATION_UNSPECIFIED => 'METRIC_AGGREGATION_UNSPECIFIED', + self::TOTAL => 'TOTAL', + self::MINIMUM => 'MINIMUM', + self::MAXIMUM => 'MAXIMUM', + self::COUNT => 'COUNT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricCompatibility.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricCompatibility.php new file mode 100644 index 00000000000..f76bff55631 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricCompatibility.php @@ -0,0 +1,133 @@ +google.analytics.data.v1beta.MetricCompatibility + */ +class MetricCompatibility extends \Google\Protobuf\Internal\Message +{ + /** + * The metric metadata contains the API name for this compatibility + * information. The metric metadata also contains other helpful information + * like the UI name and description. + * + * Generated from protobuf field optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; + */ + protected $metric_metadata = null; + /** + * The compatibility of this metric. If the compatibility is COMPATIBLE, + * this metric can be successfully added to the report. + * + * Generated from protobuf field optional .google.analytics.data.v1beta.Compatibility compatibility = 2; + */ + protected $compatibility = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Data\V1beta\MetricMetadata $metric_metadata + * The metric metadata contains the API name for this compatibility + * information. The metric metadata also contains other helpful information + * like the UI name and description. + * @type int $compatibility + * The compatibility of this metric. If the compatibility is COMPATIBLE, + * this metric can be successfully added to the report. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * The metric metadata contains the API name for this compatibility + * information. The metric metadata also contains other helpful information + * like the UI name and description. + * + * Generated from protobuf field optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; + * @return \Google\Analytics\Data\V1beta\MetricMetadata|null + */ + public function getMetricMetadata() + { + return $this->metric_metadata; + } + + public function hasMetricMetadata() + { + return isset($this->metric_metadata); + } + + public function clearMetricMetadata() + { + unset($this->metric_metadata); + } + + /** + * The metric metadata contains the API name for this compatibility + * information. The metric metadata also contains other helpful information + * like the UI name and description. + * + * Generated from protobuf field optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; + * @param \Google\Analytics\Data\V1beta\MetricMetadata $var + * @return $this + */ + public function setMetricMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\MetricMetadata::class); + $this->metric_metadata = $var; + + return $this; + } + + /** + * The compatibility of this metric. If the compatibility is COMPATIBLE, + * this metric can be successfully added to the report. + * + * Generated from protobuf field optional .google.analytics.data.v1beta.Compatibility compatibility = 2; + * @return int + */ + public function getCompatibility() + { + return isset($this->compatibility) ? $this->compatibility : 0; + } + + public function hasCompatibility() + { + return isset($this->compatibility); + } + + public function clearCompatibility() + { + unset($this->compatibility); + } + + /** + * The compatibility of this metric. If the compatibility is COMPATIBLE, + * this metric can be successfully added to the report. + * + * Generated from protobuf field optional .google.analytics.data.v1beta.Compatibility compatibility = 2; + * @param int $var + * @return $this + */ + public function setCompatibility($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\Compatibility::class); + $this->compatibility = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricHeader.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricHeader.php new file mode 100644 index 00000000000..db125c0ae60 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricHeader.php @@ -0,0 +1,104 @@ +google.analytics.data.v1beta.MetricHeader + */ +class MetricHeader extends \Google\Protobuf\Internal\Message +{ + /** + * The metric's name. + * + * Generated from protobuf field string name = 1; + */ + protected $name = ''; + /** + * The metric's data type. + * + * Generated from protobuf field .google.analytics.data.v1beta.MetricType type = 2; + */ + protected $type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * The metric's name. + * @type int $type + * The metric's data type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * The metric's name. + * + * Generated from protobuf field string name = 1; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * The metric's name. + * + * Generated from protobuf field string name = 1; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * The metric's data type. + * + * Generated from protobuf field .google.analytics.data.v1beta.MetricType type = 2; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The metric's data type. + * + * Generated from protobuf field .google.analytics.data.v1beta.MetricType type = 2; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\MetricType::class); + $this->type = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata.php new file mode 100644 index 00000000000..9ef96ff2bc1 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata.php @@ -0,0 +1,395 @@ +google.analytics.data.v1beta.MetricMetadata + */ +class MetricMetadata extends \Google\Protobuf\Internal\Message +{ + /** + * A metric name. Useable in [Metric](#Metric)'s `name`. For example, + * `eventCount`. + * + * Generated from protobuf field string api_name = 1; + */ + protected $api_name = ''; + /** + * This metric's name within the Google Analytics user interface. For example, + * `Event count`. + * + * Generated from protobuf field string ui_name = 2; + */ + protected $ui_name = ''; + /** + * Description of how this metric is used and calculated. + * + * Generated from protobuf field string description = 3; + */ + protected $description = ''; + /** + * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + * + * Generated from protobuf field repeated string deprecated_api_names = 4; + */ + private $deprecated_api_names; + /** + * The type of this metric. + * + * Generated from protobuf field .google.analytics.data.v1beta.MetricType type = 5; + */ + protected $type = 0; + /** + * The mathematical expression for this derived metric. Can be used in + * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics + * are not expressions, and for non-expressions, this field is empty. + * + * Generated from protobuf field string expression = 6; + */ + protected $expression = ''; + /** + * True if the metric is a custom metric for this property. + * + * Generated from protobuf field bool custom_definition = 7; + */ + protected $custom_definition = false; + /** + * If reasons are specified, your access is blocked to this metric for this + * property. API requests from you to this property for this metric will + * succeed; however, the report will contain only zeros for this metric. API + * requests with metric filters on blocked metrics will fail. If reasons are + * empty, you have access to this metric. + * To learn more, see [Access and data-restriction + * management](https://support.google.com/analytics/answer/10851388). + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; + */ + private $blocked_reasons; + /** + * The display name of the category that this metrics belongs to. Similar + * dimensions and metrics are categorized together. + * + * Generated from protobuf field string category = 10; + */ + protected $category = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $api_name + * A metric name. Useable in [Metric](#Metric)'s `name`. For example, + * `eventCount`. + * @type string $ui_name + * This metric's name within the Google Analytics user interface. For example, + * `Event count`. + * @type string $description + * Description of how this metric is used and calculated. + * @type array|\Google\Protobuf\Internal\RepeatedField $deprecated_api_names + * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + * @type int $type + * The type of this metric. + * @type string $expression + * The mathematical expression for this derived metric. Can be used in + * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics + * are not expressions, and for non-expressions, this field is empty. + * @type bool $custom_definition + * True if the metric is a custom metric for this property. + * @type array|\Google\Protobuf\Internal\RepeatedField $blocked_reasons + * If reasons are specified, your access is blocked to this metric for this + * property. API requests from you to this property for this metric will + * succeed; however, the report will contain only zeros for this metric. API + * requests with metric filters on blocked metrics will fail. If reasons are + * empty, you have access to this metric. + * To learn more, see [Access and data-restriction + * management](https://support.google.com/analytics/answer/10851388). + * @type string $category + * The display name of the category that this metrics belongs to. Similar + * dimensions and metrics are categorized together. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * A metric name. Useable in [Metric](#Metric)'s `name`. For example, + * `eventCount`. + * + * Generated from protobuf field string api_name = 1; + * @return string + */ + public function getApiName() + { + return $this->api_name; + } + + /** + * A metric name. Useable in [Metric](#Metric)'s `name`. For example, + * `eventCount`. + * + * Generated from protobuf field string api_name = 1; + * @param string $var + * @return $this + */ + public function setApiName($var) + { + GPBUtil::checkString($var, True); + $this->api_name = $var; + + return $this; + } + + /** + * This metric's name within the Google Analytics user interface. For example, + * `Event count`. + * + * Generated from protobuf field string ui_name = 2; + * @return string + */ + public function getUiName() + { + return $this->ui_name; + } + + /** + * This metric's name within the Google Analytics user interface. For example, + * `Event count`. + * + * Generated from protobuf field string ui_name = 2; + * @param string $var + * @return $this + */ + public function setUiName($var) + { + GPBUtil::checkString($var, True); + $this->ui_name = $var; + + return $this; + } + + /** + * Description of how this metric is used and calculated. + * + * Generated from protobuf field string description = 3; + * @return string + */ + public function getDescription() + { + return $this->description; + } + + /** + * Description of how this metric is used and calculated. + * + * Generated from protobuf field string description = 3; + * @param string $var + * @return $this + */ + public function setDescription($var) + { + GPBUtil::checkString($var, True); + $this->description = $var; + + return $this; + } + + /** + * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + * + * Generated from protobuf field repeated string deprecated_api_names = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDeprecatedApiNames() + { + return $this->deprecated_api_names; + } + + /** + * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + * + * Generated from protobuf field repeated string deprecated_api_names = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDeprecatedApiNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->deprecated_api_names = $arr; + + return $this; + } + + /** + * The type of this metric. + * + * Generated from protobuf field .google.analytics.data.v1beta.MetricType type = 5; + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * The type of this metric. + * + * Generated from protobuf field .google.analytics.data.v1beta.MetricType type = 5; + * @param int $var + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\MetricType::class); + $this->type = $var; + + return $this; + } + + /** + * The mathematical expression for this derived metric. Can be used in + * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics + * are not expressions, and for non-expressions, this field is empty. + * + * Generated from protobuf field string expression = 6; + * @return string + */ + public function getExpression() + { + return $this->expression; + } + + /** + * The mathematical expression for this derived metric. Can be used in + * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics + * are not expressions, and for non-expressions, this field is empty. + * + * Generated from protobuf field string expression = 6; + * @param string $var + * @return $this + */ + public function setExpression($var) + { + GPBUtil::checkString($var, True); + $this->expression = $var; + + return $this; + } + + /** + * True if the metric is a custom metric for this property. + * + * Generated from protobuf field bool custom_definition = 7; + * @return bool + */ + public function getCustomDefinition() + { + return $this->custom_definition; + } + + /** + * True if the metric is a custom metric for this property. + * + * Generated from protobuf field bool custom_definition = 7; + * @param bool $var + * @return $this + */ + public function setCustomDefinition($var) + { + GPBUtil::checkBool($var); + $this->custom_definition = $var; + + return $this; + } + + /** + * If reasons are specified, your access is blocked to this metric for this + * property. API requests from you to this property for this metric will + * succeed; however, the report will contain only zeros for this metric. API + * requests with metric filters on blocked metrics will fail. If reasons are + * empty, you have access to this metric. + * To learn more, see [Access and data-restriction + * management](https://support.google.com/analytics/answer/10851388). + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getBlockedReasons() + { + return $this->blocked_reasons; + } + + /** + * If reasons are specified, your access is blocked to this metric for this + * property. API requests from you to this property for this metric will + * succeed; however, the report will contain only zeros for this metric. API + * requests with metric filters on blocked metrics will fail. If reasons are + * empty, you have access to this metric. + * To learn more, see [Access and data-restriction + * management](https://support.google.com/analytics/answer/10851388). + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setBlockedReasons($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Data\V1beta\MetricMetadata\BlockedReason::class); + $this->blocked_reasons = $arr; + + return $this; + } + + /** + * The display name of the category that this metrics belongs to. Similar + * dimensions and metrics are categorized together. + * + * Generated from protobuf field string category = 10; + * @return string + */ + public function getCategory() + { + return $this->category; + } + + /** + * The display name of the category that this metrics belongs to. Similar + * dimensions and metrics are categorized together. + * + * Generated from protobuf field string category = 10; + * @param string $var + * @return $this + */ + public function setCategory($var) + { + GPBUtil::checkString($var, True); + $this->category = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata/BlockedReason.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata/BlockedReason.php new file mode 100644 index 00000000000..1b6aaf8bdc0 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata/BlockedReason.php @@ -0,0 +1,66 @@ +google.analytics.data.v1beta.MetricMetadata.BlockedReason + */ +class BlockedReason +{ + /** + * Will never be specified in API response. + * + * Generated from protobuf enum BLOCKED_REASON_UNSPECIFIED = 0; + */ + const BLOCKED_REASON_UNSPECIFIED = 0; + /** + * If present, your access is blocked to revenue related metrics for this + * property, and this metric is revenue related. + * + * Generated from protobuf enum NO_REVENUE_METRICS = 1; + */ + const NO_REVENUE_METRICS = 1; + /** + * If present, your access is blocked to cost related metrics for this + * property, and this metric is cost related. + * + * Generated from protobuf enum NO_COST_METRICS = 2; + */ + const NO_COST_METRICS = 2; + + private static $valueToName = [ + self::BLOCKED_REASON_UNSPECIFIED => 'BLOCKED_REASON_UNSPECIFIED', + self::NO_REVENUE_METRICS => 'NO_REVENUE_METRICS', + self::NO_COST_METRICS => 'NO_COST_METRICS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(BlockedReason::class, \Google\Analytics\Data\V1beta\MetricMetadata_BlockedReason::class); + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricType.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricType.php new file mode 100644 index 00000000000..641bfa44a62 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricType.php @@ -0,0 +1,131 @@ +google.analytics.data.v1beta.MetricType + */ +class MetricType +{ + /** + * Unspecified type. + * + * Generated from protobuf enum METRIC_TYPE_UNSPECIFIED = 0; + */ + const METRIC_TYPE_UNSPECIFIED = 0; + /** + * Integer type. + * + * Generated from protobuf enum TYPE_INTEGER = 1; + */ + const TYPE_INTEGER = 1; + /** + * Floating point type. + * + * Generated from protobuf enum TYPE_FLOAT = 2; + */ + const TYPE_FLOAT = 2; + /** + * A duration of seconds; a special floating point type. + * + * Generated from protobuf enum TYPE_SECONDS = 4; + */ + const TYPE_SECONDS = 4; + /** + * A duration in milliseconds; a special floating point type. + * + * Generated from protobuf enum TYPE_MILLISECONDS = 5; + */ + const TYPE_MILLISECONDS = 5; + /** + * A duration in minutes; a special floating point type. + * + * Generated from protobuf enum TYPE_MINUTES = 6; + */ + const TYPE_MINUTES = 6; + /** + * A duration in hours; a special floating point type. + * + * Generated from protobuf enum TYPE_HOURS = 7; + */ + const TYPE_HOURS = 7; + /** + * A custom metric of standard type; a special floating point type. + * + * Generated from protobuf enum TYPE_STANDARD = 8; + */ + const TYPE_STANDARD = 8; + /** + * An amount of money; a special floating point type. + * + * Generated from protobuf enum TYPE_CURRENCY = 9; + */ + const TYPE_CURRENCY = 9; + /** + * A length in feet; a special floating point type. + * + * Generated from protobuf enum TYPE_FEET = 10; + */ + const TYPE_FEET = 10; + /** + * A length in miles; a special floating point type. + * + * Generated from protobuf enum TYPE_MILES = 11; + */ + const TYPE_MILES = 11; + /** + * A length in meters; a special floating point type. + * + * Generated from protobuf enum TYPE_METERS = 12; + */ + const TYPE_METERS = 12; + /** + * A length in kilometers; a special floating point type. + * + * Generated from protobuf enum TYPE_KILOMETERS = 13; + */ + const TYPE_KILOMETERS = 13; + + private static $valueToName = [ + self::METRIC_TYPE_UNSPECIFIED => 'METRIC_TYPE_UNSPECIFIED', + self::TYPE_INTEGER => 'TYPE_INTEGER', + self::TYPE_FLOAT => 'TYPE_FLOAT', + self::TYPE_SECONDS => 'TYPE_SECONDS', + self::TYPE_MILLISECONDS => 'TYPE_MILLISECONDS', + self::TYPE_MINUTES => 'TYPE_MINUTES', + self::TYPE_HOURS => 'TYPE_HOURS', + self::TYPE_STANDARD => 'TYPE_STANDARD', + self::TYPE_CURRENCY => 'TYPE_CURRENCY', + self::TYPE_FEET => 'TYPE_FEET', + self::TYPE_MILES => 'TYPE_MILES', + self::TYPE_METERS => 'TYPE_METERS', + self::TYPE_KILOMETERS => 'TYPE_KILOMETERS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricValue.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricValue.php new file mode 100644 index 00000000000..5ae81b6fc47 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricValue.php @@ -0,0 +1,75 @@ +google.analytics.data.v1beta.MetricValue + */ +class MetricValue extends \Google\Protobuf\Internal\Message +{ + protected $one_value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $value + * Measurement value. See MetricHeader for type. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * Measurement value. See MetricHeader for type. + * + * Generated from protobuf field string value = 4; + * @return string + */ + public function getValue() + { + return $this->readOneof(4); + } + + public function hasValue() + { + return $this->hasOneof(4); + } + + /** + * Measurement value. See MetricHeader for type. + * + * Generated from protobuf field string value = 4; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * @return string + */ + public function getOneValue() + { + return $this->whichOneof("one_value"); + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MinuteRange.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MinuteRange.php new file mode 100644 index 00000000000..d71a5cdffb4 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MinuteRange.php @@ -0,0 +1,220 @@ +google.analytics.data.v1beta.MinuteRange + */ +class MinuteRange extends \Google\Protobuf\Internal\Message +{ + /** + * The inclusive start minute for the query as a number of minutes before now. + * For example, `"startMinutesAgo": 29` specifies the report should include + * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`. + * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics + * properties can request up to the last 30 minutes of event data + * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to + * the last 60 minutes of event data (`startMinutesAgo <= 59`). + * + * Generated from protobuf field optional int32 start_minutes_ago = 1; + */ + protected $start_minutes_ago = null; + /** + * The inclusive end minute for the query as a number of minutes before now. + * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15` + * specifies the report should include event data from prior to 15 minutes + * ago. + * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics + * properties can request any minute in the last 30 minutes of event data + * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any + * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). + * + * Generated from protobuf field optional int32 end_minutes_ago = 2; + */ + protected $end_minutes_ago = null; + /** + * Assigns a name to this minute range. The dimension `dateRange` is valued to + * this name in a report response. If set, cannot begin with `date_range_` or + * `RESERVED_`. If not set, minute ranges are named by their zero based index + * in the request: `date_range_0`, `date_range_1`, etc. + * + * Generated from protobuf field string name = 3; + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $start_minutes_ago + * The inclusive start minute for the query as a number of minutes before now. + * For example, `"startMinutesAgo": 29` specifies the report should include + * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`. + * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics + * properties can request up to the last 30 minutes of event data + * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to + * the last 60 minutes of event data (`startMinutesAgo <= 59`). + * @type int $end_minutes_ago + * The inclusive end minute for the query as a number of minutes before now. + * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15` + * specifies the report should include event data from prior to 15 minutes + * ago. + * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics + * properties can request any minute in the last 30 minutes of event data + * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any + * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). + * @type string $name + * Assigns a name to this minute range. The dimension `dateRange` is valued to + * this name in a report response. If set, cannot begin with `date_range_` or + * `RESERVED_`. If not set, minute ranges are named by their zero based index + * in the request: `date_range_0`, `date_range_1`, etc. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * The inclusive start minute for the query as a number of minutes before now. + * For example, `"startMinutesAgo": 29` specifies the report should include + * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`. + * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics + * properties can request up to the last 30 minutes of event data + * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to + * the last 60 minutes of event data (`startMinutesAgo <= 59`). + * + * Generated from protobuf field optional int32 start_minutes_ago = 1; + * @return int + */ + public function getStartMinutesAgo() + { + return isset($this->start_minutes_ago) ? $this->start_minutes_ago : 0; + } + + public function hasStartMinutesAgo() + { + return isset($this->start_minutes_ago); + } + + public function clearStartMinutesAgo() + { + unset($this->start_minutes_ago); + } + + /** + * The inclusive start minute for the query as a number of minutes before now. + * For example, `"startMinutesAgo": 29` specifies the report should include + * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`. + * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics + * properties can request up to the last 30 minutes of event data + * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to + * the last 60 minutes of event data (`startMinutesAgo <= 59`). + * + * Generated from protobuf field optional int32 start_minutes_ago = 1; + * @param int $var + * @return $this + */ + public function setStartMinutesAgo($var) + { + GPBUtil::checkInt32($var); + $this->start_minutes_ago = $var; + + return $this; + } + + /** + * The inclusive end minute for the query as a number of minutes before now. + * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15` + * specifies the report should include event data from prior to 15 minutes + * ago. + * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics + * properties can request any minute in the last 30 minutes of event data + * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any + * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). + * + * Generated from protobuf field optional int32 end_minutes_ago = 2; + * @return int + */ + public function getEndMinutesAgo() + { + return isset($this->end_minutes_ago) ? $this->end_minutes_ago : 0; + } + + public function hasEndMinutesAgo() + { + return isset($this->end_minutes_ago); + } + + public function clearEndMinutesAgo() + { + unset($this->end_minutes_ago); + } + + /** + * The inclusive end minute for the query as a number of minutes before now. + * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15` + * specifies the report should include event data from prior to 15 minutes + * ago. + * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics + * properties can request any minute in the last 30 minutes of event data + * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any + * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). + * + * Generated from protobuf field optional int32 end_minutes_ago = 2; + * @param int $var + * @return $this + */ + public function setEndMinutesAgo($var) + { + GPBUtil::checkInt32($var); + $this->end_minutes_ago = $var; + + return $this; + } + + /** + * Assigns a name to this minute range. The dimension `dateRange` is valued to + * this name in a report response. If set, cannot begin with `date_range_` or + * `RESERVED_`. If not set, minute ranges are named by their zero based index + * in the request: `date_range_0`, `date_range_1`, etc. + * + * Generated from protobuf field string name = 3; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Assigns a name to this minute range. The dimension `dateRange` is valued to + * this name in a report response. If set, cannot begin with `date_range_` or + * `RESERVED_`. If not set, minute ranges are named by their zero based index + * in the request: `date_range_0`, `date_range_1`, etc. + * + * Generated from protobuf field string name = 3; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/NumericValue.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/NumericValue.php new file mode 100644 index 00000000000..ac466fe4865 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/NumericValue.php @@ -0,0 +1,108 @@ +google.analytics.data.v1beta.NumericValue + */ +class NumericValue extends \Google\Protobuf\Internal\Message +{ + protected $one_value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int|string $int64_value + * Integer value + * @type float $double_value + * Double value + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * Integer value + * + * Generated from protobuf field int64 int64_value = 1; + * @return int|string + */ + public function getInt64Value() + { + return $this->readOneof(1); + } + + public function hasInt64Value() + { + return $this->hasOneof(1); + } + + /** + * Integer value + * + * Generated from protobuf field int64 int64_value = 1; + * @param int|string $var + * @return $this + */ + public function setInt64Value($var) + { + GPBUtil::checkInt64($var); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Double value + * + * Generated from protobuf field double double_value = 2; + * @return float + */ + public function getDoubleValue() + { + return $this->readOneof(2); + } + + public function hasDoubleValue() + { + return $this->hasOneof(2); + } + + /** + * Double value + * + * Generated from protobuf field double double_value = 2; + * @param float $var + * @return $this + */ + public function setDoubleValue($var) + { + GPBUtil::checkDouble($var); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * @return string + */ + public function getOneValue() + { + return $this->whichOneof("one_value"); + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy.php new file mode 100644 index 00000000000..bf52aa38f37 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy.php @@ -0,0 +1,177 @@ +google.analytics.data.v1beta.OrderBy + */ +class OrderBy extends \Google\Protobuf\Internal\Message +{ + /** + * If true, sorts by descending order. + * + * Generated from protobuf field bool desc = 4; + */ + protected $desc = false; + protected $one_order_by; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Data\V1beta\OrderBy\MetricOrderBy $metric + * Sorts results by a metric's values. + * @type \Google\Analytics\Data\V1beta\OrderBy\DimensionOrderBy $dimension + * Sorts results by a dimension's values. + * @type \Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy $pivot + * Sorts results by a metric's values within a pivot column group. + * @type bool $desc + * If true, sorts by descending order. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * Sorts results by a metric's values. + * + * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; + * @return \Google\Analytics\Data\V1beta\OrderBy\MetricOrderBy|null + */ + public function getMetric() + { + return $this->readOneof(1); + } + + public function hasMetric() + { + return $this->hasOneof(1); + } + + /** + * Sorts results by a metric's values. + * + * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; + * @param \Google\Analytics\Data\V1beta\OrderBy\MetricOrderBy $var + * @return $this + */ + public function setMetric($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\OrderBy\MetricOrderBy::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Sorts results by a dimension's values. + * + * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; + * @return \Google\Analytics\Data\V1beta\OrderBy\DimensionOrderBy|null + */ + public function getDimension() + { + return $this->readOneof(2); + } + + public function hasDimension() + { + return $this->hasOneof(2); + } + + /** + * Sorts results by a dimension's values. + * + * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; + * @param \Google\Analytics\Data\V1beta\OrderBy\DimensionOrderBy $var + * @return $this + */ + public function setDimension($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\OrderBy\DimensionOrderBy::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Sorts results by a metric's values within a pivot column group. + * + * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; + * @return \Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy|null + */ + public function getPivot() + { + return $this->readOneof(3); + } + + public function hasPivot() + { + return $this->hasOneof(3); + } + + /** + * Sorts results by a metric's values within a pivot column group. + * + * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; + * @param \Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy $var + * @return $this + */ + public function setPivot($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * If true, sorts by descending order. + * + * Generated from protobuf field bool desc = 4; + * @return bool + */ + public function getDesc() + { + return $this->desc; + } + + /** + * If true, sorts by descending order. + * + * Generated from protobuf field bool desc = 4; + * @param bool $var + * @return $this + */ + public function setDesc($var) + { + GPBUtil::checkBool($var); + $this->desc = $var; + + return $this; + } + + /** + * @return string + */ + public function getOneOrderBy() + { + return $this->whichOneof("one_order_by"); + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy.php new file mode 100644 index 00000000000..caaffd85a29 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy.php @@ -0,0 +1,104 @@ +google.analytics.data.v1beta.OrderBy.DimensionOrderBy + */ +class DimensionOrderBy extends \Google\Protobuf\Internal\Message +{ + /** + * A dimension name in the request to order by. + * + * Generated from protobuf field string dimension_name = 1; + */ + protected $dimension_name = ''; + /** + * Controls the rule for dimension value ordering. + * + * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType order_type = 2; + */ + protected $order_type = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dimension_name + * A dimension name in the request to order by. + * @type int $order_type + * Controls the rule for dimension value ordering. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * A dimension name in the request to order by. + * + * Generated from protobuf field string dimension_name = 1; + * @return string + */ + public function getDimensionName() + { + return $this->dimension_name; + } + + /** + * A dimension name in the request to order by. + * + * Generated from protobuf field string dimension_name = 1; + * @param string $var + * @return $this + */ + public function setDimensionName($var) + { + GPBUtil::checkString($var, True); + $this->dimension_name = $var; + + return $this; + } + + /** + * Controls the rule for dimension value ordering. + * + * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType order_type = 2; + * @return int + */ + public function getOrderType() + { + return $this->order_type; + } + + /** + * Controls the rule for dimension value ordering. + * + * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType order_type = 2; + * @param int $var + * @return $this + */ + public function setOrderType($var) + { + GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\OrderBy\DimensionOrderBy\OrderType::class); + $this->order_type = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(DimensionOrderBy::class, \Google\Analytics\Data\V1beta\OrderBy_DimensionOrderBy::class); + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy/OrderType.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy/OrderType.php new file mode 100644 index 00000000000..d0ce40c9141 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy/OrderType.php @@ -0,0 +1,76 @@ +google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType + */ +class OrderType +{ + /** + * Unspecified. + * + * Generated from protobuf enum ORDER_TYPE_UNSPECIFIED = 0; + */ + const ORDER_TYPE_UNSPECIFIED = 0; + /** + * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" < + * "b" < "z". + * + * Generated from protobuf enum ALPHANUMERIC = 1; + */ + const ALPHANUMERIC = 1; + /** + * Case insensitive alphanumeric sort by lower case Unicode code point. + * For example, "2" < "A" < "b" < "X" < "z". + * + * Generated from protobuf enum CASE_INSENSITIVE_ALPHANUMERIC = 2; + */ + const CASE_INSENSITIVE_ALPHANUMERIC = 2; + /** + * Dimension values are converted to numbers before sorting. For example + * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" < + * "25". Non-numeric dimension values all have equal ordering value below + * all numeric values. + * + * Generated from protobuf enum NUMERIC = 3; + */ + const NUMERIC = 3; + + private static $valueToName = [ + self::ORDER_TYPE_UNSPECIFIED => 'ORDER_TYPE_UNSPECIFIED', + self::ALPHANUMERIC => 'ALPHANUMERIC', + self::CASE_INSENSITIVE_ALPHANUMERIC => 'CASE_INSENSITIVE_ALPHANUMERIC', + self::NUMERIC => 'NUMERIC', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(OrderType::class, \Google\Analytics\Data\V1beta\OrderBy_DimensionOrderBy_OrderType::class); + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/MetricOrderBy.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/MetricOrderBy.php new file mode 100644 index 00000000000..27ab3306a35 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/MetricOrderBy.php @@ -0,0 +1,70 @@ +google.analytics.data.v1beta.OrderBy.MetricOrderBy + */ +class MetricOrderBy extends \Google\Protobuf\Internal\Message +{ + /** + * A metric name in the request to order by. + * + * Generated from protobuf field string metric_name = 1; + */ + protected $metric_name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $metric_name + * A metric name in the request to order by. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * A metric name in the request to order by. + * + * Generated from protobuf field string metric_name = 1; + * @return string + */ + public function getMetricName() + { + return $this->metric_name; + } + + /** + * A metric name in the request to order by. + * + * Generated from protobuf field string metric_name = 1; + * @param string $var + * @return $this + */ + public function setMetricName($var) + { + GPBUtil::checkString($var, True); + $this->metric_name = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(MetricOrderBy::class, \Google\Analytics\Data\V1beta\OrderBy_MetricOrderBy::class); + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy.php new file mode 100644 index 00000000000..4fd1c22f4b2 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy.php @@ -0,0 +1,120 @@ +google.analytics.data.v1beta.OrderBy.PivotOrderBy + */ +class PivotOrderBy extends \Google\Protobuf\Internal\Message +{ + /** + * In the response to order by, order rows by this column. Must be a metric + * name from the request. + * + * Generated from protobuf field string metric_name = 1; + */ + protected $metric_name = ''; + /** + * Used to select a dimension name and value pivot. If multiple pivot + * selections are given, the sort occurs on rows where all pivot selection + * dimension name and value pairs match the row's dimension name and value + * pair. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; + */ + private $pivot_selections; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $metric_name + * In the response to order by, order rows by this column. Must be a metric + * name from the request. + * @type array<\Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy\PivotSelection>|\Google\Protobuf\Internal\RepeatedField $pivot_selections + * Used to select a dimension name and value pivot. If multiple pivot + * selections are given, the sort occurs on rows where all pivot selection + * dimension name and value pairs match the row's dimension name and value + * pair. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * In the response to order by, order rows by this column. Must be a metric + * name from the request. + * + * Generated from protobuf field string metric_name = 1; + * @return string + */ + public function getMetricName() + { + return $this->metric_name; + } + + /** + * In the response to order by, order rows by this column. Must be a metric + * name from the request. + * + * Generated from protobuf field string metric_name = 1; + * @param string $var + * @return $this + */ + public function setMetricName($var) + { + GPBUtil::checkString($var, True); + $this->metric_name = $var; + + return $this; + } + + /** + * Used to select a dimension name and value pivot. If multiple pivot + * selections are given, the sort occurs on rows where all pivot selection + * dimension name and value pairs match the row's dimension name and value + * pair. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPivotSelections() + { + return $this->pivot_selections; + } + + /** + * Used to select a dimension name and value pivot. If multiple pivot + * selections are given, the sort occurs on rows where all pivot selection + * dimension name and value pairs match the row's dimension name and value + * pair. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; + * @param array<\Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy\PivotSelection>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPivotSelections($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy\PivotSelection::class); + $this->pivot_selections = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PivotOrderBy::class, \Google\Analytics\Data\V1beta\OrderBy_PivotOrderBy::class); + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy/PivotSelection.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy/PivotSelection.php new file mode 100644 index 00000000000..d50a7262d48 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy/PivotSelection.php @@ -0,0 +1,117 @@ +google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection + */ +class PivotSelection extends \Google\Protobuf\Internal\Message +{ + /** + * Must be a dimension name from the request. + * + * Generated from protobuf field string dimension_name = 1; + */ + protected $dimension_name = ''; + /** + * Order by only when the named dimension is this value. + * + * Generated from protobuf field string dimension_value = 2; + */ + protected $dimension_value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $dimension_name + * Must be a dimension name from the request. + * @type string $dimension_value + * Order by only when the named dimension is this value. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * Must be a dimension name from the request. + * + * Generated from protobuf field string dimension_name = 1; + * @return string + */ + public function getDimensionName() + { + return $this->dimension_name; + } + + /** + * Must be a dimension name from the request. + * + * Generated from protobuf field string dimension_name = 1; + * @param string $var + * @return $this + */ + public function setDimensionName($var) + { + GPBUtil::checkString($var, True); + $this->dimension_name = $var; + + return $this; + } + + /** + * Order by only when the named dimension is this value. + * + * Generated from protobuf field string dimension_value = 2; + * @return string + */ + public function getDimensionValue() + { + return $this->dimension_value; + } + + /** + * Order by only when the named dimension is this value. + * + * Generated from protobuf field string dimension_value = 2; + * @param string $var + * @return $this + */ + public function setDimensionValue($var) + { + GPBUtil::checkString($var, True); + $this->dimension_value = $var; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(PivotSelection::class, \Google\Analytics\Data\V1beta\OrderBy_PivotOrderBy_PivotSelection::class); + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Pivot.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Pivot.php new file mode 100644 index 00000000000..1569a761e9b --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Pivot.php @@ -0,0 +1,255 @@ +google.analytics.data.v1beta.Pivot + */ +class Pivot extends \Google\Protobuf\Internal\Message +{ + /** + * Dimension names for visible columns in the report response. Including + * "dateRange" produces a date range column; for each row in the response, + * dimension values in the date range column will indicate the corresponding + * date range from the request. + * + * Generated from protobuf field repeated string field_names = 1; + */ + private $field_names; + /** + * Specifies how dimensions are ordered in the pivot. In the first Pivot, the + * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent + * Pivots, the OrderBys determine only PivotDimensionHeader ordering. + * Dimensions specified in these OrderBys must be a subset of + * Pivot.field_names. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; + */ + private $order_bys; + /** + * The row count of the start row. The first row is counted as row 0. + * + * Generated from protobuf field int64 offset = 3; + */ + protected $offset = 0; + /** + * The number of unique combinations of dimension values to return in this + * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for + * single pivot requests. + * The product of the `limit` for each `pivot` in a `RunPivotReportRequest` + * must not exceed 250,000. For example, a two pivot request with `limit: + * 1000` in each pivot will fail because the product is `1,000,000`. + * + * Generated from protobuf field int64 limit = 4; + */ + protected $limit = 0; + /** + * Aggregate the metrics by dimensions in this pivot using the specified + * metric_aggregations. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; + */ + private $metric_aggregations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $field_names + * Dimension names for visible columns in the report response. Including + * "dateRange" produces a date range column; for each row in the response, + * dimension values in the date range column will indicate the corresponding + * date range from the request. + * @type array<\Google\Analytics\Data\V1beta\OrderBy>|\Google\Protobuf\Internal\RepeatedField $order_bys + * Specifies how dimensions are ordered in the pivot. In the first Pivot, the + * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent + * Pivots, the OrderBys determine only PivotDimensionHeader ordering. + * Dimensions specified in these OrderBys must be a subset of + * Pivot.field_names. + * @type int|string $offset + * The row count of the start row. The first row is counted as row 0. + * @type int|string $limit + * The number of unique combinations of dimension values to return in this + * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for + * single pivot requests. + * The product of the `limit` for each `pivot` in a `RunPivotReportRequest` + * must not exceed 250,000. For example, a two pivot request with `limit: + * 1000` in each pivot will fail because the product is `1,000,000`. + * @type array|\Google\Protobuf\Internal\RepeatedField $metric_aggregations + * Aggregate the metrics by dimensions in this pivot using the specified + * metric_aggregations. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * Dimension names for visible columns in the report response. Including + * "dateRange" produces a date range column; for each row in the response, + * dimension values in the date range column will indicate the corresponding + * date range from the request. + * + * Generated from protobuf field repeated string field_names = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getFieldNames() + { + return $this->field_names; + } + + /** + * Dimension names for visible columns in the report response. Including + * "dateRange" produces a date range column; for each row in the response, + * dimension values in the date range column will indicate the corresponding + * date range from the request. + * + * Generated from protobuf field repeated string field_names = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setFieldNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->field_names = $arr; + + return $this; + } + + /** + * Specifies how dimensions are ordered in the pivot. In the first Pivot, the + * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent + * Pivots, the OrderBys determine only PivotDimensionHeader ordering. + * Dimensions specified in these OrderBys must be a subset of + * Pivot.field_names. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOrderBys() + { + return $this->order_bys; + } + + /** + * Specifies how dimensions are ordered in the pivot. In the first Pivot, the + * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent + * Pivots, the OrderBys determine only PivotDimensionHeader ordering. + * Dimensions specified in these OrderBys must be a subset of + * Pivot.field_names. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; + * @param array<\Google\Analytics\Data\V1beta\OrderBy>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOrderBys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\OrderBy::class); + $this->order_bys = $arr; + + return $this; + } + + /** + * The row count of the start row. The first row is counted as row 0. + * + * Generated from protobuf field int64 offset = 3; + * @return int|string + */ + public function getOffset() + { + return $this->offset; + } + + /** + * The row count of the start row. The first row is counted as row 0. + * + * Generated from protobuf field int64 offset = 3; + * @param int|string $var + * @return $this + */ + public function setOffset($var) + { + GPBUtil::checkInt64($var); + $this->offset = $var; + + return $this; + } + + /** + * The number of unique combinations of dimension values to return in this + * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for + * single pivot requests. + * The product of the `limit` for each `pivot` in a `RunPivotReportRequest` + * must not exceed 250,000. For example, a two pivot request with `limit: + * 1000` in each pivot will fail because the product is `1,000,000`. + * + * Generated from protobuf field int64 limit = 4; + * @return int|string + */ + public function getLimit() + { + return $this->limit; + } + + /** + * The number of unique combinations of dimension values to return in this + * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for + * single pivot requests. + * The product of the `limit` for each `pivot` in a `RunPivotReportRequest` + * must not exceed 250,000. For example, a two pivot request with `limit: + * 1000` in each pivot will fail because the product is `1,000,000`. + * + * Generated from protobuf field int64 limit = 4; + * @param int|string $var + * @return $this + */ + public function setLimit($var) + { + GPBUtil::checkInt64($var); + $this->limit = $var; + + return $this; + } + + /** + * Aggregate the metrics by dimensions in this pivot using the specified + * metric_aggregations. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetricAggregations() + { + return $this->metric_aggregations; + } + + /** + * Aggregate the metrics by dimensions in this pivot using the specified + * metric_aggregations. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetricAggregations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Data\V1beta\MetricAggregation::class); + $this->metric_aggregations = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotDimensionHeader.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotDimensionHeader.php new file mode 100644 index 00000000000..a96c75982ac --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotDimensionHeader.php @@ -0,0 +1,67 @@ +google.analytics.data.v1beta.PivotDimensionHeader + */ +class PivotDimensionHeader extends \Google\Protobuf\Internal\Message +{ + /** + * Values of multiple dimensions in a pivot. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; + */ + private $dimension_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Data\V1beta\DimensionValue>|\Google\Protobuf\Internal\RepeatedField $dimension_values + * Values of multiple dimensions in a pivot. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * Values of multiple dimensions in a pivot. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensionValues() + { + return $this->dimension_values; + } + + /** + * Values of multiple dimensions in a pivot. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; + * @param array<\Google\Analytics\Data\V1beta\DimensionValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensionValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionValue::class); + $this->dimension_values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotHeader.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotHeader.php new file mode 100644 index 00000000000..e53d39b9c1f --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotHeader.php @@ -0,0 +1,113 @@ +google.analytics.data.v1beta.PivotHeader + */ +class PivotHeader extends \Google\Protobuf\Internal\Message +{ + /** + * The size is the same as the cardinality of the corresponding dimension + * combinations. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; + */ + private $pivot_dimension_headers; + /** + * The cardinality of the pivot. The total number of rows for this pivot's + * fields regardless of how the parameters `offset` and `limit` are specified + * in the request. + * + * Generated from protobuf field int32 row_count = 2; + */ + protected $row_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Data\V1beta\PivotDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $pivot_dimension_headers + * The size is the same as the cardinality of the corresponding dimension + * combinations. + * @type int $row_count + * The cardinality of the pivot. The total number of rows for this pivot's + * fields regardless of how the parameters `offset` and `limit` are specified + * in the request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * The size is the same as the cardinality of the corresponding dimension + * combinations. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPivotDimensionHeaders() + { + return $this->pivot_dimension_headers; + } + + /** + * The size is the same as the cardinality of the corresponding dimension + * combinations. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; + * @param array<\Google\Analytics\Data\V1beta\PivotDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPivotDimensionHeaders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\PivotDimensionHeader::class); + $this->pivot_dimension_headers = $arr; + + return $this; + } + + /** + * The cardinality of the pivot. The total number of rows for this pivot's + * fields regardless of how the parameters `offset` and `limit` are specified + * in the request. + * + * Generated from protobuf field int32 row_count = 2; + * @return int + */ + public function getRowCount() + { + return $this->row_count; + } + + /** + * The cardinality of the pivot. The total number of rows for this pivot's + * fields regardless of how the parameters `offset` and `limit` are specified + * in the request. + * + * Generated from protobuf field int32 row_count = 2; + * @param int $var + * @return $this + */ + public function setRowCount($var) + { + GPBUtil::checkInt32($var); + $this->row_count = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PropertyQuota.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PropertyQuota.php new file mode 100644 index 00000000000..689ca28e00d --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PropertyQuota.php @@ -0,0 +1,363 @@ +google.analytics.data.v1beta.PropertyQuota + */ +class PropertyQuota extends \Google\Protobuf\Internal\Message +{ + /** + * Standard Analytics Properties can use up to 200,000 tokens per day; + * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests + * consume fewer than 10 tokens. + * + * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; + */ + protected $tokens_per_day = null; + /** + * Standard Analytics Properties can use up to 40,000 tokens per hour; + * Analytics 360 Properties can use 400,000 tokens per hour. An API request + * consumes a single number of tokens, and that number is deducted from all of + * the hourly, daily, and per project hourly quotas. + * + * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; + */ + protected $tokens_per_hour = null; + /** + * Standard Analytics Properties can send up to 10 concurrent requests; + * Analytics 360 Properties can use up to 50 concurrent requests. + * + * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; + */ + protected $concurrent_requests = null; + /** + * Standard Analytics Properties and cloud project pairs can have up to 10 + * server errors per hour; Analytics 360 Properties and cloud project pairs + * can have up to 50 server errors per hour. + * + * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; + */ + protected $server_errors_per_project_per_hour = null; + /** + * Analytics Properties can send up to 120 requests with potentially + * thresholded dimensions per hour. In a batch request, each report request + * is individually counted for this quota if the request contains potentially + * thresholded dimensions. + * + * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; + */ + protected $potentially_thresholded_requests_per_hour = null; + /** + * Analytics Properties can use up to 35% of their tokens per project per + * hour. This amounts to standard Analytics Properties can use up to 14,000 + * tokens per project per hour, and Analytics 360 Properties can use 140,000 + * tokens per project per hour. An API request consumes a single number of + * tokens, and that number is deducted from all of the hourly, daily, and per + * project hourly quotas. + * + * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; + */ + protected $tokens_per_project_per_hour = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Analytics\Data\V1beta\QuotaStatus $tokens_per_day + * Standard Analytics Properties can use up to 200,000 tokens per day; + * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests + * consume fewer than 10 tokens. + * @type \Google\Analytics\Data\V1beta\QuotaStatus $tokens_per_hour + * Standard Analytics Properties can use up to 40,000 tokens per hour; + * Analytics 360 Properties can use 400,000 tokens per hour. An API request + * consumes a single number of tokens, and that number is deducted from all of + * the hourly, daily, and per project hourly quotas. + * @type \Google\Analytics\Data\V1beta\QuotaStatus $concurrent_requests + * Standard Analytics Properties can send up to 10 concurrent requests; + * Analytics 360 Properties can use up to 50 concurrent requests. + * @type \Google\Analytics\Data\V1beta\QuotaStatus $server_errors_per_project_per_hour + * Standard Analytics Properties and cloud project pairs can have up to 10 + * server errors per hour; Analytics 360 Properties and cloud project pairs + * can have up to 50 server errors per hour. + * @type \Google\Analytics\Data\V1beta\QuotaStatus $potentially_thresholded_requests_per_hour + * Analytics Properties can send up to 120 requests with potentially + * thresholded dimensions per hour. In a batch request, each report request + * is individually counted for this quota if the request contains potentially + * thresholded dimensions. + * @type \Google\Analytics\Data\V1beta\QuotaStatus $tokens_per_project_per_hour + * Analytics Properties can use up to 35% of their tokens per project per + * hour. This amounts to standard Analytics Properties can use up to 14,000 + * tokens per project per hour, and Analytics 360 Properties can use 140,000 + * tokens per project per hour. An API request consumes a single number of + * tokens, and that number is deducted from all of the hourly, daily, and per + * project hourly quotas. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * Standard Analytics Properties can use up to 200,000 tokens per day; + * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests + * consume fewer than 10 tokens. + * + * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; + * @return \Google\Analytics\Data\V1beta\QuotaStatus|null + */ + public function getTokensPerDay() + { + return $this->tokens_per_day; + } + + public function hasTokensPerDay() + { + return isset($this->tokens_per_day); + } + + public function clearTokensPerDay() + { + unset($this->tokens_per_day); + } + + /** + * Standard Analytics Properties can use up to 200,000 tokens per day; + * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests + * consume fewer than 10 tokens. + * + * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; + * @param \Google\Analytics\Data\V1beta\QuotaStatus $var + * @return $this + */ + public function setTokensPerDay($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\QuotaStatus::class); + $this->tokens_per_day = $var; + + return $this; + } + + /** + * Standard Analytics Properties can use up to 40,000 tokens per hour; + * Analytics 360 Properties can use 400,000 tokens per hour. An API request + * consumes a single number of tokens, and that number is deducted from all of + * the hourly, daily, and per project hourly quotas. + * + * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; + * @return \Google\Analytics\Data\V1beta\QuotaStatus|null + */ + public function getTokensPerHour() + { + return $this->tokens_per_hour; + } + + public function hasTokensPerHour() + { + return isset($this->tokens_per_hour); + } + + public function clearTokensPerHour() + { + unset($this->tokens_per_hour); + } + + /** + * Standard Analytics Properties can use up to 40,000 tokens per hour; + * Analytics 360 Properties can use 400,000 tokens per hour. An API request + * consumes a single number of tokens, and that number is deducted from all of + * the hourly, daily, and per project hourly quotas. + * + * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; + * @param \Google\Analytics\Data\V1beta\QuotaStatus $var + * @return $this + */ + public function setTokensPerHour($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\QuotaStatus::class); + $this->tokens_per_hour = $var; + + return $this; + } + + /** + * Standard Analytics Properties can send up to 10 concurrent requests; + * Analytics 360 Properties can use up to 50 concurrent requests. + * + * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; + * @return \Google\Analytics\Data\V1beta\QuotaStatus|null + */ + public function getConcurrentRequests() + { + return $this->concurrent_requests; + } + + public function hasConcurrentRequests() + { + return isset($this->concurrent_requests); + } + + public function clearConcurrentRequests() + { + unset($this->concurrent_requests); + } + + /** + * Standard Analytics Properties can send up to 10 concurrent requests; + * Analytics 360 Properties can use up to 50 concurrent requests. + * + * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; + * @param \Google\Analytics\Data\V1beta\QuotaStatus $var + * @return $this + */ + public function setConcurrentRequests($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\QuotaStatus::class); + $this->concurrent_requests = $var; + + return $this; + } + + /** + * Standard Analytics Properties and cloud project pairs can have up to 10 + * server errors per hour; Analytics 360 Properties and cloud project pairs + * can have up to 50 server errors per hour. + * + * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; + * @return \Google\Analytics\Data\V1beta\QuotaStatus|null + */ + public function getServerErrorsPerProjectPerHour() + { + return $this->server_errors_per_project_per_hour; + } + + public function hasServerErrorsPerProjectPerHour() + { + return isset($this->server_errors_per_project_per_hour); + } + + public function clearServerErrorsPerProjectPerHour() + { + unset($this->server_errors_per_project_per_hour); + } + + /** + * Standard Analytics Properties and cloud project pairs can have up to 10 + * server errors per hour; Analytics 360 Properties and cloud project pairs + * can have up to 50 server errors per hour. + * + * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; + * @param \Google\Analytics\Data\V1beta\QuotaStatus $var + * @return $this + */ + public function setServerErrorsPerProjectPerHour($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\QuotaStatus::class); + $this->server_errors_per_project_per_hour = $var; + + return $this; + } + + /** + * Analytics Properties can send up to 120 requests with potentially + * thresholded dimensions per hour. In a batch request, each report request + * is individually counted for this quota if the request contains potentially + * thresholded dimensions. + * + * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; + * @return \Google\Analytics\Data\V1beta\QuotaStatus|null + */ + public function getPotentiallyThresholdedRequestsPerHour() + { + return $this->potentially_thresholded_requests_per_hour; + } + + public function hasPotentiallyThresholdedRequestsPerHour() + { + return isset($this->potentially_thresholded_requests_per_hour); + } + + public function clearPotentiallyThresholdedRequestsPerHour() + { + unset($this->potentially_thresholded_requests_per_hour); + } + + /** + * Analytics Properties can send up to 120 requests with potentially + * thresholded dimensions per hour. In a batch request, each report request + * is individually counted for this quota if the request contains potentially + * thresholded dimensions. + * + * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; + * @param \Google\Analytics\Data\V1beta\QuotaStatus $var + * @return $this + */ + public function setPotentiallyThresholdedRequestsPerHour($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\QuotaStatus::class); + $this->potentially_thresholded_requests_per_hour = $var; + + return $this; + } + + /** + * Analytics Properties can use up to 35% of their tokens per project per + * hour. This amounts to standard Analytics Properties can use up to 14,000 + * tokens per project per hour, and Analytics 360 Properties can use 140,000 + * tokens per project per hour. An API request consumes a single number of + * tokens, and that number is deducted from all of the hourly, daily, and per + * project hourly quotas. + * + * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; + * @return \Google\Analytics\Data\V1beta\QuotaStatus|null + */ + public function getTokensPerProjectPerHour() + { + return $this->tokens_per_project_per_hour; + } + + public function hasTokensPerProjectPerHour() + { + return isset($this->tokens_per_project_per_hour); + } + + public function clearTokensPerProjectPerHour() + { + unset($this->tokens_per_project_per_hour); + } + + /** + * Analytics Properties can use up to 35% of their tokens per project per + * hour. This amounts to standard Analytics Properties can use up to 14,000 + * tokens per project per hour, and Analytics 360 Properties can use 140,000 + * tokens per project per hour. An API request consumes a single number of + * tokens, and that number is deducted from all of the hourly, daily, and per + * project hourly quotas. + * + * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; + * @param \Google\Analytics\Data\V1beta\QuotaStatus $var + * @return $this + */ + public function setTokensPerProjectPerHour($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\QuotaStatus::class); + $this->tokens_per_project_per_hour = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/QuotaStatus.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/QuotaStatus.php new file mode 100644 index 00000000000..c7b8d36c1c4 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/QuotaStatus.php @@ -0,0 +1,101 @@ +google.analytics.data.v1beta.QuotaStatus + */ +class QuotaStatus extends \Google\Protobuf\Internal\Message +{ + /** + * Quota consumed by this request. + * + * Generated from protobuf field int32 consumed = 1; + */ + protected $consumed = 0; + /** + * Quota remaining after this request. + * + * Generated from protobuf field int32 remaining = 2; + */ + protected $remaining = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $consumed + * Quota consumed by this request. + * @type int $remaining + * Quota remaining after this request. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * Quota consumed by this request. + * + * Generated from protobuf field int32 consumed = 1; + * @return int + */ + public function getConsumed() + { + return $this->consumed; + } + + /** + * Quota consumed by this request. + * + * Generated from protobuf field int32 consumed = 1; + * @param int $var + * @return $this + */ + public function setConsumed($var) + { + GPBUtil::checkInt32($var); + $this->consumed = $var; + + return $this; + } + + /** + * Quota remaining after this request. + * + * Generated from protobuf field int32 remaining = 2; + * @return int + */ + public function getRemaining() + { + return $this->remaining; + } + + /** + * Quota remaining after this request. + * + * Generated from protobuf field int32 remaining = 2; + * @param int $var + * @return $this + */ + public function setRemaining($var) + { + GPBUtil::checkInt32($var); + $this->remaining = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData.php new file mode 100644 index 00000000000..79b329e9040 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData.php @@ -0,0 +1,407 @@ +google.analytics.data.v1beta.ResponseMetaData + */ +class ResponseMetaData extends \Google\Protobuf\Internal\Message +{ + /** + * If true, indicates some buckets of dimension combinations are rolled into + * "(other)" row. This can happen for high cardinality reports. + * The metadata parameter dataLossFromOtherRow is populated based on the + * aggregated data table used in the report. The parameter will be accurately + * populated regardless of the filters and limits in the report. + * For example, the (other) row could be dropped from the report because the + * request contains a filter on sessionSource = google. This parameter will + * still be populated if data loss from other row was present in the input + * aggregate data used to generate this report. + * To learn more, see [About the (other) row and data + * sampling](https://support.google.com/analytics/answer/13208658#reports). + * + * Generated from protobuf field bool data_loss_from_other_row = 3; + */ + protected $data_loss_from_other_row = false; + /** + * Describes the schema restrictions actively enforced in creating this + * report. To learn more, see [Access and data-restriction + * management](https://support.google.com/analytics/answer/10851388). + * + * Generated from protobuf field optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; + */ + protected $schema_restriction_response = null; + /** + * The currency code used in this report. Intended to be used in formatting + * currency metrics like `purchaseRevenue` for visualization. If currency_code + * was specified in the request, this response parameter will echo the request + * parameter; otherwise, this response parameter is the property's current + * currency_code. + * Currency codes are string encodings of currency types from the ISO 4217 + * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD", + * "EUR", "JPY". To learn more, see + * https://support.google.com/analytics/answer/9796179. + * + * Generated from protobuf field optional string currency_code = 5; + */ + protected $currency_code = null; + /** + * The property's current timezone. Intended to be used to interpret + * time-based dimensions like `hour` and `minute`. Formatted as strings from + * the IANA Time Zone database (https://www.iana.org/time-zones); for example + * "America/New_York" or "Asia/Tokyo". + * + * Generated from protobuf field optional string time_zone = 6; + */ + protected $time_zone = null; + /** + * If empty reason is specified, the report is empty for this reason. + * + * Generated from protobuf field optional string empty_reason = 7; + */ + protected $empty_reason = null; + /** + * If `subjectToThresholding` is true, this report is subject to thresholding + * and only returns data that meets the minimum aggregation thresholds. It is + * possible for a request to be subject to thresholding thresholding and no + * data is absent from the report, and this happens when all data is above the + * thresholds. To learn more, see [Data + * thresholds](https://support.google.com/analytics/answer/9383630) and [About + * Demographics and + * Interests](https://support.google.com/analytics/answer/2799357). + * + * Generated from protobuf field optional bool subject_to_thresholding = 8; + */ + protected $subject_to_thresholding = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type bool $data_loss_from_other_row + * If true, indicates some buckets of dimension combinations are rolled into + * "(other)" row. This can happen for high cardinality reports. + * The metadata parameter dataLossFromOtherRow is populated based on the + * aggregated data table used in the report. The parameter will be accurately + * populated regardless of the filters and limits in the report. + * For example, the (other) row could be dropped from the report because the + * request contains a filter on sessionSource = google. This parameter will + * still be populated if data loss from other row was present in the input + * aggregate data used to generate this report. + * To learn more, see [About the (other) row and data + * sampling](https://support.google.com/analytics/answer/13208658#reports). + * @type \Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse $schema_restriction_response + * Describes the schema restrictions actively enforced in creating this + * report. To learn more, see [Access and data-restriction + * management](https://support.google.com/analytics/answer/10851388). + * @type string $currency_code + * The currency code used in this report. Intended to be used in formatting + * currency metrics like `purchaseRevenue` for visualization. If currency_code + * was specified in the request, this response parameter will echo the request + * parameter; otherwise, this response parameter is the property's current + * currency_code. + * Currency codes are string encodings of currency types from the ISO 4217 + * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD", + * "EUR", "JPY". To learn more, see + * https://support.google.com/analytics/answer/9796179. + * @type string $time_zone + * The property's current timezone. Intended to be used to interpret + * time-based dimensions like `hour` and `minute`. Formatted as strings from + * the IANA Time Zone database (https://www.iana.org/time-zones); for example + * "America/New_York" or "Asia/Tokyo". + * @type string $empty_reason + * If empty reason is specified, the report is empty for this reason. + * @type bool $subject_to_thresholding + * If `subjectToThresholding` is true, this report is subject to thresholding + * and only returns data that meets the minimum aggregation thresholds. It is + * possible for a request to be subject to thresholding thresholding and no + * data is absent from the report, and this happens when all data is above the + * thresholds. To learn more, see [Data + * thresholds](https://support.google.com/analytics/answer/9383630) and [About + * Demographics and + * Interests](https://support.google.com/analytics/answer/2799357). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * If true, indicates some buckets of dimension combinations are rolled into + * "(other)" row. This can happen for high cardinality reports. + * The metadata parameter dataLossFromOtherRow is populated based on the + * aggregated data table used in the report. The parameter will be accurately + * populated regardless of the filters and limits in the report. + * For example, the (other) row could be dropped from the report because the + * request contains a filter on sessionSource = google. This parameter will + * still be populated if data loss from other row was present in the input + * aggregate data used to generate this report. + * To learn more, see [About the (other) row and data + * sampling](https://support.google.com/analytics/answer/13208658#reports). + * + * Generated from protobuf field bool data_loss_from_other_row = 3; + * @return bool + */ + public function getDataLossFromOtherRow() + { + return $this->data_loss_from_other_row; + } + + /** + * If true, indicates some buckets of dimension combinations are rolled into + * "(other)" row. This can happen for high cardinality reports. + * The metadata parameter dataLossFromOtherRow is populated based on the + * aggregated data table used in the report. The parameter will be accurately + * populated regardless of the filters and limits in the report. + * For example, the (other) row could be dropped from the report because the + * request contains a filter on sessionSource = google. This parameter will + * still be populated if data loss from other row was present in the input + * aggregate data used to generate this report. + * To learn more, see [About the (other) row and data + * sampling](https://support.google.com/analytics/answer/13208658#reports). + * + * Generated from protobuf field bool data_loss_from_other_row = 3; + * @param bool $var + * @return $this + */ + public function setDataLossFromOtherRow($var) + { + GPBUtil::checkBool($var); + $this->data_loss_from_other_row = $var; + + return $this; + } + + /** + * Describes the schema restrictions actively enforced in creating this + * report. To learn more, see [Access and data-restriction + * management](https://support.google.com/analytics/answer/10851388). + * + * Generated from protobuf field optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; + * @return \Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse|null + */ + public function getSchemaRestrictionResponse() + { + return $this->schema_restriction_response; + } + + public function hasSchemaRestrictionResponse() + { + return isset($this->schema_restriction_response); + } + + public function clearSchemaRestrictionResponse() + { + unset($this->schema_restriction_response); + } + + /** + * Describes the schema restrictions actively enforced in creating this + * report. To learn more, see [Access and data-restriction + * management](https://support.google.com/analytics/answer/10851388). + * + * Generated from protobuf field optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; + * @param \Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse $var + * @return $this + */ + public function setSchemaRestrictionResponse($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse::class); + $this->schema_restriction_response = $var; + + return $this; + } + + /** + * The currency code used in this report. Intended to be used in formatting + * currency metrics like `purchaseRevenue` for visualization. If currency_code + * was specified in the request, this response parameter will echo the request + * parameter; otherwise, this response parameter is the property's current + * currency_code. + * Currency codes are string encodings of currency types from the ISO 4217 + * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD", + * "EUR", "JPY". To learn more, see + * https://support.google.com/analytics/answer/9796179. + * + * Generated from protobuf field optional string currency_code = 5; + * @return string + */ + public function getCurrencyCode() + { + return isset($this->currency_code) ? $this->currency_code : ''; + } + + public function hasCurrencyCode() + { + return isset($this->currency_code); + } + + public function clearCurrencyCode() + { + unset($this->currency_code); + } + + /** + * The currency code used in this report. Intended to be used in formatting + * currency metrics like `purchaseRevenue` for visualization. If currency_code + * was specified in the request, this response parameter will echo the request + * parameter; otherwise, this response parameter is the property's current + * currency_code. + * Currency codes are string encodings of currency types from the ISO 4217 + * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD", + * "EUR", "JPY". To learn more, see + * https://support.google.com/analytics/answer/9796179. + * + * Generated from protobuf field optional string currency_code = 5; + * @param string $var + * @return $this + */ + public function setCurrencyCode($var) + { + GPBUtil::checkString($var, True); + $this->currency_code = $var; + + return $this; + } + + /** + * The property's current timezone. Intended to be used to interpret + * time-based dimensions like `hour` and `minute`. Formatted as strings from + * the IANA Time Zone database (https://www.iana.org/time-zones); for example + * "America/New_York" or "Asia/Tokyo". + * + * Generated from protobuf field optional string time_zone = 6; + * @return string + */ + public function getTimeZone() + { + return isset($this->time_zone) ? $this->time_zone : ''; + } + + public function hasTimeZone() + { + return isset($this->time_zone); + } + + public function clearTimeZone() + { + unset($this->time_zone); + } + + /** + * The property's current timezone. Intended to be used to interpret + * time-based dimensions like `hour` and `minute`. Formatted as strings from + * the IANA Time Zone database (https://www.iana.org/time-zones); for example + * "America/New_York" or "Asia/Tokyo". + * + * Generated from protobuf field optional string time_zone = 6; + * @param string $var + * @return $this + */ + public function setTimeZone($var) + { + GPBUtil::checkString($var, True); + $this->time_zone = $var; + + return $this; + } + + /** + * If empty reason is specified, the report is empty for this reason. + * + * Generated from protobuf field optional string empty_reason = 7; + * @return string + */ + public function getEmptyReason() + { + return isset($this->empty_reason) ? $this->empty_reason : ''; + } + + public function hasEmptyReason() + { + return isset($this->empty_reason); + } + + public function clearEmptyReason() + { + unset($this->empty_reason); + } + + /** + * If empty reason is specified, the report is empty for this reason. + * + * Generated from protobuf field optional string empty_reason = 7; + * @param string $var + * @return $this + */ + public function setEmptyReason($var) + { + GPBUtil::checkString($var, True); + $this->empty_reason = $var; + + return $this; + } + + /** + * If `subjectToThresholding` is true, this report is subject to thresholding + * and only returns data that meets the minimum aggregation thresholds. It is + * possible for a request to be subject to thresholding thresholding and no + * data is absent from the report, and this happens when all data is above the + * thresholds. To learn more, see [Data + * thresholds](https://support.google.com/analytics/answer/9383630) and [About + * Demographics and + * Interests](https://support.google.com/analytics/answer/2799357). + * + * Generated from protobuf field optional bool subject_to_thresholding = 8; + * @return bool + */ + public function getSubjectToThresholding() + { + return isset($this->subject_to_thresholding) ? $this->subject_to_thresholding : false; + } + + public function hasSubjectToThresholding() + { + return isset($this->subject_to_thresholding); + } + + public function clearSubjectToThresholding() + { + unset($this->subject_to_thresholding); + } + + /** + * If `subjectToThresholding` is true, this report is subject to thresholding + * and only returns data that meets the minimum aggregation thresholds. It is + * possible for a request to be subject to thresholding thresholding and no + * data is absent from the report, and this happens when all data is above the + * thresholds. To learn more, see [Data + * thresholds](https://support.google.com/analytics/answer/9383630) and [About + * Demographics and + * Interests](https://support.google.com/analytics/answer/2799357). + * + * Generated from protobuf field optional bool subject_to_thresholding = 8; + * @param bool $var + * @return $this + */ + public function setSubjectToThresholding($var) + { + GPBUtil::checkBool($var); + $this->subject_to_thresholding = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse.php new file mode 100644 index 00000000000..38739908def --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse.php @@ -0,0 +1,84 @@ +google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse + */ +class SchemaRestrictionResponse extends \Google\Protobuf\Internal\Message +{ + /** + * All restrictions actively enforced in creating the report. For example, + * `purchaseRevenue` always has the restriction type `REVENUE_DATA`. + * However, this active response restriction is only populated if the user's + * custom role disallows access to `REVENUE_DATA`. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; + */ + private $active_metric_restrictions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse\ActiveMetricRestriction>|\Google\Protobuf\Internal\RepeatedField $active_metric_restrictions + * All restrictions actively enforced in creating the report. For example, + * `purchaseRevenue` always has the restriction type `REVENUE_DATA`. + * However, this active response restriction is only populated if the user's + * custom role disallows access to `REVENUE_DATA`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * All restrictions actively enforced in creating the report. For example, + * `purchaseRevenue` always has the restriction type `REVENUE_DATA`. + * However, this active response restriction is only populated if the user's + * custom role disallows access to `REVENUE_DATA`. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getActiveMetricRestrictions() + { + return $this->active_metric_restrictions; + } + + /** + * All restrictions actively enforced in creating the report. For example, + * `purchaseRevenue` always has the restriction type `REVENUE_DATA`. + * However, this active response restriction is only populated if the user's + * custom role disallows access to `REVENUE_DATA`. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; + * @param array<\Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse\ActiveMetricRestriction>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setActiveMetricRestrictions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse\ActiveMetricRestriction::class); + $this->active_metric_restrictions = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(SchemaRestrictionResponse::class, \Google\Analytics\Data\V1beta\ResponseMetaData_SchemaRestrictionResponse::class); + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse/ActiveMetricRestriction.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse/ActiveMetricRestriction.php new file mode 100644 index 00000000000..246f6d81d0c --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse/ActiveMetricRestriction.php @@ -0,0 +1,114 @@ +google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction + */ +class ActiveMetricRestriction extends \Google\Protobuf\Internal\Message +{ + /** + * The name of the restricted metric. + * + * Generated from protobuf field optional string metric_name = 1; + */ + protected $metric_name = null; + /** + * The reason for this metric's restriction. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; + */ + private $restricted_metric_types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $metric_name + * The name of the restricted metric. + * @type array|\Google\Protobuf\Internal\RepeatedField $restricted_metric_types + * The reason for this metric's restriction. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * The name of the restricted metric. + * + * Generated from protobuf field optional string metric_name = 1; + * @return string + */ + public function getMetricName() + { + return isset($this->metric_name) ? $this->metric_name : ''; + } + + public function hasMetricName() + { + return isset($this->metric_name); + } + + public function clearMetricName() + { + unset($this->metric_name); + } + + /** + * The name of the restricted metric. + * + * Generated from protobuf field optional string metric_name = 1; + * @param string $var + * @return $this + */ + public function setMetricName($var) + { + GPBUtil::checkString($var, True); + $this->metric_name = $var; + + return $this; + } + + /** + * The reason for this metric's restriction. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRestrictedMetricTypes() + { + return $this->restricted_metric_types; + } + + /** + * The reason for this metric's restriction. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRestrictedMetricTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Data\V1beta\RestrictedMetricType::class); + $this->restricted_metric_types = $arr; + + return $this; + } + +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ActiveMetricRestriction::class, \Google\Analytics\Data\V1beta\ResponseMetaData_SchemaRestrictionResponse_ActiveMetricRestriction::class); + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RestrictedMetricType.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RestrictedMetricType.php new file mode 100644 index 00000000000..4d77bccc258 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RestrictedMetricType.php @@ -0,0 +1,62 @@ +google.analytics.data.v1beta.RestrictedMetricType + */ +class RestrictedMetricType +{ + /** + * Unspecified type. + * + * Generated from protobuf enum RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; + */ + const RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; + /** + * Cost metrics such as `adCost`. + * + * Generated from protobuf enum COST_DATA = 1; + */ + const COST_DATA = 1; + /** + * Revenue metrics such as `purchaseRevenue`. + * + * Generated from protobuf enum REVENUE_DATA = 2; + */ + const REVENUE_DATA = 2; + + private static $valueToName = [ + self::RESTRICTED_METRIC_TYPE_UNSPECIFIED => 'RESTRICTED_METRIC_TYPE_UNSPECIFIED', + self::COST_DATA => 'COST_DATA', + self::REVENUE_DATA => 'REVENUE_DATA', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Row.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Row.php new file mode 100644 index 00000000000..fb28b01a352 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Row.php @@ -0,0 +1,138 @@ +google.analytics.data.v1beta.Row + */ +class Row extends \Google\Protobuf\Internal\Message +{ + /** + * List of requested dimension values. In a PivotReport, dimension_values + * are only listed for dimensions included in a pivot. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; + */ + private $dimension_values; + /** + * List of requested visible metric values. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; + */ + private $metric_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Data\V1beta\DimensionValue>|\Google\Protobuf\Internal\RepeatedField $dimension_values + * List of requested dimension values. In a PivotReport, dimension_values + * are only listed for dimensions included in a pivot. + * @type array<\Google\Analytics\Data\V1beta\MetricValue>|\Google\Protobuf\Internal\RepeatedField $metric_values + * List of requested visible metric values. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); + parent::__construct($data); + } + + /** + * List of requested dimension values. In a PivotReport, dimension_values + * are only listed for dimensions included in a pivot. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensionValues() + { + return $this->dimension_values; + } + + /** + * List of requested dimension values. In a PivotReport, dimension_values + * are only listed for dimensions included in a pivot. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; + * @param array<\Google\Analytics\Data\V1beta\DimensionValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensionValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionValue::class); + $this->dimension_values = $arr; + + return $this; + } + + /** + * List of requested visible metric values. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetricValues() + { + return $this->metric_values; + } + + /** + * List of requested visible metric values. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; + * @param array<\Google\Analytics\Data\V1beta\MetricValue>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetricValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricValue::class); + $this->metric_values = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportRequest.php new file mode 100644 index 00000000000..e08a64ae635 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportRequest.php @@ -0,0 +1,553 @@ +google.analytics.data.v1beta.RunPivotReportRequest + */ +class RunPivotReportRequest extends \Google\Protobuf\Internal\Message +{ + /** + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * Within a batch request, this property should either be unspecified or + * consistent with the batch-level property. + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + */ + protected $property = ''; + /** + * The dimensions requested. All defined dimensions must be used by one of the + * following: dimension_expression, dimension_filter, pivots, order_bys. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; + */ + private $dimensions; + /** + * The metrics requested, at least one metric needs to be specified. All + * defined metrics must be used by one of the following: metric_expression, + * metric_filter, order_bys. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; + */ + private $metrics; + /** + * The date range to retrieve event data for the report. If multiple date + * ranges are specified, event data from each date range is used in the + * report. A special dimension with field name "dateRange" can be included in + * a Pivot's field names; if included, the report compares between date + * ranges. In a cohort request, this `dateRanges` must be unspecified. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; + */ + private $date_ranges; + /** + * Describes the visual format of the report's dimensions in columns or rows. + * The union of the fieldNames (dimension names) in all pivots must be a + * subset of dimension names defined in Dimensions. No two pivots can share a + * dimension. A dimension is only visible if it appears in a pivot. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Pivot pivots = 5; + */ + private $pivots; + /** + * The filter clause of dimensions. Dimensions must be requested to be used in + * this filter. Metrics cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; + */ + protected $dimension_filter = null; + /** + * The filter clause of metrics. Applied at post aggregation phase, similar to + * SQL having-clause. Metrics must be requested to be used in this filter. + * Dimensions cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 7; + */ + protected $metric_filter = null; + /** + * A currency code in ISO4217 format, such as "AED", "USD", "JPY". + * If the field is empty, the report uses the property's default currency. + * + * Generated from protobuf field string currency_code = 8; + */ + protected $currency_code = ''; + /** + * Cohort group associated with this request. If there is a cohort group + * in the request the 'cohort' dimension must be present. + * + * Generated from protobuf field .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; + */ + protected $cohort_spec = null; + /** + * If false or unspecified, each row with all metrics equal to 0 will not be + * returned. If true, these rows will be returned if they are not separately + * removed by a filter. + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. + * + * Generated from protobuf field bool keep_empty_rows = 10; + */ + protected $keep_empty_rows = false; + /** + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [PropertyQuota](#PropertyQuota). + * + * Generated from protobuf field bool return_property_quota = 11; + */ + protected $return_property_quota = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $property + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * Within a batch request, this property should either be unspecified or + * consistent with the batch-level property. + * Example: properties/1234 + * @type array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $dimensions + * The dimensions requested. All defined dimensions must be used by one of the + * following: dimension_expression, dimension_filter, pivots, order_bys. + * @type array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $metrics + * The metrics requested, at least one metric needs to be specified. All + * defined metrics must be used by one of the following: metric_expression, + * metric_filter, order_bys. + * @type array<\Google\Analytics\Data\V1beta\DateRange>|\Google\Protobuf\Internal\RepeatedField $date_ranges + * The date range to retrieve event data for the report. If multiple date + * ranges are specified, event data from each date range is used in the + * report. A special dimension with field name "dateRange" can be included in + * a Pivot's field names; if included, the report compares between date + * ranges. In a cohort request, this `dateRanges` must be unspecified. + * @type array<\Google\Analytics\Data\V1beta\Pivot>|\Google\Protobuf\Internal\RepeatedField $pivots + * Describes the visual format of the report's dimensions in columns or rows. + * The union of the fieldNames (dimension names) in all pivots must be a + * subset of dimension names defined in Dimensions. No two pivots can share a + * dimension. A dimension is only visible if it appears in a pivot. + * @type \Google\Analytics\Data\V1beta\FilterExpression $dimension_filter + * The filter clause of dimensions. Dimensions must be requested to be used in + * this filter. Metrics cannot be used in this filter. + * @type \Google\Analytics\Data\V1beta\FilterExpression $metric_filter + * The filter clause of metrics. Applied at post aggregation phase, similar to + * SQL having-clause. Metrics must be requested to be used in this filter. + * Dimensions cannot be used in this filter. + * @type string $currency_code + * A currency code in ISO4217 format, such as "AED", "USD", "JPY". + * If the field is empty, the report uses the property's default currency. + * @type \Google\Analytics\Data\V1beta\CohortSpec $cohort_spec + * Cohort group associated with this request. If there is a cohort group + * in the request the 'cohort' dimension must be present. + * @type bool $keep_empty_rows + * If false or unspecified, each row with all metrics equal to 0 will not be + * returned. If true, these rows will be returned if they are not separately + * removed by a filter. + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. + * @type bool $return_property_quota + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [PropertyQuota](#PropertyQuota). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); + parent::__construct($data); + } + + /** + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * Within a batch request, this property should either be unspecified or + * consistent with the batch-level property. + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + * @return string + */ + public function getProperty() + { + return $this->property; + } + + /** + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * Within a batch request, this property should either be unspecified or + * consistent with the batch-level property. + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + * @param string $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkString($var, True); + $this->property = $var; + + return $this; + } + + /** + * The dimensions requested. All defined dimensions must be used by one of the + * following: dimension_expression, dimension_filter, pivots, order_bys. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensions() + { + return $this->dimensions; + } + + /** + * The dimensions requested. All defined dimensions must be used by one of the + * following: dimension_expression, dimension_filter, pivots, order_bys. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; + * @param array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Dimension::class); + $this->dimensions = $arr; + + return $this; + } + + /** + * The metrics requested, at least one metric needs to be specified. All + * defined metrics must be used by one of the following: metric_expression, + * metric_filter, order_bys. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * The metrics requested, at least one metric needs to be specified. All + * defined metrics must be used by one of the following: metric_expression, + * metric_filter, order_bys. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; + * @param array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Metric::class); + $this->metrics = $arr; + + return $this; + } + + /** + * The date range to retrieve event data for the report. If multiple date + * ranges are specified, event data from each date range is used in the + * report. A special dimension with field name "dateRange" can be included in + * a Pivot's field names; if included, the report compares between date + * ranges. In a cohort request, this `dateRanges` must be unspecified. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDateRanges() + { + return $this->date_ranges; + } + + /** + * The date range to retrieve event data for the report. If multiple date + * ranges are specified, event data from each date range is used in the + * report. A special dimension with field name "dateRange" can be included in + * a Pivot's field names; if included, the report compares between date + * ranges. In a cohort request, this `dateRanges` must be unspecified. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; + * @param array<\Google\Analytics\Data\V1beta\DateRange>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDateRanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DateRange::class); + $this->date_ranges = $arr; + + return $this; + } + + /** + * Describes the visual format of the report's dimensions in columns or rows. + * The union of the fieldNames (dimension names) in all pivots must be a + * subset of dimension names defined in Dimensions. No two pivots can share a + * dimension. A dimension is only visible if it appears in a pivot. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Pivot pivots = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPivots() + { + return $this->pivots; + } + + /** + * Describes the visual format of the report's dimensions in columns or rows. + * The union of the fieldNames (dimension names) in all pivots must be a + * subset of dimension names defined in Dimensions. No two pivots can share a + * dimension. A dimension is only visible if it appears in a pivot. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Pivot pivots = 5; + * @param array<\Google\Analytics\Data\V1beta\Pivot>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPivots($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Pivot::class); + $this->pivots = $arr; + + return $this; + } + + /** + * The filter clause of dimensions. Dimensions must be requested to be used in + * this filter. Metrics cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; + * @return \Google\Analytics\Data\V1beta\FilterExpression|null + */ + public function getDimensionFilter() + { + return $this->dimension_filter; + } + + public function hasDimensionFilter() + { + return isset($this->dimension_filter); + } + + public function clearDimensionFilter() + { + unset($this->dimension_filter); + } + + /** + * The filter clause of dimensions. Dimensions must be requested to be used in + * this filter. Metrics cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; + * @param \Google\Analytics\Data\V1beta\FilterExpression $var + * @return $this + */ + public function setDimensionFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); + $this->dimension_filter = $var; + + return $this; + } + + /** + * The filter clause of metrics. Applied at post aggregation phase, similar to + * SQL having-clause. Metrics must be requested to be used in this filter. + * Dimensions cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 7; + * @return \Google\Analytics\Data\V1beta\FilterExpression|null + */ + public function getMetricFilter() + { + return $this->metric_filter; + } + + public function hasMetricFilter() + { + return isset($this->metric_filter); + } + + public function clearMetricFilter() + { + unset($this->metric_filter); + } + + /** + * The filter clause of metrics. Applied at post aggregation phase, similar to + * SQL having-clause. Metrics must be requested to be used in this filter. + * Dimensions cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 7; + * @param \Google\Analytics\Data\V1beta\FilterExpression $var + * @return $this + */ + public function setMetricFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); + $this->metric_filter = $var; + + return $this; + } + + /** + * A currency code in ISO4217 format, such as "AED", "USD", "JPY". + * If the field is empty, the report uses the property's default currency. + * + * Generated from protobuf field string currency_code = 8; + * @return string + */ + public function getCurrencyCode() + { + return $this->currency_code; + } + + /** + * A currency code in ISO4217 format, such as "AED", "USD", "JPY". + * If the field is empty, the report uses the property's default currency. + * + * Generated from protobuf field string currency_code = 8; + * @param string $var + * @return $this + */ + public function setCurrencyCode($var) + { + GPBUtil::checkString($var, True); + $this->currency_code = $var; + + return $this; + } + + /** + * Cohort group associated with this request. If there is a cohort group + * in the request the 'cohort' dimension must be present. + * + * Generated from protobuf field .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; + * @return \Google\Analytics\Data\V1beta\CohortSpec|null + */ + public function getCohortSpec() + { + return $this->cohort_spec; + } + + public function hasCohortSpec() + { + return isset($this->cohort_spec); + } + + public function clearCohortSpec() + { + unset($this->cohort_spec); + } + + /** + * Cohort group associated with this request. If there is a cohort group + * in the request the 'cohort' dimension must be present. + * + * Generated from protobuf field .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; + * @param \Google\Analytics\Data\V1beta\CohortSpec $var + * @return $this + */ + public function setCohortSpec($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\CohortSpec::class); + $this->cohort_spec = $var; + + return $this; + } + + /** + * If false or unspecified, each row with all metrics equal to 0 will not be + * returned. If true, these rows will be returned if they are not separately + * removed by a filter. + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. + * + * Generated from protobuf field bool keep_empty_rows = 10; + * @return bool + */ + public function getKeepEmptyRows() + { + return $this->keep_empty_rows; + } + + /** + * If false or unspecified, each row with all metrics equal to 0 will not be + * returned. If true, these rows will be returned if they are not separately + * removed by a filter. + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. + * + * Generated from protobuf field bool keep_empty_rows = 10; + * @param bool $var + * @return $this + */ + public function setKeepEmptyRows($var) + { + GPBUtil::checkBool($var); + $this->keep_empty_rows = $var; + + return $this; + } + + /** + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [PropertyQuota](#PropertyQuota). + * + * Generated from protobuf field bool return_property_quota = 11; + * @return bool + */ + public function getReturnPropertyQuota() + { + return $this->return_property_quota; + } + + /** + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [PropertyQuota](#PropertyQuota). + * + * Generated from protobuf field bool return_property_quota = 11; + * @param bool $var + * @return $this + */ + public function setReturnPropertyQuota($var) + { + GPBUtil::checkBool($var); + $this->return_property_quota = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportResponse.php new file mode 100644 index 00000000000..959e315a49f --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportResponse.php @@ -0,0 +1,481 @@ +google.analytics.data.v1beta.RunPivotReportResponse + */ +class RunPivotReportResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Summarizes the columns and rows created by a pivot. Each pivot in the + * request produces one header in the response. If we have a request like + * this: + * "pivots": [{ + * "fieldNames": ["country", + * "city"] + * }, + * { + * "fieldNames": "eventName" + * }] + * We will have the following `pivotHeaders` in the response: + * "pivotHeaders" : [{ + * "dimensionHeaders": [{ + * "dimensionValues": [ + * { "value": "United Kingdom" }, + * { "value": "London" } + * ] + * }, + * { + * "dimensionValues": [ + * { "value": "Japan" }, + * { "value": "Osaka" } + * ] + * }] + * }, + * { + * "dimensionHeaders": [{ + * "dimensionValues": [{ "value": "session_start" }] + * }, + * { + * "dimensionValues": [{ "value": "scroll" }] + * }] + * }] + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; + */ + private $pivot_headers; + /** + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; + */ + private $dimension_headers; + /** + * Describes metric columns. The number of MetricHeaders and ordering of + * MetricHeaders matches the metrics present in rows. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; + */ + private $metric_headers; + /** + * Rows of dimension value combinations and metric values in the report. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 4; + */ + private $rows; + /** + * Aggregation of metric values. Can be totals, minimums, or maximums. The + * returned aggregations are controlled by the metric_aggregations in the + * pivot. The type of aggregation returned in each row is shown by the + * dimension_values which are set to "RESERVED_". + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row aggregates = 5; + */ + private $aggregates; + /** + * Metadata for the report. + * + * Generated from protobuf field .google.analytics.data.v1beta.ResponseMetaData metadata = 6; + */ + protected $metadata = null; + /** + * This Analytics Property's quota state including this request. + * + * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 7; + */ + protected $property_quota = null; + /** + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#runPivotReport". Useful to distinguish between + * response types in JSON. + * + * Generated from protobuf field string kind = 8; + */ + protected $kind = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Data\V1beta\PivotHeader>|\Google\Protobuf\Internal\RepeatedField $pivot_headers + * Summarizes the columns and rows created by a pivot. Each pivot in the + * request produces one header in the response. If we have a request like + * this: + * "pivots": [{ + * "fieldNames": ["country", + * "city"] + * }, + * { + * "fieldNames": "eventName" + * }] + * We will have the following `pivotHeaders` in the response: + * "pivotHeaders" : [{ + * "dimensionHeaders": [{ + * "dimensionValues": [ + * { "value": "United Kingdom" }, + * { "value": "London" } + * ] + * }, + * { + * "dimensionValues": [ + * { "value": "Japan" }, + * { "value": "Osaka" } + * ] + * }] + * }, + * { + * "dimensionHeaders": [{ + * "dimensionValues": [{ "value": "session_start" }] + * }, + * { + * "dimensionValues": [{ "value": "scroll" }] + * }] + * }] + * @type array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $dimension_headers + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + * @type array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $metric_headers + * Describes metric columns. The number of MetricHeaders and ordering of + * MetricHeaders matches the metrics present in rows. + * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $rows + * Rows of dimension value combinations and metric values in the report. + * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $aggregates + * Aggregation of metric values. Can be totals, minimums, or maximums. The + * returned aggregations are controlled by the metric_aggregations in the + * pivot. The type of aggregation returned in each row is shown by the + * dimension_values which are set to "RESERVED_". + * @type \Google\Analytics\Data\V1beta\ResponseMetaData $metadata + * Metadata for the report. + * @type \Google\Analytics\Data\V1beta\PropertyQuota $property_quota + * This Analytics Property's quota state including this request. + * @type string $kind + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#runPivotReport". Useful to distinguish between + * response types in JSON. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); + parent::__construct($data); + } + + /** + * Summarizes the columns and rows created by a pivot. Each pivot in the + * request produces one header in the response. If we have a request like + * this: + * "pivots": [{ + * "fieldNames": ["country", + * "city"] + * }, + * { + * "fieldNames": "eventName" + * }] + * We will have the following `pivotHeaders` in the response: + * "pivotHeaders" : [{ + * "dimensionHeaders": [{ + * "dimensionValues": [ + * { "value": "United Kingdom" }, + * { "value": "London" } + * ] + * }, + * { + * "dimensionValues": [ + * { "value": "Japan" }, + * { "value": "Osaka" } + * ] + * }] + * }, + * { + * "dimensionHeaders": [{ + * "dimensionValues": [{ "value": "session_start" }] + * }, + * { + * "dimensionValues": [{ "value": "scroll" }] + * }] + * }] + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPivotHeaders() + { + return $this->pivot_headers; + } + + /** + * Summarizes the columns and rows created by a pivot. Each pivot in the + * request produces one header in the response. If we have a request like + * this: + * "pivots": [{ + * "fieldNames": ["country", + * "city"] + * }, + * { + * "fieldNames": "eventName" + * }] + * We will have the following `pivotHeaders` in the response: + * "pivotHeaders" : [{ + * "dimensionHeaders": [{ + * "dimensionValues": [ + * { "value": "United Kingdom" }, + * { "value": "London" } + * ] + * }, + * { + * "dimensionValues": [ + * { "value": "Japan" }, + * { "value": "Osaka" } + * ] + * }] + * }, + * { + * "dimensionHeaders": [{ + * "dimensionValues": [{ "value": "session_start" }] + * }, + * { + * "dimensionValues": [{ "value": "scroll" }] + * }] + * }] + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; + * @param array<\Google\Analytics\Data\V1beta\PivotHeader>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPivotHeaders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\PivotHeader::class); + $this->pivot_headers = $arr; + + return $this; + } + + /** + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensionHeaders() + { + return $this->dimension_headers; + } + + /** + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; + * @param array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensionHeaders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionHeader::class); + $this->dimension_headers = $arr; + + return $this; + } + + /** + * Describes metric columns. The number of MetricHeaders and ordering of + * MetricHeaders matches the metrics present in rows. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetricHeaders() + { + return $this->metric_headers; + } + + /** + * Describes metric columns. The number of MetricHeaders and ordering of + * MetricHeaders matches the metrics present in rows. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; + * @param array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetricHeaders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricHeader::class); + $this->metric_headers = $arr; + + return $this; + } + + /** + * Rows of dimension value combinations and metric values in the report. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRows() + { + return $this->rows; + } + + /** + * Rows of dimension value combinations and metric values in the report. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 4; + * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); + $this->rows = $arr; + + return $this; + } + + /** + * Aggregation of metric values. Can be totals, minimums, or maximums. The + * returned aggregations are controlled by the metric_aggregations in the + * pivot. The type of aggregation returned in each row is shown by the + * dimension_values which are set to "RESERVED_". + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row aggregates = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getAggregates() + { + return $this->aggregates; + } + + /** + * Aggregation of metric values. Can be totals, minimums, or maximums. The + * returned aggregations are controlled by the metric_aggregations in the + * pivot. The type of aggregation returned in each row is shown by the + * dimension_values which are set to "RESERVED_". + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row aggregates = 5; + * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setAggregates($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); + $this->aggregates = $arr; + + return $this; + } + + /** + * Metadata for the report. + * + * Generated from protobuf field .google.analytics.data.v1beta.ResponseMetaData metadata = 6; + * @return \Google\Analytics\Data\V1beta\ResponseMetaData|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Metadata for the report. + * + * Generated from protobuf field .google.analytics.data.v1beta.ResponseMetaData metadata = 6; + * @param \Google\Analytics\Data\V1beta\ResponseMetaData $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\ResponseMetaData::class); + $this->metadata = $var; + + return $this; + } + + /** + * This Analytics Property's quota state including this request. + * + * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 7; + * @return \Google\Analytics\Data\V1beta\PropertyQuota|null + */ + public function getPropertyQuota() + { + return $this->property_quota; + } + + public function hasPropertyQuota() + { + return isset($this->property_quota); + } + + public function clearPropertyQuota() + { + unset($this->property_quota); + } + + /** + * This Analytics Property's quota state including this request. + * + * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 7; + * @param \Google\Analytics\Data\V1beta\PropertyQuota $var + * @return $this + */ + public function setPropertyQuota($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\PropertyQuota::class); + $this->property_quota = $var; + + return $this; + } + + /** + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#runPivotReport". Useful to distinguish between + * response types in JSON. + * + * Generated from protobuf field string kind = 8; + * @return string + */ + public function getKind() + { + return $this->kind; + } + + /** + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#runPivotReport". Useful to distinguish between + * response types in JSON. + * + * Generated from protobuf field string kind = 8; + * @param string $var + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkString($var, True); + $this->kind = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportRequest.php new file mode 100644 index 00000000000..9d96cefe0a9 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportRequest.php @@ -0,0 +1,465 @@ +google.analytics.data.v1beta.RunRealtimeReportRequest + */ +class RunRealtimeReportRequest extends \Google\Protobuf\Internal\Message +{ + /** + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + */ + protected $property = ''; + /** + * The dimensions requested and displayed. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; + */ + private $dimensions; + /** + * The metrics requested and displayed. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; + */ + private $metrics; + /** + * The filter clause of dimensions. Metrics cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; + */ + protected $dimension_filter = null; + /** + * The filter clause of metrics. Applied at post aggregation phase, similar to + * SQL having-clause. Dimensions cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 5; + */ + protected $metric_filter = null; + /** + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 250,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * The API can also return fewer rows than the requested `limit`, if there + * aren't as many dimension values as the `limit`. For instance, there are + * fewer than 300 possible values for the dimension `country`, so when + * reporting on only `country`, you can't get more than 300 rows, even if you + * set `limit` to a higher value. + * + * Generated from protobuf field int64 limit = 6; + */ + protected $limit = 0; + /** + * Aggregation of metrics. Aggregated metric values will be shown in rows + * where the dimension_values are set to "RESERVED_(MetricAggregation)". + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; + */ + private $metric_aggregations; + /** + * Specifies how rows are ordered in the response. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; + */ + private $order_bys; + /** + * Toggles whether to return the current state of this Analytics Property's + * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). + * + * Generated from protobuf field bool return_property_quota = 9; + */ + protected $return_property_quota = false; + /** + * The minute ranges of event data to read. If unspecified, one minute range + * for the last 30 minutes will be used. If multiple minute ranges are + * requested, each response row will contain a zero based minute range index. + * If two minute ranges overlap, the event data for the overlapping minutes is + * included in the response rows for both minute ranges. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; + */ + private $minute_ranges; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $property + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * Example: properties/1234 + * @type array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $dimensions + * The dimensions requested and displayed. + * @type array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $metrics + * The metrics requested and displayed. + * @type \Google\Analytics\Data\V1beta\FilterExpression $dimension_filter + * The filter clause of dimensions. Metrics cannot be used in this filter. + * @type \Google\Analytics\Data\V1beta\FilterExpression $metric_filter + * The filter clause of metrics. Applied at post aggregation phase, similar to + * SQL having-clause. Dimensions cannot be used in this filter. + * @type int|string $limit + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 250,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * The API can also return fewer rows than the requested `limit`, if there + * aren't as many dimension values as the `limit`. For instance, there are + * fewer than 300 possible values for the dimension `country`, so when + * reporting on only `country`, you can't get more than 300 rows, even if you + * set `limit` to a higher value. + * @type array|\Google\Protobuf\Internal\RepeatedField $metric_aggregations + * Aggregation of metrics. Aggregated metric values will be shown in rows + * where the dimension_values are set to "RESERVED_(MetricAggregation)". + * @type array<\Google\Analytics\Data\V1beta\OrderBy>|\Google\Protobuf\Internal\RepeatedField $order_bys + * Specifies how rows are ordered in the response. + * @type bool $return_property_quota + * Toggles whether to return the current state of this Analytics Property's + * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). + * @type array<\Google\Analytics\Data\V1beta\MinuteRange>|\Google\Protobuf\Internal\RepeatedField $minute_ranges + * The minute ranges of event data to read. If unspecified, one minute range + * for the last 30 minutes will be used. If multiple minute ranges are + * requested, each response row will contain a zero based minute range index. + * If two minute ranges overlap, the event data for the overlapping minutes is + * included in the response rows for both minute ranges. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); + parent::__construct($data); + } + + /** + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + * @return string + */ + public function getProperty() + { + return $this->property; + } + + /** + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + * @param string $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkString($var, True); + $this->property = $var; + + return $this; + } + + /** + * The dimensions requested and displayed. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensions() + { + return $this->dimensions; + } + + /** + * The dimensions requested and displayed. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; + * @param array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Dimension::class); + $this->dimensions = $arr; + + return $this; + } + + /** + * The metrics requested and displayed. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * The metrics requested and displayed. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; + * @param array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Metric::class); + $this->metrics = $arr; + + return $this; + } + + /** + * The filter clause of dimensions. Metrics cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; + * @return \Google\Analytics\Data\V1beta\FilterExpression|null + */ + public function getDimensionFilter() + { + return $this->dimension_filter; + } + + public function hasDimensionFilter() + { + return isset($this->dimension_filter); + } + + public function clearDimensionFilter() + { + unset($this->dimension_filter); + } + + /** + * The filter clause of dimensions. Metrics cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; + * @param \Google\Analytics\Data\V1beta\FilterExpression $var + * @return $this + */ + public function setDimensionFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); + $this->dimension_filter = $var; + + return $this; + } + + /** + * The filter clause of metrics. Applied at post aggregation phase, similar to + * SQL having-clause. Dimensions cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 5; + * @return \Google\Analytics\Data\V1beta\FilterExpression|null + */ + public function getMetricFilter() + { + return $this->metric_filter; + } + + public function hasMetricFilter() + { + return isset($this->metric_filter); + } + + public function clearMetricFilter() + { + unset($this->metric_filter); + } + + /** + * The filter clause of metrics. Applied at post aggregation phase, similar to + * SQL having-clause. Dimensions cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 5; + * @param \Google\Analytics\Data\V1beta\FilterExpression $var + * @return $this + */ + public function setMetricFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); + $this->metric_filter = $var; + + return $this; + } + + /** + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 250,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * The API can also return fewer rows than the requested `limit`, if there + * aren't as many dimension values as the `limit`. For instance, there are + * fewer than 300 possible values for the dimension `country`, so when + * reporting on only `country`, you can't get more than 300 rows, even if you + * set `limit` to a higher value. + * + * Generated from protobuf field int64 limit = 6; + * @return int|string + */ + public function getLimit() + { + return $this->limit; + } + + /** + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 250,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * The API can also return fewer rows than the requested `limit`, if there + * aren't as many dimension values as the `limit`. For instance, there are + * fewer than 300 possible values for the dimension `country`, so when + * reporting on only `country`, you can't get more than 300 rows, even if you + * set `limit` to a higher value. + * + * Generated from protobuf field int64 limit = 6; + * @param int|string $var + * @return $this + */ + public function setLimit($var) + { + GPBUtil::checkInt64($var); + $this->limit = $var; + + return $this; + } + + /** + * Aggregation of metrics. Aggregated metric values will be shown in rows + * where the dimension_values are set to "RESERVED_(MetricAggregation)". + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetricAggregations() + { + return $this->metric_aggregations; + } + + /** + * Aggregation of metrics. Aggregated metric values will be shown in rows + * where the dimension_values are set to "RESERVED_(MetricAggregation)". + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetricAggregations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Data\V1beta\MetricAggregation::class); + $this->metric_aggregations = $arr; + + return $this; + } + + /** + * Specifies how rows are ordered in the response. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOrderBys() + { + return $this->order_bys; + } + + /** + * Specifies how rows are ordered in the response. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; + * @param array<\Google\Analytics\Data\V1beta\OrderBy>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOrderBys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\OrderBy::class); + $this->order_bys = $arr; + + return $this; + } + + /** + * Toggles whether to return the current state of this Analytics Property's + * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). + * + * Generated from protobuf field bool return_property_quota = 9; + * @return bool + */ + public function getReturnPropertyQuota() + { + return $this->return_property_quota; + } + + /** + * Toggles whether to return the current state of this Analytics Property's + * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). + * + * Generated from protobuf field bool return_property_quota = 9; + * @param bool $var + * @return $this + */ + public function setReturnPropertyQuota($var) + { + GPBUtil::checkBool($var); + $this->return_property_quota = $var; + + return $this; + } + + /** + * The minute ranges of event data to read. If unspecified, one minute range + * for the last 30 minutes will be used. If multiple minute ranges are + * requested, each response row will contain a zero based minute range index. + * If two minute ranges overlap, the event data for the overlapping minutes is + * included in the response rows for both minute ranges. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMinuteRanges() + { + return $this->minute_ranges; + } + + /** + * The minute ranges of event data to read. If unspecified, one minute range + * for the last 30 minutes will be used. If multiple minute ranges are + * requested, each response row will contain a zero based minute range index. + * If two minute ranges overlap, the event data for the overlapping minutes is + * included in the response rows for both minute ranges. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; + * @param array<\Google\Analytics\Data\V1beta\MinuteRange>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMinuteRanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MinuteRange::class); + $this->minute_ranges = $arr; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportResponse.php new file mode 100644 index 00000000000..4ff50b9d77b --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportResponse.php @@ -0,0 +1,381 @@ +google.analytics.data.v1beta.RunRealtimeReportResponse + */ +class RunRealtimeReportResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; + */ + private $dimension_headers; + /** + * Describes metric columns. The number of MetricHeaders and ordering of + * MetricHeaders matches the metrics present in rows. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; + */ + private $metric_headers; + /** + * Rows of dimension value combinations and metric values in the report. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 3; + */ + private $rows; + /** + * If requested, the totaled values of metrics. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row totals = 4; + */ + private $totals; + /** + * If requested, the maximum values of metrics. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row maximums = 5; + */ + private $maximums; + /** + * If requested, the minimum values of metrics. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row minimums = 6; + */ + private $minimums; + /** + * The total number of rows in the query result. `rowCount` is independent of + * the number of rows returned in the response and the `limit` request + * parameter. For example if a query returns 175 rows and includes `limit` + * of 50 in the API request, the response will contain `rowCount` of 175 but + * only 50 rows. + * + * Generated from protobuf field int32 row_count = 7; + */ + protected $row_count = 0; + /** + * This Analytics Property's Realtime quota state including this request. + * + * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 8; + */ + protected $property_quota = null; + /** + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#runRealtimeReport". Useful to distinguish + * between response types in JSON. + * + * Generated from protobuf field string kind = 9; + */ + protected $kind = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $dimension_headers + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + * @type array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $metric_headers + * Describes metric columns. The number of MetricHeaders and ordering of + * MetricHeaders matches the metrics present in rows. + * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $rows + * Rows of dimension value combinations and metric values in the report. + * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $totals + * If requested, the totaled values of metrics. + * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $maximums + * If requested, the maximum values of metrics. + * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $minimums + * If requested, the minimum values of metrics. + * @type int $row_count + * The total number of rows in the query result. `rowCount` is independent of + * the number of rows returned in the response and the `limit` request + * parameter. For example if a query returns 175 rows and includes `limit` + * of 50 in the API request, the response will contain `rowCount` of 175 but + * only 50 rows. + * @type \Google\Analytics\Data\V1beta\PropertyQuota $property_quota + * This Analytics Property's Realtime quota state including this request. + * @type string $kind + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#runRealtimeReport". Useful to distinguish + * between response types in JSON. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); + parent::__construct($data); + } + + /** + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensionHeaders() + { + return $this->dimension_headers; + } + + /** + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; + * @param array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensionHeaders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionHeader::class); + $this->dimension_headers = $arr; + + return $this; + } + + /** + * Describes metric columns. The number of MetricHeaders and ordering of + * MetricHeaders matches the metrics present in rows. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetricHeaders() + { + return $this->metric_headers; + } + + /** + * Describes metric columns. The number of MetricHeaders and ordering of + * MetricHeaders matches the metrics present in rows. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; + * @param array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetricHeaders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricHeader::class); + $this->metric_headers = $arr; + + return $this; + } + + /** + * Rows of dimension value combinations and metric values in the report. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRows() + { + return $this->rows; + } + + /** + * Rows of dimension value combinations and metric values in the report. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 3; + * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); + $this->rows = $arr; + + return $this; + } + + /** + * If requested, the totaled values of metrics. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row totals = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTotals() + { + return $this->totals; + } + + /** + * If requested, the totaled values of metrics. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row totals = 4; + * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTotals($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); + $this->totals = $arr; + + return $this; + } + + /** + * If requested, the maximum values of metrics. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row maximums = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMaximums() + { + return $this->maximums; + } + + /** + * If requested, the maximum values of metrics. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row maximums = 5; + * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMaximums($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); + $this->maximums = $arr; + + return $this; + } + + /** + * If requested, the minimum values of metrics. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row minimums = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMinimums() + { + return $this->minimums; + } + + /** + * If requested, the minimum values of metrics. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row minimums = 6; + * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMinimums($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); + $this->minimums = $arr; + + return $this; + } + + /** + * The total number of rows in the query result. `rowCount` is independent of + * the number of rows returned in the response and the `limit` request + * parameter. For example if a query returns 175 rows and includes `limit` + * of 50 in the API request, the response will contain `rowCount` of 175 but + * only 50 rows. + * + * Generated from protobuf field int32 row_count = 7; + * @return int + */ + public function getRowCount() + { + return $this->row_count; + } + + /** + * The total number of rows in the query result. `rowCount` is independent of + * the number of rows returned in the response and the `limit` request + * parameter. For example if a query returns 175 rows and includes `limit` + * of 50 in the API request, the response will contain `rowCount` of 175 but + * only 50 rows. + * + * Generated from protobuf field int32 row_count = 7; + * @param int $var + * @return $this + */ + public function setRowCount($var) + { + GPBUtil::checkInt32($var); + $this->row_count = $var; + + return $this; + } + + /** + * This Analytics Property's Realtime quota state including this request. + * + * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 8; + * @return \Google\Analytics\Data\V1beta\PropertyQuota|null + */ + public function getPropertyQuota() + { + return $this->property_quota; + } + + public function hasPropertyQuota() + { + return isset($this->property_quota); + } + + public function clearPropertyQuota() + { + unset($this->property_quota); + } + + /** + * This Analytics Property's Realtime quota state including this request. + * + * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 8; + * @param \Google\Analytics\Data\V1beta\PropertyQuota $var + * @return $this + */ + public function setPropertyQuota($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\PropertyQuota::class); + $this->property_quota = $var; + + return $this; + } + + /** + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#runRealtimeReport". Useful to distinguish + * between response types in JSON. + * + * Generated from protobuf field string kind = 9; + * @return string + */ + public function getKind() + { + return $this->kind; + } + + /** + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#runRealtimeReport". Useful to distinguish + * between response types in JSON. + * + * Generated from protobuf field string kind = 9; + * @param string $var + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkString($var, True); + $this->kind = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportRequest.php new file mode 100644 index 00000000000..6f0d9ba7a92 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportRequest.php @@ -0,0 +1,699 @@ +google.analytics.data.v1beta.RunReportRequest + */ +class RunReportRequest extends \Google\Protobuf\Internal\Message +{ + /** + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * Within a batch request, this property should either be unspecified or + * consistent with the batch-level property. + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + */ + protected $property = ''; + /** + * The dimensions requested and displayed. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; + */ + private $dimensions; + /** + * The metrics requested and displayed. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; + */ + private $metrics; + /** + * Date ranges of data to read. If multiple date ranges are requested, each + * response row will contain a zero based date range index. If two date + * ranges overlap, the event data for the overlapping days is included in the + * response rows for both date ranges. In a cohort request, this `dateRanges` + * must be unspecified. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; + */ + private $date_ranges; + /** + * Dimension filters let you ask for only specific dimension values in + * the report. To learn more, see [Fundamentals of Dimension + * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + * for examples. Metrics cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; + */ + protected $dimension_filter = null; + /** + * The filter clause of metrics. Applied after aggregating the report's rows, + * similar to SQL having-clause. Dimensions cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 6; + */ + protected $metric_filter = null; + /** + * The row count of the start row. The first row is counted as row 0. + * When paging, the first request does not specify offset; or equivalently, + * sets offset to 0; the first request returns the first `limit` of rows. The + * second request sets offset to the `limit` of the first request; the second + * request returns the second `limit` of rows. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int64 offset = 7; + */ + protected $offset = 0; + /** + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 250,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * The API can also return fewer rows than the requested `limit`, if there + * aren't as many dimension values as the `limit`. For instance, there are + * fewer than 300 possible values for the dimension `country`, so when + * reporting on only `country`, you can't get more than 300 rows, even if you + * set `limit` to a higher value. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int64 limit = 8; + */ + protected $limit = 0; + /** + * Aggregation of metrics. Aggregated metric values will be shown in rows + * where the dimension_values are set to "RESERVED_(MetricAggregation)". + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; + */ + private $metric_aggregations; + /** + * Specifies how rows are ordered in the response. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; + */ + private $order_bys; + /** + * A currency code in ISO4217 format, such as "AED", "USD", "JPY". + * If the field is empty, the report uses the property's default currency. + * + * Generated from protobuf field string currency_code = 11; + */ + protected $currency_code = ''; + /** + * Cohort group associated with this request. If there is a cohort group + * in the request the 'cohort' dimension must be present. + * + * Generated from protobuf field .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; + */ + protected $cohort_spec = null; + /** + * If false or unspecified, each row with all metrics equal to 0 will not be + * returned. If true, these rows will be returned if they are not separately + * removed by a filter. + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. + * + * Generated from protobuf field bool keep_empty_rows = 13; + */ + protected $keep_empty_rows = false; + /** + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [PropertyQuota](#PropertyQuota). + * + * Generated from protobuf field bool return_property_quota = 14; + */ + protected $return_property_quota = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $property + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * Within a batch request, this property should either be unspecified or + * consistent with the batch-level property. + * Example: properties/1234 + * @type array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $dimensions + * The dimensions requested and displayed. + * @type array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $metrics + * The metrics requested and displayed. + * @type array<\Google\Analytics\Data\V1beta\DateRange>|\Google\Protobuf\Internal\RepeatedField $date_ranges + * Date ranges of data to read. If multiple date ranges are requested, each + * response row will contain a zero based date range index. If two date + * ranges overlap, the event data for the overlapping days is included in the + * response rows for both date ranges. In a cohort request, this `dateRanges` + * must be unspecified. + * @type \Google\Analytics\Data\V1beta\FilterExpression $dimension_filter + * Dimension filters let you ask for only specific dimension values in + * the report. To learn more, see [Fundamentals of Dimension + * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + * for examples. Metrics cannot be used in this filter. + * @type \Google\Analytics\Data\V1beta\FilterExpression $metric_filter + * The filter clause of metrics. Applied after aggregating the report's rows, + * similar to SQL having-clause. Dimensions cannot be used in this filter. + * @type int|string $offset + * The row count of the start row. The first row is counted as row 0. + * When paging, the first request does not specify offset; or equivalently, + * sets offset to 0; the first request returns the first `limit` of rows. The + * second request sets offset to the `limit` of the first request; the second + * request returns the second `limit` of rows. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * @type int|string $limit + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 250,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * The API can also return fewer rows than the requested `limit`, if there + * aren't as many dimension values as the `limit`. For instance, there are + * fewer than 300 possible values for the dimension `country`, so when + * reporting on only `country`, you can't get more than 300 rows, even if you + * set `limit` to a higher value. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * @type array|\Google\Protobuf\Internal\RepeatedField $metric_aggregations + * Aggregation of metrics. Aggregated metric values will be shown in rows + * where the dimension_values are set to "RESERVED_(MetricAggregation)". + * @type array<\Google\Analytics\Data\V1beta\OrderBy>|\Google\Protobuf\Internal\RepeatedField $order_bys + * Specifies how rows are ordered in the response. + * @type string $currency_code + * A currency code in ISO4217 format, such as "AED", "USD", "JPY". + * If the field is empty, the report uses the property's default currency. + * @type \Google\Analytics\Data\V1beta\CohortSpec $cohort_spec + * Cohort group associated with this request. If there is a cohort group + * in the request the 'cohort' dimension must be present. + * @type bool $keep_empty_rows + * If false or unspecified, each row with all metrics equal to 0 will not be + * returned. If true, these rows will be returned if they are not separately + * removed by a filter. + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. + * @type bool $return_property_quota + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [PropertyQuota](#PropertyQuota). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); + parent::__construct($data); + } + + /** + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * Within a batch request, this property should either be unspecified or + * consistent with the batch-level property. + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + * @return string + */ + public function getProperty() + { + return $this->property; + } + + /** + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * Within a batch request, this property should either be unspecified or + * consistent with the batch-level property. + * Example: properties/1234 + * + * Generated from protobuf field string property = 1; + * @param string $var + * @return $this + */ + public function setProperty($var) + { + GPBUtil::checkString($var, True); + $this->property = $var; + + return $this; + } + + /** + * The dimensions requested and displayed. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensions() + { + return $this->dimensions; + } + + /** + * The dimensions requested and displayed. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; + * @param array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensions($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Dimension::class); + $this->dimensions = $arr; + + return $this; + } + + /** + * The metrics requested and displayed. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetrics() + { + return $this->metrics; + } + + /** + * The metrics requested and displayed. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; + * @param array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetrics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Metric::class); + $this->metrics = $arr; + + return $this; + } + + /** + * Date ranges of data to read. If multiple date ranges are requested, each + * response row will contain a zero based date range index. If two date + * ranges overlap, the event data for the overlapping days is included in the + * response rows for both date ranges. In a cohort request, this `dateRanges` + * must be unspecified. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDateRanges() + { + return $this->date_ranges; + } + + /** + * Date ranges of data to read. If multiple date ranges are requested, each + * response row will contain a zero based date range index. If two date + * ranges overlap, the event data for the overlapping days is included in the + * response rows for both date ranges. In a cohort request, this `dateRanges` + * must be unspecified. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; + * @param array<\Google\Analytics\Data\V1beta\DateRange>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDateRanges($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DateRange::class); + $this->date_ranges = $arr; + + return $this; + } + + /** + * Dimension filters let you ask for only specific dimension values in + * the report. To learn more, see [Fundamentals of Dimension + * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + * for examples. Metrics cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; + * @return \Google\Analytics\Data\V1beta\FilterExpression|null + */ + public function getDimensionFilter() + { + return $this->dimension_filter; + } + + public function hasDimensionFilter() + { + return isset($this->dimension_filter); + } + + public function clearDimensionFilter() + { + unset($this->dimension_filter); + } + + /** + * Dimension filters let you ask for only specific dimension values in + * the report. To learn more, see [Fundamentals of Dimension + * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + * for examples. Metrics cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; + * @param \Google\Analytics\Data\V1beta\FilterExpression $var + * @return $this + */ + public function setDimensionFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); + $this->dimension_filter = $var; + + return $this; + } + + /** + * The filter clause of metrics. Applied after aggregating the report's rows, + * similar to SQL having-clause. Dimensions cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 6; + * @return \Google\Analytics\Data\V1beta\FilterExpression|null + */ + public function getMetricFilter() + { + return $this->metric_filter; + } + + public function hasMetricFilter() + { + return isset($this->metric_filter); + } + + public function clearMetricFilter() + { + unset($this->metric_filter); + } + + /** + * The filter clause of metrics. Applied after aggregating the report's rows, + * similar to SQL having-clause. Dimensions cannot be used in this filter. + * + * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 6; + * @param \Google\Analytics\Data\V1beta\FilterExpression $var + * @return $this + */ + public function setMetricFilter($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); + $this->metric_filter = $var; + + return $this; + } + + /** + * The row count of the start row. The first row is counted as row 0. + * When paging, the first request does not specify offset; or equivalently, + * sets offset to 0; the first request returns the first `limit` of rows. The + * second request sets offset to the `limit` of the first request; the second + * request returns the second `limit` of rows. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int64 offset = 7; + * @return int|string + */ + public function getOffset() + { + return $this->offset; + } + + /** + * The row count of the start row. The first row is counted as row 0. + * When paging, the first request does not specify offset; or equivalently, + * sets offset to 0; the first request returns the first `limit` of rows. The + * second request sets offset to the `limit` of the first request; the second + * request returns the second `limit` of rows. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int64 offset = 7; + * @param int|string $var + * @return $this + */ + public function setOffset($var) + { + GPBUtil::checkInt64($var); + $this->offset = $var; + + return $this; + } + + /** + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 250,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * The API can also return fewer rows than the requested `limit`, if there + * aren't as many dimension values as the `limit`. For instance, there are + * fewer than 300 possible values for the dimension `country`, so when + * reporting on only `country`, you can't get more than 300 rows, even if you + * set `limit` to a higher value. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int64 limit = 8; + * @return int|string + */ + public function getLimit() + { + return $this->limit; + } + + /** + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 250,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * The API can also return fewer rows than the requested `limit`, if there + * aren't as many dimension values as the `limit`. For instance, there are + * fewer than 300 possible values for the dimension `country`, so when + * reporting on only `country`, you can't get more than 300 rows, even if you + * set `limit` to a higher value. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int64 limit = 8; + * @param int|string $var + * @return $this + */ + public function setLimit($var) + { + GPBUtil::checkInt64($var); + $this->limit = $var; + + return $this; + } + + /** + * Aggregation of metrics. Aggregated metric values will be shown in rows + * where the dimension_values are set to "RESERVED_(MetricAggregation)". + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetricAggregations() + { + return $this->metric_aggregations; + } + + /** + * Aggregation of metrics. Aggregated metric values will be shown in rows + * where the dimension_values are set to "RESERVED_(MetricAggregation)". + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetricAggregations($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Data\V1beta\MetricAggregation::class); + $this->metric_aggregations = $arr; + + return $this; + } + + /** + * Specifies how rows are ordered in the response. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getOrderBys() + { + return $this->order_bys; + } + + /** + * Specifies how rows are ordered in the response. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; + * @param array<\Google\Analytics\Data\V1beta\OrderBy>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setOrderBys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\OrderBy::class); + $this->order_bys = $arr; + + return $this; + } + + /** + * A currency code in ISO4217 format, such as "AED", "USD", "JPY". + * If the field is empty, the report uses the property's default currency. + * + * Generated from protobuf field string currency_code = 11; + * @return string + */ + public function getCurrencyCode() + { + return $this->currency_code; + } + + /** + * A currency code in ISO4217 format, such as "AED", "USD", "JPY". + * If the field is empty, the report uses the property's default currency. + * + * Generated from protobuf field string currency_code = 11; + * @param string $var + * @return $this + */ + public function setCurrencyCode($var) + { + GPBUtil::checkString($var, True); + $this->currency_code = $var; + + return $this; + } + + /** + * Cohort group associated with this request. If there is a cohort group + * in the request the 'cohort' dimension must be present. + * + * Generated from protobuf field .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; + * @return \Google\Analytics\Data\V1beta\CohortSpec|null + */ + public function getCohortSpec() + { + return $this->cohort_spec; + } + + public function hasCohortSpec() + { + return isset($this->cohort_spec); + } + + public function clearCohortSpec() + { + unset($this->cohort_spec); + } + + /** + * Cohort group associated with this request. If there is a cohort group + * in the request the 'cohort' dimension must be present. + * + * Generated from protobuf field .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; + * @param \Google\Analytics\Data\V1beta\CohortSpec $var + * @return $this + */ + public function setCohortSpec($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\CohortSpec::class); + $this->cohort_spec = $var; + + return $this; + } + + /** + * If false or unspecified, each row with all metrics equal to 0 will not be + * returned. If true, these rows will be returned if they are not separately + * removed by a filter. + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. + * + * Generated from protobuf field bool keep_empty_rows = 13; + * @return bool + */ + public function getKeepEmptyRows() + { + return $this->keep_empty_rows; + } + + /** + * If false or unspecified, each row with all metrics equal to 0 will not be + * returned. If true, these rows will be returned if they are not separately + * removed by a filter. + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. + * + * Generated from protobuf field bool keep_empty_rows = 13; + * @param bool $var + * @return $this + */ + public function setKeepEmptyRows($var) + { + GPBUtil::checkBool($var); + $this->keep_empty_rows = $var; + + return $this; + } + + /** + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [PropertyQuota](#PropertyQuota). + * + * Generated from protobuf field bool return_property_quota = 14; + * @return bool + */ + public function getReturnPropertyQuota() + { + return $this->return_property_quota; + } + + /** + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [PropertyQuota](#PropertyQuota). + * + * Generated from protobuf field bool return_property_quota = 14; + * @param bool $var + * @return $this + */ + public function setReturnPropertyQuota($var) + { + GPBUtil::checkBool($var); + $this->return_property_quota = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportResponse.php new file mode 100644 index 00000000000..6825d24eb51 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportResponse.php @@ -0,0 +1,433 @@ +google.analytics.data.v1beta.RunReportResponse + */ +class RunReportResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; + */ + private $dimension_headers; + /** + * Describes metric columns. The number of MetricHeaders and ordering of + * MetricHeaders matches the metrics present in rows. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; + */ + private $metric_headers; + /** + * Rows of dimension value combinations and metric values in the report. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 3; + */ + private $rows; + /** + * If requested, the totaled values of metrics. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row totals = 4; + */ + private $totals; + /** + * If requested, the maximum values of metrics. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row maximums = 5; + */ + private $maximums; + /** + * If requested, the minimum values of metrics. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row minimums = 6; + */ + private $minimums; + /** + * The total number of rows in the query result. `rowCount` is independent of + * the number of rows returned in the response, the `limit` request + * parameter, and the `offset` request parameter. For example if a query + * returns 175 rows and includes `limit` of 50 in the API request, the + * response will contain `rowCount` of 175 but only 50 rows. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int32 row_count = 7; + */ + protected $row_count = 0; + /** + * Metadata for the report. + * + * Generated from protobuf field .google.analytics.data.v1beta.ResponseMetaData metadata = 8; + */ + protected $metadata = null; + /** + * This Analytics Property's quota state including this request. + * + * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 9; + */ + protected $property_quota = null; + /** + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#runReport". Useful to distinguish between + * response types in JSON. + * + * Generated from protobuf field string kind = 10; + */ + protected $kind = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $dimension_headers + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + * @type array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $metric_headers + * Describes metric columns. The number of MetricHeaders and ordering of + * MetricHeaders matches the metrics present in rows. + * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $rows + * Rows of dimension value combinations and metric values in the report. + * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $totals + * If requested, the totaled values of metrics. + * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $maximums + * If requested, the maximum values of metrics. + * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $minimums + * If requested, the minimum values of metrics. + * @type int $row_count + * The total number of rows in the query result. `rowCount` is independent of + * the number of rows returned in the response, the `limit` request + * parameter, and the `offset` request parameter. For example if a query + * returns 175 rows and includes `limit` of 50 in the API request, the + * response will contain `rowCount` of 175 but only 50 rows. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * @type \Google\Analytics\Data\V1beta\ResponseMetaData $metadata + * Metadata for the report. + * @type \Google\Analytics\Data\V1beta\PropertyQuota $property_quota + * This Analytics Property's quota state including this request. + * @type string $kind + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#runReport". Useful to distinguish between + * response types in JSON. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); + parent::__construct($data); + } + + /** + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDimensionHeaders() + { + return $this->dimension_headers; + } + + /** + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; + * @param array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDimensionHeaders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionHeader::class); + $this->dimension_headers = $arr; + + return $this; + } + + /** + * Describes metric columns. The number of MetricHeaders and ordering of + * MetricHeaders matches the metrics present in rows. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMetricHeaders() + { + return $this->metric_headers; + } + + /** + * Describes metric columns. The number of MetricHeaders and ordering of + * MetricHeaders matches the metrics present in rows. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; + * @param array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMetricHeaders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricHeader::class); + $this->metric_headers = $arr; + + return $this; + } + + /** + * Rows of dimension value combinations and metric values in the report. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getRows() + { + return $this->rows; + } + + /** + * Rows of dimension value combinations and metric values in the report. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 3; + * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setRows($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); + $this->rows = $arr; + + return $this; + } + + /** + * If requested, the totaled values of metrics. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row totals = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTotals() + { + return $this->totals; + } + + /** + * If requested, the totaled values of metrics. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row totals = 4; + * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTotals($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); + $this->totals = $arr; + + return $this; + } + + /** + * If requested, the maximum values of metrics. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row maximums = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMaximums() + { + return $this->maximums; + } + + /** + * If requested, the maximum values of metrics. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row maximums = 5; + * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMaximums($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); + $this->maximums = $arr; + + return $this; + } + + /** + * If requested, the minimum values of metrics. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row minimums = 6; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getMinimums() + { + return $this->minimums; + } + + /** + * If requested, the minimum values of metrics. + * + * Generated from protobuf field repeated .google.analytics.data.v1beta.Row minimums = 6; + * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setMinimums($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); + $this->minimums = $arr; + + return $this; + } + + /** + * The total number of rows in the query result. `rowCount` is independent of + * the number of rows returned in the response, the `limit` request + * parameter, and the `offset` request parameter. For example if a query + * returns 175 rows and includes `limit` of 50 in the API request, the + * response will contain `rowCount` of 175 but only 50 rows. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int32 row_count = 7; + * @return int + */ + public function getRowCount() + { + return $this->row_count; + } + + /** + * The total number of rows in the query result. `rowCount` is independent of + * the number of rows returned in the response, the `limit` request + * parameter, and the `offset` request parameter. For example if a query + * returns 175 rows and includes `limit` of 50 in the API request, the + * response will contain `rowCount` of 175 but only 50 rows. + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * + * Generated from protobuf field int32 row_count = 7; + * @param int $var + * @return $this + */ + public function setRowCount($var) + { + GPBUtil::checkInt32($var); + $this->row_count = $var; + + return $this; + } + + /** + * Metadata for the report. + * + * Generated from protobuf field .google.analytics.data.v1beta.ResponseMetaData metadata = 8; + * @return \Google\Analytics\Data\V1beta\ResponseMetaData|null + */ + public function getMetadata() + { + return $this->metadata; + } + + public function hasMetadata() + { + return isset($this->metadata); + } + + public function clearMetadata() + { + unset($this->metadata); + } + + /** + * Metadata for the report. + * + * Generated from protobuf field .google.analytics.data.v1beta.ResponseMetaData metadata = 8; + * @param \Google\Analytics\Data\V1beta\ResponseMetaData $var + * @return $this + */ + public function setMetadata($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\ResponseMetaData::class); + $this->metadata = $var; + + return $this; + } + + /** + * This Analytics Property's quota state including this request. + * + * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 9; + * @return \Google\Analytics\Data\V1beta\PropertyQuota|null + */ + public function getPropertyQuota() + { + return $this->property_quota; + } + + public function hasPropertyQuota() + { + return isset($this->property_quota); + } + + public function clearPropertyQuota() + { + unset($this->property_quota); + } + + /** + * This Analytics Property's quota state including this request. + * + * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 9; + * @param \Google\Analytics\Data\V1beta\PropertyQuota $var + * @return $this + */ + public function setPropertyQuota($var) + { + GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\PropertyQuota::class); + $this->property_quota = $var; + + return $this; + } + + /** + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#runReport". Useful to distinguish between + * response types in JSON. + * + * Generated from protobuf field string kind = 10; + * @return string + */ + public function getKind() + { + return $this->kind; + } + + /** + * Identifies what kind of resource this message is. This `kind` is always the + * fixed string "analyticsData#runReport". Useful to distinguish between + * response types in JSON. + * + * Generated from protobuf field string kind = 10; + * @param string $var + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkString($var, True); + $this->kind = $var; + + return $this; + } + +} + diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_pivot_reports.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_pivot_reports.php new file mode 100644 index 00000000000..e9831ae921e --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_pivot_reports.php @@ -0,0 +1,58 @@ +batchRunPivotReports($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsdata_v1beta_generated_BetaAnalyticsData_BatchRunPivotReports_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_reports.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_reports.php new file mode 100644 index 00000000000..f905c01e8bd --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_reports.php @@ -0,0 +1,58 @@ +batchRunReports($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsdata_v1beta_generated_BetaAnalyticsData_BatchRunReports_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/check_compatibility.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/check_compatibility.php new file mode 100644 index 00000000000..23733286b22 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/check_compatibility.php @@ -0,0 +1,66 @@ +checkCompatibility($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsdata_v1beta_generated_BetaAnalyticsData_CheckCompatibility_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/get_metadata.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/get_metadata.php new file mode 100644 index 00000000000..dd2d31f566b --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/get_metadata.php @@ -0,0 +1,90 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Metadata $response */ + $response = $betaAnalyticsDataClient->getMetadata($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = BetaAnalyticsDataClient::metadataName('[PROPERTY]'); + + get_metadata_sample($formattedName); +} +// [END analyticsdata_v1beta_generated_BetaAnalyticsData_GetMetadata_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_pivot_report.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_pivot_report.php new file mode 100644 index 00000000000..8f01bddd804 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_pivot_report.php @@ -0,0 +1,61 @@ +runPivotReport($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsdata_v1beta_generated_BetaAnalyticsData_RunPivotReport_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_realtime_report.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_realtime_report.php new file mode 100644 index 00000000000..6918b0d4f84 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_realtime_report.php @@ -0,0 +1,65 @@ +runRealtimeReport($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsdata_v1beta_generated_BetaAnalyticsData_RunRealtimeReport_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_report.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_report.php new file mode 100644 index 00000000000..c0649867f0b --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_report.php @@ -0,0 +1,67 @@ +runReport($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} +// [END analyticsdata_v1beta_generated_BetaAnalyticsData_RunReport_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/BetaAnalyticsDataClient.php b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/BetaAnalyticsDataClient.php new file mode 100644 index 00000000000..73e26dd2f1e --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/BetaAnalyticsDataClient.php @@ -0,0 +1,36 @@ + self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../../resources/beta_analytics_data_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../../resources/beta_analytics_data_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../../resources/beta_analytics_data_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../../resources/beta_analytics_data_rest_client_config.php', + ], + ], + ]; + } + + /** + * Formats a string containing the fully-qualified path to represent a metadata + * resource. + * + * @param string $property + * + * @return string The formatted metadata resource. + * + * @experimental + */ + public static function metadataName(string $property): string + { + return self::getPathTemplate('metadata')->render([ + 'property' => $property, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - metadata: properties/{property}/metadata + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + * + * @experimental + */ + public static function parseName(string $formattedName, string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'analyticsdata.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * } + * + * @throws ValidationException + * + * @experimental + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Returns multiple pivot reports in a batch. All reports must be for the same + * GA4 Property. + * + * The async variant is {@see self::batchRunPivotReportsAsync()} . + * + * @example samples/V1beta/BetaAnalyticsDataClient/batch_run_pivot_reports.php + * + * @param BatchRunPivotReportsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchRunPivotReportsResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function batchRunPivotReports(BatchRunPivotReportsRequest $request, array $callOptions = []): BatchRunPivotReportsResponse + { + return $this->startApiCall('BatchRunPivotReports', $request, $callOptions)->wait(); + } + + /** + * Returns multiple reports in a batch. All reports must be for the same + * GA4 Property. + * + * The async variant is {@see self::batchRunReportsAsync()} . + * + * @example samples/V1beta/BetaAnalyticsDataClient/batch_run_reports.php + * + * @param BatchRunReportsRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchRunReportsResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function batchRunReports(BatchRunReportsRequest $request, array $callOptions = []): BatchRunReportsResponse + { + return $this->startApiCall('BatchRunReports', $request, $callOptions)->wait(); + } + + /** + * This compatibility method lists dimensions and metrics that can be added to + * a report request and maintain compatibility. This method fails if the + * request's dimensions and metrics are incompatible. + * + * In Google Analytics, reports fail if they request incompatible dimensions + * and/or metrics; in that case, you will need to remove dimensions and/or + * metrics from the incompatible report until the report is compatible. + * + * The Realtime and Core reports have different compatibility rules. This + * method checks compatibility for Core reports. + * + * The async variant is {@see self::checkCompatibilityAsync()} . + * + * @example samples/V1beta/BetaAnalyticsDataClient/check_compatibility.php + * + * @param CheckCompatibilityRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CheckCompatibilityResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function checkCompatibility(CheckCompatibilityRequest $request, array $callOptions = []): CheckCompatibilityResponse + { + return $this->startApiCall('CheckCompatibility', $request, $callOptions)->wait(); + } + + /** + * Returns metadata for dimensions and metrics available in reporting methods. + * Used to explore the dimensions and metrics. In this method, a Google + * Analytics GA4 Property Identifier is specified in the request, and + * the metadata response includes Custom dimensions and metrics as well as + * Universal metadata. + * + * For example if a custom metric with parameter name `levels_unlocked` is + * registered to a property, the Metadata response will contain + * `customEvent:levels_unlocked`. Universal metadata are dimensions and + * metrics applicable to any property such as `country` and `totalUsers`. + * + * The async variant is {@see self::getMetadataAsync()} . + * + * @example samples/V1beta/BetaAnalyticsDataClient/get_metadata.php + * + * @param GetMetadataRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Metadata + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function getMetadata(GetMetadataRequest $request, array $callOptions = []): Metadata + { + return $this->startApiCall('GetMetadata', $request, $callOptions)->wait(); + } + + /** + * Returns a customized pivot report of your Google Analytics event data. + * Pivot reports are more advanced and expressive formats than regular + * reports. In a pivot report, dimensions are only visible if they are + * included in a pivot. Multiple pivots can be specified to further dissect + * your data. + * + * The async variant is {@see self::runPivotReportAsync()} . + * + * @example samples/V1beta/BetaAnalyticsDataClient/run_pivot_report.php + * + * @param RunPivotReportRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return RunPivotReportResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function runPivotReport(RunPivotReportRequest $request, array $callOptions = []): RunPivotReportResponse + { + return $this->startApiCall('RunPivotReport', $request, $callOptions)->wait(); + } + + /** + * Returns a customized report of realtime event data for your property. + * Events appear in realtime reports seconds after they have been sent to + * the Google Analytics. Realtime reports show events and usage data for the + * periods of time ranging from the present moment to 30 minutes ago (up to + * 60 minutes for Google Analytics 360 properties). + * + * For a guide to constructing realtime requests & understanding responses, + * see [Creating a Realtime + * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics). + * + * The async variant is {@see self::runRealtimeReportAsync()} . + * + * @example samples/V1beta/BetaAnalyticsDataClient/run_realtime_report.php + * + * @param RunRealtimeReportRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return RunRealtimeReportResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function runRealtimeReport(RunRealtimeReportRequest $request, array $callOptions = []): RunRealtimeReportResponse + { + return $this->startApiCall('RunRealtimeReport', $request, $callOptions)->wait(); + } + + /** + * Returns a customized report of your Google Analytics event data. Reports + * contain statistics derived from data collected by the Google Analytics + * tracking code. The data returned from the API is as a table with columns + * for the requested dimensions and metrics. Metrics are individual + * measurements of user activity on your property, such as active users or + * event count. Dimensions break down metrics across some common criteria, + * such as country or event name. + * + * For a guide to constructing requests & understanding responses, see + * [Creating a + * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics). + * + * The async variant is {@see self::runReportAsync()} . + * + * @example samples/V1beta/BetaAnalyticsDataClient/run_report.php + * + * @param RunReportRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return RunReportResponse + * + * @throws ApiException Thrown if the API call fails. + * + * @experimental + */ + public function runReport(RunReportRequest $request, array $callOptions = []): RunReportResponse + { + return $this->startApiCall('RunReport', $request, $callOptions)->wait(); + } +} diff --git a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/Client/BetaAnalyticsDataClient.php b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/Client/BetaAnalyticsDataClient.php new file mode 100644 index 00000000000..164c0808c93 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/Client/BetaAnalyticsDataClient.php @@ -0,0 +1,42 @@ +batchRunPivotReports(); + * } finally { + * $betaAnalyticsDataClient->close(); + * } + * ``` + * + * Many parameters require resource names to be formatted in a particular way. To + * assist with these names, this class includes a format method for each type of + * name, and additionally a parseName method to extract the individual identifiers + * contained within formatted names that are returned by the API. + * + * This service has a new (beta) implementation. See {@see + * \Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient} to use the new + * surface. + * + * @experimental + */ +class BetaAnalyticsDataGapicClient +{ + use GapicClientTrait; + + /** The name of the service. */ + const SERVICE_NAME = 'google.analytics.data.v1beta.BetaAnalyticsData'; + + /** The default address of the service. */ + const SERVICE_ADDRESS = 'analyticsdata.googleapis.com'; + + /** The default port of the service. */ + const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + const CODEGEN_NAME = 'gapic'; + + /** The default scopes required by the service. */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/analytics', + 'https://www.googleapis.com/auth/analytics.readonly', + ]; + + private static $metadataNameTemplate; + + private static $pathTemplateMap; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/beta_analytics_data_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/beta_analytics_data_descriptor_config.php', + 'gcpApiConfigPath' => __DIR__ . '/../resources/beta_analytics_data_grpc_config.json', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/beta_analytics_data_rest_client_config.php', + ], + ], + ]; + } + + private static function getMetadataNameTemplate() + { + if (self::$metadataNameTemplate == null) { + self::$metadataNameTemplate = new PathTemplate('properties/{property}/metadata'); + } + + return self::$metadataNameTemplate; + } + + private static function getPathTemplateMap() + { + if (self::$pathTemplateMap == null) { + self::$pathTemplateMap = [ + 'metadata' => self::getMetadataNameTemplate(), + ]; + } + + return self::$pathTemplateMap; + } + + /** + * Formats a string containing the fully-qualified path to represent a metadata + * resource. + * + * @param string $property + * + * @return string The formatted metadata resource. + * + * @experimental + */ + public static function metadataName($property) + { + return self::getMetadataNameTemplate()->render([ + 'property' => $property, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - metadata: properties/{property}/metadata + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + * + * @experimental + */ + public static function parseName($formattedName, $template = null) + { + $templateMap = self::getPathTemplateMap(); + if ($template) { + if (!isset($templateMap[$template])) { + throw new ValidationException("Template name $template does not exist"); + } + + return $templateMap[$template]->match($formattedName); + } + + foreach ($templateMap as $templateName => $pathTemplate) { + try { + return $pathTemplate->match($formattedName); + } catch (ValidationException $ex) { + // Swallow the exception to continue trying other path templates + } + } + + throw new ValidationException("Input did not match any known format. Input: $formattedName"); + } + + /** + * Constructor. + * + * @param array $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'analyticsdata.googleapis.com:443'. + * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials + * The credentials to be used by the client to authorize API calls. This option + * accepts either a path to a credentials file, or a decoded credentials file as a + * PHP array. + * *Advanced usage*: In addition, this option can also accept a pre-constructed + * {@see \Google\Auth\FetchAuthTokenInterface} object or + * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these + * objects are provided, any settings in $credentialsConfig will be ignored. + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. May be either the string + * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. + * *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'grpc' => [...], + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and + * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * } + * + * @throws ValidationException + * + * @experimental + */ + public function __construct(array $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** + * Returns multiple pivot reports in a batch. All reports must be for the same + * GA4 Property. + * + * Sample code: + * ``` + * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); + * try { + * $response = $betaAnalyticsDataClient->batchRunPivotReports(); + * } finally { + * $betaAnalyticsDataClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $property + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * This property must be specified for the batch. The property within + * RunPivotReportRequest may either be unspecified or consistent with this + * property. + * + * Example: properties/1234 + * @type RunPivotReportRequest[] $requests + * Individual requests. Each request has a separate pivot report response. + * Each batch request is allowed up to 5 requests. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Data\V1beta\BatchRunPivotReportsResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function batchRunPivotReports(array $optionalArgs = []) + { + $request = new BatchRunPivotReportsRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['property'])) { + $request->setProperty($optionalArgs['property']); + $requestParamHeaders['property'] = $optionalArgs['property']; + } + + if (isset($optionalArgs['requests'])) { + $request->setRequests($optionalArgs['requests']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('BatchRunPivotReports', BatchRunPivotReportsResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns multiple reports in a batch. All reports must be for the same + * GA4 Property. + * + * Sample code: + * ``` + * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); + * try { + * $response = $betaAnalyticsDataClient->batchRunReports(); + * } finally { + * $betaAnalyticsDataClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $property + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * This property must be specified for the batch. The property within + * RunReportRequest may either be unspecified or consistent with this + * property. + * + * Example: properties/1234 + * @type RunReportRequest[] $requests + * Individual requests. Each request has a separate report response. Each + * batch request is allowed up to 5 requests. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Data\V1beta\BatchRunReportsResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function batchRunReports(array $optionalArgs = []) + { + $request = new BatchRunReportsRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['property'])) { + $request->setProperty($optionalArgs['property']); + $requestParamHeaders['property'] = $optionalArgs['property']; + } + + if (isset($optionalArgs['requests'])) { + $request->setRequests($optionalArgs['requests']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('BatchRunReports', BatchRunReportsResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * This compatibility method lists dimensions and metrics that can be added to + * a report request and maintain compatibility. This method fails if the + * request's dimensions and metrics are incompatible. + * + * In Google Analytics, reports fail if they request incompatible dimensions + * and/or metrics; in that case, you will need to remove dimensions and/or + * metrics from the incompatible report until the report is compatible. + * + * The Realtime and Core reports have different compatibility rules. This + * method checks compatibility for Core reports. + * + * Sample code: + * ``` + * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); + * try { + * $response = $betaAnalyticsDataClient->checkCompatibility(); + * } finally { + * $betaAnalyticsDataClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $property + * A Google Analytics GA4 property identifier whose events are tracked. To + * learn more, see [where to find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * `property` should be the same value as in your `runReport` request. + * + * Example: properties/1234 + * @type Dimension[] $dimensions + * The dimensions in this report. `dimensions` should be the same value as in + * your `runReport` request. + * @type Metric[] $metrics + * The metrics in this report. `metrics` should be the same value as in your + * `runReport` request. + * @type FilterExpression $dimensionFilter + * The filter clause of dimensions. `dimensionFilter` should be the same value + * as in your `runReport` request. + * @type FilterExpression $metricFilter + * The filter clause of metrics. `metricFilter` should be the same value as in + * your `runReport` request + * @type int $compatibilityFilter + * Filters the dimensions and metrics in the response to just this + * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”` + * to only return compatible dimensions & metrics. + * For allowed values, use constants defined on {@see \Google\Analytics\Data\V1beta\Compatibility} + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Data\V1beta\CheckCompatibilityResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function checkCompatibility(array $optionalArgs = []) + { + $request = new CheckCompatibilityRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['property'])) { + $request->setProperty($optionalArgs['property']); + $requestParamHeaders['property'] = $optionalArgs['property']; + } + + if (isset($optionalArgs['dimensions'])) { + $request->setDimensions($optionalArgs['dimensions']); + } + + if (isset($optionalArgs['metrics'])) { + $request->setMetrics($optionalArgs['metrics']); + } + + if (isset($optionalArgs['dimensionFilter'])) { + $request->setDimensionFilter($optionalArgs['dimensionFilter']); + } + + if (isset($optionalArgs['metricFilter'])) { + $request->setMetricFilter($optionalArgs['metricFilter']); + } + + if (isset($optionalArgs['compatibilityFilter'])) { + $request->setCompatibilityFilter($optionalArgs['compatibilityFilter']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('CheckCompatibility', CheckCompatibilityResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns metadata for dimensions and metrics available in reporting methods. + * Used to explore the dimensions and metrics. In this method, a Google + * Analytics GA4 Property Identifier is specified in the request, and + * the metadata response includes Custom dimensions and metrics as well as + * Universal metadata. + * + * For example if a custom metric with parameter name `levels_unlocked` is + * registered to a property, the Metadata response will contain + * `customEvent:levels_unlocked`. Universal metadata are dimensions and + * metrics applicable to any property such as `country` and `totalUsers`. + * + * Sample code: + * ``` + * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); + * try { + * $formattedName = $betaAnalyticsDataClient->metadataName('[PROPERTY]'); + * $response = $betaAnalyticsDataClient->getMetadata($formattedName); + * } finally { + * $betaAnalyticsDataClient->close(); + * } + * ``` + * + * @param string $name Required. The resource name of the metadata to retrieve. This name field is + * specified in the URL path and not URL parameters. Property is a numeric + * Google Analytics GA4 Property identifier. To learn more, see [where to find + * your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * + * Example: properties/1234/metadata + * + * Set the Property ID to 0 for dimensions and metrics common to all + * properties. In this special mode, this method will not return custom + * dimensions and metrics. + * @param array $optionalArgs { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Data\V1beta\Metadata + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function getMetadata($name, array $optionalArgs = []) + { + $request = new GetMetadataRequest(); + $requestParamHeaders = []; + $request->setName($name); + $requestParamHeaders['name'] = $name; + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('GetMetadata', Metadata::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns a customized pivot report of your Google Analytics event data. + * Pivot reports are more advanced and expressive formats than regular + * reports. In a pivot report, dimensions are only visible if they are + * included in a pivot. Multiple pivots can be specified to further dissect + * your data. + * + * Sample code: + * ``` + * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); + * try { + * $response = $betaAnalyticsDataClient->runPivotReport(); + * } finally { + * $betaAnalyticsDataClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $property + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * Within a batch request, this property should either be unspecified or + * consistent with the batch-level property. + * + * Example: properties/1234 + * @type Dimension[] $dimensions + * The dimensions requested. All defined dimensions must be used by one of the + * following: dimension_expression, dimension_filter, pivots, order_bys. + * @type Metric[] $metrics + * The metrics requested, at least one metric needs to be specified. All + * defined metrics must be used by one of the following: metric_expression, + * metric_filter, order_bys. + * @type DateRange[] $dateRanges + * The date range to retrieve event data for the report. If multiple date + * ranges are specified, event data from each date range is used in the + * report. A special dimension with field name "dateRange" can be included in + * a Pivot's field names; if included, the report compares between date + * ranges. In a cohort request, this `dateRanges` must be unspecified. + * @type Pivot[] $pivots + * Describes the visual format of the report's dimensions in columns or rows. + * The union of the fieldNames (dimension names) in all pivots must be a + * subset of dimension names defined in Dimensions. No two pivots can share a + * dimension. A dimension is only visible if it appears in a pivot. + * @type FilterExpression $dimensionFilter + * The filter clause of dimensions. Dimensions must be requested to be used in + * this filter. Metrics cannot be used in this filter. + * @type FilterExpression $metricFilter + * The filter clause of metrics. Applied at post aggregation phase, similar to + * SQL having-clause. Metrics must be requested to be used in this filter. + * Dimensions cannot be used in this filter. + * @type string $currencyCode + * A currency code in ISO4217 format, such as "AED", "USD", "JPY". + * If the field is empty, the report uses the property's default currency. + * @type CohortSpec $cohortSpec + * Cohort group associated with this request. If there is a cohort group + * in the request the 'cohort' dimension must be present. + * @type bool $keepEmptyRows + * If false or unspecified, each row with all metrics equal to 0 will not be + * returned. If true, these rows will be returned if they are not separately + * removed by a filter. + * + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. + * @type bool $returnPropertyQuota + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [PropertyQuota](#PropertyQuota). + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Data\V1beta\RunPivotReportResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function runPivotReport(array $optionalArgs = []) + { + $request = new RunPivotReportRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['property'])) { + $request->setProperty($optionalArgs['property']); + $requestParamHeaders['property'] = $optionalArgs['property']; + } + + if (isset($optionalArgs['dimensions'])) { + $request->setDimensions($optionalArgs['dimensions']); + } + + if (isset($optionalArgs['metrics'])) { + $request->setMetrics($optionalArgs['metrics']); + } + + if (isset($optionalArgs['dateRanges'])) { + $request->setDateRanges($optionalArgs['dateRanges']); + } + + if (isset($optionalArgs['pivots'])) { + $request->setPivots($optionalArgs['pivots']); + } + + if (isset($optionalArgs['dimensionFilter'])) { + $request->setDimensionFilter($optionalArgs['dimensionFilter']); + } + + if (isset($optionalArgs['metricFilter'])) { + $request->setMetricFilter($optionalArgs['metricFilter']); + } + + if (isset($optionalArgs['currencyCode'])) { + $request->setCurrencyCode($optionalArgs['currencyCode']); + } + + if (isset($optionalArgs['cohortSpec'])) { + $request->setCohortSpec($optionalArgs['cohortSpec']); + } + + if (isset($optionalArgs['keepEmptyRows'])) { + $request->setKeepEmptyRows($optionalArgs['keepEmptyRows']); + } + + if (isset($optionalArgs['returnPropertyQuota'])) { + $request->setReturnPropertyQuota($optionalArgs['returnPropertyQuota']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('RunPivotReport', RunPivotReportResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns a customized report of realtime event data for your property. + * Events appear in realtime reports seconds after they have been sent to + * the Google Analytics. Realtime reports show events and usage data for the + * periods of time ranging from the present moment to 30 minutes ago (up to + * 60 minutes for Google Analytics 360 properties). + * + * For a guide to constructing realtime requests & understanding responses, + * see [Creating a Realtime + * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics). + * + * Sample code: + * ``` + * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); + * try { + * $response = $betaAnalyticsDataClient->runRealtimeReport(); + * } finally { + * $betaAnalyticsDataClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $property + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * + * Example: properties/1234 + * @type Dimension[] $dimensions + * The dimensions requested and displayed. + * @type Metric[] $metrics + * The metrics requested and displayed. + * @type FilterExpression $dimensionFilter + * The filter clause of dimensions. Metrics cannot be used in this filter. + * @type FilterExpression $metricFilter + * The filter clause of metrics. Applied at post aggregation phase, similar to + * SQL having-clause. Dimensions cannot be used in this filter. + * @type int $limit + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 250,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * + * The API can also return fewer rows than the requested `limit`, if there + * aren't as many dimension values as the `limit`. For instance, there are + * fewer than 300 possible values for the dimension `country`, so when + * reporting on only `country`, you can't get more than 300 rows, even if you + * set `limit` to a higher value. + * @type int[] $metricAggregations + * Aggregation of metrics. Aggregated metric values will be shown in rows + * where the dimension_values are set to "RESERVED_(MetricAggregation)". + * For allowed values, use constants defined on {@see \Google\Analytics\Data\V1beta\MetricAggregation} + * @type OrderBy[] $orderBys + * Specifies how rows are ordered in the response. + * @type bool $returnPropertyQuota + * Toggles whether to return the current state of this Analytics Property's + * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). + * @type MinuteRange[] $minuteRanges + * The minute ranges of event data to read. If unspecified, one minute range + * for the last 30 minutes will be used. If multiple minute ranges are + * requested, each response row will contain a zero based minute range index. + * If two minute ranges overlap, the event data for the overlapping minutes is + * included in the response rows for both minute ranges. + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Data\V1beta\RunRealtimeReportResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function runRealtimeReport(array $optionalArgs = []) + { + $request = new RunRealtimeReportRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['property'])) { + $request->setProperty($optionalArgs['property']); + $requestParamHeaders['property'] = $optionalArgs['property']; + } + + if (isset($optionalArgs['dimensions'])) { + $request->setDimensions($optionalArgs['dimensions']); + } + + if (isset($optionalArgs['metrics'])) { + $request->setMetrics($optionalArgs['metrics']); + } + + if (isset($optionalArgs['dimensionFilter'])) { + $request->setDimensionFilter($optionalArgs['dimensionFilter']); + } + + if (isset($optionalArgs['metricFilter'])) { + $request->setMetricFilter($optionalArgs['metricFilter']); + } + + if (isset($optionalArgs['limit'])) { + $request->setLimit($optionalArgs['limit']); + } + + if (isset($optionalArgs['metricAggregations'])) { + $request->setMetricAggregations($optionalArgs['metricAggregations']); + } + + if (isset($optionalArgs['orderBys'])) { + $request->setOrderBys($optionalArgs['orderBys']); + } + + if (isset($optionalArgs['returnPropertyQuota'])) { + $request->setReturnPropertyQuota($optionalArgs['returnPropertyQuota']); + } + + if (isset($optionalArgs['minuteRanges'])) { + $request->setMinuteRanges($optionalArgs['minuteRanges']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('RunRealtimeReport', RunRealtimeReportResponse::class, $optionalArgs, $request)->wait(); + } + + /** + * Returns a customized report of your Google Analytics event data. Reports + * contain statistics derived from data collected by the Google Analytics + * tracking code. The data returned from the API is as a table with columns + * for the requested dimensions and metrics. Metrics are individual + * measurements of user activity on your property, such as active users or + * event count. Dimensions break down metrics across some common criteria, + * such as country or event name. + * + * For a guide to constructing requests & understanding responses, see + * [Creating a + * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics). + * + * Sample code: + * ``` + * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); + * try { + * $response = $betaAnalyticsDataClient->runReport(); + * } finally { + * $betaAnalyticsDataClient->close(); + * } + * ``` + * + * @param array $optionalArgs { + * Optional. + * + * @type string $property + * A Google Analytics GA4 property identifier whose events are tracked. + * Specified in the URL path and not the body. To learn more, see [where to + * find your Property + * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). + * Within a batch request, this property should either be unspecified or + * consistent with the batch-level property. + * + * Example: properties/1234 + * @type Dimension[] $dimensions + * The dimensions requested and displayed. + * @type Metric[] $metrics + * The metrics requested and displayed. + * @type DateRange[] $dateRanges + * Date ranges of data to read. If multiple date ranges are requested, each + * response row will contain a zero based date range index. If two date + * ranges overlap, the event data for the overlapping days is included in the + * response rows for both date ranges. In a cohort request, this `dateRanges` + * must be unspecified. + * @type FilterExpression $dimensionFilter + * Dimension filters let you ask for only specific dimension values in + * the report. To learn more, see [Fundamentals of Dimension + * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) + * for examples. Metrics cannot be used in this filter. + * @type FilterExpression $metricFilter + * The filter clause of metrics. Applied after aggregating the report's rows, + * similar to SQL having-clause. Dimensions cannot be used in this filter. + * @type int $offset + * The row count of the start row. The first row is counted as row 0. + * + * When paging, the first request does not specify offset; or equivalently, + * sets offset to 0; the first request returns the first `limit` of rows. The + * second request sets offset to the `limit` of the first request; the second + * request returns the second `limit` of rows. + * + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * @type int $limit + * The number of rows to return. If unspecified, 10,000 rows are returned. The + * API returns a maximum of 250,000 rows per request, no matter how many you + * ask for. `limit` must be positive. + * + * The API can also return fewer rows than the requested `limit`, if there + * aren't as many dimension values as the `limit`. For instance, there are + * fewer than 300 possible values for the dimension `country`, so when + * reporting on only `country`, you can't get more than 300 rows, even if you + * set `limit` to a higher value. + * + * To learn more about this pagination parameter, see + * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). + * @type int[] $metricAggregations + * Aggregation of metrics. Aggregated metric values will be shown in rows + * where the dimension_values are set to "RESERVED_(MetricAggregation)". + * For allowed values, use constants defined on {@see \Google\Analytics\Data\V1beta\MetricAggregation} + * @type OrderBy[] $orderBys + * Specifies how rows are ordered in the response. + * @type string $currencyCode + * A currency code in ISO4217 format, such as "AED", "USD", "JPY". + * If the field is empty, the report uses the property's default currency. + * @type CohortSpec $cohortSpec + * Cohort group associated with this request. If there is a cohort group + * in the request the 'cohort' dimension must be present. + * @type bool $keepEmptyRows + * If false or unspecified, each row with all metrics equal to 0 will not be + * returned. If true, these rows will be returned if they are not separately + * removed by a filter. + * + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. + * @type bool $returnPropertyQuota + * Toggles whether to return the current state of this Analytics Property's + * quota. Quota is returned in [PropertyQuota](#PropertyQuota). + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return \Google\Analytics\Data\V1beta\RunReportResponse + * + * @throws ApiException if the remote call fails + * + * @experimental + */ + public function runReport(array $optionalArgs = []) + { + $request = new RunReportRequest(); + $requestParamHeaders = []; + if (isset($optionalArgs['property'])) { + $request->setProperty($optionalArgs['property']); + $requestParamHeaders['property'] = $optionalArgs['property']; + } + + if (isset($optionalArgs['dimensions'])) { + $request->setDimensions($optionalArgs['dimensions']); + } + + if (isset($optionalArgs['metrics'])) { + $request->setMetrics($optionalArgs['metrics']); + } + + if (isset($optionalArgs['dateRanges'])) { + $request->setDateRanges($optionalArgs['dateRanges']); + } + + if (isset($optionalArgs['dimensionFilter'])) { + $request->setDimensionFilter($optionalArgs['dimensionFilter']); + } + + if (isset($optionalArgs['metricFilter'])) { + $request->setMetricFilter($optionalArgs['metricFilter']); + } + + if (isset($optionalArgs['offset'])) { + $request->setOffset($optionalArgs['offset']); + } + + if (isset($optionalArgs['limit'])) { + $request->setLimit($optionalArgs['limit']); + } + + if (isset($optionalArgs['metricAggregations'])) { + $request->setMetricAggregations($optionalArgs['metricAggregations']); + } + + if (isset($optionalArgs['orderBys'])) { + $request->setOrderBys($optionalArgs['orderBys']); + } + + if (isset($optionalArgs['currencyCode'])) { + $request->setCurrencyCode($optionalArgs['currencyCode']); + } + + if (isset($optionalArgs['cohortSpec'])) { + $request->setCohortSpec($optionalArgs['cohortSpec']); + } + + if (isset($optionalArgs['keepEmptyRows'])) { + $request->setKeepEmptyRows($optionalArgs['keepEmptyRows']); + } + + if (isset($optionalArgs['returnPropertyQuota'])) { + $request->setReturnPropertyQuota($optionalArgs['returnPropertyQuota']); + } + + $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); + $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); + return $this->startCall('RunReport', RunReportResponse::class, $optionalArgs, $request)->wait(); + } +} diff --git a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/gapic_metadata.json b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/gapic_metadata.json new file mode 100644 index 00000000000..cd0a946bd83 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/gapic_metadata.json @@ -0,0 +1,53 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", + "language": "php", + "protoPackage": "google.analytics.data.v1beta", + "libraryPackage": "Google\\Analytics\\Data\\V1beta", + "services": { + "BetaAnalyticsData": { + "clients": { + "grpc": { + "libraryClient": "BetaAnalyticsDataGapicClient", + "rpcs": { + "BatchRunPivotReports": { + "methods": [ + "batchRunPivotReports" + ] + }, + "BatchRunReports": { + "methods": [ + "batchRunReports" + ] + }, + "CheckCompatibility": { + "methods": [ + "checkCompatibility" + ] + }, + "GetMetadata": { + "methods": [ + "getMetadata" + ] + }, + "RunPivotReport": { + "methods": [ + "runPivotReport" + ] + }, + "RunRealtimeReport": { + "methods": [ + "runRealtimeReport" + ] + }, + "RunReport": { + "methods": [ + "runReport" + ] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_client_config.json b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_client_config.json new file mode 100644 index 00000000000..f8f00df4873 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_client_config.json @@ -0,0 +1,79 @@ +{ + "interfaces": { + "google.analytics.data.v1beta.BetaAnalyticsData": { + "retry_codes": { + "no_retry_codes": [], + "retry_policy_1_codes": [ + "UNKNOWN" + ], + "no_retry_1_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + }, + "retry_policy_1_params": { + "initial_retry_delay_millis": 1000, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + }, + "no_retry_1_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 60000, + "total_timeout_millis": 60000 + } + }, + "methods": { + "BatchRunPivotReports": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "BatchRunReports": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "CheckCompatibility": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "GetMetadata": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "RunPivotReport": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "RunRealtimeReport": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + }, + "RunReport": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_1_codes", + "retry_params_name": "no_retry_1_params" + } + } + } + } +} diff --git a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_descriptor_config.php b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_descriptor_config.php new file mode 100644 index 00000000000..dd48c6c3aaf --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_descriptor_config.php @@ -0,0 +1,95 @@ + [ + 'google.analytics.data.v1beta.BetaAnalyticsData' => [ + 'BatchRunPivotReports' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Data\V1beta\BatchRunPivotReportsResponse', + 'headerParams' => [ + [ + 'keyName' => 'property', + 'fieldAccessors' => [ + 'getProperty', + ], + ], + ], + ], + 'BatchRunReports' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Data\V1beta\BatchRunReportsResponse', + 'headerParams' => [ + [ + 'keyName' => 'property', + 'fieldAccessors' => [ + 'getProperty', + ], + ], + ], + ], + 'CheckCompatibility' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Data\V1beta\CheckCompatibilityResponse', + 'headerParams' => [ + [ + 'keyName' => 'property', + 'fieldAccessors' => [ + 'getProperty', + ], + ], + ], + ], + 'GetMetadata' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Data\V1beta\Metadata', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'RunPivotReport' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Data\V1beta\RunPivotReportResponse', + 'headerParams' => [ + [ + 'keyName' => 'property', + 'fieldAccessors' => [ + 'getProperty', + ], + ], + ], + ], + 'RunRealtimeReport' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Data\V1beta\RunRealtimeReportResponse', + 'headerParams' => [ + [ + 'keyName' => 'property', + 'fieldAccessors' => [ + 'getProperty', + ], + ], + ], + ], + 'RunReport' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Analytics\Data\V1beta\RunReportResponse', + 'headerParams' => [ + [ + 'keyName' => 'property', + 'fieldAccessors' => [ + 'getProperty', + ], + ], + ], + ], + 'templateMap' => [ + 'metadata' => 'properties/{property}/metadata', + ], + ], + ], +]; diff --git a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_rest_client_config.php b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_rest_client_config.php new file mode 100644 index 00000000000..5c2fc8a6ba4 --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_rest_client_config.php @@ -0,0 +1,92 @@ + [ + 'google.analytics.data.v1beta.BetaAnalyticsData' => [ + 'BatchRunPivotReports' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{property=properties/*}:batchRunPivotReports', + 'body' => '*', + 'placeholders' => [ + 'property' => [ + 'getters' => [ + 'getProperty', + ], + ], + ], + ], + 'BatchRunReports' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{property=properties/*}:batchRunReports', + 'body' => '*', + 'placeholders' => [ + 'property' => [ + 'getters' => [ + 'getProperty', + ], + ], + ], + ], + 'CheckCompatibility' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{property=properties/*}:checkCompatibility', + 'body' => '*', + 'placeholders' => [ + 'property' => [ + 'getters' => [ + 'getProperty', + ], + ], + ], + ], + 'GetMetadata' => [ + 'method' => 'get', + 'uriTemplate' => '/v1beta/{name=properties/*/metadata}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'RunPivotReport' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{property=properties/*}:runPivotReport', + 'body' => '*', + 'placeholders' => [ + 'property' => [ + 'getters' => [ + 'getProperty', + ], + ], + ], + ], + 'RunRealtimeReport' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{property=properties/*}:runRealtimeReport', + 'body' => '*', + 'placeholders' => [ + 'property' => [ + 'getters' => [ + 'getProperty', + ], + ], + ], + ], + 'RunReport' => [ + 'method' => 'post', + 'uriTemplate' => '/v1beta/{property=properties/*}:runReport', + 'body' => '*', + 'placeholders' => [ + 'property' => [ + 'getters' => [ + 'getProperty', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/BetaAnalyticsDataClientTest.php b/owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/BetaAnalyticsDataClientTest.php new file mode 100644 index 00000000000..3fefe77070b --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/BetaAnalyticsDataClientTest.php @@ -0,0 +1,453 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return BetaAnalyticsDataClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new BetaAnalyticsDataClient($options); + } + + /** @test */ + public function batchRunPivotReportsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $kind = 'kind3292052'; + $expectedResponse = new BatchRunPivotReportsResponse(); + $expectedResponse->setKind($kind); + $transport->addResponse($expectedResponse); + $response = $gapicClient->batchRunPivotReports(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/BatchRunPivotReports', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchRunPivotReportsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->batchRunPivotReports(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchRunReportsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $kind = 'kind3292052'; + $expectedResponse = new BatchRunReportsResponse(); + $expectedResponse->setKind($kind); + $transport->addResponse($expectedResponse); + $response = $gapicClient->batchRunReports(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/BatchRunReports', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchRunReportsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->batchRunReports(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function checkCompatibilityTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CheckCompatibilityResponse(); + $transport->addResponse($expectedResponse); + $response = $gapicClient->checkCompatibility(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/CheckCompatibility', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function checkCompatibilityExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->checkCompatibility(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMetadataTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new Metadata(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->metadataName('[PROPERTY]'); + $response = $gapicClient->getMetadata($formattedName); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/GetMetadata', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMetadataExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->metadataName('[PROPERTY]'); + try { + $gapicClient->getMetadata($formattedName); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runPivotReportTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $kind = 'kind3292052'; + $expectedResponse = new RunPivotReportResponse(); + $expectedResponse->setKind($kind); + $transport->addResponse($expectedResponse); + $response = $gapicClient->runPivotReport(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/RunPivotReport', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runPivotReportExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->runPivotReport(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runRealtimeReportTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $rowCount = 1340416618; + $kind = 'kind3292052'; + $expectedResponse = new RunRealtimeReportResponse(); + $expectedResponse->setRowCount($rowCount); + $expectedResponse->setKind($kind); + $transport->addResponse($expectedResponse); + $response = $gapicClient->runRealtimeReport(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/RunRealtimeReport', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runRealtimeReportExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->runRealtimeReport(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runReportTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $rowCount = 1340416618; + $kind = 'kind3292052'; + $expectedResponse = new RunReportResponse(); + $expectedResponse->setRowCount($rowCount); + $expectedResponse->setKind($kind); + $transport->addResponse($expectedResponse); + $response = $gapicClient->runReport(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/RunReport', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runReportExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + try { + $gapicClient->runReport(); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/Client/BetaAnalyticsDataClientTest.php b/owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/Client/BetaAnalyticsDataClientTest.php new file mode 100644 index 00000000000..12d1db777fa --- /dev/null +++ b/owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/Client/BetaAnalyticsDataClientTest.php @@ -0,0 +1,500 @@ +getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); + } + + /** @return BetaAnalyticsDataClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new BetaAnalyticsDataClient($options); + } + + /** @test */ + public function batchRunPivotReportsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $kind = 'kind3292052'; + $expectedResponse = new BatchRunPivotReportsResponse(); + $expectedResponse->setKind($kind); + $transport->addResponse($expectedResponse); + $request = new BatchRunPivotReportsRequest(); + $response = $gapicClient->batchRunPivotReports($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/BatchRunPivotReports', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchRunPivotReportsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new BatchRunPivotReportsRequest(); + try { + $gapicClient->batchRunPivotReports($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchRunReportsTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $kind = 'kind3292052'; + $expectedResponse = new BatchRunReportsResponse(); + $expectedResponse->setKind($kind); + $transport->addResponse($expectedResponse); + $request = new BatchRunReportsRequest(); + $response = $gapicClient->batchRunReports($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/BatchRunReports', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchRunReportsExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new BatchRunReportsRequest(); + try { + $gapicClient->batchRunReports($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function checkCompatibilityTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new CheckCompatibilityResponse(); + $transport->addResponse($expectedResponse); + $request = new CheckCompatibilityRequest(); + $response = $gapicClient->checkCompatibility($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/CheckCompatibility', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function checkCompatibilityExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new CheckCompatibilityRequest(); + try { + $gapicClient->checkCompatibility($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMetadataTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $expectedResponse = new Metadata(); + $expectedResponse->setName($name2); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->metadataName('[PROPERTY]'); + $request = (new GetMetadataRequest()) + ->setName($formattedName); + $response = $gapicClient->getMetadata($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/GetMetadata', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getMetadataExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->metadataName('[PROPERTY]'); + $request = (new GetMetadataRequest()) + ->setName($formattedName); + try { + $gapicClient->getMetadata($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runPivotReportTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $kind = 'kind3292052'; + $expectedResponse = new RunPivotReportResponse(); + $expectedResponse->setKind($kind); + $transport->addResponse($expectedResponse); + $request = new RunPivotReportRequest(); + $response = $gapicClient->runPivotReport($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/RunPivotReport', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runPivotReportExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new RunPivotReportRequest(); + try { + $gapicClient->runPivotReport($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runRealtimeReportTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $rowCount = 1340416618; + $kind = 'kind3292052'; + $expectedResponse = new RunRealtimeReportResponse(); + $expectedResponse->setRowCount($rowCount); + $expectedResponse->setKind($kind); + $transport->addResponse($expectedResponse); + $request = new RunRealtimeReportRequest(); + $response = $gapicClient->runRealtimeReport($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/RunRealtimeReport', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runRealtimeReportExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new RunRealtimeReportRequest(); + try { + $gapicClient->runRealtimeReport($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runReportTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $rowCount = 1340416618; + $kind = 'kind3292052'; + $expectedResponse = new RunReportResponse(); + $expectedResponse->setRowCount($rowCount); + $expectedResponse->setKind($kind); + $transport->addResponse($expectedResponse); + $request = new RunReportRequest(); + $response = $gapicClient->runReport($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/RunReport', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function runReportExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode([ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], JSON_PRETTY_PRINT); + $transport->addResponse(null, $status); + $request = new RunReportRequest(); + try { + $gapicClient->runReport($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchRunPivotReportsAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $kind = 'kind3292052'; + $expectedResponse = new BatchRunPivotReportsResponse(); + $expectedResponse->setKind($kind); + $transport->addResponse($expectedResponse); + $request = new BatchRunPivotReportsRequest(); + $response = $gapicClient->batchRunPivotReportsAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/BatchRunPivotReports', $actualFuncCall); + $this->assertTrue($transport->isExhausted()); + } +} From b32f38488eb2715a955916c458684add7ad05d43 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 4 Aug 2023 21:55:54 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../src/V1beta/CheckCompatibilityRequest.php | 12 - AnalyticsData/src/V1beta/DateRange.php | 4 +- .../Gapic/BetaAnalyticsDataGapicClient.php | 24 +- AnalyticsData/src/V1beta/MinuteRange.php | 4 +- AnalyticsData/src/V1beta/Pivot.php | 8 +- AnalyticsData/src/V1beta/PropertyQuota.php | 56 +- AnalyticsData/src/V1beta/ResponseMetaData.php | 36 + .../src/V1beta/RunPivotReportRequest.php | 20 + .../src/V1beta/RunRealtimeReportRequest.php | 8 +- AnalyticsData/src/V1beta/RunReportRequest.php | 36 +- .../Data/V1Beta/AnalyticsDataApi.php | 148 --- .../Google/Analytics/Data/V1Beta/Data.php | Bin 8021 -> 0 bytes .../V1beta/BatchRunPivotReportsRequest.php | 133 --- .../V1beta/BatchRunPivotReportsResponse.php | 109 -- .../Data/V1beta/BatchRunReportsRequest.php | 133 --- .../Data/V1beta/BatchRunReportsResponse.php | 109 -- .../Data/V1beta/CheckCompatibilityRequest.php | 300 ------ .../V1beta/CheckCompatibilityResponse.php | 101 -- .../Google/Analytics/Data/V1beta/Cohort.php | 215 ---- .../Data/V1beta/CohortReportSettings.php | 71 -- .../Analytics/Data/V1beta/CohortSpec.php | 179 ---- .../Analytics/Data/V1beta/CohortsRange.php | 208 ---- .../Data/V1beta/CohortsRange/Granularity.php | 76 -- .../Analytics/Data/V1beta/Compatibility.php | 63 -- .../Analytics/Data/V1beta/DateRange.php | 172 --- .../Analytics/Data/V1beta/Dimension.php | 154 --- .../Data/V1beta/DimensionCompatibility.php | 133 --- .../Data/V1beta/DimensionExpression.php | 147 --- .../DimensionExpression/CaseExpression.php | 74 -- .../ConcatenateExpression.php | 128 --- .../Analytics/Data/V1beta/DimensionHeader.php | 70 -- .../Data/V1beta/DimensionMetadata.php | 261 ----- .../Analytics/Data/V1beta/DimensionValue.php | 75 -- .../Google/Analytics/Data/V1beta/Filter.php | 224 ---- .../Data/V1beta/Filter/BetweenFilter.php | 124 --- .../Data/V1beta/Filter/InListFilter.php | 108 -- .../Data/V1beta/Filter/NumericFilter.php | 114 -- .../V1beta/Filter/NumericFilter/Operation.php | 85 -- .../Data/V1beta/Filter/StringFilter.php | 138 --- .../V1beta/Filter/StringFilter/MatchType.php | 92 -- .../Data/V1beta/FilterExpression.php | 178 ---- .../Data/V1beta/FilterExpressionList.php | 67 -- .../Data/V1beta/GetMetadataRequest.php | 123 --- .../Google/Analytics/Data/V1beta/Metadata.php | 135 --- .../Google/Analytics/Data/V1beta/Metric.php | 185 ---- .../Data/V1beta/MetricAggregation.php | 75 -- .../Data/V1beta/MetricCompatibility.php | 133 --- .../Analytics/Data/V1beta/MetricHeader.php | 104 -- .../Analytics/Data/V1beta/MetricMetadata.php | 395 ------- .../V1beta/MetricMetadata/BlockedReason.php | 66 -- .../Analytics/Data/V1beta/MetricType.php | 131 --- .../Analytics/Data/V1beta/MetricValue.php | 75 -- .../Analytics/Data/V1beta/MinuteRange.php | 220 ---- .../Analytics/Data/V1beta/NumericValue.php | 108 -- .../Google/Analytics/Data/V1beta/OrderBy.php | 177 ---- .../Data/V1beta/OrderBy/DimensionOrderBy.php | 104 -- .../OrderBy/DimensionOrderBy/OrderType.php | 76 -- .../Data/V1beta/OrderBy/MetricOrderBy.php | 70 -- .../Data/V1beta/OrderBy/PivotOrderBy.php | 120 --- .../OrderBy/PivotOrderBy/PivotSelection.php | 117 -- .../Google/Analytics/Data/V1beta/Pivot.php | 255 ----- .../Data/V1beta/PivotDimensionHeader.php | 67 -- .../Analytics/Data/V1beta/PivotHeader.php | 113 -- .../Analytics/Data/V1beta/PropertyQuota.php | 363 ------- .../Analytics/Data/V1beta/QuotaStatus.php | 101 -- .../Data/V1beta/ResponseMetaData.php | 407 ------- .../SchemaRestrictionResponse.php | 84 -- .../ActiveMetricRestriction.php | 114 -- .../Data/V1beta/RestrictedMetricType.php | 62 -- .../src/Google/Analytics/Data/V1beta/Row.php | 138 --- .../Data/V1beta/RunPivotReportRequest.php | 553 ---------- .../Data/V1beta/RunPivotReportResponse.php | 481 --------- .../Data/V1beta/RunRealtimeReportRequest.php | 465 -------- .../Data/V1beta/RunRealtimeReportResponse.php | 381 ------- .../Data/V1beta/RunReportRequest.php | 699 ------------ .../Data/V1beta/RunReportResponse.php | 433 -------- .../batch_run_pivot_reports.php | 58 - .../batch_run_reports.php | 58 - .../check_compatibility.php | 66 -- .../BetaAnalyticsDataClient/get_metadata.php | 90 -- .../run_pivot_report.php | 61 -- .../run_realtime_report.php | 65 -- .../BetaAnalyticsDataClient/run_report.php | 67 -- .../src/V1beta/BetaAnalyticsDataClient.php | 36 - .../BetaAnalyticsDataBaseClient.php | 475 --------- .../V1beta/Client/BetaAnalyticsDataClient.php | 42 - .../Gapic/BetaAnalyticsDataGapicClient.php | 997 ------------------ .../v1beta/src/V1beta/gapic_metadata.json | 53 - .../beta_analytics_data_client_config.json | 79 -- .../beta_analytics_data_descriptor_config.php | 95 -- ...beta_analytics_data_rest_client_config.php | 92 -- .../V1beta/BetaAnalyticsDataClientTest.php | 453 -------- .../Client/BetaAnalyticsDataClientTest.php | 500 --------- 93 files changed, 141 insertions(+), 14673 deletions(-) delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/AnalyticsDataApi.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/Data.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunPivotReportsRequest.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunPivotReportsResponse.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsRequest.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsResponse.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityRequest.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityResponse.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Cohort.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortReportSettings.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortSpec.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange/Granularity.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Compatibility.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DateRange.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Dimension.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionCompatibility.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/CaseExpression.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/ConcatenateExpression.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionHeader.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionMetadata.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionValue.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/BetweenFilter.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/InListFilter.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter/Operation.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter/MatchType.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpression.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpressionList.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/GetMetadataRequest.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metadata.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metric.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricAggregation.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricCompatibility.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricHeader.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata/BlockedReason.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricType.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricValue.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MinuteRange.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/NumericValue.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy/OrderType.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/MetricOrderBy.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy/PivotSelection.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Pivot.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotDimensionHeader.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotHeader.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PropertyQuota.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/QuotaStatus.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse/ActiveMetricRestriction.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RestrictedMetricType.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Row.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportRequest.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportResponse.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportRequest.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportResponse.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportRequest.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportResponse.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_pivot_reports.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_reports.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/check_compatibility.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/get_metadata.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_pivot_report.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_realtime_report.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_report.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/src/V1beta/BetaAnalyticsDataClient.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/src/V1beta/Client/BaseClient/BetaAnalyticsDataBaseClient.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/src/V1beta/Client/BetaAnalyticsDataClient.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/src/V1beta/Gapic/BetaAnalyticsDataGapicClient.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/src/V1beta/gapic_metadata.json delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_client_config.json delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_descriptor_config.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_rest_client_config.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/BetaAnalyticsDataClientTest.php delete mode 100644 owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/Client/BetaAnalyticsDataClientTest.php diff --git a/AnalyticsData/src/V1beta/CheckCompatibilityRequest.php b/AnalyticsData/src/V1beta/CheckCompatibilityRequest.php index efdee8cac98..85cc2221a1f 100644 --- a/AnalyticsData/src/V1beta/CheckCompatibilityRequest.php +++ b/AnalyticsData/src/V1beta/CheckCompatibilityRequest.php @@ -24,9 +24,6 @@ class CheckCompatibilityRequest extends \Google\Protobuf\Internal\Message * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). * `property` should be the same value as in your `runReport` request. * Example: properties/1234 - * Set the Property ID to 0 for compatibility checking on dimensions and - * metrics common to all properties. In this special mode, this method will - * not return custom dimensions and metrics. * * Generated from protobuf field string property = 1; */ @@ -80,9 +77,6 @@ class CheckCompatibilityRequest extends \Google\Protobuf\Internal\Message * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). * `property` should be the same value as in your `runReport` request. * Example: properties/1234 - * Set the Property ID to 0 for compatibility checking on dimensions and - * metrics common to all properties. In this special mode, this method will - * not return custom dimensions and metrics. * @type array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $dimensions * The dimensions in this report. `dimensions` should be the same value as in * your `runReport` request. @@ -112,9 +106,6 @@ public function __construct($data = NULL) { * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). * `property` should be the same value as in your `runReport` request. * Example: properties/1234 - * Set the Property ID to 0 for compatibility checking on dimensions and - * metrics common to all properties. In this special mode, this method will - * not return custom dimensions and metrics. * * Generated from protobuf field string property = 1; * @return string @@ -130,9 +121,6 @@ public function getProperty() * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). * `property` should be the same value as in your `runReport` request. * Example: properties/1234 - * Set the Property ID to 0 for compatibility checking on dimensions and - * metrics common to all properties. In this special mode, this method will - * not return custom dimensions and metrics. * * Generated from protobuf field string property = 1; * @param string $var diff --git a/AnalyticsData/src/V1beta/DateRange.php b/AnalyticsData/src/V1beta/DateRange.php index cd067eb52b9..7c8515fbe9d 100644 --- a/AnalyticsData/src/V1beta/DateRange.php +++ b/AnalyticsData/src/V1beta/DateRange.php @@ -9,8 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests - * are allowed up to 4 date ranges. + * A contiguous set of days: `startDate`, `startDate + 1`, ..., `endDate`. + * Requests are allowed up to 4 date ranges. * * Generated from protobuf message google.analytics.data.v1beta.DateRange */ diff --git a/AnalyticsData/src/V1beta/Gapic/BetaAnalyticsDataGapicClient.php b/AnalyticsData/src/V1beta/Gapic/BetaAnalyticsDataGapicClient.php index dbe9787af5c..4fdeef7c0e5 100644 --- a/AnalyticsData/src/V1beta/Gapic/BetaAnalyticsDataGapicClient.php +++ b/AnalyticsData/src/V1beta/Gapic/BetaAnalyticsDataGapicClient.php @@ -457,10 +457,6 @@ public function batchRunReports(array $optionalArgs = []) * `property` should be the same value as in your `runReport` request. * * Example: properties/1234 - * - * Set the Property ID to 0 for compatibility checking on dimensions and - * metrics common to all properties. In this special mode, this method will - * not return custom dimensions and metrics. * @type Dimension[] $dimensions * The dimensions in this report. `dimensions` should be the same value as in * your `runReport` request. @@ -668,6 +664,13 @@ public function getMetadata($name, array $optionalArgs = []) * If false or unspecified, each row with all metrics equal to 0 will not be * returned. If true, these rows will be returned if they are not separately * removed by a filter. + * + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. * @type bool $returnPropertyQuota * Toggles whether to return the current state of this Analytics Property's * quota. Quota is returned in [PropertyQuota](#PropertyQuota). @@ -790,7 +793,7 @@ public function runPivotReport(array $optionalArgs = []) * SQL having-clause. Dimensions cannot be used in this filter. * @type int $limit * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you + * API returns a maximum of 250,000 rows per request, no matter how many you * ask for. `limit` must be positive. * * The API can also return fewer rows than the requested `limit`, if there @@ -934,7 +937,7 @@ public function runRealtimeReport(array $optionalArgs = []) * response rows for both date ranges. In a cohort request, this `dateRanges` * must be unspecified. * @type FilterExpression $dimensionFilter - * Dimension filters allow you to ask for only specific dimension values in + * Dimension filters let you ask for only specific dimension values in * the report. To learn more, see [Fundamentals of Dimension * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) * for examples. Metrics cannot be used in this filter. @@ -953,7 +956,7 @@ public function runRealtimeReport(array $optionalArgs = []) * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). * @type int $limit * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you + * API returns a maximum of 250,000 rows per request, no matter how many you * ask for. `limit` must be positive. * * The API can also return fewer rows than the requested `limit`, if there @@ -980,6 +983,13 @@ public function runRealtimeReport(array $optionalArgs = []) * If false or unspecified, each row with all metrics equal to 0 will not be * returned. If true, these rows will be returned if they are not separately * removed by a filter. + * + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. * @type bool $returnPropertyQuota * Toggles whether to return the current state of this Analytics Property's * quota. Quota is returned in [PropertyQuota](#PropertyQuota). diff --git a/AnalyticsData/src/V1beta/MinuteRange.php b/AnalyticsData/src/V1beta/MinuteRange.php index 5f4a576f6a3..cf5895b025c 100644 --- a/AnalyticsData/src/V1beta/MinuteRange.php +++ b/AnalyticsData/src/V1beta/MinuteRange.php @@ -9,8 +9,8 @@ use Google\Protobuf\Internal\GPBUtil; /** - * A contiguous set of minutes: startMinutesAgo, startMinutesAgo + 1, ..., - * endMinutesAgo. Requests are allowed up to 2 minute ranges. + * A contiguous set of minutes: `startMinutesAgo`, `startMinutesAgo + 1`, ..., + * `endMinutesAgo`. Requests are allowed up to 2 minute ranges. * * Generated from protobuf message google.analytics.data.v1beta.MinuteRange */ diff --git a/AnalyticsData/src/V1beta/Pivot.php b/AnalyticsData/src/V1beta/Pivot.php index 78ee6686bdb..ecbd81cb5b0 100644 --- a/AnalyticsData/src/V1beta/Pivot.php +++ b/AnalyticsData/src/V1beta/Pivot.php @@ -45,7 +45,7 @@ class Pivot extends \Google\Protobuf\Internal\Message * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for * single pivot requests. * The product of the `limit` for each `pivot` in a `RunPivotReportRequest` - * must not exceed 100,000. For example, a two pivot request with `limit: + * must not exceed 250,000. For example, a two pivot request with `limit: * 1000` in each pivot will fail because the product is `1,000,000`. * * Generated from protobuf field int64 limit = 4; @@ -83,7 +83,7 @@ class Pivot extends \Google\Protobuf\Internal\Message * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for * single pivot requests. * The product of the `limit` for each `pivot` in a `RunPivotReportRequest` - * must not exceed 100,000. For example, a two pivot request with `limit: + * must not exceed 250,000. For example, a two pivot request with `limit: * 1000` in each pivot will fail because the product is `1,000,000`. * @type array|\Google\Protobuf\Internal\RepeatedField $metric_aggregations * Aggregate the metrics by dimensions in this pivot using the specified @@ -192,7 +192,7 @@ public function setOffset($var) * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for * single pivot requests. * The product of the `limit` for each `pivot` in a `RunPivotReportRequest` - * must not exceed 100,000. For example, a two pivot request with `limit: + * must not exceed 250,000. For example, a two pivot request with `limit: * 1000` in each pivot will fail because the product is `1,000,000`. * * Generated from protobuf field int64 limit = 4; @@ -208,7 +208,7 @@ public function getLimit() * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for * single pivot requests. * The product of the `limit` for each `pivot` in a `RunPivotReportRequest` - * must not exceed 100,000. For example, a two pivot request with `limit: + * must not exceed 250,000. For example, a two pivot request with `limit: * 1000` in each pivot will fail because the product is `1,000,000`. * * Generated from protobuf field int64 limit = 4; diff --git a/AnalyticsData/src/V1beta/PropertyQuota.php b/AnalyticsData/src/V1beta/PropertyQuota.php index f114976a8d5..068a2effcbc 100644 --- a/AnalyticsData/src/V1beta/PropertyQuota.php +++ b/AnalyticsData/src/V1beta/PropertyQuota.php @@ -18,16 +18,16 @@ class PropertyQuota extends \Google\Protobuf\Internal\Message { /** - * Standard Analytics Properties can use up to 25,000 tokens per day; - * Analytics 360 Properties can use 250,000 tokens per day. Most requests + * Standard Analytics Properties can use up to 200,000 tokens per day; + * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests * consume fewer than 10 tokens. * * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; */ private $tokens_per_day = null; /** - * Standard Analytics Properties can use up to 5,000 tokens per hour; - * Analytics 360 Properties can use 50,000 tokens per hour. An API request + * Standard Analytics Properties can use up to 40,000 tokens per hour; + * Analytics 360 Properties can use 400,000 tokens per hour. An API request * consumes a single number of tokens, and that number is deducted from all of * the hourly, daily, and per project hourly quotas. * @@ -59,9 +59,9 @@ class PropertyQuota extends \Google\Protobuf\Internal\Message */ private $potentially_thresholded_requests_per_hour = null; /** - * Analytics Properties can use up to 25% of their tokens per project per - * hour. This amounts to standard Analytics Properties can use up to 1,250 - * tokens per project per hour, and Analytics 360 Properties can use 12,500 + * Analytics Properties can use up to 35% of their tokens per project per + * hour. This amounts to standard Analytics Properties can use up to 14,000 + * tokens per project per hour, and Analytics 360 Properties can use 140,000 * tokens per project per hour. An API request consumes a single number of * tokens, and that number is deducted from all of the hourly, daily, and per * project hourly quotas. @@ -77,12 +77,12 @@ class PropertyQuota extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type \Google\Analytics\Data\V1beta\QuotaStatus $tokens_per_day - * Standard Analytics Properties can use up to 25,000 tokens per day; - * Analytics 360 Properties can use 250,000 tokens per day. Most requests + * Standard Analytics Properties can use up to 200,000 tokens per day; + * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests * consume fewer than 10 tokens. * @type \Google\Analytics\Data\V1beta\QuotaStatus $tokens_per_hour - * Standard Analytics Properties can use up to 5,000 tokens per hour; - * Analytics 360 Properties can use 50,000 tokens per hour. An API request + * Standard Analytics Properties can use up to 40,000 tokens per hour; + * Analytics 360 Properties can use 400,000 tokens per hour. An API request * consumes a single number of tokens, and that number is deducted from all of * the hourly, daily, and per project hourly quotas. * @type \Google\Analytics\Data\V1beta\QuotaStatus $concurrent_requests @@ -98,9 +98,9 @@ class PropertyQuota extends \Google\Protobuf\Internal\Message * is individually counted for this quota if the request contains potentially * thresholded dimensions. * @type \Google\Analytics\Data\V1beta\QuotaStatus $tokens_per_project_per_hour - * Analytics Properties can use up to 25% of their tokens per project per - * hour. This amounts to standard Analytics Properties can use up to 1,250 - * tokens per project per hour, and Analytics 360 Properties can use 12,500 + * Analytics Properties can use up to 35% of their tokens per project per + * hour. This amounts to standard Analytics Properties can use up to 14,000 + * tokens per project per hour, and Analytics 360 Properties can use 140,000 * tokens per project per hour. An API request consumes a single number of * tokens, and that number is deducted from all of the hourly, daily, and per * project hourly quotas. @@ -112,8 +112,8 @@ public function __construct($data = NULL) { } /** - * Standard Analytics Properties can use up to 25,000 tokens per day; - * Analytics 360 Properties can use 250,000 tokens per day. Most requests + * Standard Analytics Properties can use up to 200,000 tokens per day; + * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests * consume fewer than 10 tokens. * * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; @@ -135,8 +135,8 @@ public function clearTokensPerDay() } /** - * Standard Analytics Properties can use up to 25,000 tokens per day; - * Analytics 360 Properties can use 250,000 tokens per day. Most requests + * Standard Analytics Properties can use up to 200,000 tokens per day; + * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests * consume fewer than 10 tokens. * * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; @@ -152,8 +152,8 @@ public function setTokensPerDay($var) } /** - * Standard Analytics Properties can use up to 5,000 tokens per hour; - * Analytics 360 Properties can use 50,000 tokens per hour. An API request + * Standard Analytics Properties can use up to 40,000 tokens per hour; + * Analytics 360 Properties can use 400,000 tokens per hour. An API request * consumes a single number of tokens, and that number is deducted from all of * the hourly, daily, and per project hourly quotas. * @@ -176,8 +176,8 @@ public function clearTokensPerHour() } /** - * Standard Analytics Properties can use up to 5,000 tokens per hour; - * Analytics 360 Properties can use 50,000 tokens per hour. An API request + * Standard Analytics Properties can use up to 40,000 tokens per hour; + * Analytics 360 Properties can use 400,000 tokens per hour. An API request * consumes a single number of tokens, and that number is deducted from all of * the hourly, daily, and per project hourly quotas. * @@ -314,9 +314,9 @@ public function setPotentiallyThresholdedRequestsPerHour($var) } /** - * Analytics Properties can use up to 25% of their tokens per project per - * hour. This amounts to standard Analytics Properties can use up to 1,250 - * tokens per project per hour, and Analytics 360 Properties can use 12,500 + * Analytics Properties can use up to 35% of their tokens per project per + * hour. This amounts to standard Analytics Properties can use up to 14,000 + * tokens per project per hour, and Analytics 360 Properties can use 140,000 * tokens per project per hour. An API request consumes a single number of * tokens, and that number is deducted from all of the hourly, daily, and per * project hourly quotas. @@ -340,9 +340,9 @@ public function clearTokensPerProjectPerHour() } /** - * Analytics Properties can use up to 25% of their tokens per project per - * hour. This amounts to standard Analytics Properties can use up to 1,250 - * tokens per project per hour, and Analytics 360 Properties can use 12,500 + * Analytics Properties can use up to 35% of their tokens per project per + * hour. This amounts to standard Analytics Properties can use up to 14,000 + * tokens per project per hour, and Analytics 360 Properties can use 140,000 * tokens per project per hour. An API request consumes a single number of * tokens, and that number is deducted from all of the hourly, daily, and per * project hourly quotas. diff --git a/AnalyticsData/src/V1beta/ResponseMetaData.php b/AnalyticsData/src/V1beta/ResponseMetaData.php index 35443c89e08..d8250e3636f 100644 --- a/AnalyticsData/src/V1beta/ResponseMetaData.php +++ b/AnalyticsData/src/V1beta/ResponseMetaData.php @@ -18,6 +18,15 @@ class ResponseMetaData extends \Google\Protobuf\Internal\Message /** * If true, indicates some buckets of dimension combinations are rolled into * "(other)" row. This can happen for high cardinality reports. + * The metadata parameter dataLossFromOtherRow is populated based on the + * aggregated data table used in the report. The parameter will be accurately + * populated regardless of the filters and limits in the report. + * For example, the (other) row could be dropped from the report because the + * request contains a filter on sessionSource = google. This parameter will + * still be populated if data loss from other row was present in the input + * aggregate data used to generate this report. + * To learn more, see [About the (other) row and data + * sampling](https://support.google.com/analytics/answer/13208658#reports). * * Generated from protobuf field bool data_loss_from_other_row = 3; */ @@ -82,6 +91,15 @@ class ResponseMetaData extends \Google\Protobuf\Internal\Message * @type bool $data_loss_from_other_row * If true, indicates some buckets of dimension combinations are rolled into * "(other)" row. This can happen for high cardinality reports. + * The metadata parameter dataLossFromOtherRow is populated based on the + * aggregated data table used in the report. The parameter will be accurately + * populated regardless of the filters and limits in the report. + * For example, the (other) row could be dropped from the report because the + * request contains a filter on sessionSource = google. This parameter will + * still be populated if data loss from other row was present in the input + * aggregate data used to generate this report. + * To learn more, see [About the (other) row and data + * sampling](https://support.google.com/analytics/answer/13208658#reports). * @type \Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse $schema_restriction_response * Describes the schema restrictions actively enforced in creating this * report. To learn more, see [Access and data-restriction @@ -122,6 +140,15 @@ public function __construct($data = NULL) { /** * If true, indicates some buckets of dimension combinations are rolled into * "(other)" row. This can happen for high cardinality reports. + * The metadata parameter dataLossFromOtherRow is populated based on the + * aggregated data table used in the report. The parameter will be accurately + * populated regardless of the filters and limits in the report. + * For example, the (other) row could be dropped from the report because the + * request contains a filter on sessionSource = google. This parameter will + * still be populated if data loss from other row was present in the input + * aggregate data used to generate this report. + * To learn more, see [About the (other) row and data + * sampling](https://support.google.com/analytics/answer/13208658#reports). * * Generated from protobuf field bool data_loss_from_other_row = 3; * @return bool @@ -134,6 +161,15 @@ public function getDataLossFromOtherRow() /** * If true, indicates some buckets of dimension combinations are rolled into * "(other)" row. This can happen for high cardinality reports. + * The metadata parameter dataLossFromOtherRow is populated based on the + * aggregated data table used in the report. The parameter will be accurately + * populated regardless of the filters and limits in the report. + * For example, the (other) row could be dropped from the report because the + * request contains a filter on sessionSource = google. This parameter will + * still be populated if data loss from other row was present in the input + * aggregate data used to generate this report. + * To learn more, see [About the (other) row and data + * sampling](https://support.google.com/analytics/answer/13208658#reports). * * Generated from protobuf field bool data_loss_from_other_row = 3; * @param bool $var diff --git a/AnalyticsData/src/V1beta/RunPivotReportRequest.php b/AnalyticsData/src/V1beta/RunPivotReportRequest.php index 3cd375deaa9..dd2aaba68b2 100644 --- a/AnalyticsData/src/V1beta/RunPivotReportRequest.php +++ b/AnalyticsData/src/V1beta/RunPivotReportRequest.php @@ -94,6 +94,11 @@ class RunPivotReportRequest extends \Google\Protobuf\Internal\Message * If false or unspecified, each row with all metrics equal to 0 will not be * returned. If true, these rows will be returned if they are not separately * removed by a filter. + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. * * Generated from protobuf field bool keep_empty_rows = 10; */ @@ -155,6 +160,11 @@ class RunPivotReportRequest extends \Google\Protobuf\Internal\Message * If false or unspecified, each row with all metrics equal to 0 will not be * returned. If true, these rows will be returned if they are not separately * removed by a filter. + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. * @type bool $return_property_quota * Toggles whether to return the current state of this Analytics Property's * quota. Quota is returned in [PropertyQuota](#PropertyQuota). @@ -475,6 +485,11 @@ public function setCohortSpec($var) * If false or unspecified, each row with all metrics equal to 0 will not be * returned. If true, these rows will be returned if they are not separately * removed by a filter. + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. * * Generated from protobuf field bool keep_empty_rows = 10; * @return bool @@ -488,6 +503,11 @@ public function getKeepEmptyRows() * If false or unspecified, each row with all metrics equal to 0 will not be * returned. If true, these rows will be returned if they are not separately * removed by a filter. + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. * * Generated from protobuf field bool keep_empty_rows = 10; * @param bool $var diff --git a/AnalyticsData/src/V1beta/RunRealtimeReportRequest.php b/AnalyticsData/src/V1beta/RunRealtimeReportRequest.php index 9251e337271..f27ef71b329 100644 --- a/AnalyticsData/src/V1beta/RunRealtimeReportRequest.php +++ b/AnalyticsData/src/V1beta/RunRealtimeReportRequest.php @@ -52,7 +52,7 @@ class RunRealtimeReportRequest extends \Google\Protobuf\Internal\Message private $metric_filter = null; /** * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you + * API returns a maximum of 250,000 rows per request, no matter how many you * ask for. `limit` must be positive. * The API can also return fewer rows than the requested `limit`, if there * aren't as many dimension values as the `limit`. For instance, there are @@ -117,7 +117,7 @@ class RunRealtimeReportRequest extends \Google\Protobuf\Internal\Message * SQL having-clause. Dimensions cannot be used in this filter. * @type int|string $limit * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you + * API returns a maximum of 250,000 rows per request, no matter how many you * ask for. `limit` must be positive. * The API can also return fewer rows than the requested `limit`, if there * aren't as many dimension values as the `limit`. For instance, there are @@ -307,7 +307,7 @@ public function setMetricFilter($var) /** * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you + * API returns a maximum of 250,000 rows per request, no matter how many you * ask for. `limit` must be positive. * The API can also return fewer rows than the requested `limit`, if there * aren't as many dimension values as the `limit`. For instance, there are @@ -325,7 +325,7 @@ public function getLimit() /** * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you + * API returns a maximum of 250,000 rows per request, no matter how many you * ask for. `limit` must be positive. * The API can also return fewer rows than the requested `limit`, if there * aren't as many dimension values as the `limit`. For instance, there are diff --git a/AnalyticsData/src/V1beta/RunReportRequest.php b/AnalyticsData/src/V1beta/RunReportRequest.php index 0d1027ef544..15d16203c72 100644 --- a/AnalyticsData/src/V1beta/RunReportRequest.php +++ b/AnalyticsData/src/V1beta/RunReportRequest.php @@ -50,7 +50,7 @@ class RunReportRequest extends \Google\Protobuf\Internal\Message */ private $date_ranges; /** - * Dimension filters allow you to ask for only specific dimension values in + * Dimension filters let you ask for only specific dimension values in * the report. To learn more, see [Fundamentals of Dimension * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) * for examples. Metrics cannot be used in this filter. @@ -79,7 +79,7 @@ class RunReportRequest extends \Google\Protobuf\Internal\Message private $offset = 0; /** * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you + * API returns a maximum of 250,000 rows per request, no matter how many you * ask for. `limit` must be positive. * The API can also return fewer rows than the requested `limit`, if there * aren't as many dimension values as the `limit`. For instance, there are @@ -123,6 +123,11 @@ class RunReportRequest extends \Google\Protobuf\Internal\Message * If false or unspecified, each row with all metrics equal to 0 will not be * returned. If true, these rows will be returned if they are not separately * removed by a filter. + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. * * Generated from protobuf field bool keep_empty_rows = 13; */ @@ -160,7 +165,7 @@ class RunReportRequest extends \Google\Protobuf\Internal\Message * response rows for both date ranges. In a cohort request, this `dateRanges` * must be unspecified. * @type \Google\Analytics\Data\V1beta\FilterExpression $dimension_filter - * Dimension filters allow you to ask for only specific dimension values in + * Dimension filters let you ask for only specific dimension values in * the report. To learn more, see [Fundamentals of Dimension * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) * for examples. Metrics cannot be used in this filter. @@ -177,7 +182,7 @@ class RunReportRequest extends \Google\Protobuf\Internal\Message * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). * @type int|string $limit * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you + * API returns a maximum of 250,000 rows per request, no matter how many you * ask for. `limit` must be positive. * The API can also return fewer rows than the requested `limit`, if there * aren't as many dimension values as the `limit`. For instance, there are @@ -201,6 +206,11 @@ class RunReportRequest extends \Google\Protobuf\Internal\Message * If false or unspecified, each row with all metrics equal to 0 will not be * returned. If true, these rows will be returned if they are not separately * removed by a filter. + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. * @type bool $return_property_quota * Toggles whether to return the current state of this Analytics Property's * quota. Quota is returned in [PropertyQuota](#PropertyQuota). @@ -336,7 +346,7 @@ public function setDateRanges($var) } /** - * Dimension filters allow you to ask for only specific dimension values in + * Dimension filters let you ask for only specific dimension values in * the report. To learn more, see [Fundamentals of Dimension * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) * for examples. Metrics cannot be used in this filter. @@ -360,7 +370,7 @@ public function clearDimensionFilter() } /** - * Dimension filters allow you to ask for only specific dimension values in + * Dimension filters let you ask for only specific dimension values in * the report. To learn more, see [Fundamentals of Dimension * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) * for examples. Metrics cannot be used in this filter. @@ -455,7 +465,7 @@ public function setOffset($var) /** * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you + * API returns a maximum of 250,000 rows per request, no matter how many you * ask for. `limit` must be positive. * The API can also return fewer rows than the requested `limit`, if there * aren't as many dimension values as the `limit`. For instance, there are @@ -475,7 +485,7 @@ public function getLimit() /** * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 100,000 rows per request, no matter how many you + * API returns a maximum of 250,000 rows per request, no matter how many you * ask for. `limit` must be positive. * The API can also return fewer rows than the requested `limit`, if there * aren't as many dimension values as the `limit`. For instance, there are @@ -621,6 +631,11 @@ public function setCohortSpec($var) * If false or unspecified, each row with all metrics equal to 0 will not be * returned. If true, these rows will be returned if they are not separately * removed by a filter. + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. * * Generated from protobuf field bool keep_empty_rows = 13; * @return bool @@ -634,6 +649,11 @@ public function getKeepEmptyRows() * If false or unspecified, each row with all metrics equal to 0 will not be * returned. If true, these rows will be returned if they are not separately * removed by a filter. + * Regardless of this `keep_empty_rows` setting, only data recorded by the + * Google Analytics (GA4) property can be displayed in a report. + * For example if a property never logs a `purchase` event, then a query for + * the `eventName` dimension and `eventCount` metric will not have a row + * eventName: "purchase" and eventCount: 0. * * Generated from protobuf field bool keep_empty_rows = 13; * @param bool $var diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/AnalyticsDataApi.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/AnalyticsDataApi.php deleted file mode 100644 index 168e563b742..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/AnalyticsDataApi.php +++ /dev/null @@ -1,148 +0,0 @@ -internalAddGeneratedFile( - ' -˛2 -5google/analytics/data/v1beta/analytics_data_api.protogoogle.analytics.data.v1betagoogle/api/annotations.protogoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"ý -CheckCompatibilityRequest -property ( ; - -dimensions ( 2\'.google.analytics.data.v1beta.Dimension5 -metrics ( 2$.google.analytics.data.v1beta.MetricH -dimension_filter ( 2..google.analytics.data.v1beta.FilterExpressionE - metric_filter ( 2..google.analytics.data.v1beta.FilterExpressionI -compatibility_filter (2+.google.analytics.data.v1beta.Compatibility"Č -CheckCompatibilityResponseW -dimension_compatibilities ( 24.google.analytics.data.v1beta.DimensionCompatibilityQ -metric_compatibilities ( 21.google.analytics.data.v1beta.MetricCompatibility"č -Metadata -name ( C - -dimensions ( 2/.google.analytics.data.v1beta.DimensionMetadata= -metrics ( 2,.google.analytics.data.v1beta.MetricMetadata:JęAG -%analyticsdata.googleapis.com/Metadataproperties/{property}/metadata"ś -RunReportRequest -property ( ; - -dimensions ( 2\'.google.analytics.data.v1beta.Dimension5 -metrics ( 2$.google.analytics.data.v1beta.Metric< - date_ranges ( 2\'.google.analytics.data.v1beta.DateRangeH -dimension_filter ( 2..google.analytics.data.v1beta.FilterExpressionE - metric_filter ( 2..google.analytics.data.v1beta.FilterExpression -offset ( -limit (L -metric_aggregations (2/.google.analytics.data.v1beta.MetricAggregation8 - order_bys - ( 2%.google.analytics.data.v1beta.OrderBy - currency_code ( = - cohort_spec ( 2(.google.analytics.data.v1beta.CohortSpec -keep_empty_rows ( -return_property_quota ("— -RunReportResponseH -dimension_headers ( 2-.google.analytics.data.v1beta.DimensionHeaderB -metric_headers ( 2*.google.analytics.data.v1beta.MetricHeader/ -rows ( 2!.google.analytics.data.v1beta.Row1 -totals ( 2!.google.analytics.data.v1beta.Row3 -maximums ( 2!.google.analytics.data.v1beta.Row3 -minimums ( 2!.google.analytics.data.v1beta.Row - row_count (@ -metadata ( 2..google.analytics.data.v1beta.ResponseMetaDataC -property_quota ( 2+.google.analytics.data.v1beta.PropertyQuota -kind - ( "Ż -RunPivotReportRequest -property ( ; - -dimensions ( 2\'.google.analytics.data.v1beta.Dimension5 -metrics ( 2$.google.analytics.data.v1beta.Metric< - date_ranges ( 2\'.google.analytics.data.v1beta.DateRange3 -pivots ( 2#.google.analytics.data.v1beta.PivotH -dimension_filter ( 2..google.analytics.data.v1beta.FilterExpressionE - metric_filter ( 2..google.analytics.data.v1beta.FilterExpression - currency_code ( = - cohort_spec ( 2(.google.analytics.data.v1beta.CohortSpec -keep_empty_rows - ( -return_property_quota ("ĺ -RunPivotReportResponse@ - pivot_headers ( 2).google.analytics.data.v1beta.PivotHeaderH -dimension_headers ( 2-.google.analytics.data.v1beta.DimensionHeaderB -metric_headers ( 2*.google.analytics.data.v1beta.MetricHeader/ -rows ( 2!.google.analytics.data.v1beta.Row5 - -aggregates ( 2!.google.analytics.data.v1beta.Row@ -metadata ( 2..google.analytics.data.v1beta.ResponseMetaDataC -property_quota ( 2+.google.analytics.data.v1beta.PropertyQuota -kind ( "l -BatchRunReportsRequest -property ( @ -requests ( 2..google.analytics.data.v1beta.RunReportRequest"i -BatchRunReportsResponse@ -reports ( 2/.google.analytics.data.v1beta.RunReportResponse -kind ( "v -BatchRunPivotReportsRequest -property ( E -requests ( 23.google.analytics.data.v1beta.RunPivotReportRequest"y -BatchRunPivotReportsResponseK - pivot_reports ( 24.google.analytics.data.v1beta.RunPivotReportResponse -kind ( "Q -GetMetadataRequest; -name ( B-ŕAúA\' -%analyticsdata.googleapis.com/Metadata"© -RunRealtimeReportRequest -property ( ; - -dimensions ( 2\'.google.analytics.data.v1beta.Dimension5 -metrics ( 2$.google.analytics.data.v1beta.MetricH -dimension_filter ( 2..google.analytics.data.v1beta.FilterExpressionE - metric_filter ( 2..google.analytics.data.v1beta.FilterExpression -limit (L -metric_aggregations (2/.google.analytics.data.v1beta.MetricAggregation8 - order_bys ( 2%.google.analytics.data.v1beta.OrderBy -return_property_quota (@ - minute_ranges - ( 2).google.analytics.data.v1beta.MinuteRange"Ý -RunRealtimeReportResponseH -dimension_headers ( 2-.google.analytics.data.v1beta.DimensionHeaderB -metric_headers ( 2*.google.analytics.data.v1beta.MetricHeader/ -rows ( 2!.google.analytics.data.v1beta.Row1 -totals ( 2!.google.analytics.data.v1beta.Row3 -maximums ( 2!.google.analytics.data.v1beta.Row3 -minimums ( 2!.google.analytics.data.v1beta.Row - row_count (C -property_quota ( 2+.google.analytics.data.v1beta.PropertyQuota -kind ( 2¬ -BetaAnalyticsData˘ - RunReport..google.analytics.data.v1beta.RunReportRequest/.google.analytics.data.v1beta.RunReportResponse"4‚Óä“.")/v1beta/{property=properties/*}:runReport:*¶ -RunPivotReport3.google.analytics.data.v1beta.RunPivotReportRequest4.google.analytics.data.v1beta.RunPivotReportResponse"9‚Óä“3"./v1beta/{property=properties/*}:runPivotReport:*ş -BatchRunReports4.google.analytics.data.v1beta.BatchRunReportsRequest5.google.analytics.data.v1beta.BatchRunReportsResponse":‚Óä“4"//v1beta/{property=properties/*}:batchRunReports:*Î -BatchRunPivotReports9.google.analytics.data.v1beta.BatchRunPivotReportsRequest:.google.analytics.data.v1beta.BatchRunPivotReportsResponse"?‚Óä“9"4/v1beta/{property=properties/*}:batchRunPivotReports:*ś - GetMetadata0.google.analytics.data.v1beta.GetMetadataRequest&.google.analytics.data.v1beta.Metadata"3‚Óä“&$/v1beta/{name=properties/*/metadata}ÚAname -RunRealtimeReport6.google.analytics.data.v1beta.RunRealtimeReportRequest7.google.analytics.data.v1beta.RunRealtimeReportResponse"<‚Óä“6"1/v1beta/{property=properties/*}:runRealtimeReport:*Ć -CheckCompatibility7.google.analytics.data.v1beta.CheckCompatibilityRequest8.google.analytics.data.v1beta.CheckCompatibilityResponse"=‚Óä“7"2/v1beta/{property=properties/*}:checkCompatibility:*~ĘAanalyticsdata.googleapis.comŇA\\https://www.googleapis.com/auth/analytics,https://www.googleapis.com/auth/analytics.readonlyB} - com.google.analytics.data.v1betaBAnalyticsDataApiProtoPZ@google.golang.org/genproto/googleapis/analytics/data/v1beta;databproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/Data.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/GPBMetadata/Google/Analytics/Data/V1Beta/Data.php deleted file mode 100644 index 1ffc46acca50497858fda50d44d2c646629ffa16..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8021 zcmcIp&vP4B9gi$ak-qw2dF?ok(uVC4h?5p&szL^wr0q&tOKN0EmDXuPJzdt)v%Iam zD|S~7F4F@8%y0o_I56Cq;l}V6aN@>^3zrVVg(Lq2-}m0`YGuo^+zB~2+PCk0-uL&f zee&MuXawIBtHdO>?vlQEa4Nb-L>$?cYxS(5crZRZB(~VIjz`9j*acCnw8Umh6_rX| zeFKj=*4XZmZE;{(gCTjSoBHt7HG0m&zV7M|Pu@Nt_#gdUV3+`=eoUN^-XmhQUE0OB z^yPk)9p9JzpP8|scD(lz)gi1=?bJ{TH3(Q$RWOuTD2nqeBQp%0BO zkc+3{p+0m79z4JIaBTKm!!kvBpk?;R)_sv<(!F;_7IOVm^a*NHL7))!>!wR=q;9`L zoStorT+43b*6r;9aRc$um96{UwG_@c6t_5y+uP@ed@8#3n1pW^MVq)|+kDLErT||C zzZhlTdDrmhko*1M+8tEQR|5?Md%J5+zSMx;Y?% z0DuhHu7*3vW<-o^C50R$h}q{WOKc?#%T&*sQTinPJOZg*!yNk8+{a+l6`JDFmQOa8UYF6xL>}3(o4Oj%MAYgE5jGcczSYM z?Ha`$k48Rj?3Lku3aOrD_E6O(Rd<{LSHA|q6Ob_7`7Ov!^CE0OcA^SqLrg{aGTbQ7 z0ugS)%JcyTO(}|2xeCcX85+k1Ixf>>vXq0YWs;DFrKb?b7-Sp0GZukne#QaeY!8Q<;@88e zLDsa~5ZlZzQ^ms7s6vV!LHv-h>)GzzMG$J&N^w}G;*>st^;x_MWk^lL%@ufM@}z$! zAkNWglsYuXu&+%lNcaFU4rD<%{?9Q_@6C4Uc?HfL|E9R7%D;t8Hk3wga!YtwQfXGa z$0+)IqTFh#GVaJN)7?9JjfU1ys>;XhTnw!!+m<_OT@Kdb`A3irt53*6oRRNGo%8fl z&rRh2xCEIgRiPx47KUsrU@+6rAeSvZSxAsmFol+nA^adL$yD*dd@v8?IhDOcr8@z- z1vgr4r6a5LR&$1MKircWC|s0fL+N%kwI(-Fv>PASZ+KH{kWM+*LG;0!p)6 zSL@FeZEDMskb>*}{%HPh5lDxHHd7|TCy-;xz(_VEtmAM{!BI3{c`*ftuPCsGu8)+L zF)~rL1uGXyd#XGN1=>;;($uuMDh^I1BqJ2W3*ygJ2>_E_|`&v&c9qv&}=e7a?lK17mE*PG3Vr1 z9d@+qos6iG>?2<>FnQ|FU_FIlm3YoKE=&5NDWXDx~!a&;ap|6y+KIW}dr?DZYjeQRxA!&k`)XTkrM8$H<@8)F!0A#~|0iNrh!P1no>m z>F9z8nm}1`La^bs(>o%^I_jO4o6Pg+ZwBO*&9(W8ID2iO z%Mfwd2lRLFemRfkI<{?M_D;2))hFmY*mm=7c>|Iz+J^Q8Iy>v%lC>q;Mc;xnIUc#E zNSf|o0dk!kiPBeh;ifY__zZ)VhN;s%LgJ6CVIPfmGl9DjwPoCu|LYRmx{xm67ZJ$o z$omP=Jnu#npL*XJfAp%vP>|VGJRF3?l>b8nZeH+C*qo8cxIDXX)2Ei;7=opFmaTZ? z%U;&b`4o^or-K0`LA2727%{#< zTvD+xth0Pz@I&uIyC0h_BQPd?3hOhs?m%vGbEs-h72lfAQgA1)mVX<8Xvcbq{rM}w z6W)i6XJj5xyiT}3pC~S8PEi4}(==i;6GC0GeT9N|QoU4A8u9ay82E*3^z42nM?L+p;-VIQnMclyb<(q7lkbMmj5$Vewd|%WQz-jSynm)vuB>< zXLCrCd_w5L%E8d;ea=jWCVvO>I<2<17YR7N3<@QV(P8z&l-Pi(MM9I!Oz*h^`BI}* zex_7##v*sm4Hs~P&}`wW=Sp)=(RLLT`?D_Ab8E1I>*ZEg4HlQAe??#;FqblZpTfrB zz!+kADzri9`}Hu*xy+KhKK+u8B0%)n1z;;Xjh3up2Y~|v_S{u)R#>5f!W*#4R(9)+M%`bI z1sjpTJyq%E;sI2xwb$w9u4B~8a41!7R^(14mk5^1d!3HbEWgMl>0pf$peSk%0ua0n zK~r>0$!}M1rq<1+se7=6XZ1!48KsMv2O6x;Dno^DgVa&F)U#A{!;9sDL@`KXnXkjGa%;DZ3M|zd=le4htN*&8aKw5uw6at>1^S(Nu1l3xc}t90 zLmnCI<7_+f!}q=Ka|3IL-Fm^Y2M-6t#4P4o5BV#M|IX}h(~oICcMxZr-?google.analytics.data.v1beta.BatchRunPivotReportsRequest - */ -class BatchRunPivotReportsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunPivotReportRequest may either be unspecified or consistent with this - * property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - */ - protected $property = ''; - /** - * Individual requests. Each request has a separate pivot report response. - * Each batch request is allowed up to 5 requests. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - */ - private $requests; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunPivotReportRequest may either be unspecified or consistent with this - * property. - * Example: properties/1234 - * @type array<\Google\Analytics\Data\V1beta\RunPivotReportRequest>|\Google\Protobuf\Internal\RepeatedField $requests - * Individual requests. Each request has a separate pivot report response. - * Each batch request is allowed up to 5 requests. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunPivotReportRequest may either be unspecified or consistent with this - * property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunPivotReportRequest may either be unspecified or consistent with this - * property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Individual requests. Each request has a separate pivot report response. - * Each batch request is allowed up to 5 requests. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Individual requests. Each request has a separate pivot report response. - * Each batch request is allowed up to 5 requests. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunPivotReportRequest requests = 2; - * @param array<\Google\Analytics\Data\V1beta\RunPivotReportRequest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\RunPivotReportRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunPivotReportsResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunPivotReportsResponse.php deleted file mode 100644 index 3b7abe9c8ac..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunPivotReportsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.data.v1beta.BatchRunPivotReportsResponse - */ -class BatchRunPivotReportsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Individual responses. Each response has a separate pivot report request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - */ - private $pivot_reports; - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish - * between response types in JSON. - * - * Generated from protobuf field string kind = 2; - */ - protected $kind = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\RunPivotReportResponse>|\Google\Protobuf\Internal\RepeatedField $pivot_reports - * Individual responses. Each response has a separate pivot report request. - * @type string $kind - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish - * between response types in JSON. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Individual responses. Each response has a separate pivot report request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPivotReports() - { - return $this->pivot_reports; - } - - /** - * Individual responses. Each response has a separate pivot report request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunPivotReportResponse pivot_reports = 1; - * @param array<\Google\Analytics\Data\V1beta\RunPivotReportResponse>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPivotReports($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\RunPivotReportResponse::class); - $this->pivot_reports = $arr; - - return $this; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish - * between response types in JSON. - * - * Generated from protobuf field string kind = 2; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#batchRunPivotReports". Useful to distinguish - * between response types in JSON. - * - * Generated from protobuf field string kind = 2; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsRequest.php deleted file mode 100644 index 5eebae015a4..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsRequest.php +++ /dev/null @@ -1,133 +0,0 @@ -google.analytics.data.v1beta.BatchRunReportsRequest - */ -class BatchRunReportsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunReportRequest may either be unspecified or consistent with this - * property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - */ - protected $property = ''; - /** - * Individual requests. Each request has a separate report response. Each - * batch request is allowed up to 5 requests. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - */ - private $requests; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunReportRequest may either be unspecified or consistent with this - * property. - * Example: properties/1234 - * @type array<\Google\Analytics\Data\V1beta\RunReportRequest>|\Google\Protobuf\Internal\RepeatedField $requests - * Individual requests. Each request has a separate report response. Each - * batch request is allowed up to 5 requests. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunReportRequest may either be unspecified or consistent with this - * property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunReportRequest may either be unspecified or consistent with this - * property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Individual requests. Each request has a separate report response. Each - * batch request is allowed up to 5 requests. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Individual requests. Each request has a separate report response. Each - * batch request is allowed up to 5 requests. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunReportRequest requests = 2; - * @param array<\Google\Analytics\Data\V1beta\RunReportRequest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\RunReportRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsResponse.php deleted file mode 100644 index f45db6b80c2..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/BatchRunReportsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.analytics.data.v1beta.BatchRunReportsResponse - */ -class BatchRunReportsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Individual responses. Each response has a separate report request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - */ - private $reports; - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#batchRunReports". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 2; - */ - protected $kind = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\RunReportResponse>|\Google\Protobuf\Internal\RepeatedField $reports - * Individual responses. Each response has a separate report request. - * @type string $kind - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#batchRunReports". Useful to distinguish between - * response types in JSON. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Individual responses. Each response has a separate report request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getReports() - { - return $this->reports; - } - - /** - * Individual responses. Each response has a separate report request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RunReportResponse reports = 1; - * @param array<\Google\Analytics\Data\V1beta\RunReportResponse>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setReports($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\RunReportResponse::class); - $this->reports = $arr; - - return $this; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#batchRunReports". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 2; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#batchRunReports". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 2; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityRequest.php deleted file mode 100644 index dffa0b43fe7..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityRequest.php +++ /dev/null @@ -1,300 +0,0 @@ -google.analytics.data.v1beta.CheckCompatibilityRequest - */ -class CheckCompatibilityRequest extends \Google\Protobuf\Internal\Message -{ - /** - * A Google Analytics GA4 property identifier whose events are tracked. To - * learn more, see [where to find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * `property` should be the same value as in your `runReport` request. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - */ - protected $property = ''; - /** - * The dimensions in this report. `dimensions` should be the same value as in - * your `runReport` request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - private $dimensions; - /** - * The metrics in this report. `metrics` should be the same value as in your - * `runReport` request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - private $metrics; - /** - * The filter clause of dimensions. `dimensionFilter` should be the same value - * as in your `runReport` request. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - protected $dimension_filter = null; - /** - * The filter clause of metrics. `metricFilter` should be the same value as in - * your `runReport` request - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - protected $metric_filter = null; - /** - * Filters the dimensions and metrics in the response to just this - * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”` - * to only return compatible dimensions & metrics. - * - * Generated from protobuf field .google.analytics.data.v1beta.Compatibility compatibility_filter = 6; - */ - protected $compatibility_filter = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. To - * learn more, see [where to find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * `property` should be the same value as in your `runReport` request. - * Example: properties/1234 - * @type array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $dimensions - * The dimensions in this report. `dimensions` should be the same value as in - * your `runReport` request. - * @type array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $metrics - * The metrics in this report. `metrics` should be the same value as in your - * `runReport` request. - * @type \Google\Analytics\Data\V1beta\FilterExpression $dimension_filter - * The filter clause of dimensions. `dimensionFilter` should be the same value - * as in your `runReport` request. - * @type \Google\Analytics\Data\V1beta\FilterExpression $metric_filter - * The filter clause of metrics. `metricFilter` should be the same value as in - * your `runReport` request - * @type int $compatibility_filter - * Filters the dimensions and metrics in the response to just this - * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”` - * to only return compatible dimensions & metrics. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. To - * learn more, see [where to find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * `property` should be the same value as in your `runReport` request. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. To - * learn more, see [where to find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * `property` should be the same value as in your `runReport` request. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * The dimensions in this report. `dimensions` should be the same value as in - * your `runReport` request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * The dimensions in this report. `dimensions` should be the same value as in - * your `runReport` request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - * @param array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Dimension::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * The metrics in this report. `metrics` should be the same value as in your - * `runReport` request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * The metrics in this report. `metrics` should be the same value as in your - * `runReport` request. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - * @param array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Metric::class); - $this->metrics = $arr; - - return $this; - } - - /** - * The filter clause of dimensions. `dimensionFilter` should be the same value - * as in your `runReport` request. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * @return \Google\Analytics\Data\V1beta\FilterExpression|null - */ - public function getDimensionFilter() - { - return $this->dimension_filter; - } - - public function hasDimensionFilter() - { - return isset($this->dimension_filter); - } - - public function clearDimensionFilter() - { - unset($this->dimension_filter); - } - - /** - * The filter clause of dimensions. `dimensionFilter` should be the same value - * as in your `runReport` request. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * @param \Google\Analytics\Data\V1beta\FilterExpression $var - * @return $this - */ - public function setDimensionFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->dimension_filter = $var; - - return $this; - } - - /** - * The filter clause of metrics. `metricFilter` should be the same value as in - * your `runReport` request - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * @return \Google\Analytics\Data\V1beta\FilterExpression|null - */ - public function getMetricFilter() - { - return $this->metric_filter; - } - - public function hasMetricFilter() - { - return isset($this->metric_filter); - } - - public function clearMetricFilter() - { - unset($this->metric_filter); - } - - /** - * The filter clause of metrics. `metricFilter` should be the same value as in - * your `runReport` request - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * @param \Google\Analytics\Data\V1beta\FilterExpression $var - * @return $this - */ - public function setMetricFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->metric_filter = $var; - - return $this; - } - - /** - * Filters the dimensions and metrics in the response to just this - * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”` - * to only return compatible dimensions & metrics. - * - * Generated from protobuf field .google.analytics.data.v1beta.Compatibility compatibility_filter = 6; - * @return int - */ - public function getCompatibilityFilter() - { - return $this->compatibility_filter; - } - - /** - * Filters the dimensions and metrics in the response to just this - * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”` - * to only return compatible dimensions & metrics. - * - * Generated from protobuf field .google.analytics.data.v1beta.Compatibility compatibility_filter = 6; - * @param int $var - * @return $this - */ - public function setCompatibilityFilter($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\Compatibility::class); - $this->compatibility_filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityResponse.php deleted file mode 100644 index 09d73dc1bcd..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CheckCompatibilityResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.analytics.data.v1beta.CheckCompatibilityResponse - */ -class CheckCompatibilityResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The compatibility of each dimension. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - */ - private $dimension_compatibilities; - /** - * The compatibility of each metric. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - */ - private $metric_compatibilities; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\DimensionCompatibility>|\Google\Protobuf\Internal\RepeatedField $dimension_compatibilities - * The compatibility of each dimension. - * @type array<\Google\Analytics\Data\V1beta\MetricCompatibility>|\Google\Protobuf\Internal\RepeatedField $metric_compatibilities - * The compatibility of each metric. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * The compatibility of each dimension. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionCompatibilities() - { - return $this->dimension_compatibilities; - } - - /** - * The compatibility of each dimension. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionCompatibility dimension_compatibilities = 1; - * @param array<\Google\Analytics\Data\V1beta\DimensionCompatibility>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionCompatibilities($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionCompatibility::class); - $this->dimension_compatibilities = $arr; - - return $this; - } - - /** - * The compatibility of each metric. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricCompatibilities() - { - return $this->metric_compatibilities; - } - - /** - * The compatibility of each metric. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricCompatibility metric_compatibilities = 2; - * @param array<\Google\Analytics\Data\V1beta\MetricCompatibility>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricCompatibilities($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricCompatibility::class); - $this->metric_compatibilities = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Cohort.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Cohort.php deleted file mode 100644 index 2af25ee8e36..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Cohort.php +++ /dev/null @@ -1,215 +0,0 @@ -google.analytics.data.v1beta.Cohort - */ -class Cohort extends \Google\Protobuf\Internal\Message -{ - /** - * Assigns a name to this cohort. The dimension `cohort` is valued to this - * name in a report response. If set, cannot begin with `cohort_` or - * `RESERVED_`. If not set, cohorts are named by their zero based index - * `cohort_0`, `cohort_1`, etc. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Dimension used by the cohort. Required and only supports - * `firstSessionDate`. - * - * Generated from protobuf field string dimension = 2; - */ - protected $dimension = ''; - /** - * The cohort selects users whose first touch date is between start date and - * end date defined in the `dateRange`. This `dateRange` does not specify the - * full date range of event data that is present in a cohort report. In a - * cohort report, this `dateRange` is extended by the granularity and offset - * present in the `cohortsRange`; event data for the extended reporting date - * range is present in a cohort report. - * In a cohort request, this `dateRange` is required and the `dateRanges` in - * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. - * This `dateRange` should generally be aligned with the cohort's granularity. - * If `CohortsRange` uses daily granularity, this `dateRange` can be a single - * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be - * aligned to a week boundary, starting at Sunday and ending Saturday. If - * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to - * a month, starting at the first and ending on the last day of the month. - * - * Generated from protobuf field .google.analytics.data.v1beta.DateRange date_range = 3; - */ - protected $date_range = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Assigns a name to this cohort. The dimension `cohort` is valued to this - * name in a report response. If set, cannot begin with `cohort_` or - * `RESERVED_`. If not set, cohorts are named by their zero based index - * `cohort_0`, `cohort_1`, etc. - * @type string $dimension - * Dimension used by the cohort. Required and only supports - * `firstSessionDate`. - * @type \Google\Analytics\Data\V1beta\DateRange $date_range - * The cohort selects users whose first touch date is between start date and - * end date defined in the `dateRange`. This `dateRange` does not specify the - * full date range of event data that is present in a cohort report. In a - * cohort report, this `dateRange` is extended by the granularity and offset - * present in the `cohortsRange`; event data for the extended reporting date - * range is present in a cohort report. - * In a cohort request, this `dateRange` is required and the `dateRanges` in - * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. - * This `dateRange` should generally be aligned with the cohort's granularity. - * If `CohortsRange` uses daily granularity, this `dateRange` can be a single - * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be - * aligned to a week boundary, starting at Sunday and ending Saturday. If - * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to - * a month, starting at the first and ending on the last day of the month. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Assigns a name to this cohort. The dimension `cohort` is valued to this - * name in a report response. If set, cannot begin with `cohort_` or - * `RESERVED_`. If not set, cohorts are named by their zero based index - * `cohort_0`, `cohort_1`, etc. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Assigns a name to this cohort. The dimension `cohort` is valued to this - * name in a report response. If set, cannot begin with `cohort_` or - * `RESERVED_`. If not set, cohorts are named by their zero based index - * `cohort_0`, `cohort_1`, etc. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Dimension used by the cohort. Required and only supports - * `firstSessionDate`. - * - * Generated from protobuf field string dimension = 2; - * @return string - */ - public function getDimension() - { - return $this->dimension; - } - - /** - * Dimension used by the cohort. Required and only supports - * `firstSessionDate`. - * - * Generated from protobuf field string dimension = 2; - * @param string $var - * @return $this - */ - public function setDimension($var) - { - GPBUtil::checkString($var, True); - $this->dimension = $var; - - return $this; - } - - /** - * The cohort selects users whose first touch date is between start date and - * end date defined in the `dateRange`. This `dateRange` does not specify the - * full date range of event data that is present in a cohort report. In a - * cohort report, this `dateRange` is extended by the granularity and offset - * present in the `cohortsRange`; event data for the extended reporting date - * range is present in a cohort report. - * In a cohort request, this `dateRange` is required and the `dateRanges` in - * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. - * This `dateRange` should generally be aligned with the cohort's granularity. - * If `CohortsRange` uses daily granularity, this `dateRange` can be a single - * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be - * aligned to a week boundary, starting at Sunday and ending Saturday. If - * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to - * a month, starting at the first and ending on the last day of the month. - * - * Generated from protobuf field .google.analytics.data.v1beta.DateRange date_range = 3; - * @return \Google\Analytics\Data\V1beta\DateRange|null - */ - public function getDateRange() - { - return $this->date_range; - } - - public function hasDateRange() - { - return isset($this->date_range); - } - - public function clearDateRange() - { - unset($this->date_range); - } - - /** - * The cohort selects users whose first touch date is between start date and - * end date defined in the `dateRange`. This `dateRange` does not specify the - * full date range of event data that is present in a cohort report. In a - * cohort report, this `dateRange` is extended by the granularity and offset - * present in the `cohortsRange`; event data for the extended reporting date - * range is present in a cohort report. - * In a cohort request, this `dateRange` is required and the `dateRanges` in - * the `RunReportRequest` or `RunPivotReportRequest` must be unspecified. - * This `dateRange` should generally be aligned with the cohort's granularity. - * If `CohortsRange` uses daily granularity, this `dateRange` can be a single - * day. If `CohortsRange` uses weekly granularity, this `dateRange` can be - * aligned to a week boundary, starting at Sunday and ending Saturday. If - * `CohortsRange` uses monthly granularity, this `dateRange` can be aligned to - * a month, starting at the first and ending on the last day of the month. - * - * Generated from protobuf field .google.analytics.data.v1beta.DateRange date_range = 3; - * @param \Google\Analytics\Data\V1beta\DateRange $var - * @return $this - */ - public function setDateRange($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\DateRange::class); - $this->date_range = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortReportSettings.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortReportSettings.php deleted file mode 100644 index 18831386174..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortReportSettings.php +++ /dev/null @@ -1,71 +0,0 @@ -google.analytics.data.v1beta.CohortReportSettings - */ -class CohortReportSettings extends \Google\Protobuf\Internal\Message -{ - /** - * If true, accumulates the result from first touch day to the end day. Not - * supported in `RunReportRequest`. - * - * Generated from protobuf field bool accumulate = 1; - */ - protected $accumulate = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $accumulate - * If true, accumulates the result from first touch day to the end day. Not - * supported in `RunReportRequest`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * If true, accumulates the result from first touch day to the end day. Not - * supported in `RunReportRequest`. - * - * Generated from protobuf field bool accumulate = 1; - * @return bool - */ - public function getAccumulate() - { - return $this->accumulate; - } - - /** - * If true, accumulates the result from first touch day to the end day. Not - * supported in `RunReportRequest`. - * - * Generated from protobuf field bool accumulate = 1; - * @param bool $var - * @return $this - */ - public function setAccumulate($var) - { - GPBUtil::checkBool($var); - $this->accumulate = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortSpec.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortSpec.php deleted file mode 100644 index 3fb245a459c..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortSpec.php +++ /dev/null @@ -1,179 +0,0 @@ -google.analytics.data.v1beta.CohortSpec - */ -class CohortSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Defines the selection criteria to group users into cohorts. - * Most cohort reports define only a single cohort. If multiple cohorts are - * specified, each cohort can be recognized in the report by their name. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - */ - private $cohorts; - /** - * Cohort reports follow cohorts over an extended reporting date range. This - * range specifies an offset duration to follow the cohorts over. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - */ - protected $cohorts_range = null; - /** - * Optional settings for a cohort report. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - */ - protected $cohort_report_settings = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\Cohort>|\Google\Protobuf\Internal\RepeatedField $cohorts - * Defines the selection criteria to group users into cohorts. - * Most cohort reports define only a single cohort. If multiple cohorts are - * specified, each cohort can be recognized in the report by their name. - * @type \Google\Analytics\Data\V1beta\CohortsRange $cohorts_range - * Cohort reports follow cohorts over an extended reporting date range. This - * range specifies an offset duration to follow the cohorts over. - * @type \Google\Analytics\Data\V1beta\CohortReportSettings $cohort_report_settings - * Optional settings for a cohort report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Defines the selection criteria to group users into cohorts. - * Most cohort reports define only a single cohort. If multiple cohorts are - * specified, each cohort can be recognized in the report by their name. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCohorts() - { - return $this->cohorts; - } - - /** - * Defines the selection criteria to group users into cohorts. - * Most cohort reports define only a single cohort. If multiple cohorts are - * specified, each cohort can be recognized in the report by their name. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Cohort cohorts = 1; - * @param array<\Google\Analytics\Data\V1beta\Cohort>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCohorts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Cohort::class); - $this->cohorts = $arr; - - return $this; - } - - /** - * Cohort reports follow cohorts over an extended reporting date range. This - * range specifies an offset duration to follow the cohorts over. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - * @return \Google\Analytics\Data\V1beta\CohortsRange|null - */ - public function getCohortsRange() - { - return $this->cohorts_range; - } - - public function hasCohortsRange() - { - return isset($this->cohorts_range); - } - - public function clearCohortsRange() - { - unset($this->cohorts_range); - } - - /** - * Cohort reports follow cohorts over an extended reporting date range. This - * range specifies an offset duration to follow the cohorts over. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortsRange cohorts_range = 2; - * @param \Google\Analytics\Data\V1beta\CohortsRange $var - * @return $this - */ - public function setCohortsRange($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\CohortsRange::class); - $this->cohorts_range = $var; - - return $this; - } - - /** - * Optional settings for a cohort report. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - * @return \Google\Analytics\Data\V1beta\CohortReportSettings|null - */ - public function getCohortReportSettings() - { - return $this->cohort_report_settings; - } - - public function hasCohortReportSettings() - { - return isset($this->cohort_report_settings); - } - - public function clearCohortReportSettings() - { - unset($this->cohort_report_settings); - } - - /** - * Optional settings for a cohort report. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortReportSettings cohort_report_settings = 3; - * @param \Google\Analytics\Data\V1beta\CohortReportSettings $var - * @return $this - */ - public function setCohortReportSettings($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\CohortReportSettings::class); - $this->cohort_report_settings = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange.php deleted file mode 100644 index 2877e4dbc3a..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange.php +++ /dev/null @@ -1,208 +0,0 @@ -google.analytics.data.v1beta.CohortsRange - */ -class CohortsRange extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The granularity used to interpret the `startOffset` and - * `endOffset` for the extended reporting date range for a cohort report. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1; - */ - protected $granularity = 0; - /** - * `startOffset` specifies the start date of the extended reporting date range - * for a cohort report. `startOffset` is commonly set to 0 so that reports - * contain data from the acquisition of the cohort forward. - * If `granularity` is `DAILY`, the `startDate` of the extended reporting date - * range is `startDate` of the cohort plus `startOffset` days. - * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 7` days. - * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 30` days. - * - * Generated from protobuf field int32 start_offset = 2; - */ - protected $start_offset = 0; - /** - * Required. `endOffset` specifies the end date of the extended reporting date - * range for a cohort report. `endOffset` can be any positive integer but is - * commonly set to 5 to 10 so that reports contain data on the cohort for the - * next several granularity time periods. - * If `granularity` is `DAILY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset` days. - * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 7` days. - * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 30` days. - * - * Generated from protobuf field int32 end_offset = 3; - */ - protected $end_offset = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $granularity - * Required. The granularity used to interpret the `startOffset` and - * `endOffset` for the extended reporting date range for a cohort report. - * @type int $start_offset - * `startOffset` specifies the start date of the extended reporting date range - * for a cohort report. `startOffset` is commonly set to 0 so that reports - * contain data from the acquisition of the cohort forward. - * If `granularity` is `DAILY`, the `startDate` of the extended reporting date - * range is `startDate` of the cohort plus `startOffset` days. - * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 7` days. - * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 30` days. - * @type int $end_offset - * Required. `endOffset` specifies the end date of the extended reporting date - * range for a cohort report. `endOffset` can be any positive integer but is - * commonly set to 5 to 10 so that reports contain data on the cohort for the - * next several granularity time periods. - * If `granularity` is `DAILY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset` days. - * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 7` days. - * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 30` days. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Required. The granularity used to interpret the `startOffset` and - * `endOffset` for the extended reporting date range for a cohort report. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1; - * @return int - */ - public function getGranularity() - { - return $this->granularity; - } - - /** - * Required. The granularity used to interpret the `startOffset` and - * `endOffset` for the extended reporting date range for a cohort report. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortsRange.Granularity granularity = 1; - * @param int $var - * @return $this - */ - public function setGranularity($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\CohortsRange\Granularity::class); - $this->granularity = $var; - - return $this; - } - - /** - * `startOffset` specifies the start date of the extended reporting date range - * for a cohort report. `startOffset` is commonly set to 0 so that reports - * contain data from the acquisition of the cohort forward. - * If `granularity` is `DAILY`, the `startDate` of the extended reporting date - * range is `startDate` of the cohort plus `startOffset` days. - * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 7` days. - * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 30` days. - * - * Generated from protobuf field int32 start_offset = 2; - * @return int - */ - public function getStartOffset() - { - return $this->start_offset; - } - - /** - * `startOffset` specifies the start date of the extended reporting date range - * for a cohort report. `startOffset` is commonly set to 0 so that reports - * contain data from the acquisition of the cohort forward. - * If `granularity` is `DAILY`, the `startDate` of the extended reporting date - * range is `startDate` of the cohort plus `startOffset` days. - * If `granularity` is `WEEKLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 7` days. - * If `granularity` is `MONTHLY`, the `startDate` of the extended reporting - * date range is `startDate` of the cohort plus `startOffset * 30` days. - * - * Generated from protobuf field int32 start_offset = 2; - * @param int $var - * @return $this - */ - public function setStartOffset($var) - { - GPBUtil::checkInt32($var); - $this->start_offset = $var; - - return $this; - } - - /** - * Required. `endOffset` specifies the end date of the extended reporting date - * range for a cohort report. `endOffset` can be any positive integer but is - * commonly set to 5 to 10 so that reports contain data on the cohort for the - * next several granularity time periods. - * If `granularity` is `DAILY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset` days. - * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 7` days. - * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 30` days. - * - * Generated from protobuf field int32 end_offset = 3; - * @return int - */ - public function getEndOffset() - { - return $this->end_offset; - } - - /** - * Required. `endOffset` specifies the end date of the extended reporting date - * range for a cohort report. `endOffset` can be any positive integer but is - * commonly set to 5 to 10 so that reports contain data on the cohort for the - * next several granularity time periods. - * If `granularity` is `DAILY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset` days. - * If `granularity` is `WEEKLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 7` days. - * If `granularity` is `MONTHLY`, the `endDate` of the extended reporting date - * range is `endDate` of the cohort plus `endOffset * 30` days. - * - * Generated from protobuf field int32 end_offset = 3; - * @param int $var - * @return $this - */ - public function setEndOffset($var) - { - GPBUtil::checkInt32($var); - $this->end_offset = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange/Granularity.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange/Granularity.php deleted file mode 100644 index 541e282e316..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/CohortsRange/Granularity.php +++ /dev/null @@ -1,76 +0,0 @@ -google.analytics.data.v1beta.CohortsRange.Granularity - */ -class Granularity -{ - /** - * Should never be specified. - * - * Generated from protobuf enum GRANULARITY_UNSPECIFIED = 0; - */ - const GRANULARITY_UNSPECIFIED = 0; - /** - * Daily granularity. Commonly used if the cohort's `dateRange` is a single - * day and the request contains `cohortNthDay`. - * - * Generated from protobuf enum DAILY = 1; - */ - const DAILY = 1; - /** - * Weekly granularity. Commonly used if the cohort's `dateRange` is a week - * in duration (starting on Sunday and ending on Saturday) and the request - * contains `cohortNthWeek`. - * - * Generated from protobuf enum WEEKLY = 2; - */ - const WEEKLY = 2; - /** - * Monthly granularity. Commonly used if the cohort's `dateRange` is a month - * in duration and the request contains `cohortNthMonth`. - * - * Generated from protobuf enum MONTHLY = 3; - */ - const MONTHLY = 3; - - private static $valueToName = [ - self::GRANULARITY_UNSPECIFIED => 'GRANULARITY_UNSPECIFIED', - self::DAILY => 'DAILY', - self::WEEKLY => 'WEEKLY', - self::MONTHLY => 'MONTHLY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Granularity::class, \Google\Analytics\Data\V1beta\CohortsRange_Granularity::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Compatibility.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Compatibility.php deleted file mode 100644 index 6a97b7928ec..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Compatibility.php +++ /dev/null @@ -1,63 +0,0 @@ -google.analytics.data.v1beta.Compatibility - */ -class Compatibility -{ - /** - * Unspecified compatibility. - * - * Generated from protobuf enum COMPATIBILITY_UNSPECIFIED = 0; - */ - const COMPATIBILITY_UNSPECIFIED = 0; - /** - * The dimension or metric is compatible. This dimension or metric can be - * successfully added to a report. - * - * Generated from protobuf enum COMPATIBLE = 1; - */ - const COMPATIBLE = 1; - /** - * The dimension or metric is incompatible. This dimension or metric cannot be - * successfully added to a report. - * - * Generated from protobuf enum INCOMPATIBLE = 2; - */ - const INCOMPATIBLE = 2; - - private static $valueToName = [ - self::COMPATIBILITY_UNSPECIFIED => 'COMPATIBILITY_UNSPECIFIED', - self::COMPATIBLE => 'COMPATIBLE', - self::INCOMPATIBLE => 'INCOMPATIBLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DateRange.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DateRange.php deleted file mode 100644 index 9c0ef0525f6..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DateRange.php +++ /dev/null @@ -1,172 +0,0 @@ -google.analytics.data.v1beta.DateRange - */ -class DateRange extends \Google\Protobuf\Internal\Message -{ - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the property's - * reporting time zone. - * - * Generated from protobuf field string start_date = 1; - */ - protected $start_date = ''; - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the - * property's reporting time zone. - * - * Generated from protobuf field string end_date = 2; - */ - protected $end_date = ''; - /** - * Assigns a name to this date range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, date ranges are named by their zero based index in - * the request: `date_range_0`, `date_range_1`, etc. - * - * Generated from protobuf field string name = 3; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $start_date - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the property's - * reporting time zone. - * @type string $end_date - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the - * property's reporting time zone. - * @type string $name - * Assigns a name to this date range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, date ranges are named by their zero based index in - * the request: `date_range_0`, `date_range_1`, etc. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the property's - * reporting time zone. - * - * Generated from protobuf field string start_date = 1; - * @return string - */ - public function getStartDate() - { - return $this->start_date; - } - - /** - * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot - * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also - * accepted, and in that case, the date is inferred based on the property's - * reporting time zone. - * - * Generated from protobuf field string start_date = 1; - * @param string $var - * @return $this - */ - public function setStartDate($var) - { - GPBUtil::checkString($var, True); - $this->start_date = $var; - - return $this; - } - - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the - * property's reporting time zone. - * - * Generated from protobuf field string end_date = 2; - * @return string - */ - public function getEndDate() - { - return $this->end_date; - } - - /** - * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot - * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is - * also accepted, and in that case, the date is inferred based on the - * property's reporting time zone. - * - * Generated from protobuf field string end_date = 2; - * @param string $var - * @return $this - */ - public function setEndDate($var) - { - GPBUtil::checkString($var, True); - $this->end_date = $var; - - return $this; - } - - /** - * Assigns a name to this date range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, date ranges are named by their zero based index in - * the request: `date_range_0`, `date_range_1`, etc. - * - * Generated from protobuf field string name = 3; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Assigns a name to this date range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, date ranges are named by their zero based index in - * the request: `date_range_0`, `date_range_1`, etc. - * - * Generated from protobuf field string name = 3; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Dimension.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Dimension.php deleted file mode 100644 index 0b4f745c5dd..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Dimension.php +++ /dev/null @@ -1,154 +0,0 @@ -google.analytics.data.v1beta.Dimension - */ -class Dimension extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names. - * If `dimensionExpression` is specified, `name` can be any string that you - * would like within the allowed character set. For example if a - * `dimensionExpression` concatenates `country` and `city`, you could call - * that dimension `countryAndCity`. Dimension names that you choose must match - * the regular expression `^[a-zA-Z0-9_]$`. - * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, - * `dimensionExpression`, and `pivots`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * One dimension can be the result of an expression of multiple dimensions. - * For example, dimension "country, city": concatenate(country, ", ", city). - * - * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - */ - protected $dimension_expression = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names. - * If `dimensionExpression` is specified, `name` can be any string that you - * would like within the allowed character set. For example if a - * `dimensionExpression` concatenates `country` and `city`, you could call - * that dimension `countryAndCity`. Dimension names that you choose must match - * the regular expression `^[a-zA-Z0-9_]$`. - * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, - * `dimensionExpression`, and `pivots`. - * @type \Google\Analytics\Data\V1beta\DimensionExpression $dimension_expression - * One dimension can be the result of an expression of multiple dimensions. - * For example, dimension "country, city": concatenate(country, ", ", city). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names. - * If `dimensionExpression` is specified, `name` can be any string that you - * would like within the allowed character set. For example if a - * `dimensionExpression` concatenates `country` and `city`, you could call - * that dimension `countryAndCity`. Dimension names that you choose must match - * the regular expression `^[a-zA-Z0-9_]$`. - * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, - * `dimensionExpression`, and `pivots`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the dimension. See the [API - * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) - * for the list of dimension names. - * If `dimensionExpression` is specified, `name` can be any string that you - * would like within the allowed character set. For example if a - * `dimensionExpression` concatenates `country` and `city`, you could call - * that dimension `countryAndCity`. Dimension names that you choose must match - * the regular expression `^[a-zA-Z0-9_]$`. - * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, - * `dimensionExpression`, and `pivots`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * One dimension can be the result of an expression of multiple dimensions. - * For example, dimension "country, city": concatenate(country, ", ", city). - * - * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - * @return \Google\Analytics\Data\V1beta\DimensionExpression|null - */ - public function getDimensionExpression() - { - return $this->dimension_expression; - } - - public function hasDimensionExpression() - { - return isset($this->dimension_expression); - } - - public function clearDimensionExpression() - { - unset($this->dimension_expression); - } - - /** - * One dimension can be the result of an expression of multiple dimensions. - * For example, dimension "country, city": concatenate(country, ", ", city). - * - * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression dimension_expression = 2; - * @param \Google\Analytics\Data\V1beta\DimensionExpression $var - * @return $this - */ - public function setDimensionExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\DimensionExpression::class); - $this->dimension_expression = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionCompatibility.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionCompatibility.php deleted file mode 100644 index ff6d5ae0fc6..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionCompatibility.php +++ /dev/null @@ -1,133 +0,0 @@ -google.analytics.data.v1beta.DimensionCompatibility - */ -class DimensionCompatibility extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension metadata contains the API name for this compatibility - * information. The dimension metadata also contains other helpful information - * like the UI name and description. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - */ - protected $dimension_metadata = null; - /** - * The compatibility of this dimension. If the compatibility is COMPATIBLE, - * this dimension can be successfully added to the report. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - */ - protected $compatibility = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1beta\DimensionMetadata $dimension_metadata - * The dimension metadata contains the API name for this compatibility - * information. The dimension metadata also contains other helpful information - * like the UI name and description. - * @type int $compatibility - * The compatibility of this dimension. If the compatibility is COMPATIBLE, - * this dimension can be successfully added to the report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The dimension metadata contains the API name for this compatibility - * information. The dimension metadata also contains other helpful information - * like the UI name and description. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - * @return \Google\Analytics\Data\V1beta\DimensionMetadata|null - */ - public function getDimensionMetadata() - { - return $this->dimension_metadata; - } - - public function hasDimensionMetadata() - { - return isset($this->dimension_metadata); - } - - public function clearDimensionMetadata() - { - unset($this->dimension_metadata); - } - - /** - * The dimension metadata contains the API name for this compatibility - * information. The dimension metadata also contains other helpful information - * like the UI name and description. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; - * @param \Google\Analytics\Data\V1beta\DimensionMetadata $var - * @return $this - */ - public function setDimensionMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\DimensionMetadata::class); - $this->dimension_metadata = $var; - - return $this; - } - - /** - * The compatibility of this dimension. If the compatibility is COMPATIBLE, - * this dimension can be successfully added to the report. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * @return int - */ - public function getCompatibility() - { - return isset($this->compatibility) ? $this->compatibility : 0; - } - - public function hasCompatibility() - { - return isset($this->compatibility); - } - - public function clearCompatibility() - { - unset($this->compatibility); - } - - /** - * The compatibility of this dimension. If the compatibility is COMPATIBLE, - * this dimension can be successfully added to the report. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * @param int $var - * @return $this - */ - public function setCompatibility($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\Compatibility::class); - $this->compatibility = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression.php deleted file mode 100644 index c7819e050c8..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression.php +++ /dev/null @@ -1,147 +0,0 @@ -google.analytics.data.v1beta.DimensionExpression - */ -class DimensionExpression extends \Google\Protobuf\Internal\Message -{ - protected $one_expression; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression $lower_case - * Used to convert a dimension value to lower case. - * @type \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression $upper_case - * Used to convert a dimension value to upper case. - * @type \Google\Analytics\Data\V1beta\DimensionExpression\ConcatenateExpression $concatenate - * Used to combine dimension values to a single dimension. - * For example, dimension "country, city": concatenate(country, ", ", city). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Used to convert a dimension value to lower case. - * - * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; - * @return \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression|null - */ - public function getLowerCase() - { - return $this->readOneof(4); - } - - public function hasLowerCase() - { - return $this->hasOneof(4); - } - - /** - * Used to convert a dimension value to lower case. - * - * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression.CaseExpression lower_case = 4; - * @param \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression $var - * @return $this - */ - public function setLowerCase($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Used to convert a dimension value to upper case. - * - * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; - * @return \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression|null - */ - public function getUpperCase() - { - return $this->readOneof(5); - } - - public function hasUpperCase() - { - return $this->hasOneof(5); - } - - /** - * Used to convert a dimension value to upper case. - * - * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression.CaseExpression upper_case = 5; - * @param \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression $var - * @return $this - */ - public function setUpperCase($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\DimensionExpression\CaseExpression::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Used to combine dimension values to a single dimension. - * For example, dimension "country, city": concatenate(country, ", ", city). - * - * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; - * @return \Google\Analytics\Data\V1beta\DimensionExpression\ConcatenateExpression|null - */ - public function getConcatenate() - { - return $this->readOneof(6); - } - - public function hasConcatenate() - { - return $this->hasOneof(6); - } - - /** - * Used to combine dimension values to a single dimension. - * For example, dimension "country, city": concatenate(country, ", ", city). - * - * Generated from protobuf field .google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression concatenate = 6; - * @param \Google\Analytics\Data\V1beta\DimensionExpression\ConcatenateExpression $var - * @return $this - */ - public function setConcatenate($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\DimensionExpression\ConcatenateExpression::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneExpression() - { - return $this->whichOneof("one_expression"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/CaseExpression.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/CaseExpression.php deleted file mode 100644 index af1e679e55d..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/CaseExpression.php +++ /dev/null @@ -1,74 +0,0 @@ -google.analytics.data.v1beta.DimensionExpression.CaseExpression - */ -class CaseExpression extends \Google\Protobuf\Internal\Message -{ - /** - * Name of a dimension. The name must refer back to a name in dimensions - * field of the request. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * Name of a dimension. The name must refer back to a name in dimensions - * field of the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Name of a dimension. The name must refer back to a name in dimensions - * field of the request. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * Name of a dimension. The name must refer back to a name in dimensions - * field of the request. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CaseExpression::class, \Google\Analytics\Data\V1beta\DimensionExpression_CaseExpression::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/ConcatenateExpression.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/ConcatenateExpression.php deleted file mode 100644 index 9d7a101bddd..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionExpression/ConcatenateExpression.php +++ /dev/null @@ -1,128 +0,0 @@ -google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression - */ -class ConcatenateExpression extends \Google\Protobuf\Internal\Message -{ - /** - * Names of dimensions. The names must refer back to names in the dimensions - * field of the request. - * - * Generated from protobuf field repeated string dimension_names = 1; - */ - private $dimension_names; - /** - * The delimiter placed between dimension names. - * Delimiters are often single characters such as "|" or "," but can be - * longer strings. If a dimension value contains the delimiter, both will be - * present in response with no distinction. For example if dimension 1 value - * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the - * response will contain "US,FR,JP". - * - * Generated from protobuf field string delimiter = 2; - */ - protected $delimiter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $dimension_names - * Names of dimensions. The names must refer back to names in the dimensions - * field of the request. - * @type string $delimiter - * The delimiter placed between dimension names. - * Delimiters are often single characters such as "|" or "," but can be - * longer strings. If a dimension value contains the delimiter, both will be - * present in response with no distinction. For example if dimension 1 value - * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the - * response will contain "US,FR,JP". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Names of dimensions. The names must refer back to names in the dimensions - * field of the request. - * - * Generated from protobuf field repeated string dimension_names = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionNames() - { - return $this->dimension_names; - } - - /** - * Names of dimensions. The names must refer back to names in the dimensions - * field of the request. - * - * Generated from protobuf field repeated string dimension_names = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->dimension_names = $arr; - - return $this; - } - - /** - * The delimiter placed between dimension names. - * Delimiters are often single characters such as "|" or "," but can be - * longer strings. If a dimension value contains the delimiter, both will be - * present in response with no distinction. For example if dimension 1 value - * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the - * response will contain "US,FR,JP". - * - * Generated from protobuf field string delimiter = 2; - * @return string - */ - public function getDelimiter() - { - return $this->delimiter; - } - - /** - * The delimiter placed between dimension names. - * Delimiters are often single characters such as "|" or "," but can be - * longer strings. If a dimension value contains the delimiter, both will be - * present in response with no distinction. For example if dimension 1 value - * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the - * response will contain "US,FR,JP". - * - * Generated from protobuf field string delimiter = 2; - * @param string $var - * @return $this - */ - public function setDelimiter($var) - { - GPBUtil::checkString($var, True); - $this->delimiter = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConcatenateExpression::class, \Google\Analytics\Data\V1beta\DimensionExpression_ConcatenateExpression::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionHeader.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionHeader.php deleted file mode 100644 index fe4f90d2a87..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionHeader.php +++ /dev/null @@ -1,70 +0,0 @@ -google.analytics.data.v1beta.DimensionHeader - */ -class DimensionHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension's name. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The dimension's name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The dimension's name. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The dimension's name. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionMetadata.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionMetadata.php deleted file mode 100644 index bb0ccba25fd..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionMetadata.php +++ /dev/null @@ -1,261 +0,0 @@ -google.analytics.data.v1beta.DimensionMetadata - */ -class DimensionMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For - * example, `eventName`. - * - * Generated from protobuf field string api_name = 1; - */ - protected $api_name = ''; - /** - * This dimension's name within the Google Analytics user interface. For - * example, `Event name`. - * - * Generated from protobuf field string ui_name = 2; - */ - protected $ui_name = ''; - /** - * Description of how this dimension is used and calculated. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Still usable but deprecated names for this dimension. If populated, this - * dimension is available by either `apiName` or one of `deprecatedApiNames` - * for a period of time. After the deprecation period, the dimension will be - * available only by `apiName`. - * - * Generated from protobuf field repeated string deprecated_api_names = 4; - */ - private $deprecated_api_names; - /** - * True if the dimension is a custom dimension for this property. - * - * Generated from protobuf field bool custom_definition = 5; - */ - protected $custom_definition = false; - /** - * The display name of the category that this dimension belongs to. Similar - * dimensions and metrics are categorized together. - * - * Generated from protobuf field string category = 7; - */ - protected $category = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $api_name - * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For - * example, `eventName`. - * @type string $ui_name - * This dimension's name within the Google Analytics user interface. For - * example, `Event name`. - * @type string $description - * Description of how this dimension is used and calculated. - * @type array|\Google\Protobuf\Internal\RepeatedField $deprecated_api_names - * Still usable but deprecated names for this dimension. If populated, this - * dimension is available by either `apiName` or one of `deprecatedApiNames` - * for a period of time. After the deprecation period, the dimension will be - * available only by `apiName`. - * @type bool $custom_definition - * True if the dimension is a custom dimension for this property. - * @type string $category - * The display name of the category that this dimension belongs to. Similar - * dimensions and metrics are categorized together. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For - * example, `eventName`. - * - * Generated from protobuf field string api_name = 1; - * @return string - */ - public function getApiName() - { - return $this->api_name; - } - - /** - * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For - * example, `eventName`. - * - * Generated from protobuf field string api_name = 1; - * @param string $var - * @return $this - */ - public function setApiName($var) - { - GPBUtil::checkString($var, True); - $this->api_name = $var; - - return $this; - } - - /** - * This dimension's name within the Google Analytics user interface. For - * example, `Event name`. - * - * Generated from protobuf field string ui_name = 2; - * @return string - */ - public function getUiName() - { - return $this->ui_name; - } - - /** - * This dimension's name within the Google Analytics user interface. For - * example, `Event name`. - * - * Generated from protobuf field string ui_name = 2; - * @param string $var - * @return $this - */ - public function setUiName($var) - { - GPBUtil::checkString($var, True); - $this->ui_name = $var; - - return $this; - } - - /** - * Description of how this dimension is used and calculated. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of how this dimension is used and calculated. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Still usable but deprecated names for this dimension. If populated, this - * dimension is available by either `apiName` or one of `deprecatedApiNames` - * for a period of time. After the deprecation period, the dimension will be - * available only by `apiName`. - * - * Generated from protobuf field repeated string deprecated_api_names = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDeprecatedApiNames() - { - return $this->deprecated_api_names; - } - - /** - * Still usable but deprecated names for this dimension. If populated, this - * dimension is available by either `apiName` or one of `deprecatedApiNames` - * for a period of time. After the deprecation period, the dimension will be - * available only by `apiName`. - * - * Generated from protobuf field repeated string deprecated_api_names = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDeprecatedApiNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->deprecated_api_names = $arr; - - return $this; - } - - /** - * True if the dimension is a custom dimension for this property. - * - * Generated from protobuf field bool custom_definition = 5; - * @return bool - */ - public function getCustomDefinition() - { - return $this->custom_definition; - } - - /** - * True if the dimension is a custom dimension for this property. - * - * Generated from protobuf field bool custom_definition = 5; - * @param bool $var - * @return $this - */ - public function setCustomDefinition($var) - { - GPBUtil::checkBool($var); - $this->custom_definition = $var; - - return $this; - } - - /** - * The display name of the category that this dimension belongs to. Similar - * dimensions and metrics are categorized together. - * - * Generated from protobuf field string category = 7; - * @return string - */ - public function getCategory() - { - return $this->category; - } - - /** - * The display name of the category that this dimension belongs to. Similar - * dimensions and metrics are categorized together. - * - * Generated from protobuf field string category = 7; - * @param string $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkString($var, True); - $this->category = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionValue.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionValue.php deleted file mode 100644 index 7e0d684c982..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/DimensionValue.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.data.v1beta.DimensionValue - */ -class DimensionValue extends \Google\Protobuf\Internal\Message -{ - protected $one_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * Value as a string if the dimension type is a string. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Value as a string if the dimension type is a string. - * - * Generated from protobuf field string value = 1; - * @return string - */ - public function getValue() - { - return $this->readOneof(1); - } - - public function hasValue() - { - return $this->hasOneof(1); - } - - /** - * Value as a string if the dimension type is a string. - * - * Generated from protobuf field string value = 1; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneValue() - { - return $this->whichOneof("one_value"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter.php deleted file mode 100644 index 01c955105c4..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter.php +++ /dev/null @@ -1,224 +0,0 @@ -google.analytics.data.v1beta.Filter - */ -class Filter extends \Google\Protobuf\Internal\Message -{ - /** - * The dimension name or metric name. - * In most methods, dimensions & metrics can be used for the first time in - * this field. However in a RunPivotReportRequest, this field must be - * additionally specified by name in the RunPivotReportRequest's dimensions or - * metrics. - * - * Generated from protobuf field string field_name = 1; - */ - protected $field_name = ''; - protected $one_filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field_name - * The dimension name or metric name. - * In most methods, dimensions & metrics can be used for the first time in - * this field. However in a RunPivotReportRequest, this field must be - * additionally specified by name in the RunPivotReportRequest's dimensions or - * metrics. - * @type \Google\Analytics\Data\V1beta\Filter\StringFilter $string_filter - * Strings related filter. - * @type \Google\Analytics\Data\V1beta\Filter\InListFilter $in_list_filter - * A filter for in list values. - * @type \Google\Analytics\Data\V1beta\Filter\NumericFilter $numeric_filter - * A filter for numeric or date values. - * @type \Google\Analytics\Data\V1beta\Filter\BetweenFilter $between_filter - * A filter for two values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The dimension name or metric name. - * In most methods, dimensions & metrics can be used for the first time in - * this field. However in a RunPivotReportRequest, this field must be - * additionally specified by name in the RunPivotReportRequest's dimensions or - * metrics. - * - * Generated from protobuf field string field_name = 1; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * The dimension name or metric name. - * In most methods, dimensions & metrics can be used for the first time in - * this field. However in a RunPivotReportRequest, this field must be - * additionally specified by name in the RunPivotReportRequest's dimensions or - * metrics. - * - * Generated from protobuf field string field_name = 1; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; - * @return \Google\Analytics\Data\V1beta\Filter\StringFilter|null - */ - public function getStringFilter() - { - return $this->readOneof(3); - } - - public function hasStringFilter() - { - return $this->hasOneof(3); - } - - /** - * Strings related filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.StringFilter string_filter = 3; - * @param \Google\Analytics\Data\V1beta\Filter\StringFilter $var - * @return $this - */ - public function setStringFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\Filter\StringFilter::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; - * @return \Google\Analytics\Data\V1beta\Filter\InListFilter|null - */ - public function getInListFilter() - { - return $this->readOneof(4); - } - - public function hasInListFilter() - { - return $this->hasOneof(4); - } - - /** - * A filter for in list values. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.InListFilter in_list_filter = 4; - * @param \Google\Analytics\Data\V1beta\Filter\InListFilter $var - * @return $this - */ - public function setInListFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\Filter\InListFilter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; - * @return \Google\Analytics\Data\V1beta\Filter\NumericFilter|null - */ - public function getNumericFilter() - { - return $this->readOneof(5); - } - - public function hasNumericFilter() - { - return $this->hasOneof(5); - } - - /** - * A filter for numeric or date values. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.NumericFilter numeric_filter = 5; - * @param \Google\Analytics\Data\V1beta\Filter\NumericFilter $var - * @return $this - */ - public function setNumericFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\Filter\NumericFilter::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * A filter for two values. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; - * @return \Google\Analytics\Data\V1beta\Filter\BetweenFilter|null - */ - public function getBetweenFilter() - { - return $this->readOneof(6); - } - - public function hasBetweenFilter() - { - return $this->hasOneof(6); - } - - /** - * A filter for two values. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.BetweenFilter between_filter = 6; - * @param \Google\Analytics\Data\V1beta\Filter\BetweenFilter $var - * @return $this - */ - public function setBetweenFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\Filter\BetweenFilter::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneFilter() - { - return $this->whichOneof("one_filter"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/BetweenFilter.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/BetweenFilter.php deleted file mode 100644 index 39b91d0e3f6..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/BetweenFilter.php +++ /dev/null @@ -1,124 +0,0 @@ -google.analytics.data.v1beta.Filter.BetweenFilter - */ -class BetweenFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.data.v1beta.NumericValue from_value = 1; - */ - protected $from_value = null; - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.data.v1beta.NumericValue to_value = 2; - */ - protected $to_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1beta\NumericValue $from_value - * Begins with this number. - * @type \Google\Analytics\Data\V1beta\NumericValue $to_value - * Ends with this number. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.data.v1beta.NumericValue from_value = 1; - * @return \Google\Analytics\Data\V1beta\NumericValue|null - */ - public function getFromValue() - { - return $this->from_value; - } - - public function hasFromValue() - { - return isset($this->from_value); - } - - public function clearFromValue() - { - unset($this->from_value); - } - - /** - * Begins with this number. - * - * Generated from protobuf field .google.analytics.data.v1beta.NumericValue from_value = 1; - * @param \Google\Analytics\Data\V1beta\NumericValue $var - * @return $this - */ - public function setFromValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\NumericValue::class); - $this->from_value = $var; - - return $this; - } - - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.data.v1beta.NumericValue to_value = 2; - * @return \Google\Analytics\Data\V1beta\NumericValue|null - */ - public function getToValue() - { - return $this->to_value; - } - - public function hasToValue() - { - return isset($this->to_value); - } - - public function clearToValue() - { - unset($this->to_value); - } - - /** - * Ends with this number. - * - * Generated from protobuf field .google.analytics.data.v1beta.NumericValue to_value = 2; - * @param \Google\Analytics\Data\V1beta\NumericValue $var - * @return $this - */ - public function setToValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\NumericValue::class); - $this->to_value = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BetweenFilter::class, \Google\Analytics\Data\V1beta\Filter_BetweenFilter::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/InListFilter.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/InListFilter.php deleted file mode 100644 index cad215417f8..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/InListFilter.php +++ /dev/null @@ -1,108 +0,0 @@ -google.analytics.data.v1beta.Filter.InListFilter - */ -class InListFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The list of string values. - * Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - */ - private $values; - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * The list of string values. - * Must be non-empty. - * @type bool $case_sensitive - * If true, the string value is case sensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The list of string values. - * Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * The list of string values. - * Must be non-empty. - * - * Generated from protobuf field repeated string values = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 2; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InListFilter::class, \Google\Analytics\Data\V1beta\Filter_InListFilter::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter.php deleted file mode 100644 index cd95e5399a2..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter.php +++ /dev/null @@ -1,114 +0,0 @@ -google.analytics.data.v1beta.Filter.NumericFilter - */ -class NumericFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.NumericFilter.Operation operation = 1; - */ - protected $operation = 0; - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.data.v1beta.NumericValue value = 2; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $operation - * The operation type for this filter. - * @type \Google\Analytics\Data\V1beta\NumericValue $value - * A numeric value or a date value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.NumericFilter.Operation operation = 1; - * @return int - */ - public function getOperation() - { - return $this->operation; - } - - /** - * The operation type for this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.NumericFilter.Operation operation = 1; - * @param int $var - * @return $this - */ - public function setOperation($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\Filter\NumericFilter\Operation::class); - $this->operation = $var; - - return $this; - } - - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.data.v1beta.NumericValue value = 2; - * @return \Google\Analytics\Data\V1beta\NumericValue|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * A numeric value or a date value. - * - * Generated from protobuf field .google.analytics.data.v1beta.NumericValue value = 2; - * @param \Google\Analytics\Data\V1beta\NumericValue $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\NumericValue::class); - $this->value = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NumericFilter::class, \Google\Analytics\Data\V1beta\Filter_NumericFilter::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter/Operation.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter/Operation.php deleted file mode 100644 index 4633829403b..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/NumericFilter/Operation.php +++ /dev/null @@ -1,85 +0,0 @@ -google.analytics.data.v1beta.Filter.NumericFilter.Operation - */ -class Operation -{ - /** - * Unspecified. - * - * Generated from protobuf enum OPERATION_UNSPECIFIED = 0; - */ - const OPERATION_UNSPECIFIED = 0; - /** - * Equal - * - * Generated from protobuf enum EQUAL = 1; - */ - const EQUAL = 1; - /** - * Less than - * - * Generated from protobuf enum LESS_THAN = 2; - */ - const LESS_THAN = 2; - /** - * Less than or equal - * - * Generated from protobuf enum LESS_THAN_OR_EQUAL = 3; - */ - const LESS_THAN_OR_EQUAL = 3; - /** - * Greater than - * - * Generated from protobuf enum GREATER_THAN = 4; - */ - const GREATER_THAN = 4; - /** - * Greater than or equal - * - * Generated from protobuf enum GREATER_THAN_OR_EQUAL = 5; - */ - const GREATER_THAN_OR_EQUAL = 5; - - private static $valueToName = [ - self::OPERATION_UNSPECIFIED => 'OPERATION_UNSPECIFIED', - self::EQUAL => 'EQUAL', - self::LESS_THAN => 'LESS_THAN', - self::LESS_THAN_OR_EQUAL => 'LESS_THAN_OR_EQUAL', - self::GREATER_THAN => 'GREATER_THAN', - self::GREATER_THAN_OR_EQUAL => 'GREATER_THAN_OR_EQUAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Operation::class, \Google\Analytics\Data\V1beta\Filter_NumericFilter_Operation::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter.php deleted file mode 100644 index f4feeb9aff3..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter.php +++ /dev/null @@ -1,138 +0,0 @@ -google.analytics.data.v1beta.Filter.StringFilter - */ -class StringFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.StringFilter.MatchType match_type = 1; - */ - protected $match_type = 0; - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - */ - protected $case_sensitive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $match_type - * The match type for this filter. - * @type string $value - * The string value used for the matching. - * @type bool $case_sensitive - * If true, the string value is case sensitive. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.StringFilter.MatchType match_type = 1; - * @return int - */ - public function getMatchType() - { - return $this->match_type; - } - - /** - * The match type for this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter.StringFilter.MatchType match_type = 1; - * @param int $var - * @return $this - */ - public function setMatchType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\Filter\StringFilter\MatchType::class); - $this->match_type = $var; - - return $this; - } - - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The string value used for the matching. - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - * @return bool - */ - public function getCaseSensitive() - { - return $this->case_sensitive; - } - - /** - * If true, the string value is case sensitive. - * - * Generated from protobuf field bool case_sensitive = 3; - * @param bool $var - * @return $this - */ - public function setCaseSensitive($var) - { - GPBUtil::checkBool($var); - $this->case_sensitive = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StringFilter::class, \Google\Analytics\Data\V1beta\Filter_StringFilter::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter/MatchType.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter/MatchType.php deleted file mode 100644 index 4e40f9c5c3b..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Filter/StringFilter/MatchType.php +++ /dev/null @@ -1,92 +0,0 @@ -google.analytics.data.v1beta.Filter.StringFilter.MatchType - */ -class MatchType -{ - /** - * Unspecified - * - * Generated from protobuf enum MATCH_TYPE_UNSPECIFIED = 0; - */ - const MATCH_TYPE_UNSPECIFIED = 0; - /** - * Exact match of the string value. - * - * Generated from protobuf enum EXACT = 1; - */ - const EXACT = 1; - /** - * Begins with the string value. - * - * Generated from protobuf enum BEGINS_WITH = 2; - */ - const BEGINS_WITH = 2; - /** - * Ends with the string value. - * - * Generated from protobuf enum ENDS_WITH = 3; - */ - const ENDS_WITH = 3; - /** - * Contains the string value. - * - * Generated from protobuf enum CONTAINS = 4; - */ - const CONTAINS = 4; - /** - * Full match for the regular expression with the string value. - * - * Generated from protobuf enum FULL_REGEXP = 5; - */ - const FULL_REGEXP = 5; - /** - * Partial match for the regular expression with the string value. - * - * Generated from protobuf enum PARTIAL_REGEXP = 6; - */ - const PARTIAL_REGEXP = 6; - - private static $valueToName = [ - self::MATCH_TYPE_UNSPECIFIED => 'MATCH_TYPE_UNSPECIFIED', - self::EXACT => 'EXACT', - self::BEGINS_WITH => 'BEGINS_WITH', - self::ENDS_WITH => 'ENDS_WITH', - self::CONTAINS => 'CONTAINS', - self::FULL_REGEXP => 'FULL_REGEXP', - self::PARTIAL_REGEXP => 'PARTIAL_REGEXP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MatchType::class, \Google\Analytics\Data\V1beta\Filter_StringFilter_MatchType::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpression.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpression.php deleted file mode 100644 index 99e554d09c3..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpression.php +++ /dev/null @@ -1,178 +0,0 @@ -google.analytics.data.v1beta.FilterExpression - */ -class FilterExpression extends \Google\Protobuf\Internal\Message -{ - protected $expr; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1beta\FilterExpressionList $and_group - * The FilterExpressions in and_group have an AND relationship. - * @type \Google\Analytics\Data\V1beta\FilterExpressionList $or_group - * The FilterExpressions in or_group have an OR relationship. - * @type \Google\Analytics\Data\V1beta\FilterExpression $not_expression - * The FilterExpression is NOT of not_expression. - * @type \Google\Analytics\Data\V1beta\Filter $filter - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The FilterExpressions in and_group have an AND relationship. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpressionList and_group = 1; - * @return \Google\Analytics\Data\V1beta\FilterExpressionList|null - */ - public function getAndGroup() - { - return $this->readOneof(1); - } - - public function hasAndGroup() - { - return $this->hasOneof(1); - } - - /** - * The FilterExpressions in and_group have an AND relationship. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpressionList and_group = 1; - * @param \Google\Analytics\Data\V1beta\FilterExpressionList $var - * @return $this - */ - public function setAndGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpressionList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The FilterExpressions in or_group have an OR relationship. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpressionList or_group = 2; - * @return \Google\Analytics\Data\V1beta\FilterExpressionList|null - */ - public function getOrGroup() - { - return $this->readOneof(2); - } - - public function hasOrGroup() - { - return $this->hasOneof(2); - } - - /** - * The FilterExpressions in or_group have an OR relationship. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpressionList or_group = 2; - * @param \Google\Analytics\Data\V1beta\FilterExpressionList $var - * @return $this - */ - public function setOrGroup($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpressionList::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The FilterExpression is NOT of not_expression. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression not_expression = 3; - * @return \Google\Analytics\Data\V1beta\FilterExpression|null - */ - public function getNotExpression() - { - return $this->readOneof(3); - } - - public function hasNotExpression() - { - return $this->hasOneof(3); - } - - /** - * The FilterExpression is NOT of not_expression. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression not_expression = 3; - * @param \Google\Analytics\Data\V1beta\FilterExpression $var - * @return $this - */ - public function setNotExpression($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter filter = 4; - * @return \Google\Analytics\Data\V1beta\Filter|null - */ - public function getFilter() - { - return $this->readOneof(4); - } - - public function hasFilter() - { - return $this->hasOneof(4); - } - - /** - * A primitive filter. In the same FilterExpression, all of the filter's - * field names need to be either all dimensions or all metrics. - * - * Generated from protobuf field .google.analytics.data.v1beta.Filter filter = 4; - * @param \Google\Analytics\Data\V1beta\Filter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\Filter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getExpr() - { - return $this->whichOneof("expr"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpressionList.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpressionList.php deleted file mode 100644 index d7eb56f9b25..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/FilterExpressionList.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.data.v1beta.FilterExpressionList - */ -class FilterExpressionList extends \Google\Protobuf\Internal\Message -{ - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - */ - private $expressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\FilterExpression>|\Google\Protobuf\Internal\RepeatedField $expressions - * A list of filter expressions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExpressions() - { - return $this->expressions; - } - - /** - * A list of filter expressions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.FilterExpression expressions = 1; - * @param array<\Google\Analytics\Data\V1beta\FilterExpression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->expressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/GetMetadataRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/GetMetadataRequest.php deleted file mode 100644 index e2c983e6925..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/GetMetadataRequest.php +++ /dev/null @@ -1,123 +0,0 @@ -google.analytics.data.v1beta.GetMetadataRequest - */ -class GetMetadataRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the metadata to retrieve. This name field is - * specified in the URL path and not URL parameters. Property is a numeric - * Google Analytics GA4 Property identifier. To learn more, see [where to find - * your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Example: properties/1234/metadata - * Set the Property ID to 0 for dimensions and metrics common to all - * properties. In this special mode, this method will not return custom - * dimensions and metrics. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The resource name of the metadata to retrieve. This name field is - * specified in the URL path and not URL parameters. Property is a numeric - * Google Analytics GA4 Property identifier. To learn more, see [where to find - * your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * - * Example: properties/1234/metadata - * - * Set the Property ID to 0 for dimensions and metrics common to all - * properties. In this special mode, this method will not return custom - * dimensions and metrics. Please see - * {@see BetaAnalyticsDataClient::metadataName()} for help formatting this field. - * - * @return \Google\Analytics\Data\V1beta\GetMetadataRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the metadata to retrieve. This name field is - * specified in the URL path and not URL parameters. Property is a numeric - * Google Analytics GA4 Property identifier. To learn more, see [where to find - * your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Example: properties/1234/metadata - * Set the Property ID to 0 for dimensions and metrics common to all - * properties. In this special mode, this method will not return custom - * dimensions and metrics. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the metadata to retrieve. This name field is - * specified in the URL path and not URL parameters. Property is a numeric - * Google Analytics GA4 Property identifier. To learn more, see [where to find - * your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Example: properties/1234/metadata - * Set the Property ID to 0 for dimensions and metrics common to all - * properties. In this special mode, this method will not return custom - * dimensions and metrics. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the metadata to retrieve. This name field is - * specified in the URL path and not URL parameters. Property is a numeric - * Google Analytics GA4 Property identifier. To learn more, see [where to find - * your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Example: properties/1234/metadata - * Set the Property ID to 0 for dimensions and metrics common to all - * properties. In this special mode, this method will not return custom - * dimensions and metrics. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metadata.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metadata.php deleted file mode 100644 index ff3315ae2a2..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metadata.php +++ /dev/null @@ -1,135 +0,0 @@ -google.analytics.data.v1beta.Metadata - */ -class Metadata extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of this metadata. - * - * Generated from protobuf field string name = 3; - */ - protected $name = ''; - /** - * The dimension descriptions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - */ - private $dimensions; - /** - * The metric descriptions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - */ - private $metrics; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name of this metadata. - * @type array<\Google\Analytics\Data\V1beta\DimensionMetadata>|\Google\Protobuf\Internal\RepeatedField $dimensions - * The dimension descriptions. - * @type array<\Google\Analytics\Data\V1beta\MetricMetadata>|\Google\Protobuf\Internal\RepeatedField $metrics - * The metric descriptions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of this metadata. - * - * Generated from protobuf field string name = 3; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name of this metadata. - * - * Generated from protobuf field string name = 3; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The dimension descriptions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * The dimension descriptions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionMetadata dimensions = 1; - * @param array<\Google\Analytics\Data\V1beta\DimensionMetadata>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionMetadata::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * The metric descriptions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * The metric descriptions. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricMetadata metrics = 2; - * @param array<\Google\Analytics\Data\V1beta\MetricMetadata>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricMetadata::class); - $this->metrics = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metric.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metric.php deleted file mode 100644 index f57e836d7b6..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Metric.php +++ /dev/null @@ -1,185 +0,0 @@ -google.analytics.data.v1beta.Metric - */ -class Metric extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the metric. See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of metric names. - * If `expression` is specified, `name` can be any string that you would like - * within the allowed character set. For example if `expression` is - * `screenPageViews/sessions`, you could call that metric's name = - * `viewsPerSession`. Metric names that you choose must match the regular - * expression `^[a-zA-Z0-9_]$`. - * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric - * `expression`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * A mathematical expression for derived metrics. For example, the metric - * Event count per user is `eventCount/totalUsers`. - * - * Generated from protobuf field string expression = 2; - */ - protected $expression = ''; - /** - * Indicates if a metric is invisible in the report response. If a metric is - * invisible, the metric will not produce a column in the response, but can be - * used in `metricFilter`, `orderBys`, or a metric `expression`. - * - * Generated from protobuf field bool invisible = 3; - */ - protected $invisible = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the metric. See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of metric names. - * If `expression` is specified, `name` can be any string that you would like - * within the allowed character set. For example if `expression` is - * `screenPageViews/sessions`, you could call that metric's name = - * `viewsPerSession`. Metric names that you choose must match the regular - * expression `^[a-zA-Z0-9_]$`. - * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric - * `expression`. - * @type string $expression - * A mathematical expression for derived metrics. For example, the metric - * Event count per user is `eventCount/totalUsers`. - * @type bool $invisible - * Indicates if a metric is invisible in the report response. If a metric is - * invisible, the metric will not produce a column in the response, but can be - * used in `metricFilter`, `orderBys`, or a metric `expression`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The name of the metric. See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of metric names. - * If `expression` is specified, `name` can be any string that you would like - * within the allowed character set. For example if `expression` is - * `screenPageViews/sessions`, you could call that metric's name = - * `viewsPerSession`. Metric names that you choose must match the regular - * expression `^[a-zA-Z0-9_]$`. - * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric - * `expression`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the metric. See the [API - * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics) - * for the list of metric names. - * If `expression` is specified, `name` can be any string that you would like - * within the allowed character set. For example if `expression` is - * `screenPageViews/sessions`, you could call that metric's name = - * `viewsPerSession`. Metric names that you choose must match the regular - * expression `^[a-zA-Z0-9_]$`. - * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric - * `expression`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * A mathematical expression for derived metrics. For example, the metric - * Event count per user is `eventCount/totalUsers`. - * - * Generated from protobuf field string expression = 2; - * @return string - */ - public function getExpression() - { - return $this->expression; - } - - /** - * A mathematical expression for derived metrics. For example, the metric - * Event count per user is `eventCount/totalUsers`. - * - * Generated from protobuf field string expression = 2; - * @param string $var - * @return $this - */ - public function setExpression($var) - { - GPBUtil::checkString($var, True); - $this->expression = $var; - - return $this; - } - - /** - * Indicates if a metric is invisible in the report response. If a metric is - * invisible, the metric will not produce a column in the response, but can be - * used in `metricFilter`, `orderBys`, or a metric `expression`. - * - * Generated from protobuf field bool invisible = 3; - * @return bool - */ - public function getInvisible() - { - return $this->invisible; - } - - /** - * Indicates if a metric is invisible in the report response. If a metric is - * invisible, the metric will not produce a column in the response, but can be - * used in `metricFilter`, `orderBys`, or a metric `expression`. - * - * Generated from protobuf field bool invisible = 3; - * @param bool $var - * @return $this - */ - public function setInvisible($var) - { - GPBUtil::checkBool($var); - $this->invisible = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricAggregation.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricAggregation.php deleted file mode 100644 index af5158b3729..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricAggregation.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.data.v1beta.MetricAggregation - */ -class MetricAggregation -{ - /** - * Unspecified operator. - * - * Generated from protobuf enum METRIC_AGGREGATION_UNSPECIFIED = 0; - */ - const METRIC_AGGREGATION_UNSPECIFIED = 0; - /** - * SUM operator. - * - * Generated from protobuf enum TOTAL = 1; - */ - const TOTAL = 1; - /** - * Minimum operator. - * - * Generated from protobuf enum MINIMUM = 5; - */ - const MINIMUM = 5; - /** - * Maximum operator. - * - * Generated from protobuf enum MAXIMUM = 6; - */ - const MAXIMUM = 6; - /** - * Count operator. - * - * Generated from protobuf enum COUNT = 4; - */ - const COUNT = 4; - - private static $valueToName = [ - self::METRIC_AGGREGATION_UNSPECIFIED => 'METRIC_AGGREGATION_UNSPECIFIED', - self::TOTAL => 'TOTAL', - self::MINIMUM => 'MINIMUM', - self::MAXIMUM => 'MAXIMUM', - self::COUNT => 'COUNT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricCompatibility.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricCompatibility.php deleted file mode 100644 index f76bff55631..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricCompatibility.php +++ /dev/null @@ -1,133 +0,0 @@ -google.analytics.data.v1beta.MetricCompatibility - */ -class MetricCompatibility extends \Google\Protobuf\Internal\Message -{ - /** - * The metric metadata contains the API name for this compatibility - * information. The metric metadata also contains other helpful information - * like the UI name and description. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - */ - protected $metric_metadata = null; - /** - * The compatibility of this metric. If the compatibility is COMPATIBLE, - * this metric can be successfully added to the report. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - */ - protected $compatibility = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1beta\MetricMetadata $metric_metadata - * The metric metadata contains the API name for this compatibility - * information. The metric metadata also contains other helpful information - * like the UI name and description. - * @type int $compatibility - * The compatibility of this metric. If the compatibility is COMPATIBLE, - * this metric can be successfully added to the report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The metric metadata contains the API name for this compatibility - * information. The metric metadata also contains other helpful information - * like the UI name and description. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - * @return \Google\Analytics\Data\V1beta\MetricMetadata|null - */ - public function getMetricMetadata() - { - return $this->metric_metadata; - } - - public function hasMetricMetadata() - { - return isset($this->metric_metadata); - } - - public function clearMetricMetadata() - { - unset($this->metric_metadata); - } - - /** - * The metric metadata contains the API name for this compatibility - * information. The metric metadata also contains other helpful information - * like the UI name and description. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; - * @param \Google\Analytics\Data\V1beta\MetricMetadata $var - * @return $this - */ - public function setMetricMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\MetricMetadata::class); - $this->metric_metadata = $var; - - return $this; - } - - /** - * The compatibility of this metric. If the compatibility is COMPATIBLE, - * this metric can be successfully added to the report. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * @return int - */ - public function getCompatibility() - { - return isset($this->compatibility) ? $this->compatibility : 0; - } - - public function hasCompatibility() - { - return isset($this->compatibility); - } - - public function clearCompatibility() - { - unset($this->compatibility); - } - - /** - * The compatibility of this metric. If the compatibility is COMPATIBLE, - * this metric can be successfully added to the report. - * - * Generated from protobuf field optional .google.analytics.data.v1beta.Compatibility compatibility = 2; - * @param int $var - * @return $this - */ - public function setCompatibility($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\Compatibility::class); - $this->compatibility = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricHeader.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricHeader.php deleted file mode 100644 index db125c0ae60..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricHeader.php +++ /dev/null @@ -1,104 +0,0 @@ -google.analytics.data.v1beta.MetricHeader - */ -class MetricHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The metric's name. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The metric's data type. - * - * Generated from protobuf field .google.analytics.data.v1beta.MetricType type = 2; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The metric's name. - * @type int $type - * The metric's data type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The metric's name. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The metric's name. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The metric's data type. - * - * Generated from protobuf field .google.analytics.data.v1beta.MetricType type = 2; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The metric's data type. - * - * Generated from protobuf field .google.analytics.data.v1beta.MetricType type = 2; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\MetricType::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata.php deleted file mode 100644 index 9ef96ff2bc1..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata.php +++ /dev/null @@ -1,395 +0,0 @@ -google.analytics.data.v1beta.MetricMetadata - */ -class MetricMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * A metric name. Useable in [Metric](#Metric)'s `name`. For example, - * `eventCount`. - * - * Generated from protobuf field string api_name = 1; - */ - protected $api_name = ''; - /** - * This metric's name within the Google Analytics user interface. For example, - * `Event count`. - * - * Generated from protobuf field string ui_name = 2; - */ - protected $ui_name = ''; - /** - * Description of how this metric is used and calculated. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Still usable but deprecated names for this metric. If populated, this - * metric is available by either `apiName` or one of `deprecatedApiNames` - * for a period of time. After the deprecation period, the metric will be - * available only by `apiName`. - * - * Generated from protobuf field repeated string deprecated_api_names = 4; - */ - private $deprecated_api_names; - /** - * The type of this metric. - * - * Generated from protobuf field .google.analytics.data.v1beta.MetricType type = 5; - */ - protected $type = 0; - /** - * The mathematical expression for this derived metric. Can be used in - * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics - * are not expressions, and for non-expressions, this field is empty. - * - * Generated from protobuf field string expression = 6; - */ - protected $expression = ''; - /** - * True if the metric is a custom metric for this property. - * - * Generated from protobuf field bool custom_definition = 7; - */ - protected $custom_definition = false; - /** - * If reasons are specified, your access is blocked to this metric for this - * property. API requests from you to this property for this metric will - * succeed; however, the report will contain only zeros for this metric. API - * requests with metric filters on blocked metrics will fail. If reasons are - * empty, you have access to this metric. - * To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - */ - private $blocked_reasons; - /** - * The display name of the category that this metrics belongs to. Similar - * dimensions and metrics are categorized together. - * - * Generated from protobuf field string category = 10; - */ - protected $category = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $api_name - * A metric name. Useable in [Metric](#Metric)'s `name`. For example, - * `eventCount`. - * @type string $ui_name - * This metric's name within the Google Analytics user interface. For example, - * `Event count`. - * @type string $description - * Description of how this metric is used and calculated. - * @type array|\Google\Protobuf\Internal\RepeatedField $deprecated_api_names - * Still usable but deprecated names for this metric. If populated, this - * metric is available by either `apiName` or one of `deprecatedApiNames` - * for a period of time. After the deprecation period, the metric will be - * available only by `apiName`. - * @type int $type - * The type of this metric. - * @type string $expression - * The mathematical expression for this derived metric. Can be used in - * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics - * are not expressions, and for non-expressions, this field is empty. - * @type bool $custom_definition - * True if the metric is a custom metric for this property. - * @type array|\Google\Protobuf\Internal\RepeatedField $blocked_reasons - * If reasons are specified, your access is blocked to this metric for this - * property. API requests from you to this property for this metric will - * succeed; however, the report will contain only zeros for this metric. API - * requests with metric filters on blocked metrics will fail. If reasons are - * empty, you have access to this metric. - * To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * @type string $category - * The display name of the category that this metrics belongs to. Similar - * dimensions and metrics are categorized together. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * A metric name. Useable in [Metric](#Metric)'s `name`. For example, - * `eventCount`. - * - * Generated from protobuf field string api_name = 1; - * @return string - */ - public function getApiName() - { - return $this->api_name; - } - - /** - * A metric name. Useable in [Metric](#Metric)'s `name`. For example, - * `eventCount`. - * - * Generated from protobuf field string api_name = 1; - * @param string $var - * @return $this - */ - public function setApiName($var) - { - GPBUtil::checkString($var, True); - $this->api_name = $var; - - return $this; - } - - /** - * This metric's name within the Google Analytics user interface. For example, - * `Event count`. - * - * Generated from protobuf field string ui_name = 2; - * @return string - */ - public function getUiName() - { - return $this->ui_name; - } - - /** - * This metric's name within the Google Analytics user interface. For example, - * `Event count`. - * - * Generated from protobuf field string ui_name = 2; - * @param string $var - * @return $this - */ - public function setUiName($var) - { - GPBUtil::checkString($var, True); - $this->ui_name = $var; - - return $this; - } - - /** - * Description of how this metric is used and calculated. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of how this metric is used and calculated. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Still usable but deprecated names for this metric. If populated, this - * metric is available by either `apiName` or one of `deprecatedApiNames` - * for a period of time. After the deprecation period, the metric will be - * available only by `apiName`. - * - * Generated from protobuf field repeated string deprecated_api_names = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDeprecatedApiNames() - { - return $this->deprecated_api_names; - } - - /** - * Still usable but deprecated names for this metric. If populated, this - * metric is available by either `apiName` or one of `deprecatedApiNames` - * for a period of time. After the deprecation period, the metric will be - * available only by `apiName`. - * - * Generated from protobuf field repeated string deprecated_api_names = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDeprecatedApiNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->deprecated_api_names = $arr; - - return $this; - } - - /** - * The type of this metric. - * - * Generated from protobuf field .google.analytics.data.v1beta.MetricType type = 5; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of this metric. - * - * Generated from protobuf field .google.analytics.data.v1beta.MetricType type = 5; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\MetricType::class); - $this->type = $var; - - return $this; - } - - /** - * The mathematical expression for this derived metric. Can be used in - * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics - * are not expressions, and for non-expressions, this field is empty. - * - * Generated from protobuf field string expression = 6; - * @return string - */ - public function getExpression() - { - return $this->expression; - } - - /** - * The mathematical expression for this derived metric. Can be used in - * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics - * are not expressions, and for non-expressions, this field is empty. - * - * Generated from protobuf field string expression = 6; - * @param string $var - * @return $this - */ - public function setExpression($var) - { - GPBUtil::checkString($var, True); - $this->expression = $var; - - return $this; - } - - /** - * True if the metric is a custom metric for this property. - * - * Generated from protobuf field bool custom_definition = 7; - * @return bool - */ - public function getCustomDefinition() - { - return $this->custom_definition; - } - - /** - * True if the metric is a custom metric for this property. - * - * Generated from protobuf field bool custom_definition = 7; - * @param bool $var - * @return $this - */ - public function setCustomDefinition($var) - { - GPBUtil::checkBool($var); - $this->custom_definition = $var; - - return $this; - } - - /** - * If reasons are specified, your access is blocked to this metric for this - * property. API requests from you to this property for this metric will - * succeed; however, the report will contain only zeros for this metric. API - * requests with metric filters on blocked metrics will fail. If reasons are - * empty, you have access to this metric. - * To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBlockedReasons() - { - return $this->blocked_reasons; - } - - /** - * If reasons are specified, your access is blocked to this metric for this - * property. API requests from you to this property for this metric will - * succeed; however, the report will contain only zeros for this metric. API - * requests with metric filters on blocked metrics will fail. If reasons are - * empty, you have access to this metric. - * To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricMetadata.BlockedReason blocked_reasons = 8; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBlockedReasons($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Data\V1beta\MetricMetadata\BlockedReason::class); - $this->blocked_reasons = $arr; - - return $this; - } - - /** - * The display name of the category that this metrics belongs to. Similar - * dimensions and metrics are categorized together. - * - * Generated from protobuf field string category = 10; - * @return string - */ - public function getCategory() - { - return $this->category; - } - - /** - * The display name of the category that this metrics belongs to. Similar - * dimensions and metrics are categorized together. - * - * Generated from protobuf field string category = 10; - * @param string $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkString($var, True); - $this->category = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata/BlockedReason.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata/BlockedReason.php deleted file mode 100644 index 1b6aaf8bdc0..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricMetadata/BlockedReason.php +++ /dev/null @@ -1,66 +0,0 @@ -google.analytics.data.v1beta.MetricMetadata.BlockedReason - */ -class BlockedReason -{ - /** - * Will never be specified in API response. - * - * Generated from protobuf enum BLOCKED_REASON_UNSPECIFIED = 0; - */ - const BLOCKED_REASON_UNSPECIFIED = 0; - /** - * If present, your access is blocked to revenue related metrics for this - * property, and this metric is revenue related. - * - * Generated from protobuf enum NO_REVENUE_METRICS = 1; - */ - const NO_REVENUE_METRICS = 1; - /** - * If present, your access is blocked to cost related metrics for this - * property, and this metric is cost related. - * - * Generated from protobuf enum NO_COST_METRICS = 2; - */ - const NO_COST_METRICS = 2; - - private static $valueToName = [ - self::BLOCKED_REASON_UNSPECIFIED => 'BLOCKED_REASON_UNSPECIFIED', - self::NO_REVENUE_METRICS => 'NO_REVENUE_METRICS', - self::NO_COST_METRICS => 'NO_COST_METRICS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BlockedReason::class, \Google\Analytics\Data\V1beta\MetricMetadata_BlockedReason::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricType.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricType.php deleted file mode 100644 index 641bfa44a62..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricType.php +++ /dev/null @@ -1,131 +0,0 @@ -google.analytics.data.v1beta.MetricType - */ -class MetricType -{ - /** - * Unspecified type. - * - * Generated from protobuf enum METRIC_TYPE_UNSPECIFIED = 0; - */ - const METRIC_TYPE_UNSPECIFIED = 0; - /** - * Integer type. - * - * Generated from protobuf enum TYPE_INTEGER = 1; - */ - const TYPE_INTEGER = 1; - /** - * Floating point type. - * - * Generated from protobuf enum TYPE_FLOAT = 2; - */ - const TYPE_FLOAT = 2; - /** - * A duration of seconds; a special floating point type. - * - * Generated from protobuf enum TYPE_SECONDS = 4; - */ - const TYPE_SECONDS = 4; - /** - * A duration in milliseconds; a special floating point type. - * - * Generated from protobuf enum TYPE_MILLISECONDS = 5; - */ - const TYPE_MILLISECONDS = 5; - /** - * A duration in minutes; a special floating point type. - * - * Generated from protobuf enum TYPE_MINUTES = 6; - */ - const TYPE_MINUTES = 6; - /** - * A duration in hours; a special floating point type. - * - * Generated from protobuf enum TYPE_HOURS = 7; - */ - const TYPE_HOURS = 7; - /** - * A custom metric of standard type; a special floating point type. - * - * Generated from protobuf enum TYPE_STANDARD = 8; - */ - const TYPE_STANDARD = 8; - /** - * An amount of money; a special floating point type. - * - * Generated from protobuf enum TYPE_CURRENCY = 9; - */ - const TYPE_CURRENCY = 9; - /** - * A length in feet; a special floating point type. - * - * Generated from protobuf enum TYPE_FEET = 10; - */ - const TYPE_FEET = 10; - /** - * A length in miles; a special floating point type. - * - * Generated from protobuf enum TYPE_MILES = 11; - */ - const TYPE_MILES = 11; - /** - * A length in meters; a special floating point type. - * - * Generated from protobuf enum TYPE_METERS = 12; - */ - const TYPE_METERS = 12; - /** - * A length in kilometers; a special floating point type. - * - * Generated from protobuf enum TYPE_KILOMETERS = 13; - */ - const TYPE_KILOMETERS = 13; - - private static $valueToName = [ - self::METRIC_TYPE_UNSPECIFIED => 'METRIC_TYPE_UNSPECIFIED', - self::TYPE_INTEGER => 'TYPE_INTEGER', - self::TYPE_FLOAT => 'TYPE_FLOAT', - self::TYPE_SECONDS => 'TYPE_SECONDS', - self::TYPE_MILLISECONDS => 'TYPE_MILLISECONDS', - self::TYPE_MINUTES => 'TYPE_MINUTES', - self::TYPE_HOURS => 'TYPE_HOURS', - self::TYPE_STANDARD => 'TYPE_STANDARD', - self::TYPE_CURRENCY => 'TYPE_CURRENCY', - self::TYPE_FEET => 'TYPE_FEET', - self::TYPE_MILES => 'TYPE_MILES', - self::TYPE_METERS => 'TYPE_METERS', - self::TYPE_KILOMETERS => 'TYPE_KILOMETERS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricValue.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricValue.php deleted file mode 100644 index 5ae81b6fc47..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MetricValue.php +++ /dev/null @@ -1,75 +0,0 @@ -google.analytics.data.v1beta.MetricValue - */ -class MetricValue extends \Google\Protobuf\Internal\Message -{ - protected $one_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * Measurement value. See MetricHeader for type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Measurement value. See MetricHeader for type. - * - * Generated from protobuf field string value = 4; - * @return string - */ - public function getValue() - { - return $this->readOneof(4); - } - - public function hasValue() - { - return $this->hasOneof(4); - } - - /** - * Measurement value. See MetricHeader for type. - * - * Generated from protobuf field string value = 4; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneValue() - { - return $this->whichOneof("one_value"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MinuteRange.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MinuteRange.php deleted file mode 100644 index d71a5cdffb4..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/MinuteRange.php +++ /dev/null @@ -1,220 +0,0 @@ -google.analytics.data.v1beta.MinuteRange - */ -class MinuteRange extends \Google\Protobuf\Internal\Message -{ - /** - * The inclusive start minute for the query as a number of minutes before now. - * For example, `"startMinutesAgo": 29` specifies the report should include - * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`. - * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics - * properties can request up to the last 30 minutes of event data - * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to - * the last 60 minutes of event data (`startMinutesAgo <= 59`). - * - * Generated from protobuf field optional int32 start_minutes_ago = 1; - */ - protected $start_minutes_ago = null; - /** - * The inclusive end minute for the query as a number of minutes before now. - * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15` - * specifies the report should include event data from prior to 15 minutes - * ago. - * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics - * properties can request any minute in the last 30 minutes of event data - * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any - * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). - * - * Generated from protobuf field optional int32 end_minutes_ago = 2; - */ - protected $end_minutes_ago = null; - /** - * Assigns a name to this minute range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, minute ranges are named by their zero based index - * in the request: `date_range_0`, `date_range_1`, etc. - * - * Generated from protobuf field string name = 3; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $start_minutes_ago - * The inclusive start minute for the query as a number of minutes before now. - * For example, `"startMinutesAgo": 29` specifies the report should include - * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`. - * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics - * properties can request up to the last 30 minutes of event data - * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to - * the last 60 minutes of event data (`startMinutesAgo <= 59`). - * @type int $end_minutes_ago - * The inclusive end minute for the query as a number of minutes before now. - * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15` - * specifies the report should include event data from prior to 15 minutes - * ago. - * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics - * properties can request any minute in the last 30 minutes of event data - * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any - * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). - * @type string $name - * Assigns a name to this minute range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, minute ranges are named by their zero based index - * in the request: `date_range_0`, `date_range_1`, etc. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The inclusive start minute for the query as a number of minutes before now. - * For example, `"startMinutesAgo": 29` specifies the report should include - * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`. - * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics - * properties can request up to the last 30 minutes of event data - * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to - * the last 60 minutes of event data (`startMinutesAgo <= 59`). - * - * Generated from protobuf field optional int32 start_minutes_ago = 1; - * @return int - */ - public function getStartMinutesAgo() - { - return isset($this->start_minutes_ago) ? $this->start_minutes_ago : 0; - } - - public function hasStartMinutesAgo() - { - return isset($this->start_minutes_ago); - } - - public function clearStartMinutesAgo() - { - unset($this->start_minutes_ago); - } - - /** - * The inclusive start minute for the query as a number of minutes before now. - * For example, `"startMinutesAgo": 29` specifies the report should include - * event data from 29 minutes ago and after. Cannot be after `endMinutesAgo`. - * If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics - * properties can request up to the last 30 minutes of event data - * (`startMinutesAgo <= 29`), and 360 Analytics properties can request up to - * the last 60 minutes of event data (`startMinutesAgo <= 59`). - * - * Generated from protobuf field optional int32 start_minutes_ago = 1; - * @param int $var - * @return $this - */ - public function setStartMinutesAgo($var) - { - GPBUtil::checkInt32($var); - $this->start_minutes_ago = $var; - - return $this; - } - - /** - * The inclusive end minute for the query as a number of minutes before now. - * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15` - * specifies the report should include event data from prior to 15 minutes - * ago. - * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics - * properties can request any minute in the last 30 minutes of event data - * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any - * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). - * - * Generated from protobuf field optional int32 end_minutes_ago = 2; - * @return int - */ - public function getEndMinutesAgo() - { - return isset($this->end_minutes_ago) ? $this->end_minutes_ago : 0; - } - - public function hasEndMinutesAgo() - { - return isset($this->end_minutes_ago); - } - - public function clearEndMinutesAgo() - { - unset($this->end_minutes_ago); - } - - /** - * The inclusive end minute for the query as a number of minutes before now. - * Cannot be before `startMinutesAgo`. For example, `"endMinutesAgo": 15` - * specifies the report should include event data from prior to 15 minutes - * ago. - * If unspecified, `endMinutesAgo` is defaulted to 0. Standard Analytics - * properties can request any minute in the last 30 minutes of event data - * (`endMinutesAgo <= 29`), and 360 Analytics properties can request any - * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). - * - * Generated from protobuf field optional int32 end_minutes_ago = 2; - * @param int $var - * @return $this - */ - public function setEndMinutesAgo($var) - { - GPBUtil::checkInt32($var); - $this->end_minutes_ago = $var; - - return $this; - } - - /** - * Assigns a name to this minute range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, minute ranges are named by their zero based index - * in the request: `date_range_0`, `date_range_1`, etc. - * - * Generated from protobuf field string name = 3; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Assigns a name to this minute range. The dimension `dateRange` is valued to - * this name in a report response. If set, cannot begin with `date_range_` or - * `RESERVED_`. If not set, minute ranges are named by their zero based index - * in the request: `date_range_0`, `date_range_1`, etc. - * - * Generated from protobuf field string name = 3; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/NumericValue.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/NumericValue.php deleted file mode 100644 index ac466fe4865..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/NumericValue.php +++ /dev/null @@ -1,108 +0,0 @@ -google.analytics.data.v1beta.NumericValue - */ -class NumericValue extends \Google\Protobuf\Internal\Message -{ - protected $one_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $int64_value - * Integer value - * @type float $double_value - * Double value - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Integer value - * - * Generated from protobuf field int64 int64_value = 1; - * @return int|string - */ - public function getInt64Value() - { - return $this->readOneof(1); - } - - public function hasInt64Value() - { - return $this->hasOneof(1); - } - - /** - * Integer value - * - * Generated from protobuf field int64 int64_value = 1; - * @param int|string $var - * @return $this - */ - public function setInt64Value($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Double value - * - * Generated from protobuf field double double_value = 2; - * @return float - */ - public function getDoubleValue() - { - return $this->readOneof(2); - } - - public function hasDoubleValue() - { - return $this->hasOneof(2); - } - - /** - * Double value - * - * Generated from protobuf field double double_value = 2; - * @param float $var - * @return $this - */ - public function setDoubleValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getOneValue() - { - return $this->whichOneof("one_value"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy.php deleted file mode 100644 index bf52aa38f37..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy.php +++ /dev/null @@ -1,177 +0,0 @@ -google.analytics.data.v1beta.OrderBy - */ -class OrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * If true, sorts by descending order. - * - * Generated from protobuf field bool desc = 4; - */ - protected $desc = false; - protected $one_order_by; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1beta\OrderBy\MetricOrderBy $metric - * Sorts results by a metric's values. - * @type \Google\Analytics\Data\V1beta\OrderBy\DimensionOrderBy $dimension - * Sorts results by a dimension's values. - * @type \Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy $pivot - * Sorts results by a metric's values within a pivot column group. - * @type bool $desc - * If true, sorts by descending order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Sorts results by a metric's values. - * - * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; - * @return \Google\Analytics\Data\V1beta\OrderBy\MetricOrderBy|null - */ - public function getMetric() - { - return $this->readOneof(1); - } - - public function hasMetric() - { - return $this->hasOneof(1); - } - - /** - * Sorts results by a metric's values. - * - * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.MetricOrderBy metric = 1; - * @param \Google\Analytics\Data\V1beta\OrderBy\MetricOrderBy $var - * @return $this - */ - public function setMetric($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\OrderBy\MetricOrderBy::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Sorts results by a dimension's values. - * - * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; - * @return \Google\Analytics\Data\V1beta\OrderBy\DimensionOrderBy|null - */ - public function getDimension() - { - return $this->readOneof(2); - } - - public function hasDimension() - { - return $this->hasOneof(2); - } - - /** - * Sorts results by a dimension's values. - * - * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.DimensionOrderBy dimension = 2; - * @param \Google\Analytics\Data\V1beta\OrderBy\DimensionOrderBy $var - * @return $this - */ - public function setDimension($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\OrderBy\DimensionOrderBy::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Sorts results by a metric's values within a pivot column group. - * - * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; - * @return \Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy|null - */ - public function getPivot() - { - return $this->readOneof(3); - } - - public function hasPivot() - { - return $this->hasOneof(3); - } - - /** - * Sorts results by a metric's values within a pivot column group. - * - * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.PivotOrderBy pivot = 3; - * @param \Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy $var - * @return $this - */ - public function setPivot($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * If true, sorts by descending order. - * - * Generated from protobuf field bool desc = 4; - * @return bool - */ - public function getDesc() - { - return $this->desc; - } - - /** - * If true, sorts by descending order. - * - * Generated from protobuf field bool desc = 4; - * @param bool $var - * @return $this - */ - public function setDesc($var) - { - GPBUtil::checkBool($var); - $this->desc = $var; - - return $this; - } - - /** - * @return string - */ - public function getOneOrderBy() - { - return $this->whichOneof("one_order_by"); - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy.php deleted file mode 100644 index caaffd85a29..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy.php +++ /dev/null @@ -1,104 +0,0 @@ -google.analytics.data.v1beta.OrderBy.DimensionOrderBy - */ -class DimensionOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType order_type = 2; - */ - protected $order_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * A dimension name in the request to order by. - * @type int $order_type - * Controls the rule for dimension value ordering. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * A dimension name in the request to order by. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return int - */ - public function getOrderType() - { - return $this->order_type; - } - - /** - * Controls the rule for dimension value ordering. - * - * Generated from protobuf field .google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType order_type = 2; - * @param int $var - * @return $this - */ - public function setOrderType($var) - { - GPBUtil::checkEnum($var, \Google\Analytics\Data\V1beta\OrderBy\DimensionOrderBy\OrderType::class); - $this->order_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DimensionOrderBy::class, \Google\Analytics\Data\V1beta\OrderBy_DimensionOrderBy::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy/OrderType.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy/OrderType.php deleted file mode 100644 index d0ce40c9141..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/DimensionOrderBy/OrderType.php +++ /dev/null @@ -1,76 +0,0 @@ -google.analytics.data.v1beta.OrderBy.DimensionOrderBy.OrderType - */ -class OrderType -{ - /** - * Unspecified. - * - * Generated from protobuf enum ORDER_TYPE_UNSPECIFIED = 0; - */ - const ORDER_TYPE_UNSPECIFIED = 0; - /** - * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" < - * "b" < "z". - * - * Generated from protobuf enum ALPHANUMERIC = 1; - */ - const ALPHANUMERIC = 1; - /** - * Case insensitive alphanumeric sort by lower case Unicode code point. - * For example, "2" < "A" < "b" < "X" < "z". - * - * Generated from protobuf enum CASE_INSENSITIVE_ALPHANUMERIC = 2; - */ - const CASE_INSENSITIVE_ALPHANUMERIC = 2; - /** - * Dimension values are converted to numbers before sorting. For example - * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" < - * "25". Non-numeric dimension values all have equal ordering value below - * all numeric values. - * - * Generated from protobuf enum NUMERIC = 3; - */ - const NUMERIC = 3; - - private static $valueToName = [ - self::ORDER_TYPE_UNSPECIFIED => 'ORDER_TYPE_UNSPECIFIED', - self::ALPHANUMERIC => 'ALPHANUMERIC', - self::CASE_INSENSITIVE_ALPHANUMERIC => 'CASE_INSENSITIVE_ALPHANUMERIC', - self::NUMERIC => 'NUMERIC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OrderType::class, \Google\Analytics\Data\V1beta\OrderBy_DimensionOrderBy_OrderType::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/MetricOrderBy.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/MetricOrderBy.php deleted file mode 100644 index 27ab3306a35..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/MetricOrderBy.php +++ /dev/null @@ -1,70 +0,0 @@ -google.analytics.data.v1beta.OrderBy.MetricOrderBy - */ -class MetricOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - */ - protected $metric_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * A metric name in the request to order by. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return $this->metric_name; - } - - /** - * A metric name in the request to order by. - * - * Generated from protobuf field string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MetricOrderBy::class, \Google\Analytics\Data\V1beta\OrderBy_MetricOrderBy::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy.php deleted file mode 100644 index 4fd1c22f4b2..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy.php +++ /dev/null @@ -1,120 +0,0 @@ -google.analytics.data.v1beta.OrderBy.PivotOrderBy - */ -class PivotOrderBy extends \Google\Protobuf\Internal\Message -{ - /** - * In the response to order by, order rows by this column. Must be a metric - * name from the request. - * - * Generated from protobuf field string metric_name = 1; - */ - protected $metric_name = ''; - /** - * Used to select a dimension name and value pivot. If multiple pivot - * selections are given, the sort occurs on rows where all pivot selection - * dimension name and value pairs match the row's dimension name and value - * pair. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - */ - private $pivot_selections; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * In the response to order by, order rows by this column. Must be a metric - * name from the request. - * @type array<\Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy\PivotSelection>|\Google\Protobuf\Internal\RepeatedField $pivot_selections - * Used to select a dimension name and value pivot. If multiple pivot - * selections are given, the sort occurs on rows where all pivot selection - * dimension name and value pairs match the row's dimension name and value - * pair. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * In the response to order by, order rows by this column. Must be a metric - * name from the request. - * - * Generated from protobuf field string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return $this->metric_name; - } - - /** - * In the response to order by, order rows by this column. Must be a metric - * name from the request. - * - * Generated from protobuf field string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - - /** - * Used to select a dimension name and value pivot. If multiple pivot - * selections are given, the sort occurs on rows where all pivot selection - * dimension name and value pairs match the row's dimension name and value - * pair. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPivotSelections() - { - return $this->pivot_selections; - } - - /** - * Used to select a dimension name and value pivot. If multiple pivot - * selections are given, the sort occurs on rows where all pivot selection - * dimension name and value pairs match the row's dimension name and value - * pair. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * @param array<\Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy\PivotSelection>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPivotSelections($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\OrderBy\PivotOrderBy\PivotSelection::class); - $this->pivot_selections = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PivotOrderBy::class, \Google\Analytics\Data\V1beta\OrderBy_PivotOrderBy::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy/PivotSelection.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy/PivotSelection.php deleted file mode 100644 index d50a7262d48..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/OrderBy/PivotOrderBy/PivotSelection.php +++ /dev/null @@ -1,117 +0,0 @@ -google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection - */ -class PivotSelection extends \Google\Protobuf\Internal\Message -{ - /** - * Must be a dimension name from the request. - * - * Generated from protobuf field string dimension_name = 1; - */ - protected $dimension_name = ''; - /** - * Order by only when the named dimension is this value. - * - * Generated from protobuf field string dimension_value = 2; - */ - protected $dimension_value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dimension_name - * Must be a dimension name from the request. - * @type string $dimension_value - * Order by only when the named dimension is this value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Must be a dimension name from the request. - * - * Generated from protobuf field string dimension_name = 1; - * @return string - */ - public function getDimensionName() - { - return $this->dimension_name; - } - - /** - * Must be a dimension name from the request. - * - * Generated from protobuf field string dimension_name = 1; - * @param string $var - * @return $this - */ - public function setDimensionName($var) - { - GPBUtil::checkString($var, True); - $this->dimension_name = $var; - - return $this; - } - - /** - * Order by only when the named dimension is this value. - * - * Generated from protobuf field string dimension_value = 2; - * @return string - */ - public function getDimensionValue() - { - return $this->dimension_value; - } - - /** - * Order by only when the named dimension is this value. - * - * Generated from protobuf field string dimension_value = 2; - * @param string $var - * @return $this - */ - public function setDimensionValue($var) - { - GPBUtil::checkString($var, True); - $this->dimension_value = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PivotSelection::class, \Google\Analytics\Data\V1beta\OrderBy_PivotOrderBy_PivotSelection::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Pivot.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Pivot.php deleted file mode 100644 index 1569a761e9b..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Pivot.php +++ /dev/null @@ -1,255 +0,0 @@ -google.analytics.data.v1beta.Pivot - */ -class Pivot extends \Google\Protobuf\Internal\Message -{ - /** - * Dimension names for visible columns in the report response. Including - * "dateRange" produces a date range column; for each row in the response, - * dimension values in the date range column will indicate the corresponding - * date range from the request. - * - * Generated from protobuf field repeated string field_names = 1; - */ - private $field_names; - /** - * Specifies how dimensions are ordered in the pivot. In the first Pivot, the - * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent - * Pivots, the OrderBys determine only PivotDimensionHeader ordering. - * Dimensions specified in these OrderBys must be a subset of - * Pivot.field_names. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - */ - private $order_bys; - /** - * The row count of the start row. The first row is counted as row 0. - * - * Generated from protobuf field int64 offset = 3; - */ - protected $offset = 0; - /** - * The number of unique combinations of dimension values to return in this - * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for - * single pivot requests. - * The product of the `limit` for each `pivot` in a `RunPivotReportRequest` - * must not exceed 250,000. For example, a two pivot request with `limit: - * 1000` in each pivot will fail because the product is `1,000,000`. - * - * Generated from protobuf field int64 limit = 4; - */ - protected $limit = 0; - /** - * Aggregate the metrics by dimensions in this pivot using the specified - * metric_aggregations. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - */ - private $metric_aggregations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $field_names - * Dimension names for visible columns in the report response. Including - * "dateRange" produces a date range column; for each row in the response, - * dimension values in the date range column will indicate the corresponding - * date range from the request. - * @type array<\Google\Analytics\Data\V1beta\OrderBy>|\Google\Protobuf\Internal\RepeatedField $order_bys - * Specifies how dimensions are ordered in the pivot. In the first Pivot, the - * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent - * Pivots, the OrderBys determine only PivotDimensionHeader ordering. - * Dimensions specified in these OrderBys must be a subset of - * Pivot.field_names. - * @type int|string $offset - * The row count of the start row. The first row is counted as row 0. - * @type int|string $limit - * The number of unique combinations of dimension values to return in this - * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for - * single pivot requests. - * The product of the `limit` for each `pivot` in a `RunPivotReportRequest` - * must not exceed 250,000. For example, a two pivot request with `limit: - * 1000` in each pivot will fail because the product is `1,000,000`. - * @type array|\Google\Protobuf\Internal\RepeatedField $metric_aggregations - * Aggregate the metrics by dimensions in this pivot using the specified - * metric_aggregations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Dimension names for visible columns in the report response. Including - * "dateRange" produces a date range column; for each row in the response, - * dimension values in the date range column will indicate the corresponding - * date range from the request. - * - * Generated from protobuf field repeated string field_names = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFieldNames() - { - return $this->field_names; - } - - /** - * Dimension names for visible columns in the report response. Including - * "dateRange" produces a date range column; for each row in the response, - * dimension values in the date range column will indicate the corresponding - * date range from the request. - * - * Generated from protobuf field repeated string field_names = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFieldNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->field_names = $arr; - - return $this; - } - - /** - * Specifies how dimensions are ordered in the pivot. In the first Pivot, the - * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent - * Pivots, the OrderBys determine only PivotDimensionHeader ordering. - * Dimensions specified in these OrderBys must be a subset of - * Pivot.field_names. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOrderBys() - { - return $this->order_bys; - } - - /** - * Specifies how dimensions are ordered in the pivot. In the first Pivot, the - * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent - * Pivots, the OrderBys determine only PivotDimensionHeader ordering. - * Dimensions specified in these OrderBys must be a subset of - * Pivot.field_names. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 2; - * @param array<\Google\Analytics\Data\V1beta\OrderBy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOrderBys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\OrderBy::class); - $this->order_bys = $arr; - - return $this; - } - - /** - * The row count of the start row. The first row is counted as row 0. - * - * Generated from protobuf field int64 offset = 3; - * @return int|string - */ - public function getOffset() - { - return $this->offset; - } - - /** - * The row count of the start row. The first row is counted as row 0. - * - * Generated from protobuf field int64 offset = 3; - * @param int|string $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkInt64($var); - $this->offset = $var; - - return $this; - } - - /** - * The number of unique combinations of dimension values to return in this - * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for - * single pivot requests. - * The product of the `limit` for each `pivot` in a `RunPivotReportRequest` - * must not exceed 250,000. For example, a two pivot request with `limit: - * 1000` in each pivot will fail because the product is `1,000,000`. - * - * Generated from protobuf field int64 limit = 4; - * @return int|string - */ - public function getLimit() - { - return $this->limit; - } - - /** - * The number of unique combinations of dimension values to return in this - * pivot. The `limit` parameter is required. A `limit` of 10,000 is common for - * single pivot requests. - * The product of the `limit` for each `pivot` in a `RunPivotReportRequest` - * must not exceed 250,000. For example, a two pivot request with `limit: - * 1000` in each pivot will fail because the product is `1,000,000`. - * - * Generated from protobuf field int64 limit = 4; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - - /** - * Aggregate the metrics by dimensions in this pivot using the specified - * metric_aggregations. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricAggregations() - { - return $this->metric_aggregations; - } - - /** - * Aggregate the metrics by dimensions in this pivot using the specified - * metric_aggregations. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricAggregations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Data\V1beta\MetricAggregation::class); - $this->metric_aggregations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotDimensionHeader.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotDimensionHeader.php deleted file mode 100644 index a96c75982ac..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotDimensionHeader.php +++ /dev/null @@ -1,67 +0,0 @@ -google.analytics.data.v1beta.PivotDimensionHeader - */ -class PivotDimensionHeader extends \Google\Protobuf\Internal\Message -{ - /** - * Values of multiple dimensions in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - private $dimension_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\DimensionValue>|\Google\Protobuf\Internal\RepeatedField $dimension_values - * Values of multiple dimensions in a pivot. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Values of multiple dimensions in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionValues() - { - return $this->dimension_values; - } - - /** - * Values of multiple dimensions in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - * @param array<\Google\Analytics\Data\V1beta\DimensionValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionValue::class); - $this->dimension_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotHeader.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotHeader.php deleted file mode 100644 index e53d39b9c1f..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PivotHeader.php +++ /dev/null @@ -1,113 +0,0 @@ -google.analytics.data.v1beta.PivotHeader - */ -class PivotHeader extends \Google\Protobuf\Internal\Message -{ - /** - * The size is the same as the cardinality of the corresponding dimension - * combinations. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - */ - private $pivot_dimension_headers; - /** - * The cardinality of the pivot. The total number of rows for this pivot's - * fields regardless of how the parameters `offset` and `limit` are specified - * in the request. - * - * Generated from protobuf field int32 row_count = 2; - */ - protected $row_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\PivotDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $pivot_dimension_headers - * The size is the same as the cardinality of the corresponding dimension - * combinations. - * @type int $row_count - * The cardinality of the pivot. The total number of rows for this pivot's - * fields regardless of how the parameters `offset` and `limit` are specified - * in the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The size is the same as the cardinality of the corresponding dimension - * combinations. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPivotDimensionHeaders() - { - return $this->pivot_dimension_headers; - } - - /** - * The size is the same as the cardinality of the corresponding dimension - * combinations. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.PivotDimensionHeader pivot_dimension_headers = 1; - * @param array<\Google\Analytics\Data\V1beta\PivotDimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPivotDimensionHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\PivotDimensionHeader::class); - $this->pivot_dimension_headers = $arr; - - return $this; - } - - /** - * The cardinality of the pivot. The total number of rows for this pivot's - * fields regardless of how the parameters `offset` and `limit` are specified - * in the request. - * - * Generated from protobuf field int32 row_count = 2; - * @return int - */ - public function getRowCount() - { - return $this->row_count; - } - - /** - * The cardinality of the pivot. The total number of rows for this pivot's - * fields regardless of how the parameters `offset` and `limit` are specified - * in the request. - * - * Generated from protobuf field int32 row_count = 2; - * @param int $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt32($var); - $this->row_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PropertyQuota.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PropertyQuota.php deleted file mode 100644 index 689ca28e00d..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/PropertyQuota.php +++ /dev/null @@ -1,363 +0,0 @@ -google.analytics.data.v1beta.PropertyQuota - */ -class PropertyQuota extends \Google\Protobuf\Internal\Message -{ - /** - * Standard Analytics Properties can use up to 200,000 tokens per day; - * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests - * consume fewer than 10 tokens. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - */ - protected $tokens_per_day = null; - /** - * Standard Analytics Properties can use up to 40,000 tokens per hour; - * Analytics 360 Properties can use 400,000 tokens per hour. An API request - * consumes a single number of tokens, and that number is deducted from all of - * the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - */ - protected $tokens_per_hour = null; - /** - * Standard Analytics Properties can send up to 10 concurrent requests; - * Analytics 360 Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - */ - protected $concurrent_requests = null; - /** - * Standard Analytics Properties and cloud project pairs can have up to 10 - * server errors per hour; Analytics 360 Properties and cloud project pairs - * can have up to 50 server errors per hour. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - */ - protected $server_errors_per_project_per_hour = null; - /** - * Analytics Properties can send up to 120 requests with potentially - * thresholded dimensions per hour. In a batch request, each report request - * is individually counted for this quota if the request contains potentially - * thresholded dimensions. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - */ - protected $potentially_thresholded_requests_per_hour = null; - /** - * Analytics Properties can use up to 35% of their tokens per project per - * hour. This amounts to standard Analytics Properties can use up to 14,000 - * tokens per project per hour, and Analytics 360 Properties can use 140,000 - * tokens per project per hour. An API request consumes a single number of - * tokens, and that number is deducted from all of the hourly, daily, and per - * project hourly quotas. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - */ - protected $tokens_per_project_per_hour = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Analytics\Data\V1beta\QuotaStatus $tokens_per_day - * Standard Analytics Properties can use up to 200,000 tokens per day; - * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests - * consume fewer than 10 tokens. - * @type \Google\Analytics\Data\V1beta\QuotaStatus $tokens_per_hour - * Standard Analytics Properties can use up to 40,000 tokens per hour; - * Analytics 360 Properties can use 400,000 tokens per hour. An API request - * consumes a single number of tokens, and that number is deducted from all of - * the hourly, daily, and per project hourly quotas. - * @type \Google\Analytics\Data\V1beta\QuotaStatus $concurrent_requests - * Standard Analytics Properties can send up to 10 concurrent requests; - * Analytics 360 Properties can use up to 50 concurrent requests. - * @type \Google\Analytics\Data\V1beta\QuotaStatus $server_errors_per_project_per_hour - * Standard Analytics Properties and cloud project pairs can have up to 10 - * server errors per hour; Analytics 360 Properties and cloud project pairs - * can have up to 50 server errors per hour. - * @type \Google\Analytics\Data\V1beta\QuotaStatus $potentially_thresholded_requests_per_hour - * Analytics Properties can send up to 120 requests with potentially - * thresholded dimensions per hour. In a batch request, each report request - * is individually counted for this quota if the request contains potentially - * thresholded dimensions. - * @type \Google\Analytics\Data\V1beta\QuotaStatus $tokens_per_project_per_hour - * Analytics Properties can use up to 35% of their tokens per project per - * hour. This amounts to standard Analytics Properties can use up to 14,000 - * tokens per project per hour, and Analytics 360 Properties can use 140,000 - * tokens per project per hour. An API request consumes a single number of - * tokens, and that number is deducted from all of the hourly, daily, and per - * project hourly quotas. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Standard Analytics Properties can use up to 200,000 tokens per day; - * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests - * consume fewer than 10 tokens. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - * @return \Google\Analytics\Data\V1beta\QuotaStatus|null - */ - public function getTokensPerDay() - { - return $this->tokens_per_day; - } - - public function hasTokensPerDay() - { - return isset($this->tokens_per_day); - } - - public function clearTokensPerDay() - { - unset($this->tokens_per_day); - } - - /** - * Standard Analytics Properties can use up to 200,000 tokens per day; - * Analytics 360 Properties can use 2,000,000 tokens per day. Most requests - * consume fewer than 10 tokens. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_day = 1; - * @param \Google\Analytics\Data\V1beta\QuotaStatus $var - * @return $this - */ - public function setTokensPerDay($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\QuotaStatus::class); - $this->tokens_per_day = $var; - - return $this; - } - - /** - * Standard Analytics Properties can use up to 40,000 tokens per hour; - * Analytics 360 Properties can use 400,000 tokens per hour. An API request - * consumes a single number of tokens, and that number is deducted from all of - * the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - * @return \Google\Analytics\Data\V1beta\QuotaStatus|null - */ - public function getTokensPerHour() - { - return $this->tokens_per_hour; - } - - public function hasTokensPerHour() - { - return isset($this->tokens_per_hour); - } - - public function clearTokensPerHour() - { - unset($this->tokens_per_hour); - } - - /** - * Standard Analytics Properties can use up to 40,000 tokens per hour; - * Analytics 360 Properties can use 400,000 tokens per hour. An API request - * consumes a single number of tokens, and that number is deducted from all of - * the hourly, daily, and per project hourly quotas. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; - * @param \Google\Analytics\Data\V1beta\QuotaStatus $var - * @return $this - */ - public function setTokensPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\QuotaStatus::class); - $this->tokens_per_hour = $var; - - return $this; - } - - /** - * Standard Analytics Properties can send up to 10 concurrent requests; - * Analytics 360 Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - * @return \Google\Analytics\Data\V1beta\QuotaStatus|null - */ - public function getConcurrentRequests() - { - return $this->concurrent_requests; - } - - public function hasConcurrentRequests() - { - return isset($this->concurrent_requests); - } - - public function clearConcurrentRequests() - { - unset($this->concurrent_requests); - } - - /** - * Standard Analytics Properties can send up to 10 concurrent requests; - * Analytics 360 Properties can use up to 50 concurrent requests. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus concurrent_requests = 3; - * @param \Google\Analytics\Data\V1beta\QuotaStatus $var - * @return $this - */ - public function setConcurrentRequests($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\QuotaStatus::class); - $this->concurrent_requests = $var; - - return $this; - } - - /** - * Standard Analytics Properties and cloud project pairs can have up to 10 - * server errors per hour; Analytics 360 Properties and cloud project pairs - * can have up to 50 server errors per hour. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - * @return \Google\Analytics\Data\V1beta\QuotaStatus|null - */ - public function getServerErrorsPerProjectPerHour() - { - return $this->server_errors_per_project_per_hour; - } - - public function hasServerErrorsPerProjectPerHour() - { - return isset($this->server_errors_per_project_per_hour); - } - - public function clearServerErrorsPerProjectPerHour() - { - unset($this->server_errors_per_project_per_hour); - } - - /** - * Standard Analytics Properties and cloud project pairs can have up to 10 - * server errors per hour; Analytics 360 Properties and cloud project pairs - * can have up to 50 server errors per hour. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus server_errors_per_project_per_hour = 4; - * @param \Google\Analytics\Data\V1beta\QuotaStatus $var - * @return $this - */ - public function setServerErrorsPerProjectPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\QuotaStatus::class); - $this->server_errors_per_project_per_hour = $var; - - return $this; - } - - /** - * Analytics Properties can send up to 120 requests with potentially - * thresholded dimensions per hour. In a batch request, each report request - * is individually counted for this quota if the request contains potentially - * thresholded dimensions. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * @return \Google\Analytics\Data\V1beta\QuotaStatus|null - */ - public function getPotentiallyThresholdedRequestsPerHour() - { - return $this->potentially_thresholded_requests_per_hour; - } - - public function hasPotentiallyThresholdedRequestsPerHour() - { - return isset($this->potentially_thresholded_requests_per_hour); - } - - public function clearPotentiallyThresholdedRequestsPerHour() - { - unset($this->potentially_thresholded_requests_per_hour); - } - - /** - * Analytics Properties can send up to 120 requests with potentially - * thresholded dimensions per hour. In a batch request, each report request - * is individually counted for this quota if the request contains potentially - * thresholded dimensions. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * @param \Google\Analytics\Data\V1beta\QuotaStatus $var - * @return $this - */ - public function setPotentiallyThresholdedRequestsPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\QuotaStatus::class); - $this->potentially_thresholded_requests_per_hour = $var; - - return $this; - } - - /** - * Analytics Properties can use up to 35% of their tokens per project per - * hour. This amounts to standard Analytics Properties can use up to 14,000 - * tokens per project per hour, and Analytics 360 Properties can use 140,000 - * tokens per project per hour. An API request consumes a single number of - * tokens, and that number is deducted from all of the hourly, daily, and per - * project hourly quotas. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - * @return \Google\Analytics\Data\V1beta\QuotaStatus|null - */ - public function getTokensPerProjectPerHour() - { - return $this->tokens_per_project_per_hour; - } - - public function hasTokensPerProjectPerHour() - { - return isset($this->tokens_per_project_per_hour); - } - - public function clearTokensPerProjectPerHour() - { - unset($this->tokens_per_project_per_hour); - } - - /** - * Analytics Properties can use up to 35% of their tokens per project per - * hour. This amounts to standard Analytics Properties can use up to 14,000 - * tokens per project per hour, and Analytics 360 Properties can use 140,000 - * tokens per project per hour. An API request consumes a single number of - * tokens, and that number is deducted from all of the hourly, daily, and per - * project hourly quotas. - * - * Generated from protobuf field .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - * @param \Google\Analytics\Data\V1beta\QuotaStatus $var - * @return $this - */ - public function setTokensPerProjectPerHour($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\QuotaStatus::class); - $this->tokens_per_project_per_hour = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/QuotaStatus.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/QuotaStatus.php deleted file mode 100644 index c7b8d36c1c4..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/QuotaStatus.php +++ /dev/null @@ -1,101 +0,0 @@ -google.analytics.data.v1beta.QuotaStatus - */ -class QuotaStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Quota consumed by this request. - * - * Generated from protobuf field int32 consumed = 1; - */ - protected $consumed = 0; - /** - * Quota remaining after this request. - * - * Generated from protobuf field int32 remaining = 2; - */ - protected $remaining = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $consumed - * Quota consumed by this request. - * @type int $remaining - * Quota remaining after this request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * Quota consumed by this request. - * - * Generated from protobuf field int32 consumed = 1; - * @return int - */ - public function getConsumed() - { - return $this->consumed; - } - - /** - * Quota consumed by this request. - * - * Generated from protobuf field int32 consumed = 1; - * @param int $var - * @return $this - */ - public function setConsumed($var) - { - GPBUtil::checkInt32($var); - $this->consumed = $var; - - return $this; - } - - /** - * Quota remaining after this request. - * - * Generated from protobuf field int32 remaining = 2; - * @return int - */ - public function getRemaining() - { - return $this->remaining; - } - - /** - * Quota remaining after this request. - * - * Generated from protobuf field int32 remaining = 2; - * @param int $var - * @return $this - */ - public function setRemaining($var) - { - GPBUtil::checkInt32($var); - $this->remaining = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData.php deleted file mode 100644 index 79b329e9040..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData.php +++ /dev/null @@ -1,407 +0,0 @@ -google.analytics.data.v1beta.ResponseMetaData - */ -class ResponseMetaData extends \Google\Protobuf\Internal\Message -{ - /** - * If true, indicates some buckets of dimension combinations are rolled into - * "(other)" row. This can happen for high cardinality reports. - * The metadata parameter dataLossFromOtherRow is populated based on the - * aggregated data table used in the report. The parameter will be accurately - * populated regardless of the filters and limits in the report. - * For example, the (other) row could be dropped from the report because the - * request contains a filter on sessionSource = google. This parameter will - * still be populated if data loss from other row was present in the input - * aggregate data used to generate this report. - * To learn more, see [About the (other) row and data - * sampling](https://support.google.com/analytics/answer/13208658#reports). - * - * Generated from protobuf field bool data_loss_from_other_row = 3; - */ - protected $data_loss_from_other_row = false; - /** - * Describes the schema restrictions actively enforced in creating this - * report. To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * - * Generated from protobuf field optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - */ - protected $schema_restriction_response = null; - /** - * The currency code used in this report. Intended to be used in formatting - * currency metrics like `purchaseRevenue` for visualization. If currency_code - * was specified in the request, this response parameter will echo the request - * parameter; otherwise, this response parameter is the property's current - * currency_code. - * Currency codes are string encodings of currency types from the ISO 4217 - * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD", - * "EUR", "JPY". To learn more, see - * https://support.google.com/analytics/answer/9796179. - * - * Generated from protobuf field optional string currency_code = 5; - */ - protected $currency_code = null; - /** - * The property's current timezone. Intended to be used to interpret - * time-based dimensions like `hour` and `minute`. Formatted as strings from - * the IANA Time Zone database (https://www.iana.org/time-zones); for example - * "America/New_York" or "Asia/Tokyo". - * - * Generated from protobuf field optional string time_zone = 6; - */ - protected $time_zone = null; - /** - * If empty reason is specified, the report is empty for this reason. - * - * Generated from protobuf field optional string empty_reason = 7; - */ - protected $empty_reason = null; - /** - * If `subjectToThresholding` is true, this report is subject to thresholding - * and only returns data that meets the minimum aggregation thresholds. It is - * possible for a request to be subject to thresholding thresholding and no - * data is absent from the report, and this happens when all data is above the - * thresholds. To learn more, see [Data - * thresholds](https://support.google.com/analytics/answer/9383630) and [About - * Demographics and - * Interests](https://support.google.com/analytics/answer/2799357). - * - * Generated from protobuf field optional bool subject_to_thresholding = 8; - */ - protected $subject_to_thresholding = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $data_loss_from_other_row - * If true, indicates some buckets of dimension combinations are rolled into - * "(other)" row. This can happen for high cardinality reports. - * The metadata parameter dataLossFromOtherRow is populated based on the - * aggregated data table used in the report. The parameter will be accurately - * populated regardless of the filters and limits in the report. - * For example, the (other) row could be dropped from the report because the - * request contains a filter on sessionSource = google. This parameter will - * still be populated if data loss from other row was present in the input - * aggregate data used to generate this report. - * To learn more, see [About the (other) row and data - * sampling](https://support.google.com/analytics/answer/13208658#reports). - * @type \Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse $schema_restriction_response - * Describes the schema restrictions actively enforced in creating this - * report. To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * @type string $currency_code - * The currency code used in this report. Intended to be used in formatting - * currency metrics like `purchaseRevenue` for visualization. If currency_code - * was specified in the request, this response parameter will echo the request - * parameter; otherwise, this response parameter is the property's current - * currency_code. - * Currency codes are string encodings of currency types from the ISO 4217 - * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD", - * "EUR", "JPY". To learn more, see - * https://support.google.com/analytics/answer/9796179. - * @type string $time_zone - * The property's current timezone. Intended to be used to interpret - * time-based dimensions like `hour` and `minute`. Formatted as strings from - * the IANA Time Zone database (https://www.iana.org/time-zones); for example - * "America/New_York" or "Asia/Tokyo". - * @type string $empty_reason - * If empty reason is specified, the report is empty for this reason. - * @type bool $subject_to_thresholding - * If `subjectToThresholding` is true, this report is subject to thresholding - * and only returns data that meets the minimum aggregation thresholds. It is - * possible for a request to be subject to thresholding thresholding and no - * data is absent from the report, and this happens when all data is above the - * thresholds. To learn more, see [Data - * thresholds](https://support.google.com/analytics/answer/9383630) and [About - * Demographics and - * Interests](https://support.google.com/analytics/answer/2799357). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * If true, indicates some buckets of dimension combinations are rolled into - * "(other)" row. This can happen for high cardinality reports. - * The metadata parameter dataLossFromOtherRow is populated based on the - * aggregated data table used in the report. The parameter will be accurately - * populated regardless of the filters and limits in the report. - * For example, the (other) row could be dropped from the report because the - * request contains a filter on sessionSource = google. This parameter will - * still be populated if data loss from other row was present in the input - * aggregate data used to generate this report. - * To learn more, see [About the (other) row and data - * sampling](https://support.google.com/analytics/answer/13208658#reports). - * - * Generated from protobuf field bool data_loss_from_other_row = 3; - * @return bool - */ - public function getDataLossFromOtherRow() - { - return $this->data_loss_from_other_row; - } - - /** - * If true, indicates some buckets of dimension combinations are rolled into - * "(other)" row. This can happen for high cardinality reports. - * The metadata parameter dataLossFromOtherRow is populated based on the - * aggregated data table used in the report. The parameter will be accurately - * populated regardless of the filters and limits in the report. - * For example, the (other) row could be dropped from the report because the - * request contains a filter on sessionSource = google. This parameter will - * still be populated if data loss from other row was present in the input - * aggregate data used to generate this report. - * To learn more, see [About the (other) row and data - * sampling](https://support.google.com/analytics/answer/13208658#reports). - * - * Generated from protobuf field bool data_loss_from_other_row = 3; - * @param bool $var - * @return $this - */ - public function setDataLossFromOtherRow($var) - { - GPBUtil::checkBool($var); - $this->data_loss_from_other_row = $var; - - return $this; - } - - /** - * Describes the schema restrictions actively enforced in creating this - * report. To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * - * Generated from protobuf field optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * @return \Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse|null - */ - public function getSchemaRestrictionResponse() - { - return $this->schema_restriction_response; - } - - public function hasSchemaRestrictionResponse() - { - return isset($this->schema_restriction_response); - } - - public function clearSchemaRestrictionResponse() - { - unset($this->schema_restriction_response); - } - - /** - * Describes the schema restrictions actively enforced in creating this - * report. To learn more, see [Access and data-restriction - * management](https://support.google.com/analytics/answer/10851388). - * - * Generated from protobuf field optional .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse schema_restriction_response = 4; - * @param \Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse $var - * @return $this - */ - public function setSchemaRestrictionResponse($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse::class); - $this->schema_restriction_response = $var; - - return $this; - } - - /** - * The currency code used in this report. Intended to be used in formatting - * currency metrics like `purchaseRevenue` for visualization. If currency_code - * was specified in the request, this response parameter will echo the request - * parameter; otherwise, this response parameter is the property's current - * currency_code. - * Currency codes are string encodings of currency types from the ISO 4217 - * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD", - * "EUR", "JPY". To learn more, see - * https://support.google.com/analytics/answer/9796179. - * - * Generated from protobuf field optional string currency_code = 5; - * @return string - */ - public function getCurrencyCode() - { - return isset($this->currency_code) ? $this->currency_code : ''; - } - - public function hasCurrencyCode() - { - return isset($this->currency_code); - } - - public function clearCurrencyCode() - { - unset($this->currency_code); - } - - /** - * The currency code used in this report. Intended to be used in formatting - * currency metrics like `purchaseRevenue` for visualization. If currency_code - * was specified in the request, this response parameter will echo the request - * parameter; otherwise, this response parameter is the property's current - * currency_code. - * Currency codes are string encodings of currency types from the ISO 4217 - * standard (https://en.wikipedia.org/wiki/ISO_4217); for example "USD", - * "EUR", "JPY". To learn more, see - * https://support.google.com/analytics/answer/9796179. - * - * Generated from protobuf field optional string currency_code = 5; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - - /** - * The property's current timezone. Intended to be used to interpret - * time-based dimensions like `hour` and `minute`. Formatted as strings from - * the IANA Time Zone database (https://www.iana.org/time-zones); for example - * "America/New_York" or "Asia/Tokyo". - * - * Generated from protobuf field optional string time_zone = 6; - * @return string - */ - public function getTimeZone() - { - return isset($this->time_zone) ? $this->time_zone : ''; - } - - public function hasTimeZone() - { - return isset($this->time_zone); - } - - public function clearTimeZone() - { - unset($this->time_zone); - } - - /** - * The property's current timezone. Intended to be used to interpret - * time-based dimensions like `hour` and `minute`. Formatted as strings from - * the IANA Time Zone database (https://www.iana.org/time-zones); for example - * "America/New_York" or "Asia/Tokyo". - * - * Generated from protobuf field optional string time_zone = 6; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * If empty reason is specified, the report is empty for this reason. - * - * Generated from protobuf field optional string empty_reason = 7; - * @return string - */ - public function getEmptyReason() - { - return isset($this->empty_reason) ? $this->empty_reason : ''; - } - - public function hasEmptyReason() - { - return isset($this->empty_reason); - } - - public function clearEmptyReason() - { - unset($this->empty_reason); - } - - /** - * If empty reason is specified, the report is empty for this reason. - * - * Generated from protobuf field optional string empty_reason = 7; - * @param string $var - * @return $this - */ - public function setEmptyReason($var) - { - GPBUtil::checkString($var, True); - $this->empty_reason = $var; - - return $this; - } - - /** - * If `subjectToThresholding` is true, this report is subject to thresholding - * and only returns data that meets the minimum aggregation thresholds. It is - * possible for a request to be subject to thresholding thresholding and no - * data is absent from the report, and this happens when all data is above the - * thresholds. To learn more, see [Data - * thresholds](https://support.google.com/analytics/answer/9383630) and [About - * Demographics and - * Interests](https://support.google.com/analytics/answer/2799357). - * - * Generated from protobuf field optional bool subject_to_thresholding = 8; - * @return bool - */ - public function getSubjectToThresholding() - { - return isset($this->subject_to_thresholding) ? $this->subject_to_thresholding : false; - } - - public function hasSubjectToThresholding() - { - return isset($this->subject_to_thresholding); - } - - public function clearSubjectToThresholding() - { - unset($this->subject_to_thresholding); - } - - /** - * If `subjectToThresholding` is true, this report is subject to thresholding - * and only returns data that meets the minimum aggregation thresholds. It is - * possible for a request to be subject to thresholding thresholding and no - * data is absent from the report, and this happens when all data is above the - * thresholds. To learn more, see [Data - * thresholds](https://support.google.com/analytics/answer/9383630) and [About - * Demographics and - * Interests](https://support.google.com/analytics/answer/2799357). - * - * Generated from protobuf field optional bool subject_to_thresholding = 8; - * @param bool $var - * @return $this - */ - public function setSubjectToThresholding($var) - { - GPBUtil::checkBool($var); - $this->subject_to_thresholding = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse.php deleted file mode 100644 index 38739908def..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse.php +++ /dev/null @@ -1,84 +0,0 @@ -google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - */ -class SchemaRestrictionResponse extends \Google\Protobuf\Internal\Message -{ - /** - * All restrictions actively enforced in creating the report. For example, - * `purchaseRevenue` always has the restriction type `REVENUE_DATA`. - * However, this active response restriction is only populated if the user's - * custom role disallows access to `REVENUE_DATA`. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - */ - private $active_metric_restrictions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse\ActiveMetricRestriction>|\Google\Protobuf\Internal\RepeatedField $active_metric_restrictions - * All restrictions actively enforced in creating the report. For example, - * `purchaseRevenue` always has the restriction type `REVENUE_DATA`. - * However, this active response restriction is only populated if the user's - * custom role disallows access to `REVENUE_DATA`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * All restrictions actively enforced in creating the report. For example, - * `purchaseRevenue` always has the restriction type `REVENUE_DATA`. - * However, this active response restriction is only populated if the user's - * custom role disallows access to `REVENUE_DATA`. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActiveMetricRestrictions() - { - return $this->active_metric_restrictions; - } - - /** - * All restrictions actively enforced in creating the report. For example, - * `purchaseRevenue` always has the restriction type `REVENUE_DATA`. - * However, this active response restriction is only populated if the user's - * custom role disallows access to `REVENUE_DATA`. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction active_metric_restrictions = 1; - * @param array<\Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse\ActiveMetricRestriction>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActiveMetricRestrictions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\ResponseMetaData\SchemaRestrictionResponse\ActiveMetricRestriction::class); - $this->active_metric_restrictions = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SchemaRestrictionResponse::class, \Google\Analytics\Data\V1beta\ResponseMetaData_SchemaRestrictionResponse::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse/ActiveMetricRestriction.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse/ActiveMetricRestriction.php deleted file mode 100644 index 246f6d81d0c..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/ResponseMetaData/SchemaRestrictionResponse/ActiveMetricRestriction.php +++ /dev/null @@ -1,114 +0,0 @@ -google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction - */ -class ActiveMetricRestriction extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the restricted metric. - * - * Generated from protobuf field optional string metric_name = 1; - */ - protected $metric_name = null; - /** - * The reason for this metric's restriction. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - */ - private $restricted_metric_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $metric_name - * The name of the restricted metric. - * @type array|\Google\Protobuf\Internal\RepeatedField $restricted_metric_types - * The reason for this metric's restriction. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * The name of the restricted metric. - * - * Generated from protobuf field optional string metric_name = 1; - * @return string - */ - public function getMetricName() - { - return isset($this->metric_name) ? $this->metric_name : ''; - } - - public function hasMetricName() - { - return isset($this->metric_name); - } - - public function clearMetricName() - { - unset($this->metric_name); - } - - /** - * The name of the restricted metric. - * - * Generated from protobuf field optional string metric_name = 1; - * @param string $var - * @return $this - */ - public function setMetricName($var) - { - GPBUtil::checkString($var, True); - $this->metric_name = $var; - - return $this; - } - - /** - * The reason for this metric's restriction. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRestrictedMetricTypes() - { - return $this->restricted_metric_types; - } - - /** - * The reason for this metric's restriction. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.RestrictedMetricType restricted_metric_types = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRestrictedMetricTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Data\V1beta\RestrictedMetricType::class); - $this->restricted_metric_types = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ActiveMetricRestriction::class, \Google\Analytics\Data\V1beta\ResponseMetaData_SchemaRestrictionResponse_ActiveMetricRestriction::class); - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RestrictedMetricType.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RestrictedMetricType.php deleted file mode 100644 index 4d77bccc258..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RestrictedMetricType.php +++ /dev/null @@ -1,62 +0,0 @@ -google.analytics.data.v1beta.RestrictedMetricType - */ -class RestrictedMetricType -{ - /** - * Unspecified type. - * - * Generated from protobuf enum RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - */ - const RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - /** - * Cost metrics such as `adCost`. - * - * Generated from protobuf enum COST_DATA = 1; - */ - const COST_DATA = 1; - /** - * Revenue metrics such as `purchaseRevenue`. - * - * Generated from protobuf enum REVENUE_DATA = 2; - */ - const REVENUE_DATA = 2; - - private static $valueToName = [ - self::RESTRICTED_METRIC_TYPE_UNSPECIFIED => 'RESTRICTED_METRIC_TYPE_UNSPECIFIED', - self::COST_DATA => 'COST_DATA', - self::REVENUE_DATA => 'REVENUE_DATA', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Row.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Row.php deleted file mode 100644 index fb28b01a352..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/Row.php +++ /dev/null @@ -1,138 +0,0 @@ -google.analytics.data.v1beta.Row - */ -class Row extends \Google\Protobuf\Internal\Message -{ - /** - * List of requested dimension values. In a PivotReport, dimension_values - * are only listed for dimensions included in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - */ - private $dimension_values; - /** - * List of requested visible metric values. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - */ - private $metric_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\DimensionValue>|\Google\Protobuf\Internal\RepeatedField $dimension_values - * List of requested dimension values. In a PivotReport, dimension_values - * are only listed for dimensions included in a pivot. - * @type array<\Google\Analytics\Data\V1beta\MetricValue>|\Google\Protobuf\Internal\RepeatedField $metric_values - * List of requested visible metric values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\Data::initOnce(); - parent::__construct($data); - } - - /** - * List of requested dimension values. In a PivotReport, dimension_values - * are only listed for dimensions included in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionValues() - { - return $this->dimension_values; - } - - /** - * List of requested dimension values. In a PivotReport, dimension_values - * are only listed for dimensions included in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionValue dimension_values = 1; - * @param array<\Google\Analytics\Data\V1beta\DimensionValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionValue::class); - $this->dimension_values = $arr; - - return $this; - } - - /** - * List of requested visible metric values. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricValues() - { - return $this->metric_values; - } - - /** - * List of requested visible metric values. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricValue metric_values = 2; - * @param array<\Google\Analytics\Data\V1beta\MetricValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricValue::class); - $this->metric_values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportRequest.php deleted file mode 100644 index e08a64ae635..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportRequest.php +++ /dev/null @@ -1,553 +0,0 @@ -google.analytics.data.v1beta.RunPivotReportRequest - */ -class RunPivotReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - */ - protected $property = ''; - /** - * The dimensions requested. All defined dimensions must be used by one of the - * following: dimension_expression, dimension_filter, pivots, order_bys. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - private $dimensions; - /** - * The metrics requested, at least one metric needs to be specified. All - * defined metrics must be used by one of the following: metric_expression, - * metric_filter, order_bys. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - private $metrics; - /** - * The date range to retrieve event data for the report. If multiple date - * ranges are specified, event data from each date range is used in the - * report. A special dimension with field name "dateRange" can be included in - * a Pivot's field names; if included, the report compares between date - * ranges. In a cohort request, this `dateRanges` must be unspecified. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - private $date_ranges; - /** - * Describes the visual format of the report's dimensions in columns or rows. - * The union of the fieldNames (dimension names) in all pivots must be a - * subset of dimension names defined in Dimensions. No two pivots can share a - * dimension. A dimension is only visible if it appears in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Pivot pivots = 5; - */ - private $pivots; - /** - * The filter clause of dimensions. Dimensions must be requested to be used in - * this filter. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - */ - protected $dimension_filter = null; - /** - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Metrics must be requested to be used in this filter. - * Dimensions cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - */ - protected $metric_filter = null; - /** - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * - * Generated from protobuf field string currency_code = 8; - */ - protected $currency_code = ''; - /** - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - */ - protected $cohort_spec = null; - /** - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * - * Generated from protobuf field bool keep_empty_rows = 10; - */ - protected $keep_empty_rows = false; - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 11; - */ - protected $return_property_quota = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * @type array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $dimensions - * The dimensions requested. All defined dimensions must be used by one of the - * following: dimension_expression, dimension_filter, pivots, order_bys. - * @type array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $metrics - * The metrics requested, at least one metric needs to be specified. All - * defined metrics must be used by one of the following: metric_expression, - * metric_filter, order_bys. - * @type array<\Google\Analytics\Data\V1beta\DateRange>|\Google\Protobuf\Internal\RepeatedField $date_ranges - * The date range to retrieve event data for the report. If multiple date - * ranges are specified, event data from each date range is used in the - * report. A special dimension with field name "dateRange" can be included in - * a Pivot's field names; if included, the report compares between date - * ranges. In a cohort request, this `dateRanges` must be unspecified. - * @type array<\Google\Analytics\Data\V1beta\Pivot>|\Google\Protobuf\Internal\RepeatedField $pivots - * Describes the visual format of the report's dimensions in columns or rows. - * The union of the fieldNames (dimension names) in all pivots must be a - * subset of dimension names defined in Dimensions. No two pivots can share a - * dimension. A dimension is only visible if it appears in a pivot. - * @type \Google\Analytics\Data\V1beta\FilterExpression $dimension_filter - * The filter clause of dimensions. Dimensions must be requested to be used in - * this filter. Metrics cannot be used in this filter. - * @type \Google\Analytics\Data\V1beta\FilterExpression $metric_filter - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Metrics must be requested to be used in this filter. - * Dimensions cannot be used in this filter. - * @type string $currency_code - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * @type \Google\Analytics\Data\V1beta\CohortSpec $cohort_spec - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * @type bool $keep_empty_rows - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * @type bool $return_property_quota - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * The dimensions requested. All defined dimensions must be used by one of the - * following: dimension_expression, dimension_filter, pivots, order_bys. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * The dimensions requested. All defined dimensions must be used by one of the - * following: dimension_expression, dimension_filter, pivots, order_bys. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - * @param array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Dimension::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * The metrics requested, at least one metric needs to be specified. All - * defined metrics must be used by one of the following: metric_expression, - * metric_filter, order_bys. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * The metrics requested, at least one metric needs to be specified. All - * defined metrics must be used by one of the following: metric_expression, - * metric_filter, order_bys. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - * @param array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Metric::class); - $this->metrics = $arr; - - return $this; - } - - /** - * The date range to retrieve event data for the report. If multiple date - * ranges are specified, event data from each date range is used in the - * report. A special dimension with field name "dateRange" can be included in - * a Pivot's field names; if included, the report compares between date - * ranges. In a cohort request, this `dateRanges` must be unspecified. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDateRanges() - { - return $this->date_ranges; - } - - /** - * The date range to retrieve event data for the report. If multiple date - * ranges are specified, event data from each date range is used in the - * report. A special dimension with field name "dateRange" can be included in - * a Pivot's field names; if included, the report compares between date - * ranges. In a cohort request, this `dateRanges` must be unspecified. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - * @param array<\Google\Analytics\Data\V1beta\DateRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDateRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DateRange::class); - $this->date_ranges = $arr; - - return $this; - } - - /** - * Describes the visual format of the report's dimensions in columns or rows. - * The union of the fieldNames (dimension names) in all pivots must be a - * subset of dimension names defined in Dimensions. No two pivots can share a - * dimension. A dimension is only visible if it appears in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Pivot pivots = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPivots() - { - return $this->pivots; - } - - /** - * Describes the visual format of the report's dimensions in columns or rows. - * The union of the fieldNames (dimension names) in all pivots must be a - * subset of dimension names defined in Dimensions. No two pivots can share a - * dimension. A dimension is only visible if it appears in a pivot. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Pivot pivots = 5; - * @param array<\Google\Analytics\Data\V1beta\Pivot>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPivots($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Pivot::class); - $this->pivots = $arr; - - return $this; - } - - /** - * The filter clause of dimensions. Dimensions must be requested to be used in - * this filter. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - * @return \Google\Analytics\Data\V1beta\FilterExpression|null - */ - public function getDimensionFilter() - { - return $this->dimension_filter; - } - - public function hasDimensionFilter() - { - return isset($this->dimension_filter); - } - - public function clearDimensionFilter() - { - unset($this->dimension_filter); - } - - /** - * The filter clause of dimensions. Dimensions must be requested to be used in - * this filter. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 6; - * @param \Google\Analytics\Data\V1beta\FilterExpression $var - * @return $this - */ - public function setDimensionFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->dimension_filter = $var; - - return $this; - } - - /** - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Metrics must be requested to be used in this filter. - * Dimensions cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - * @return \Google\Analytics\Data\V1beta\FilterExpression|null - */ - public function getMetricFilter() - { - return $this->metric_filter; - } - - public function hasMetricFilter() - { - return isset($this->metric_filter); - } - - public function clearMetricFilter() - { - unset($this->metric_filter); - } - - /** - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Metrics must be requested to be used in this filter. - * Dimensions cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 7; - * @param \Google\Analytics\Data\V1beta\FilterExpression $var - * @return $this - */ - public function setMetricFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->metric_filter = $var; - - return $this; - } - - /** - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * - * Generated from protobuf field string currency_code = 8; - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * - * Generated from protobuf field string currency_code = 8; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - - /** - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - * @return \Google\Analytics\Data\V1beta\CohortSpec|null - */ - public function getCohortSpec() - { - return $this->cohort_spec; - } - - public function hasCohortSpec() - { - return isset($this->cohort_spec); - } - - public function clearCohortSpec() - { - unset($this->cohort_spec); - } - - /** - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortSpec cohort_spec = 9; - * @param \Google\Analytics\Data\V1beta\CohortSpec $var - * @return $this - */ - public function setCohortSpec($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\CohortSpec::class); - $this->cohort_spec = $var; - - return $this; - } - - /** - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * - * Generated from protobuf field bool keep_empty_rows = 10; - * @return bool - */ - public function getKeepEmptyRows() - { - return $this->keep_empty_rows; - } - - /** - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * - * Generated from protobuf field bool keep_empty_rows = 10; - * @param bool $var - * @return $this - */ - public function setKeepEmptyRows($var) - { - GPBUtil::checkBool($var); - $this->keep_empty_rows = $var; - - return $this; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 11; - * @return bool - */ - public function getReturnPropertyQuota() - { - return $this->return_property_quota; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 11; - * @param bool $var - * @return $this - */ - public function setReturnPropertyQuota($var) - { - GPBUtil::checkBool($var); - $this->return_property_quota = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportResponse.php deleted file mode 100644 index 959e315a49f..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunPivotReportResponse.php +++ /dev/null @@ -1,481 +0,0 @@ -google.analytics.data.v1beta.RunPivotReportResponse - */ -class RunPivotReportResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Summarizes the columns and rows created by a pivot. Each pivot in the - * request produces one header in the response. If we have a request like - * this: - * "pivots": [{ - * "fieldNames": ["country", - * "city"] - * }, - * { - * "fieldNames": "eventName" - * }] - * We will have the following `pivotHeaders` in the response: - * "pivotHeaders" : [{ - * "dimensionHeaders": [{ - * "dimensionValues": [ - * { "value": "United Kingdom" }, - * { "value": "London" } - * ] - * }, - * { - * "dimensionValues": [ - * { "value": "Japan" }, - * { "value": "Osaka" } - * ] - * }] - * }, - * { - * "dimensionHeaders": [{ - * "dimensionValues": [{ "value": "session_start" }] - * }, - * { - * "dimensionValues": [{ "value": "scroll" }] - * }] - * }] - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - */ - private $pivot_headers; - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - */ - private $dimension_headers; - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - */ - private $metric_headers; - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 4; - */ - private $rows; - /** - * Aggregation of metric values. Can be totals, minimums, or maximums. The - * returned aggregations are controlled by the metric_aggregations in the - * pivot. The type of aggregation returned in each row is shown by the - * dimension_values which are set to "RESERVED_". - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row aggregates = 5; - */ - private $aggregates; - /** - * Metadata for the report. - * - * Generated from protobuf field .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - */ - protected $metadata = null; - /** - * This Analytics Property's quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - */ - protected $property_quota = null; - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runPivotReport". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 8; - */ - protected $kind = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\PivotHeader>|\Google\Protobuf\Internal\RepeatedField $pivot_headers - * Summarizes the columns and rows created by a pivot. Each pivot in the - * request produces one header in the response. If we have a request like - * this: - * "pivots": [{ - * "fieldNames": ["country", - * "city"] - * }, - * { - * "fieldNames": "eventName" - * }] - * We will have the following `pivotHeaders` in the response: - * "pivotHeaders" : [{ - * "dimensionHeaders": [{ - * "dimensionValues": [ - * { "value": "United Kingdom" }, - * { "value": "London" } - * ] - * }, - * { - * "dimensionValues": [ - * { "value": "Japan" }, - * { "value": "Osaka" } - * ] - * }] - * }, - * { - * "dimensionHeaders": [{ - * "dimensionValues": [{ "value": "session_start" }] - * }, - * { - * "dimensionValues": [{ "value": "scroll" }] - * }] - * }] - * @type array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $dimension_headers - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * @type array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $metric_headers - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $rows - * Rows of dimension value combinations and metric values in the report. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $aggregates - * Aggregation of metric values. Can be totals, minimums, or maximums. The - * returned aggregations are controlled by the metric_aggregations in the - * pivot. The type of aggregation returned in each row is shown by the - * dimension_values which are set to "RESERVED_". - * @type \Google\Analytics\Data\V1beta\ResponseMetaData $metadata - * Metadata for the report. - * @type \Google\Analytics\Data\V1beta\PropertyQuota $property_quota - * This Analytics Property's quota state including this request. - * @type string $kind - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runPivotReport". Useful to distinguish between - * response types in JSON. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Summarizes the columns and rows created by a pivot. Each pivot in the - * request produces one header in the response. If we have a request like - * this: - * "pivots": [{ - * "fieldNames": ["country", - * "city"] - * }, - * { - * "fieldNames": "eventName" - * }] - * We will have the following `pivotHeaders` in the response: - * "pivotHeaders" : [{ - * "dimensionHeaders": [{ - * "dimensionValues": [ - * { "value": "United Kingdom" }, - * { "value": "London" } - * ] - * }, - * { - * "dimensionValues": [ - * { "value": "Japan" }, - * { "value": "Osaka" } - * ] - * }] - * }, - * { - * "dimensionHeaders": [{ - * "dimensionValues": [{ "value": "session_start" }] - * }, - * { - * "dimensionValues": [{ "value": "scroll" }] - * }] - * }] - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPivotHeaders() - { - return $this->pivot_headers; - } - - /** - * Summarizes the columns and rows created by a pivot. Each pivot in the - * request produces one header in the response. If we have a request like - * this: - * "pivots": [{ - * "fieldNames": ["country", - * "city"] - * }, - * { - * "fieldNames": "eventName" - * }] - * We will have the following `pivotHeaders` in the response: - * "pivotHeaders" : [{ - * "dimensionHeaders": [{ - * "dimensionValues": [ - * { "value": "United Kingdom" }, - * { "value": "London" } - * ] - * }, - * { - * "dimensionValues": [ - * { "value": "Japan" }, - * { "value": "Osaka" } - * ] - * }] - * }, - * { - * "dimensionHeaders": [{ - * "dimensionValues": [{ "value": "session_start" }] - * }, - * { - * "dimensionValues": [{ "value": "scroll" }] - * }] - * }] - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.PivotHeader pivot_headers = 1; - * @param array<\Google\Analytics\Data\V1beta\PivotHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPivotHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\PivotHeader::class); - $this->pivot_headers = $arr; - - return $this; - } - - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionHeaders() - { - return $this->dimension_headers; - } - - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 2; - * @param array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionHeader::class); - $this->dimension_headers = $arr; - - return $this; - } - - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricHeaders() - { - return $this->metric_headers; - } - - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 3; - * @param array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricHeader::class); - $this->metric_headers = $arr; - - return $this; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRows() - { - return $this->rows; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 4; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->rows = $arr; - - return $this; - } - - /** - * Aggregation of metric values. Can be totals, minimums, or maximums. The - * returned aggregations are controlled by the metric_aggregations in the - * pivot. The type of aggregation returned in each row is shown by the - * dimension_values which are set to "RESERVED_". - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row aggregates = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAggregates() - { - return $this->aggregates; - } - - /** - * Aggregation of metric values. Can be totals, minimums, or maximums. The - * returned aggregations are controlled by the metric_aggregations in the - * pivot. The type of aggregation returned in each row is shown by the - * dimension_values which are set to "RESERVED_". - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row aggregates = 5; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAggregates($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->aggregates = $arr; - - return $this; - } - - /** - * Metadata for the report. - * - * Generated from protobuf field .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - * @return \Google\Analytics\Data\V1beta\ResponseMetaData|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Metadata for the report. - * - * Generated from protobuf field .google.analytics.data.v1beta.ResponseMetaData metadata = 6; - * @param \Google\Analytics\Data\V1beta\ResponseMetaData $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\ResponseMetaData::class); - $this->metadata = $var; - - return $this; - } - - /** - * This Analytics Property's quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - * @return \Google\Analytics\Data\V1beta\PropertyQuota|null - */ - public function getPropertyQuota() - { - return $this->property_quota; - } - - public function hasPropertyQuota() - { - return isset($this->property_quota); - } - - public function clearPropertyQuota() - { - unset($this->property_quota); - } - - /** - * This Analytics Property's quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 7; - * @param \Google\Analytics\Data\V1beta\PropertyQuota $var - * @return $this - */ - public function setPropertyQuota($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\PropertyQuota::class); - $this->property_quota = $var; - - return $this; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runPivotReport". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 8; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runPivotReport". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 8; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportRequest.php deleted file mode 100644 index 9d96cefe0a9..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportRequest.php +++ /dev/null @@ -1,465 +0,0 @@ -google.analytics.data.v1beta.RunRealtimeReportRequest - */ -class RunRealtimeReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - */ - protected $property = ''; - /** - * The dimensions requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - private $dimensions; - /** - * The metrics requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - private $metrics; - /** - * The filter clause of dimensions. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - */ - protected $dimension_filter = null; - /** - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Dimensions cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - */ - protected $metric_filter = null; - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * - * Generated from protobuf field int64 limit = 6; - */ - protected $limit = 0; - /** - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - */ - private $metric_aggregations; - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - */ - private $order_bys; - /** - * Toggles whether to return the current state of this Analytics Property's - * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 9; - */ - protected $return_property_quota = false; - /** - * The minute ranges of event data to read. If unspecified, one minute range - * for the last 30 minutes will be used. If multiple minute ranges are - * requested, each response row will contain a zero based minute range index. - * If two minute ranges overlap, the event data for the overlapping minutes is - * included in the response rows for both minute ranges. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - */ - private $minute_ranges; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Example: properties/1234 - * @type array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $dimensions - * The dimensions requested and displayed. - * @type array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $metrics - * The metrics requested and displayed. - * @type \Google\Analytics\Data\V1beta\FilterExpression $dimension_filter - * The filter clause of dimensions. Metrics cannot be used in this filter. - * @type \Google\Analytics\Data\V1beta\FilterExpression $metric_filter - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Dimensions cannot be used in this filter. - * @type int|string $limit - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * @type array|\Google\Protobuf\Internal\RepeatedField $metric_aggregations - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * @type array<\Google\Analytics\Data\V1beta\OrderBy>|\Google\Protobuf\Internal\RepeatedField $order_bys - * Specifies how rows are ordered in the response. - * @type bool $return_property_quota - * Toggles whether to return the current state of this Analytics Property's - * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * @type array<\Google\Analytics\Data\V1beta\MinuteRange>|\Google\Protobuf\Internal\RepeatedField $minute_ranges - * The minute ranges of event data to read. If unspecified, one minute range - * for the last 30 minutes will be used. If multiple minute ranges are - * requested, each response row will contain a zero based minute range index. - * If two minute ranges overlap, the event data for the overlapping minutes is - * included in the response rows for both minute ranges. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * The dimensions requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * The dimensions requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - * @param array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Dimension::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * The metrics requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * The metrics requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - * @param array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Metric::class); - $this->metrics = $arr; - - return $this; - } - - /** - * The filter clause of dimensions. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * @return \Google\Analytics\Data\V1beta\FilterExpression|null - */ - public function getDimensionFilter() - { - return $this->dimension_filter; - } - - public function hasDimensionFilter() - { - return isset($this->dimension_filter); - } - - public function clearDimensionFilter() - { - unset($this->dimension_filter); - } - - /** - * The filter clause of dimensions. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; - * @param \Google\Analytics\Data\V1beta\FilterExpression $var - * @return $this - */ - public function setDimensionFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->dimension_filter = $var; - - return $this; - } - - /** - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Dimensions cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * @return \Google\Analytics\Data\V1beta\FilterExpression|null - */ - public function getMetricFilter() - { - return $this->metric_filter; - } - - public function hasMetricFilter() - { - return isset($this->metric_filter); - } - - public function clearMetricFilter() - { - unset($this->metric_filter); - } - - /** - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Dimensions cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 5; - * @param \Google\Analytics\Data\V1beta\FilterExpression $var - * @return $this - */ - public function setMetricFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->metric_filter = $var; - - return $this; - } - - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * - * Generated from protobuf field int64 limit = 6; - * @return int|string - */ - public function getLimit() - { - return $this->limit; - } - - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * - * Generated from protobuf field int64 limit = 6; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - - /** - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricAggregations() - { - return $this->metric_aggregations; - } - - /** - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricAggregations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Data\V1beta\MetricAggregation::class); - $this->metric_aggregations = $arr; - - return $this; - } - - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOrderBys() - { - return $this->order_bys; - } - - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 8; - * @param array<\Google\Analytics\Data\V1beta\OrderBy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOrderBys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\OrderBy::class); - $this->order_bys = $arr; - - return $this; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 9; - * @return bool - */ - public function getReturnPropertyQuota() - { - return $this->return_property_quota; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 9; - * @param bool $var - * @return $this - */ - public function setReturnPropertyQuota($var) - { - GPBUtil::checkBool($var); - $this->return_property_quota = $var; - - return $this; - } - - /** - * The minute ranges of event data to read. If unspecified, one minute range - * for the last 30 minutes will be used. If multiple minute ranges are - * requested, each response row will contain a zero based minute range index. - * If two minute ranges overlap, the event data for the overlapping minutes is - * included in the response rows for both minute ranges. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMinuteRanges() - { - return $this->minute_ranges; - } - - /** - * The minute ranges of event data to read. If unspecified, one minute range - * for the last 30 minutes will be used. If multiple minute ranges are - * requested, each response row will contain a zero based minute range index. - * If two minute ranges overlap, the event data for the overlapping minutes is - * included in the response rows for both minute ranges. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MinuteRange minute_ranges = 10; - * @param array<\Google\Analytics\Data\V1beta\MinuteRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMinuteRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MinuteRange::class); - $this->minute_ranges = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportResponse.php deleted file mode 100644 index 4ff50b9d77b..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunRealtimeReportResponse.php +++ /dev/null @@ -1,381 +0,0 @@ -google.analytics.data.v1beta.RunRealtimeReportResponse - */ -class RunRealtimeReportResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - private $dimension_headers; - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - private $metric_headers; - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 3; - */ - private $rows; - /** - * If requested, the totaled values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row totals = 4; - */ - private $totals; - /** - * If requested, the maximum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - private $maximums; - /** - * If requested, the minimum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - private $minimums; - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response and the `limit` request - * parameter. For example if a query returns 175 rows and includes `limit` - * of 50 in the API request, the response will contain `rowCount` of 175 but - * only 50 rows. - * - * Generated from protobuf field int32 row_count = 7; - */ - protected $row_count = 0; - /** - * This Analytics Property's Realtime quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - */ - protected $property_quota = null; - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runRealtimeReport". Useful to distinguish - * between response types in JSON. - * - * Generated from protobuf field string kind = 9; - */ - protected $kind = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $dimension_headers - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * @type array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $metric_headers - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $rows - * Rows of dimension value combinations and metric values in the report. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $totals - * If requested, the totaled values of metrics. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $maximums - * If requested, the maximum values of metrics. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $minimums - * If requested, the minimum values of metrics. - * @type int $row_count - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response and the `limit` request - * parameter. For example if a query returns 175 rows and includes `limit` - * of 50 in the API request, the response will contain `rowCount` of 175 but - * only 50 rows. - * @type \Google\Analytics\Data\V1beta\PropertyQuota $property_quota - * This Analytics Property's Realtime quota state including this request. - * @type string $kind - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runRealtimeReport". Useful to distinguish - * between response types in JSON. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionHeaders() - { - return $this->dimension_headers; - } - - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - * @param array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionHeader::class); - $this->dimension_headers = $arr; - - return $this; - } - - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricHeaders() - { - return $this->metric_headers; - } - - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - * @param array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricHeader::class); - $this->metric_headers = $arr; - - return $this; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRows() - { - return $this->rows; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 3; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->rows = $arr; - - return $this; - } - - /** - * If requested, the totaled values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row totals = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTotals() - { - return $this->totals; - } - - /** - * If requested, the totaled values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row totals = 4; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTotals($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->totals = $arr; - - return $this; - } - - /** - * If requested, the maximum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row maximums = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMaximums() - { - return $this->maximums; - } - - /** - * If requested, the maximum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row maximums = 5; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMaximums($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->maximums = $arr; - - return $this; - } - - /** - * If requested, the minimum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row minimums = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMinimums() - { - return $this->minimums; - } - - /** - * If requested, the minimum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row minimums = 6; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMinimums($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->minimums = $arr; - - return $this; - } - - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response and the `limit` request - * parameter. For example if a query returns 175 rows and includes `limit` - * of 50 in the API request, the response will contain `rowCount` of 175 but - * only 50 rows. - * - * Generated from protobuf field int32 row_count = 7; - * @return int - */ - public function getRowCount() - { - return $this->row_count; - } - - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response and the `limit` request - * parameter. For example if a query returns 175 rows and includes `limit` - * of 50 in the API request, the response will contain `rowCount` of 175 but - * only 50 rows. - * - * Generated from protobuf field int32 row_count = 7; - * @param int $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt32($var); - $this->row_count = $var; - - return $this; - } - - /** - * This Analytics Property's Realtime quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - * @return \Google\Analytics\Data\V1beta\PropertyQuota|null - */ - public function getPropertyQuota() - { - return $this->property_quota; - } - - public function hasPropertyQuota() - { - return isset($this->property_quota); - } - - public function clearPropertyQuota() - { - unset($this->property_quota); - } - - /** - * This Analytics Property's Realtime quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 8; - * @param \Google\Analytics\Data\V1beta\PropertyQuota $var - * @return $this - */ - public function setPropertyQuota($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\PropertyQuota::class); - $this->property_quota = $var; - - return $this; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runRealtimeReport". Useful to distinguish - * between response types in JSON. - * - * Generated from protobuf field string kind = 9; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runRealtimeReport". Useful to distinguish - * between response types in JSON. - * - * Generated from protobuf field string kind = 9; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportRequest.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportRequest.php deleted file mode 100644 index 6f0d9ba7a92..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportRequest.php +++ /dev/null @@ -1,699 +0,0 @@ -google.analytics.data.v1beta.RunReportRequest - */ -class RunReportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - */ - protected $property = ''; - /** - * The dimensions requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - */ - private $dimensions; - /** - * The metrics requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - */ - private $metrics; - /** - * Date ranges of data to read. If multiple date ranges are requested, each - * response row will contain a zero based date range index. If two date - * ranges overlap, the event data for the overlapping days is included in the - * response rows for both date ranges. In a cohort request, this `dateRanges` - * must be unspecified. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - */ - private $date_ranges; - /** - * Dimension filters let you ask for only specific dimension values in - * the report. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - */ - protected $dimension_filter = null; - /** - * The filter clause of metrics. Applied after aggregating the report's rows, - * similar to SQL having-clause. Dimensions cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - */ - protected $metric_filter = null; - /** - * The row count of the start row. The first row is counted as row 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 7; - */ - protected $offset = 0; - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 8; - */ - protected $limit = 0; - /** - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - */ - private $metric_aggregations; - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - */ - private $order_bys; - /** - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * - * Generated from protobuf field string currency_code = 11; - */ - protected $currency_code = ''; - /** - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - */ - protected $cohort_spec = null; - /** - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * - * Generated from protobuf field bool keep_empty_rows = 13; - */ - protected $keep_empty_rows = false; - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 14; - */ - protected $return_property_quota = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * @type array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $dimensions - * The dimensions requested and displayed. - * @type array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $metrics - * The metrics requested and displayed. - * @type array<\Google\Analytics\Data\V1beta\DateRange>|\Google\Protobuf\Internal\RepeatedField $date_ranges - * Date ranges of data to read. If multiple date ranges are requested, each - * response row will contain a zero based date range index. If two date - * ranges overlap, the event data for the overlapping days is included in the - * response rows for both date ranges. In a cohort request, this `dateRanges` - * must be unspecified. - * @type \Google\Analytics\Data\V1beta\FilterExpression $dimension_filter - * Dimension filters let you ask for only specific dimension values in - * the report. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * @type \Google\Analytics\Data\V1beta\FilterExpression $metric_filter - * The filter clause of metrics. Applied after aggregating the report's rows, - * similar to SQL having-clause. Dimensions cannot be used in this filter. - * @type int|string $offset - * The row count of the start row. The first row is counted as row 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int|string $limit - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type array|\Google\Protobuf\Internal\RepeatedField $metric_aggregations - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * @type array<\Google\Analytics\Data\V1beta\OrderBy>|\Google\Protobuf\Internal\RepeatedField $order_bys - * Specifies how rows are ordered in the response. - * @type string $currency_code - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * @type \Google\Analytics\Data\V1beta\CohortSpec $cohort_spec - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * @type bool $keep_empty_rows - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * @type bool $return_property_quota - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * Example: properties/1234 - * - * Generated from protobuf field string property = 1; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * The dimensions requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensions() - { - return $this->dimensions; - } - - /** - * The dimensions requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Dimension dimensions = 2; - * @param array<\Google\Analytics\Data\V1beta\Dimension>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Dimension::class); - $this->dimensions = $arr; - - return $this; - } - - /** - * The metrics requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * The metrics requested and displayed. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Metric metrics = 3; - * @param array<\Google\Analytics\Data\V1beta\Metric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Metric::class); - $this->metrics = $arr; - - return $this; - } - - /** - * Date ranges of data to read. If multiple date ranges are requested, each - * response row will contain a zero based date range index. If two date - * ranges overlap, the event data for the overlapping days is included in the - * response rows for both date ranges. In a cohort request, this `dateRanges` - * must be unspecified. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDateRanges() - { - return $this->date_ranges; - } - - /** - * Date ranges of data to read. If multiple date ranges are requested, each - * response row will contain a zero based date range index. If two date - * ranges overlap, the event data for the overlapping days is included in the - * response rows for both date ranges. In a cohort request, this `dateRanges` - * must be unspecified. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DateRange date_ranges = 4; - * @param array<\Google\Analytics\Data\V1beta\DateRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDateRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DateRange::class); - $this->date_ranges = $arr; - - return $this; - } - - /** - * Dimension filters let you ask for only specific dimension values in - * the report. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - * @return \Google\Analytics\Data\V1beta\FilterExpression|null - */ - public function getDimensionFilter() - { - return $this->dimension_filter; - } - - public function hasDimensionFilter() - { - return isset($this->dimension_filter); - } - - public function clearDimensionFilter() - { - unset($this->dimension_filter); - } - - /** - * Dimension filters let you ask for only specific dimension values in - * the report. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression dimension_filter = 5; - * @param \Google\Analytics\Data\V1beta\FilterExpression $var - * @return $this - */ - public function setDimensionFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->dimension_filter = $var; - - return $this; - } - - /** - * The filter clause of metrics. Applied after aggregating the report's rows, - * similar to SQL having-clause. Dimensions cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - * @return \Google\Analytics\Data\V1beta\FilterExpression|null - */ - public function getMetricFilter() - { - return $this->metric_filter; - } - - public function hasMetricFilter() - { - return isset($this->metric_filter); - } - - public function clearMetricFilter() - { - unset($this->metric_filter); - } - - /** - * The filter clause of metrics. Applied after aggregating the report's rows, - * similar to SQL having-clause. Dimensions cannot be used in this filter. - * - * Generated from protobuf field .google.analytics.data.v1beta.FilterExpression metric_filter = 6; - * @param \Google\Analytics\Data\V1beta\FilterExpression $var - * @return $this - */ - public function setMetricFilter($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\FilterExpression::class); - $this->metric_filter = $var; - - return $this; - } - - /** - * The row count of the start row. The first row is counted as row 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 7; - * @return int|string - */ - public function getOffset() - { - return $this->offset; - } - - /** - * The row count of the start row. The first row is counted as row 0. - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 offset = 7; - * @param int|string $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkInt64($var); - $this->offset = $var; - - return $this; - } - - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 8; - * @return int|string - */ - public function getLimit() - { - return $this->limit; - } - - /** - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int64 limit = 8; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - - /** - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricAggregations() - { - return $this->metric_aggregations; - } - - /** - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricAggregation metric_aggregations = 9; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricAggregations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Analytics\Data\V1beta\MetricAggregation::class); - $this->metric_aggregations = $arr; - - return $this; - } - - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOrderBys() - { - return $this->order_bys; - } - - /** - * Specifies how rows are ordered in the response. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.OrderBy order_bys = 10; - * @param array<\Google\Analytics\Data\V1beta\OrderBy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOrderBys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\OrderBy::class); - $this->order_bys = $arr; - - return $this; - } - - /** - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * - * Generated from protobuf field string currency_code = 11; - * @return string - */ - public function getCurrencyCode() - { - return $this->currency_code; - } - - /** - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * - * Generated from protobuf field string currency_code = 11; - * @param string $var - * @return $this - */ - public function setCurrencyCode($var) - { - GPBUtil::checkString($var, True); - $this->currency_code = $var; - - return $this; - } - - /** - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - * @return \Google\Analytics\Data\V1beta\CohortSpec|null - */ - public function getCohortSpec() - { - return $this->cohort_spec; - } - - public function hasCohortSpec() - { - return isset($this->cohort_spec); - } - - public function clearCohortSpec() - { - unset($this->cohort_spec); - } - - /** - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * - * Generated from protobuf field .google.analytics.data.v1beta.CohortSpec cohort_spec = 12; - * @param \Google\Analytics\Data\V1beta\CohortSpec $var - * @return $this - */ - public function setCohortSpec($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\CohortSpec::class); - $this->cohort_spec = $var; - - return $this; - } - - /** - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * - * Generated from protobuf field bool keep_empty_rows = 13; - * @return bool - */ - public function getKeepEmptyRows() - { - return $this->keep_empty_rows; - } - - /** - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * - * Generated from protobuf field bool keep_empty_rows = 13; - * @param bool $var - * @return $this - */ - public function setKeepEmptyRows($var) - { - GPBUtil::checkBool($var); - $this->keep_empty_rows = $var; - - return $this; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 14; - * @return bool - */ - public function getReturnPropertyQuota() - { - return $this->return_property_quota; - } - - /** - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * - * Generated from protobuf field bool return_property_quota = 14; - * @param bool $var - * @return $this - */ - public function setReturnPropertyQuota($var) - { - GPBUtil::checkBool($var); - $this->return_property_quota = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportResponse.php b/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportResponse.php deleted file mode 100644 index 6825d24eb51..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/proto/src/Google/Analytics/Data/V1beta/RunReportResponse.php +++ /dev/null @@ -1,433 +0,0 @@ -google.analytics.data.v1beta.RunReportResponse - */ -class RunReportResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - */ - private $dimension_headers; - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - */ - private $metric_headers; - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 3; - */ - private $rows; - /** - * If requested, the totaled values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row totals = 4; - */ - private $totals; - /** - * If requested, the maximum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row maximums = 5; - */ - private $maximums; - /** - * If requested, the minimum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row minimums = 6; - */ - private $minimums; - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int32 row_count = 7; - */ - protected $row_count = 0; - /** - * Metadata for the report. - * - * Generated from protobuf field .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - */ - protected $metadata = null; - /** - * This Analytics Property's quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - */ - protected $property_quota = null; - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runReport". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 10; - */ - protected $kind = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $dimension_headers - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * @type array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $metric_headers - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $rows - * Rows of dimension value combinations and metric values in the report. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $totals - * If requested, the totaled values of metrics. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $maximums - * If requested, the maximum values of metrics. - * @type array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $minimums - * If requested, the minimum values of metrics. - * @type int $row_count - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type \Google\Analytics\Data\V1beta\ResponseMetaData $metadata - * Metadata for the report. - * @type \Google\Analytics\Data\V1beta\PropertyQuota $property_quota - * This Analytics Property's quota state including this request. - * @type string $kind - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runReport". Useful to distinguish between - * response types in JSON. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Beta\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDimensionHeaders() - { - return $this->dimension_headers; - } - - /** - * Describes dimension columns. The number of DimensionHeaders and ordering of - * DimensionHeaders matches the dimensions present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.DimensionHeader dimension_headers = 1; - * @param array<\Google\Analytics\Data\V1beta\DimensionHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDimensionHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\DimensionHeader::class); - $this->dimension_headers = $arr; - - return $this; - } - - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetricHeaders() - { - return $this->metric_headers; - } - - /** - * Describes metric columns. The number of MetricHeaders and ordering of - * MetricHeaders matches the metrics present in rows. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.MetricHeader metric_headers = 2; - * @param array<\Google\Analytics\Data\V1beta\MetricHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetricHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\MetricHeader::class); - $this->metric_headers = $arr; - - return $this; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRows() - { - return $this->rows; - } - - /** - * Rows of dimension value combinations and metric values in the report. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row rows = 3; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->rows = $arr; - - return $this; - } - - /** - * If requested, the totaled values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row totals = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTotals() - { - return $this->totals; - } - - /** - * If requested, the totaled values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row totals = 4; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTotals($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->totals = $arr; - - return $this; - } - - /** - * If requested, the maximum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row maximums = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMaximums() - { - return $this->maximums; - } - - /** - * If requested, the maximum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row maximums = 5; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMaximums($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->maximums = $arr; - - return $this; - } - - /** - * If requested, the minimum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row minimums = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMinimums() - { - return $this->minimums; - } - - /** - * If requested, the minimum values of metrics. - * - * Generated from protobuf field repeated .google.analytics.data.v1beta.Row minimums = 6; - * @param array<\Google\Analytics\Data\V1beta\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMinimums($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Analytics\Data\V1beta\Row::class); - $this->minimums = $arr; - - return $this; - } - - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int32 row_count = 7; - * @return int - */ - public function getRowCount() - { - return $this->row_count; - } - - /** - * The total number of rows in the query result. `rowCount` is independent of - * the number of rows returned in the response, the `limit` request - * parameter, and the `offset` request parameter. For example if a query - * returns 175 rows and includes `limit` of 50 in the API request, the - * response will contain `rowCount` of 175 but only 50 rows. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * - * Generated from protobuf field int32 row_count = 7; - * @param int $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt32($var); - $this->row_count = $var; - - return $this; - } - - /** - * Metadata for the report. - * - * Generated from protobuf field .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - * @return \Google\Analytics\Data\V1beta\ResponseMetaData|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Metadata for the report. - * - * Generated from protobuf field .google.analytics.data.v1beta.ResponseMetaData metadata = 8; - * @param \Google\Analytics\Data\V1beta\ResponseMetaData $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\ResponseMetaData::class); - $this->metadata = $var; - - return $this; - } - - /** - * This Analytics Property's quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - * @return \Google\Analytics\Data\V1beta\PropertyQuota|null - */ - public function getPropertyQuota() - { - return $this->property_quota; - } - - public function hasPropertyQuota() - { - return isset($this->property_quota); - } - - public function clearPropertyQuota() - { - unset($this->property_quota); - } - - /** - * This Analytics Property's quota state including this request. - * - * Generated from protobuf field .google.analytics.data.v1beta.PropertyQuota property_quota = 9; - * @param \Google\Analytics\Data\V1beta\PropertyQuota $var - * @return $this - */ - public function setPropertyQuota($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1beta\PropertyQuota::class); - $this->property_quota = $var; - - return $this; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runReport". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 10; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * Identifies what kind of resource this message is. This `kind` is always the - * fixed string "analyticsData#runReport". Useful to distinguish between - * response types in JSON. - * - * Generated from protobuf field string kind = 10; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_pivot_reports.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_pivot_reports.php deleted file mode 100644 index e9831ae921e..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_pivot_reports.php +++ /dev/null @@ -1,58 +0,0 @@ -batchRunPivotReports($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsdata_v1beta_generated_BetaAnalyticsData_BatchRunPivotReports_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_reports.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_reports.php deleted file mode 100644 index f905c01e8bd..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/batch_run_reports.php +++ /dev/null @@ -1,58 +0,0 @@ -batchRunReports($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsdata_v1beta_generated_BetaAnalyticsData_BatchRunReports_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/check_compatibility.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/check_compatibility.php deleted file mode 100644 index 23733286b22..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/check_compatibility.php +++ /dev/null @@ -1,66 +0,0 @@ -checkCompatibility($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsdata_v1beta_generated_BetaAnalyticsData_CheckCompatibility_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/get_metadata.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/get_metadata.php deleted file mode 100644 index dd2d31f566b..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/get_metadata.php +++ /dev/null @@ -1,90 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Metadata $response */ - $response = $betaAnalyticsDataClient->getMetadata($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = BetaAnalyticsDataClient::metadataName('[PROPERTY]'); - - get_metadata_sample($formattedName); -} -// [END analyticsdata_v1beta_generated_BetaAnalyticsData_GetMetadata_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_pivot_report.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_pivot_report.php deleted file mode 100644 index 8f01bddd804..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_pivot_report.php +++ /dev/null @@ -1,61 +0,0 @@ -runPivotReport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsdata_v1beta_generated_BetaAnalyticsData_RunPivotReport_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_realtime_report.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_realtime_report.php deleted file mode 100644 index 6918b0d4f84..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_realtime_report.php +++ /dev/null @@ -1,65 +0,0 @@ -runRealtimeReport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsdata_v1beta_generated_BetaAnalyticsData_RunRealtimeReport_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_report.php b/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_report.php deleted file mode 100644 index c0649867f0b..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/samples/V1beta/BetaAnalyticsDataClient/run_report.php +++ /dev/null @@ -1,67 +0,0 @@ -runReport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END analyticsdata_v1beta_generated_BetaAnalyticsData_RunReport_sync] diff --git a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/BetaAnalyticsDataClient.php b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/BetaAnalyticsDataClient.php deleted file mode 100644 index 73e26dd2f1e..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/BetaAnalyticsDataClient.php +++ /dev/null @@ -1,36 +0,0 @@ - self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../../resources/beta_analytics_data_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../../resources/beta_analytics_data_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../../resources/beta_analytics_data_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../../resources/beta_analytics_data_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a metadata - * resource. - * - * @param string $property - * - * @return string The formatted metadata resource. - * - * @experimental - */ - public static function metadataName(string $property): string - { - return self::getPathTemplate('metadata')->render([ - 'property' => $property, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - metadata: properties/{property}/metadata - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'analyticsdata.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Returns multiple pivot reports in a batch. All reports must be for the same - * GA4 Property. - * - * The async variant is {@see self::batchRunPivotReportsAsync()} . - * - * @example samples/V1beta/BetaAnalyticsDataClient/batch_run_pivot_reports.php - * - * @param BatchRunPivotReportsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchRunPivotReportsResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function batchRunPivotReports(BatchRunPivotReportsRequest $request, array $callOptions = []): BatchRunPivotReportsResponse - { - return $this->startApiCall('BatchRunPivotReports', $request, $callOptions)->wait(); - } - - /** - * Returns multiple reports in a batch. All reports must be for the same - * GA4 Property. - * - * The async variant is {@see self::batchRunReportsAsync()} . - * - * @example samples/V1beta/BetaAnalyticsDataClient/batch_run_reports.php - * - * @param BatchRunReportsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchRunReportsResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function batchRunReports(BatchRunReportsRequest $request, array $callOptions = []): BatchRunReportsResponse - { - return $this->startApiCall('BatchRunReports', $request, $callOptions)->wait(); - } - - /** - * This compatibility method lists dimensions and metrics that can be added to - * a report request and maintain compatibility. This method fails if the - * request's dimensions and metrics are incompatible. - * - * In Google Analytics, reports fail if they request incompatible dimensions - * and/or metrics; in that case, you will need to remove dimensions and/or - * metrics from the incompatible report until the report is compatible. - * - * The Realtime and Core reports have different compatibility rules. This - * method checks compatibility for Core reports. - * - * The async variant is {@see self::checkCompatibilityAsync()} . - * - * @example samples/V1beta/BetaAnalyticsDataClient/check_compatibility.php - * - * @param CheckCompatibilityRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CheckCompatibilityResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function checkCompatibility(CheckCompatibilityRequest $request, array $callOptions = []): CheckCompatibilityResponse - { - return $this->startApiCall('CheckCompatibility', $request, $callOptions)->wait(); - } - - /** - * Returns metadata for dimensions and metrics available in reporting methods. - * Used to explore the dimensions and metrics. In this method, a Google - * Analytics GA4 Property Identifier is specified in the request, and - * the metadata response includes Custom dimensions and metrics as well as - * Universal metadata. - * - * For example if a custom metric with parameter name `levels_unlocked` is - * registered to a property, the Metadata response will contain - * `customEvent:levels_unlocked`. Universal metadata are dimensions and - * metrics applicable to any property such as `country` and `totalUsers`. - * - * The async variant is {@see self::getMetadataAsync()} . - * - * @example samples/V1beta/BetaAnalyticsDataClient/get_metadata.php - * - * @param GetMetadataRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Metadata - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getMetadata(GetMetadataRequest $request, array $callOptions = []): Metadata - { - return $this->startApiCall('GetMetadata', $request, $callOptions)->wait(); - } - - /** - * Returns a customized pivot report of your Google Analytics event data. - * Pivot reports are more advanced and expressive formats than regular - * reports. In a pivot report, dimensions are only visible if they are - * included in a pivot. Multiple pivots can be specified to further dissect - * your data. - * - * The async variant is {@see self::runPivotReportAsync()} . - * - * @example samples/V1beta/BetaAnalyticsDataClient/run_pivot_report.php - * - * @param RunPivotReportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RunPivotReportResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function runPivotReport(RunPivotReportRequest $request, array $callOptions = []): RunPivotReportResponse - { - return $this->startApiCall('RunPivotReport', $request, $callOptions)->wait(); - } - - /** - * Returns a customized report of realtime event data for your property. - * Events appear in realtime reports seconds after they have been sent to - * the Google Analytics. Realtime reports show events and usage data for the - * periods of time ranging from the present moment to 30 minutes ago (up to - * 60 minutes for Google Analytics 360 properties). - * - * For a guide to constructing realtime requests & understanding responses, - * see [Creating a Realtime - * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics). - * - * The async variant is {@see self::runRealtimeReportAsync()} . - * - * @example samples/V1beta/BetaAnalyticsDataClient/run_realtime_report.php - * - * @param RunRealtimeReportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RunRealtimeReportResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function runRealtimeReport(RunRealtimeReportRequest $request, array $callOptions = []): RunRealtimeReportResponse - { - return $this->startApiCall('RunRealtimeReport', $request, $callOptions)->wait(); - } - - /** - * Returns a customized report of your Google Analytics event data. Reports - * contain statistics derived from data collected by the Google Analytics - * tracking code. The data returned from the API is as a table with columns - * for the requested dimensions and metrics. Metrics are individual - * measurements of user activity on your property, such as active users or - * event count. Dimensions break down metrics across some common criteria, - * such as country or event name. - * - * For a guide to constructing requests & understanding responses, see - * [Creating a - * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics). - * - * The async variant is {@see self::runReportAsync()} . - * - * @example samples/V1beta/BetaAnalyticsDataClient/run_report.php - * - * @param RunReportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RunReportResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function runReport(RunReportRequest $request, array $callOptions = []): RunReportResponse - { - return $this->startApiCall('RunReport', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/Client/BetaAnalyticsDataClient.php b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/Client/BetaAnalyticsDataClient.php deleted file mode 100644 index 164c0808c93..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/Client/BetaAnalyticsDataClient.php +++ /dev/null @@ -1,42 +0,0 @@ -batchRunPivotReports(); - * } finally { - * $betaAnalyticsDataClient->close(); - * } - * ``` - * - * Many parameters require resource names to be formatted in a particular way. To - * assist with these names, this class includes a format method for each type of - * name, and additionally a parseName method to extract the individual identifiers - * contained within formatted names that are returned by the API. - * - * This service has a new (beta) implementation. See {@see - * \Google\Analytics\Data\V1beta\Client\BetaAnalyticsDataClient} to use the new - * surface. - * - * @experimental - */ -class BetaAnalyticsDataGapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.analytics.data.v1beta.BetaAnalyticsData'; - - /** The default address of the service. */ - const SERVICE_ADDRESS = 'analyticsdata.googleapis.com'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/analytics', - 'https://www.googleapis.com/auth/analytics.readonly', - ]; - - private static $metadataNameTemplate; - - private static $pathTemplateMap; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/beta_analytics_data_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/beta_analytics_data_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/beta_analytics_data_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/beta_analytics_data_rest_client_config.php', - ], - ], - ]; - } - - private static function getMetadataNameTemplate() - { - if (self::$metadataNameTemplate == null) { - self::$metadataNameTemplate = new PathTemplate('properties/{property}/metadata'); - } - - return self::$metadataNameTemplate; - } - - private static function getPathTemplateMap() - { - if (self::$pathTemplateMap == null) { - self::$pathTemplateMap = [ - 'metadata' => self::getMetadataNameTemplate(), - ]; - } - - return self::$pathTemplateMap; - } - - /** - * Formats a string containing the fully-qualified path to represent a metadata - * resource. - * - * @param string $property - * - * @return string The formatted metadata resource. - * - * @experimental - */ - public static function metadataName($property) - { - return self::getMetadataNameTemplate()->render([ - 'property' => $property, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - metadata: properties/{property}/metadata - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName($formattedName, $template = null) - { - $templateMap = self::getPathTemplateMap(); - if ($template) { - if (!isset($templateMap[$template])) { - throw new ValidationException("Template name $template does not exist"); - } - - return $templateMap[$template]->match($formattedName); - } - - foreach ($templateMap as $templateName => $pathTemplate) { - try { - return $pathTemplate->match($formattedName); - } catch (ValidationException $ex) { - // Swallow the exception to continue trying other path templates - } - } - - throw new ValidationException("Input did not match any known format. Input: $formattedName"); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'analyticsdata.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** - * Returns multiple pivot reports in a batch. All reports must be for the same - * GA4 Property. - * - * Sample code: - * ``` - * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); - * try { - * $response = $betaAnalyticsDataClient->batchRunPivotReports(); - * } finally { - * $betaAnalyticsDataClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunPivotReportRequest may either be unspecified or consistent with this - * property. - * - * Example: properties/1234 - * @type RunPivotReportRequest[] $requests - * Individual requests. Each request has a separate pivot report response. - * Each batch request is allowed up to 5 requests. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1beta\BatchRunPivotReportsResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function batchRunPivotReports(array $optionalArgs = []) - { - $request = new BatchRunPivotReportsRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - $requestParamHeaders['property'] = $optionalArgs['property']; - } - - if (isset($optionalArgs['requests'])) { - $request->setRequests($optionalArgs['requests']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchRunPivotReports', BatchRunPivotReportsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns multiple reports in a batch. All reports must be for the same - * GA4 Property. - * - * Sample code: - * ``` - * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); - * try { - * $response = $betaAnalyticsDataClient->batchRunReports(); - * } finally { - * $betaAnalyticsDataClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * This property must be specified for the batch. The property within - * RunReportRequest may either be unspecified or consistent with this - * property. - * - * Example: properties/1234 - * @type RunReportRequest[] $requests - * Individual requests. Each request has a separate report response. Each - * batch request is allowed up to 5 requests. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1beta\BatchRunReportsResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function batchRunReports(array $optionalArgs = []) - { - $request = new BatchRunReportsRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - $requestParamHeaders['property'] = $optionalArgs['property']; - } - - if (isset($optionalArgs['requests'])) { - $request->setRequests($optionalArgs['requests']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BatchRunReports', BatchRunReportsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * This compatibility method lists dimensions and metrics that can be added to - * a report request and maintain compatibility. This method fails if the - * request's dimensions and metrics are incompatible. - * - * In Google Analytics, reports fail if they request incompatible dimensions - * and/or metrics; in that case, you will need to remove dimensions and/or - * metrics from the incompatible report until the report is compatible. - * - * The Realtime and Core reports have different compatibility rules. This - * method checks compatibility for Core reports. - * - * Sample code: - * ``` - * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); - * try { - * $response = $betaAnalyticsDataClient->checkCompatibility(); - * } finally { - * $betaAnalyticsDataClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. To - * learn more, see [where to find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * `property` should be the same value as in your `runReport` request. - * - * Example: properties/1234 - * @type Dimension[] $dimensions - * The dimensions in this report. `dimensions` should be the same value as in - * your `runReport` request. - * @type Metric[] $metrics - * The metrics in this report. `metrics` should be the same value as in your - * `runReport` request. - * @type FilterExpression $dimensionFilter - * The filter clause of dimensions. `dimensionFilter` should be the same value - * as in your `runReport` request. - * @type FilterExpression $metricFilter - * The filter clause of metrics. `metricFilter` should be the same value as in - * your `runReport` request - * @type int $compatibilityFilter - * Filters the dimensions and metrics in the response to just this - * compatibility. Commonly used as `”compatibilityFilter”: “COMPATIBLE”` - * to only return compatible dimensions & metrics. - * For allowed values, use constants defined on {@see \Google\Analytics\Data\V1beta\Compatibility} - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1beta\CheckCompatibilityResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function checkCompatibility(array $optionalArgs = []) - { - $request = new CheckCompatibilityRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - $requestParamHeaders['property'] = $optionalArgs['property']; - } - - if (isset($optionalArgs['dimensions'])) { - $request->setDimensions($optionalArgs['dimensions']); - } - - if (isset($optionalArgs['metrics'])) { - $request->setMetrics($optionalArgs['metrics']); - } - - if (isset($optionalArgs['dimensionFilter'])) { - $request->setDimensionFilter($optionalArgs['dimensionFilter']); - } - - if (isset($optionalArgs['metricFilter'])) { - $request->setMetricFilter($optionalArgs['metricFilter']); - } - - if (isset($optionalArgs['compatibilityFilter'])) { - $request->setCompatibilityFilter($optionalArgs['compatibilityFilter']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CheckCompatibility', CheckCompatibilityResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns metadata for dimensions and metrics available in reporting methods. - * Used to explore the dimensions and metrics. In this method, a Google - * Analytics GA4 Property Identifier is specified in the request, and - * the metadata response includes Custom dimensions and metrics as well as - * Universal metadata. - * - * For example if a custom metric with parameter name `levels_unlocked` is - * registered to a property, the Metadata response will contain - * `customEvent:levels_unlocked`. Universal metadata are dimensions and - * metrics applicable to any property such as `country` and `totalUsers`. - * - * Sample code: - * ``` - * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); - * try { - * $formattedName = $betaAnalyticsDataClient->metadataName('[PROPERTY]'); - * $response = $betaAnalyticsDataClient->getMetadata($formattedName); - * } finally { - * $betaAnalyticsDataClient->close(); - * } - * ``` - * - * @param string $name Required. The resource name of the metadata to retrieve. This name field is - * specified in the URL path and not URL parameters. Property is a numeric - * Google Analytics GA4 Property identifier. To learn more, see [where to find - * your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * - * Example: properties/1234/metadata - * - * Set the Property ID to 0 for dimensions and metrics common to all - * properties. In this special mode, this method will not return custom - * dimensions and metrics. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1beta\Metadata - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getMetadata($name, array $optionalArgs = []) - { - $request = new GetMetadataRequest(); - $requestParamHeaders = []; - $request->setName($name); - $requestParamHeaders['name'] = $name; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetMetadata', Metadata::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns a customized pivot report of your Google Analytics event data. - * Pivot reports are more advanced and expressive formats than regular - * reports. In a pivot report, dimensions are only visible if they are - * included in a pivot. Multiple pivots can be specified to further dissect - * your data. - * - * Sample code: - * ``` - * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); - * try { - * $response = $betaAnalyticsDataClient->runPivotReport(); - * } finally { - * $betaAnalyticsDataClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * - * Example: properties/1234 - * @type Dimension[] $dimensions - * The dimensions requested. All defined dimensions must be used by one of the - * following: dimension_expression, dimension_filter, pivots, order_bys. - * @type Metric[] $metrics - * The metrics requested, at least one metric needs to be specified. All - * defined metrics must be used by one of the following: metric_expression, - * metric_filter, order_bys. - * @type DateRange[] $dateRanges - * The date range to retrieve event data for the report. If multiple date - * ranges are specified, event data from each date range is used in the - * report. A special dimension with field name "dateRange" can be included in - * a Pivot's field names; if included, the report compares between date - * ranges. In a cohort request, this `dateRanges` must be unspecified. - * @type Pivot[] $pivots - * Describes the visual format of the report's dimensions in columns or rows. - * The union of the fieldNames (dimension names) in all pivots must be a - * subset of dimension names defined in Dimensions. No two pivots can share a - * dimension. A dimension is only visible if it appears in a pivot. - * @type FilterExpression $dimensionFilter - * The filter clause of dimensions. Dimensions must be requested to be used in - * this filter. Metrics cannot be used in this filter. - * @type FilterExpression $metricFilter - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Metrics must be requested to be used in this filter. - * Dimensions cannot be used in this filter. - * @type string $currencyCode - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * @type CohortSpec $cohortSpec - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * @type bool $keepEmptyRows - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * @type bool $returnPropertyQuota - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1beta\RunPivotReportResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function runPivotReport(array $optionalArgs = []) - { - $request = new RunPivotReportRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - $requestParamHeaders['property'] = $optionalArgs['property']; - } - - if (isset($optionalArgs['dimensions'])) { - $request->setDimensions($optionalArgs['dimensions']); - } - - if (isset($optionalArgs['metrics'])) { - $request->setMetrics($optionalArgs['metrics']); - } - - if (isset($optionalArgs['dateRanges'])) { - $request->setDateRanges($optionalArgs['dateRanges']); - } - - if (isset($optionalArgs['pivots'])) { - $request->setPivots($optionalArgs['pivots']); - } - - if (isset($optionalArgs['dimensionFilter'])) { - $request->setDimensionFilter($optionalArgs['dimensionFilter']); - } - - if (isset($optionalArgs['metricFilter'])) { - $request->setMetricFilter($optionalArgs['metricFilter']); - } - - if (isset($optionalArgs['currencyCode'])) { - $request->setCurrencyCode($optionalArgs['currencyCode']); - } - - if (isset($optionalArgs['cohortSpec'])) { - $request->setCohortSpec($optionalArgs['cohortSpec']); - } - - if (isset($optionalArgs['keepEmptyRows'])) { - $request->setKeepEmptyRows($optionalArgs['keepEmptyRows']); - } - - if (isset($optionalArgs['returnPropertyQuota'])) { - $request->setReturnPropertyQuota($optionalArgs['returnPropertyQuota']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('RunPivotReport', RunPivotReportResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns a customized report of realtime event data for your property. - * Events appear in realtime reports seconds after they have been sent to - * the Google Analytics. Realtime reports show events and usage data for the - * periods of time ranging from the present moment to 30 minutes ago (up to - * 60 minutes for Google Analytics 360 properties). - * - * For a guide to constructing realtime requests & understanding responses, - * see [Creating a Realtime - * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics). - * - * Sample code: - * ``` - * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); - * try { - * $response = $betaAnalyticsDataClient->runRealtimeReport(); - * } finally { - * $betaAnalyticsDataClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * - * Example: properties/1234 - * @type Dimension[] $dimensions - * The dimensions requested and displayed. - * @type Metric[] $metrics - * The metrics requested and displayed. - * @type FilterExpression $dimensionFilter - * The filter clause of dimensions. Metrics cannot be used in this filter. - * @type FilterExpression $metricFilter - * The filter clause of metrics. Applied at post aggregation phase, similar to - * SQL having-clause. Dimensions cannot be used in this filter. - * @type int $limit - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * @type int[] $metricAggregations - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * For allowed values, use constants defined on {@see \Google\Analytics\Data\V1beta\MetricAggregation} - * @type OrderBy[] $orderBys - * Specifies how rows are ordered in the response. - * @type bool $returnPropertyQuota - * Toggles whether to return the current state of this Analytics Property's - * Realtime quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * @type MinuteRange[] $minuteRanges - * The minute ranges of event data to read. If unspecified, one minute range - * for the last 30 minutes will be used. If multiple minute ranges are - * requested, each response row will contain a zero based minute range index. - * If two minute ranges overlap, the event data for the overlapping minutes is - * included in the response rows for both minute ranges. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1beta\RunRealtimeReportResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function runRealtimeReport(array $optionalArgs = []) - { - $request = new RunRealtimeReportRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - $requestParamHeaders['property'] = $optionalArgs['property']; - } - - if (isset($optionalArgs['dimensions'])) { - $request->setDimensions($optionalArgs['dimensions']); - } - - if (isset($optionalArgs['metrics'])) { - $request->setMetrics($optionalArgs['metrics']); - } - - if (isset($optionalArgs['dimensionFilter'])) { - $request->setDimensionFilter($optionalArgs['dimensionFilter']); - } - - if (isset($optionalArgs['metricFilter'])) { - $request->setMetricFilter($optionalArgs['metricFilter']); - } - - if (isset($optionalArgs['limit'])) { - $request->setLimit($optionalArgs['limit']); - } - - if (isset($optionalArgs['metricAggregations'])) { - $request->setMetricAggregations($optionalArgs['metricAggregations']); - } - - if (isset($optionalArgs['orderBys'])) { - $request->setOrderBys($optionalArgs['orderBys']); - } - - if (isset($optionalArgs['returnPropertyQuota'])) { - $request->setReturnPropertyQuota($optionalArgs['returnPropertyQuota']); - } - - if (isset($optionalArgs['minuteRanges'])) { - $request->setMinuteRanges($optionalArgs['minuteRanges']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('RunRealtimeReport', RunRealtimeReportResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Returns a customized report of your Google Analytics event data. Reports - * contain statistics derived from data collected by the Google Analytics - * tracking code. The data returned from the API is as a table with columns - * for the requested dimensions and metrics. Metrics are individual - * measurements of user activity on your property, such as active users or - * event count. Dimensions break down metrics across some common criteria, - * such as country or event name. - * - * For a guide to constructing requests & understanding responses, see - * [Creating a - * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics). - * - * Sample code: - * ``` - * $betaAnalyticsDataClient = new BetaAnalyticsDataClient(); - * try { - * $response = $betaAnalyticsDataClient->runReport(); - * } finally { - * $betaAnalyticsDataClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $property - * A Google Analytics GA4 property identifier whose events are tracked. - * Specified in the URL path and not the body. To learn more, see [where to - * find your Property - * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - * Within a batch request, this property should either be unspecified or - * consistent with the batch-level property. - * - * Example: properties/1234 - * @type Dimension[] $dimensions - * The dimensions requested and displayed. - * @type Metric[] $metrics - * The metrics requested and displayed. - * @type DateRange[] $dateRanges - * Date ranges of data to read. If multiple date ranges are requested, each - * response row will contain a zero based date range index. If two date - * ranges overlap, the event data for the overlapping days is included in the - * response rows for both date ranges. In a cohort request, this `dateRanges` - * must be unspecified. - * @type FilterExpression $dimensionFilter - * Dimension filters let you ask for only specific dimension values in - * the report. To learn more, see [Fundamentals of Dimension - * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters) - * for examples. Metrics cannot be used in this filter. - * @type FilterExpression $metricFilter - * The filter clause of metrics. Applied after aggregating the report's rows, - * similar to SQL having-clause. Dimensions cannot be used in this filter. - * @type int $offset - * The row count of the start row. The first row is counted as row 0. - * - * When paging, the first request does not specify offset; or equivalently, - * sets offset to 0; the first request returns the first `limit` of rows. The - * second request sets offset to the `limit` of the first request; the second - * request returns the second `limit` of rows. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int $limit - * The number of rows to return. If unspecified, 10,000 rows are returned. The - * API returns a maximum of 250,000 rows per request, no matter how many you - * ask for. `limit` must be positive. - * - * The API can also return fewer rows than the requested `limit`, if there - * aren't as many dimension values as the `limit`. For instance, there are - * fewer than 300 possible values for the dimension `country`, so when - * reporting on only `country`, you can't get more than 300 rows, even if you - * set `limit` to a higher value. - * - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * @type int[] $metricAggregations - * Aggregation of metrics. Aggregated metric values will be shown in rows - * where the dimension_values are set to "RESERVED_(MetricAggregation)". - * For allowed values, use constants defined on {@see \Google\Analytics\Data\V1beta\MetricAggregation} - * @type OrderBy[] $orderBys - * Specifies how rows are ordered in the response. - * @type string $currencyCode - * A currency code in ISO4217 format, such as "AED", "USD", "JPY". - * If the field is empty, the report uses the property's default currency. - * @type CohortSpec $cohortSpec - * Cohort group associated with this request. If there is a cohort group - * in the request the 'cohort' dimension must be present. - * @type bool $keepEmptyRows - * If false or unspecified, each row with all metrics equal to 0 will not be - * returned. If true, these rows will be returned if they are not separately - * removed by a filter. - * - * Regardless of this `keep_empty_rows` setting, only data recorded by the - * Google Analytics (GA4) property can be displayed in a report. - * - * For example if a property never logs a `purchase` event, then a query for - * the `eventName` dimension and `eventCount` metric will not have a row - * eventName: "purchase" and eventCount: 0. - * @type bool $returnPropertyQuota - * Toggles whether to return the current state of this Analytics Property's - * quota. Quota is returned in [PropertyQuota](#PropertyQuota). - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Analytics\Data\V1beta\RunReportResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function runReport(array $optionalArgs = []) - { - $request = new RunReportRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['property'])) { - $request->setProperty($optionalArgs['property']); - $requestParamHeaders['property'] = $optionalArgs['property']; - } - - if (isset($optionalArgs['dimensions'])) { - $request->setDimensions($optionalArgs['dimensions']); - } - - if (isset($optionalArgs['metrics'])) { - $request->setMetrics($optionalArgs['metrics']); - } - - if (isset($optionalArgs['dateRanges'])) { - $request->setDateRanges($optionalArgs['dateRanges']); - } - - if (isset($optionalArgs['dimensionFilter'])) { - $request->setDimensionFilter($optionalArgs['dimensionFilter']); - } - - if (isset($optionalArgs['metricFilter'])) { - $request->setMetricFilter($optionalArgs['metricFilter']); - } - - if (isset($optionalArgs['offset'])) { - $request->setOffset($optionalArgs['offset']); - } - - if (isset($optionalArgs['limit'])) { - $request->setLimit($optionalArgs['limit']); - } - - if (isset($optionalArgs['metricAggregations'])) { - $request->setMetricAggregations($optionalArgs['metricAggregations']); - } - - if (isset($optionalArgs['orderBys'])) { - $request->setOrderBys($optionalArgs['orderBys']); - } - - if (isset($optionalArgs['currencyCode'])) { - $request->setCurrencyCode($optionalArgs['currencyCode']); - } - - if (isset($optionalArgs['cohortSpec'])) { - $request->setCohortSpec($optionalArgs['cohortSpec']); - } - - if (isset($optionalArgs['keepEmptyRows'])) { - $request->setKeepEmptyRows($optionalArgs['keepEmptyRows']); - } - - if (isset($optionalArgs['returnPropertyQuota'])) { - $request->setReturnPropertyQuota($optionalArgs['returnPropertyQuota']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('RunReport', RunReportResponse::class, $optionalArgs, $request)->wait(); - } -} diff --git a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/gapic_metadata.json b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/gapic_metadata.json deleted file mode 100644 index cd0a946bd83..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/gapic_metadata.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.analytics.data.v1beta", - "libraryPackage": "Google\\Analytics\\Data\\V1beta", - "services": { - "BetaAnalyticsData": { - "clients": { - "grpc": { - "libraryClient": "BetaAnalyticsDataGapicClient", - "rpcs": { - "BatchRunPivotReports": { - "methods": [ - "batchRunPivotReports" - ] - }, - "BatchRunReports": { - "methods": [ - "batchRunReports" - ] - }, - "CheckCompatibility": { - "methods": [ - "checkCompatibility" - ] - }, - "GetMetadata": { - "methods": [ - "getMetadata" - ] - }, - "RunPivotReport": { - "methods": [ - "runPivotReport" - ] - }, - "RunRealtimeReport": { - "methods": [ - "runRealtimeReport" - ] - }, - "RunReport": { - "methods": [ - "runReport" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_client_config.json b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_client_config.json deleted file mode 100644 index f8f00df4873..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_client_config.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "interfaces": { - "google.analytics.data.v1beta.BetaAnalyticsData": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNKNOWN" - ], - "no_retry_1_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "BatchRunPivotReports": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "BatchRunReports": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CheckCompatibility": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetMetadata": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "RunPivotReport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "RunRealtimeReport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "RunReport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_descriptor_config.php b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_descriptor_config.php deleted file mode 100644 index dd48c6c3aaf..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_descriptor_config.php +++ /dev/null @@ -1,95 +0,0 @@ - [ - 'google.analytics.data.v1beta.BetaAnalyticsData' => [ - 'BatchRunPivotReports' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1beta\BatchRunPivotReportsResponse', - 'headerParams' => [ - [ - 'keyName' => 'property', - 'fieldAccessors' => [ - 'getProperty', - ], - ], - ], - ], - 'BatchRunReports' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1beta\BatchRunReportsResponse', - 'headerParams' => [ - [ - 'keyName' => 'property', - 'fieldAccessors' => [ - 'getProperty', - ], - ], - ], - ], - 'CheckCompatibility' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1beta\CheckCompatibilityResponse', - 'headerParams' => [ - [ - 'keyName' => 'property', - 'fieldAccessors' => [ - 'getProperty', - ], - ], - ], - ], - 'GetMetadata' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1beta\Metadata', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'RunPivotReport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1beta\RunPivotReportResponse', - 'headerParams' => [ - [ - 'keyName' => 'property', - 'fieldAccessors' => [ - 'getProperty', - ], - ], - ], - ], - 'RunRealtimeReport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1beta\RunRealtimeReportResponse', - 'headerParams' => [ - [ - 'keyName' => 'property', - 'fieldAccessors' => [ - 'getProperty', - ], - ], - ], - ], - 'RunReport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Analytics\Data\V1beta\RunReportResponse', - 'headerParams' => [ - [ - 'keyName' => 'property', - 'fieldAccessors' => [ - 'getProperty', - ], - ], - ], - ], - 'templateMap' => [ - 'metadata' => 'properties/{property}/metadata', - ], - ], - ], -]; diff --git a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_rest_client_config.php b/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_rest_client_config.php deleted file mode 100644 index 5c2fc8a6ba4..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/src/V1beta/resources/beta_analytics_data_rest_client_config.php +++ /dev/null @@ -1,92 +0,0 @@ - [ - 'google.analytics.data.v1beta.BetaAnalyticsData' => [ - 'BatchRunPivotReports' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{property=properties/*}:batchRunPivotReports', - 'body' => '*', - 'placeholders' => [ - 'property' => [ - 'getters' => [ - 'getProperty', - ], - ], - ], - ], - 'BatchRunReports' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{property=properties/*}:batchRunReports', - 'body' => '*', - 'placeholders' => [ - 'property' => [ - 'getters' => [ - 'getProperty', - ], - ], - ], - ], - 'CheckCompatibility' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{property=properties/*}:checkCompatibility', - 'body' => '*', - 'placeholders' => [ - 'property' => [ - 'getters' => [ - 'getProperty', - ], - ], - ], - ], - 'GetMetadata' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=properties/*/metadata}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'RunPivotReport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{property=properties/*}:runPivotReport', - 'body' => '*', - 'placeholders' => [ - 'property' => [ - 'getters' => [ - 'getProperty', - ], - ], - ], - ], - 'RunRealtimeReport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{property=properties/*}:runRealtimeReport', - 'body' => '*', - 'placeholders' => [ - 'property' => [ - 'getters' => [ - 'getProperty', - ], - ], - ], - ], - 'RunReport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{property=properties/*}:runReport', - 'body' => '*', - 'placeholders' => [ - 'property' => [ - 'getters' => [ - 'getProperty', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/BetaAnalyticsDataClientTest.php b/owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/BetaAnalyticsDataClientTest.php deleted file mode 100644 index 3fefe77070b..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/BetaAnalyticsDataClientTest.php +++ /dev/null @@ -1,453 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return BetaAnalyticsDataClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new BetaAnalyticsDataClient($options); - } - - /** @test */ - public function batchRunPivotReportsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $kind = 'kind3292052'; - $expectedResponse = new BatchRunPivotReportsResponse(); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $response = $gapicClient->batchRunPivotReports(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/BatchRunPivotReports', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchRunPivotReportsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->batchRunPivotReports(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchRunReportsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $kind = 'kind3292052'; - $expectedResponse = new BatchRunReportsResponse(); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $response = $gapicClient->batchRunReports(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/BatchRunReports', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchRunReportsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->batchRunReports(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkCompatibilityTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CheckCompatibilityResponse(); - $transport->addResponse($expectedResponse); - $response = $gapicClient->checkCompatibility(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/CheckCompatibility', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkCompatibilityExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->checkCompatibility(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMetadataTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Metadata(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->metadataName('[PROPERTY]'); - $response = $gapicClient->getMetadata($formattedName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/GetMetadata', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMetadataExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->metadataName('[PROPERTY]'); - try { - $gapicClient->getMetadata($formattedName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runPivotReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $kind = 'kind3292052'; - $expectedResponse = new RunPivotReportResponse(); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $response = $gapicClient->runPivotReport(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/RunPivotReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runPivotReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->runPivotReport(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runRealtimeReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $kind = 'kind3292052'; - $expectedResponse = new RunRealtimeReportResponse(); - $expectedResponse->setRowCount($rowCount); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $response = $gapicClient->runRealtimeReport(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/RunRealtimeReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runRealtimeReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->runRealtimeReport(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $kind = 'kind3292052'; - $expectedResponse = new RunReportResponse(); - $expectedResponse->setRowCount($rowCount); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $response = $gapicClient->runReport(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/RunReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->runReport(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/Client/BetaAnalyticsDataClientTest.php b/owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/Client/BetaAnalyticsDataClientTest.php deleted file mode 100644 index 12d1db777fa..00000000000 --- a/owl-bot-staging/AnalyticsData/v1beta/tests/Unit/V1beta/Client/BetaAnalyticsDataClientTest.php +++ /dev/null @@ -1,500 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return BetaAnalyticsDataClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new BetaAnalyticsDataClient($options); - } - - /** @test */ - public function batchRunPivotReportsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $kind = 'kind3292052'; - $expectedResponse = new BatchRunPivotReportsResponse(); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $request = new BatchRunPivotReportsRequest(); - $response = $gapicClient->batchRunPivotReports($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/BatchRunPivotReports', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchRunPivotReportsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new BatchRunPivotReportsRequest(); - try { - $gapicClient->batchRunPivotReports($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchRunReportsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $kind = 'kind3292052'; - $expectedResponse = new BatchRunReportsResponse(); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $request = new BatchRunReportsRequest(); - $response = $gapicClient->batchRunReports($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/BatchRunReports', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchRunReportsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new BatchRunReportsRequest(); - try { - $gapicClient->batchRunReports($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkCompatibilityTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new CheckCompatibilityResponse(); - $transport->addResponse($expectedResponse); - $request = new CheckCompatibilityRequest(); - $response = $gapicClient->checkCompatibility($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/CheckCompatibility', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkCompatibilityExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new CheckCompatibilityRequest(); - try { - $gapicClient->checkCompatibility($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMetadataTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Metadata(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->metadataName('[PROPERTY]'); - $request = (new GetMetadataRequest()) - ->setName($formattedName); - $response = $gapicClient->getMetadata($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/GetMetadata', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMetadataExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->metadataName('[PROPERTY]'); - $request = (new GetMetadataRequest()) - ->setName($formattedName); - try { - $gapicClient->getMetadata($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runPivotReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $kind = 'kind3292052'; - $expectedResponse = new RunPivotReportResponse(); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $request = new RunPivotReportRequest(); - $response = $gapicClient->runPivotReport($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/RunPivotReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runPivotReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new RunPivotReportRequest(); - try { - $gapicClient->runPivotReport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runRealtimeReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $kind = 'kind3292052'; - $expectedResponse = new RunRealtimeReportResponse(); - $expectedResponse->setRowCount($rowCount); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $request = new RunRealtimeReportRequest(); - $response = $gapicClient->runRealtimeReport($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/RunRealtimeReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runRealtimeReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new RunRealtimeReportRequest(); - try { - $gapicClient->runRealtimeReport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runReportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $rowCount = 1340416618; - $kind = 'kind3292052'; - $expectedResponse = new RunReportResponse(); - $expectedResponse->setRowCount($rowCount); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $request = new RunReportRequest(); - $response = $gapicClient->runReport($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/RunReport', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runReportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new RunReportRequest(); - try { - $gapicClient->runReport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchRunPivotReportsAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $kind = 'kind3292052'; - $expectedResponse = new BatchRunPivotReportsResponse(); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $request = new BatchRunPivotReportsRequest(); - $response = $gapicClient->batchRunPivotReportsAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.analytics.data.v1beta.BetaAnalyticsData/BatchRunPivotReports', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } -}