diff --git a/AnalyticsData/samples/V1alpha/AlphaAnalyticsDataClient/sheet_export_audience_list.php b/AnalyticsData/samples/V1alpha/AlphaAnalyticsDataClient/sheet_export_audience_list.php deleted file mode 100644 index 9d9a4259c3c8..000000000000 --- a/AnalyticsData/samples/V1alpha/AlphaAnalyticsDataClient/sheet_export_audience_list.php +++ /dev/null @@ -1,90 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var SheetExportAudienceListResponse $response */ - $response = $alphaAnalyticsDataClient->sheetExportAudienceList($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 = AlphaAnalyticsDataClient::audienceListName('[PROPERTY]', '[AUDIENCE_LIST]'); - - sheet_export_audience_list_sample($formattedName); -} -// [END analyticsdata_v1alpha_generated_AlphaAnalyticsData_SheetExportAudienceList_sync] diff --git a/AnalyticsData/src/V1alpha/SheetExportAudienceListRequest.php b/AnalyticsData/src/V1alpha/SheetExportAudienceListRequest.php deleted file mode 100644 index dc23451da72b..000000000000 --- a/AnalyticsData/src/V1alpha/SheetExportAudienceListRequest.php +++ /dev/null @@ -1,206 +0,0 @@ -google.analytics.data.v1alpha.SheetExportAudienceListRequest - */ -class SheetExportAudienceListRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the audience list to retrieve users from. - * Format: `properties/{property}/audienceLists/{audience_list}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $offset = 0; - /** - * Optional. 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`. - * 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 = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $limit = 0; - - /** - * @param string $name Required. The name of the audience list to retrieve users from. - * Format: `properties/{property}/audienceLists/{audience_list}` - * Please see {@see AlphaAnalyticsDataClient::audienceListName()} for help formatting this field. - * - * @return \Google\Analytics\Data\V1alpha\SheetExportAudienceListRequest - * - * @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 name of the audience list to retrieve users from. - * Format: `properties/{property}/audienceLists/{audience_list}` - * @type int|string $offset - * Optional. 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 - * Optional. 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`. - * To learn more about this pagination parameter, see - * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the audience list to retrieve users from. - * Format: `properties/{property}/audienceLists/{audience_list}` - * - * 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 name of the audience list to retrieve users from. - * Format: `properties/{property}/audienceLists/{audience_list}` - * - * 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; - } - - /** - * Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkInt64($var); - $this->offset = $var; - - return $this; - } - - /** - * Optional. 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`. - * 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 = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Optional. 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`. - * 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 = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - -} - diff --git a/AnalyticsData/src/V1alpha/SheetExportAudienceListResponse.php b/AnalyticsData/src/V1alpha/SheetExportAudienceListResponse.php deleted file mode 100644 index b48e85148b58..000000000000 --- a/AnalyticsData/src/V1alpha/SheetExportAudienceListResponse.php +++ /dev/null @@ -1,253 +0,0 @@ -google.analytics.data.v1alpha.SheetExportAudienceListResponse - */ -class SheetExportAudienceListResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A uri for you to visit in your browser to view the Google Sheet. - * - * Generated from protobuf field optional string spreadsheet_uri = 1; - */ - protected $spreadsheet_uri = null; - /** - * An ID that identifies the created Google Sheet resource. - * - * Generated from protobuf field optional string spreadsheet_id = 2; - */ - protected $spreadsheet_id = null; - /** - * The total number of rows in the AudienceList 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 optional int32 row_count = 3; - */ - protected $row_count = null; - /** - * Configuration data about AudienceList being exported. Returned to help - * interpret the AudienceList in the Google Sheet of this response. - * For example, the AudienceList may have more rows than are present in the - * Google Sheet, and in that case, you may want to send an additional sheet - * export request with a different `offset` value to retrieve the next page of - * rows in an additional Google Sheet. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - */ - protected $audience_list = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $spreadsheet_uri - * A uri for you to visit in your browser to view the Google Sheet. - * @type string $spreadsheet_id - * An ID that identifies the created Google Sheet resource. - * @type int $row_count - * The total number of rows in the AudienceList 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\V1alpha\AudienceList $audience_list - * Configuration data about AudienceList being exported. Returned to help - * interpret the AudienceList in the Google Sheet of this response. - * For example, the AudienceList may have more rows than are present in the - * Google Sheet, and in that case, you may want to send an additional sheet - * export request with a different `offset` value to retrieve the next page of - * rows in an additional Google Sheet. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Analytics\Data\V1Alpha\AnalyticsDataApi::initOnce(); - parent::__construct($data); - } - - /** - * A uri for you to visit in your browser to view the Google Sheet. - * - * Generated from protobuf field optional string spreadsheet_uri = 1; - * @return string - */ - public function getSpreadsheetUri() - { - return isset($this->spreadsheet_uri) ? $this->spreadsheet_uri : ''; - } - - public function hasSpreadsheetUri() - { - return isset($this->spreadsheet_uri); - } - - public function clearSpreadsheetUri() - { - unset($this->spreadsheet_uri); - } - - /** - * A uri for you to visit in your browser to view the Google Sheet. - * - * Generated from protobuf field optional string spreadsheet_uri = 1; - * @param string $var - * @return $this - */ - public function setSpreadsheetUri($var) - { - GPBUtil::checkString($var, True); - $this->spreadsheet_uri = $var; - - return $this; - } - - /** - * An ID that identifies the created Google Sheet resource. - * - * Generated from protobuf field optional string spreadsheet_id = 2; - * @return string - */ - public function getSpreadsheetId() - { - return isset($this->spreadsheet_id) ? $this->spreadsheet_id : ''; - } - - public function hasSpreadsheetId() - { - return isset($this->spreadsheet_id); - } - - public function clearSpreadsheetId() - { - unset($this->spreadsheet_id); - } - - /** - * An ID that identifies the created Google Sheet resource. - * - * Generated from protobuf field optional string spreadsheet_id = 2; - * @param string $var - * @return $this - */ - public function setSpreadsheetId($var) - { - GPBUtil::checkString($var, True); - $this->spreadsheet_id = $var; - - return $this; - } - - /** - * The total number of rows in the AudienceList 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 optional int32 row_count = 3; - * @return int - */ - public function getRowCount() - { - return isset($this->row_count) ? $this->row_count : 0; - } - - public function hasRowCount() - { - return isset($this->row_count); - } - - public function clearRowCount() - { - unset($this->row_count); - } - - /** - * The total number of rows in the AudienceList 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 optional int32 row_count = 3; - * @param int $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt32($var); - $this->row_count = $var; - - return $this; - } - - /** - * Configuration data about AudienceList being exported. Returned to help - * interpret the AudienceList in the Google Sheet of this response. - * For example, the AudienceList may have more rows than are present in the - * Google Sheet, and in that case, you may want to send an additional sheet - * export request with a different `offset` value to retrieve the next page of - * rows in an additional Google Sheet. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - * @return \Google\Analytics\Data\V1alpha\AudienceList|null - */ - public function getAudienceList() - { - return $this->audience_list; - } - - public function hasAudienceList() - { - return isset($this->audience_list); - } - - public function clearAudienceList() - { - unset($this->audience_list); - } - - /** - * Configuration data about AudienceList being exported. Returned to help - * interpret the AudienceList in the Google Sheet of this response. - * For example, the AudienceList may have more rows than are present in the - * Google Sheet, and in that case, you may want to send an additional sheet - * export request with a different `offset` value to retrieve the next page of - * rows in an additional Google Sheet. - * - * Generated from protobuf field optional .google.analytics.data.v1alpha.AudienceList audience_list = 4; - * @param \Google\Analytics\Data\V1alpha\AudienceList $var - * @return $this - */ - public function setAudienceList($var) - { - GPBUtil::checkMessage($var, \Google\Analytics\Data\V1alpha\AudienceList::class); - $this->audience_list = $var; - - return $this; - } - -} -