Initial commit: Complete WooCommerce Smart Google Pricing plugin with vendor dependencies

This commit is contained in:
2025-12-23 07:48:45 +01:00
commit 9b66109ca1
32472 changed files with 4065017 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class Area120tablesEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Area120tablesEmpty::class, 'Google_Service_Area120Tables_Area120tablesEmpty');

View File

@@ -0,0 +1,46 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class BatchCreateRowsRequest extends \Google\Collection
{
protected $collection_key = 'requests';
protected $requestsType = CreateRowRequest::class;
protected $requestsDataType = 'array';
/**
* Required. The request message specifying the rows to create. A maximum of
* 500 rows can be created in a single batch.
*
* @param CreateRowRequest[] $requests
*/
public function setRequests($requests)
{
$this->requests = $requests;
}
/**
* @return CreateRowRequest[]
*/
public function getRequests()
{
return $this->requests;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreateRowsRequest::class, 'Google_Service_Area120Tables_BatchCreateRowsRequest');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class BatchCreateRowsResponse extends \Google\Collection
{
protected $collection_key = 'rows';
protected $rowsType = Row::class;
protected $rowsDataType = 'array';
/**
* The created rows.
*
* @param Row[] $rows
*/
public function setRows($rows)
{
$this->rows = $rows;
}
/**
* @return Row[]
*/
public function getRows()
{
return $this->rows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreateRowsResponse::class, 'Google_Service_Area120Tables_BatchCreateRowsResponse');

View File

@@ -0,0 +1,53 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class BatchDeleteRowsRequest extends \Google\Collection
{
protected $collection_key = 'names';
/**
* Required. The names of the rows to delete. All rows must belong to the
* parent table or else the entire batch will fail. A maximum of 500 rows can
* be deleted in a batch. Format: tables/{table}/rows/{row}
*
* @var string[]
*/
public $names;
/**
* Required. The names of the rows to delete. All rows must belong to the
* parent table or else the entire batch will fail. A maximum of 500 rows can
* be deleted in a batch. Format: tables/{table}/rows/{row}
*
* @param string[] $names
*/
public function setNames($names)
{
$this->names = $names;
}
/**
* @return string[]
*/
public function getNames()
{
return $this->names;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchDeleteRowsRequest::class, 'Google_Service_Area120Tables_BatchDeleteRowsRequest');

View File

@@ -0,0 +1,46 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class BatchUpdateRowsRequest extends \Google\Collection
{
protected $collection_key = 'requests';
protected $requestsType = UpdateRowRequest::class;
protected $requestsDataType = 'array';
/**
* Required. The request messages specifying the rows to update. A maximum of
* 500 rows can be modified in a single batch.
*
* @param UpdateRowRequest[] $requests
*/
public function setRequests($requests)
{
$this->requests = $requests;
}
/**
* @return UpdateRowRequest[]
*/
public function getRequests()
{
return $this->requests;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchUpdateRowsRequest::class, 'Google_Service_Area120Tables_BatchUpdateRowsRequest');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class BatchUpdateRowsResponse extends \Google\Collection
{
protected $collection_key = 'rows';
protected $rowsType = Row::class;
protected $rowsDataType = 'array';
/**
* The updated rows.
*
* @param Row[] $rows
*/
public function setRows($rows)
{
$this->rows = $rows;
}
/**
* @return Row[]
*/
public function getRows()
{
return $this->rows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchUpdateRowsResponse::class, 'Google_Service_Area120Tables_BatchUpdateRowsResponse');

View File

@@ -0,0 +1,226 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class ColumnDescription extends \Google\Collection
{
protected $collection_key = 'labels';
/**
* Data type of the column Supported types are auto_id, boolean, boolean_list,
* creator, create_timestamp, date, dropdown, location, integer, integer_list,
* number, number_list, person, person_list, tags, check_list, text,
* text_list, update_timestamp, updater, relationship, file_attachment_list.
* These types directly map to the column types supported on Tables website.
*
* @var string
*/
public $dataType;
protected $dateDetailsType = DateDetails::class;
protected $dateDetailsDataType = '';
/**
* Internal id for a column.
*
* @var string
*/
public $id;
protected $labelsType = LabeledItem::class;
protected $labelsDataType = 'array';
protected $lookupDetailsType = LookupDetails::class;
protected $lookupDetailsDataType = '';
/**
* Optional. Indicates whether or not multiple values are allowed for array
* types where such a restriction is possible.
*
* @var bool
*/
public $multipleValuesDisallowed;
/**
* column name
*
* @var string
*/
public $name;
/**
* Optional. Indicates that values for the column cannot be set by the user.
*
* @var bool
*/
public $readonly;
protected $relationshipDetailsType = RelationshipDetails::class;
protected $relationshipDetailsDataType = '';
/**
* Data type of the column Supported types are auto_id, boolean, boolean_list,
* creator, create_timestamp, date, dropdown, location, integer, integer_list,
* number, number_list, person, person_list, tags, check_list, text,
* text_list, update_timestamp, updater, relationship, file_attachment_list.
* These types directly map to the column types supported on Tables website.
*
* @param string $dataType
*/
public function setDataType($dataType)
{
$this->dataType = $dataType;
}
/**
* @return string
*/
public function getDataType()
{
return $this->dataType;
}
/**
* Optional. Additional details about a date column.
*
* @param DateDetails $dateDetails
*/
public function setDateDetails(DateDetails $dateDetails)
{
$this->dateDetails = $dateDetails;
}
/**
* @return DateDetails
*/
public function getDateDetails()
{
return $this->dateDetails;
}
/**
* Internal id for a column.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Optional. Range of labeled values for the column. Some columns like tags
* and drop-downs limit the values to a set of possible values. We return the
* range of values in such cases to help clients implement better user data
* validation.
*
* @param LabeledItem[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return LabeledItem[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. Indicates that this is a lookup column whose value is derived
* from the relationship column specified in the details. Lookup columns can
* not be updated directly. To change the value you must update the associated
* relationship column.
*
* @param LookupDetails $lookupDetails
*/
public function setLookupDetails(LookupDetails $lookupDetails)
{
$this->lookupDetails = $lookupDetails;
}
/**
* @return LookupDetails
*/
public function getLookupDetails()
{
return $this->lookupDetails;
}
/**
* Optional. Indicates whether or not multiple values are allowed for array
* types where such a restriction is possible.
*
* @param bool $multipleValuesDisallowed
*/
public function setMultipleValuesDisallowed($multipleValuesDisallowed)
{
$this->multipleValuesDisallowed = $multipleValuesDisallowed;
}
/**
* @return bool
*/
public function getMultipleValuesDisallowed()
{
return $this->multipleValuesDisallowed;
}
/**
* column name
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Indicates that values for the column cannot be set by the user.
*
* @param bool $readonly
*/
public function setReadonly($readonly)
{
$this->readonly = $readonly;
}
/**
* @return bool
*/
public function getReadonly()
{
return $this->readonly;
}
/**
* Optional. Additional details about a relationship column. Specified when
* data_type is relationship.
*
* @param RelationshipDetails $relationshipDetails
*/
public function setRelationshipDetails(RelationshipDetails $relationshipDetails)
{
$this->relationshipDetails = $relationshipDetails;
}
/**
* @return RelationshipDetails
*/
public function getRelationshipDetails()
{
return $this->relationshipDetails;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ColumnDescription::class, 'Google_Service_Area120Tables_ColumnDescription');

View File

@@ -0,0 +1,102 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class CreateRowRequest extends \Google\Model
{
/**
* Defaults to user entered text.
*/
public const VIEW_VIEW_UNSPECIFIED = 'VIEW_UNSPECIFIED';
/**
* Uses internally generated column id to identify values.
*/
public const VIEW_COLUMN_ID_VIEW = 'COLUMN_ID_VIEW';
/**
* Required. The parent table where this row will be created. Format:
* tables/{table}
*
* @var string
*/
public $parent;
protected $rowType = Row::class;
protected $rowDataType = '';
/**
* Optional. Column key to use for values in the row. Defaults to user entered
* name.
*
* @var string
*/
public $view;
/**
* Required. The parent table where this row will be created. Format:
* tables/{table}
*
* @param string $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* Required. The row to create.
*
* @param Row $row
*/
public function setRow(Row $row)
{
$this->row = $row;
}
/**
* @return Row
*/
public function getRow()
{
return $this->row;
}
/**
* Optional. Column key to use for values in the row. Defaults to user entered
* name.
*
* Accepted values: VIEW_UNSPECIFIED, COLUMN_ID_VIEW
*
* @param self::VIEW_* $view
*/
public function setView($view)
{
$this->view = $view;
}
/**
* @return self::VIEW_*
*/
public function getView()
{
return $this->view;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateRowRequest::class, 'Google_Service_Area120Tables_CreateRowRequest');

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class DateDetails extends \Google\Model
{
/**
* Whether the date column includes time.
*
* @var bool
*/
public $hasTime;
/**
* Whether the date column includes time.
*
* @param bool $hasTime
*/
public function setHasTime($hasTime)
{
$this->hasTime = $hasTime;
}
/**
* @return bool
*/
public function getHasTime()
{
return $this->hasTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DateDetails::class, 'Google_Service_Area120Tables_DateDetails');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class LabeledItem extends \Google\Model
{
/**
* Internal id associated with the item.
*
* @var string
*/
public $id;
/**
* Display string as entered by user.
*
* @var string
*/
public $name;
/**
* Internal id associated with the item.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Display string as entered by user.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LabeledItem::class, 'Google_Service_Area120Tables_LabeledItem');

View File

@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class ListRowsResponse extends \Google\Collection
{
protected $collection_key = 'rows';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is empty, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $rowsType = Row::class;
protected $rowsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is empty, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The rows from the specified table.
*
* @param Row[] $rows
*/
public function setRows($rows)
{
$this->rows = $rows;
}
/**
* @return Row[]
*/
public function getRows()
{
return $this->rows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListRowsResponse::class, 'Google_Service_Area120Tables_ListRowsResponse');

View File

@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class ListTablesResponse extends \Google\Collection
{
protected $collection_key = 'tables';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is empty, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $tablesType = Table::class;
protected $tablesDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is empty, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of tables.
*
* @param Table[] $tables
*/
public function setTables($tables)
{
$this->tables = $tables;
}
/**
* @return Table[]
*/
public function getTables()
{
return $this->tables;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTablesResponse::class, 'Google_Service_Area120Tables_ListTablesResponse');

View File

@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class ListWorkspacesResponse extends \Google\Collection
{
protected $collection_key = 'workspaces';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is empty, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $workspacesType = Workspace::class;
protected $workspacesDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is empty, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of workspaces.
*
* @param Workspace[] $workspaces
*/
public function setWorkspaces($workspaces)
{
$this->workspaces = $workspaces;
}
/**
* @return Workspace[]
*/
public function getWorkspaces()
{
return $this->workspaces;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListWorkspacesResponse::class, 'Google_Service_Area120Tables_ListWorkspacesResponse');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class LookupDetails extends \Google\Model
{
/**
* The name of the relationship column associated with the lookup.
*
* @var string
*/
public $relationshipColumn;
/**
* The id of the relationship column.
*
* @var string
*/
public $relationshipColumnId;
/**
* The name of the relationship column associated with the lookup.
*
* @param string $relationshipColumn
*/
public function setRelationshipColumn($relationshipColumn)
{
$this->relationshipColumn = $relationshipColumn;
}
/**
* @return string
*/
public function getRelationshipColumn()
{
return $this->relationshipColumn;
}
/**
* The id of the relationship column.
*
* @param string $relationshipColumnId
*/
public function setRelationshipColumnId($relationshipColumnId)
{
$this->relationshipColumnId = $relationshipColumnId;
}
/**
* @return string
*/
public function getRelationshipColumnId()
{
return $this->relationshipColumnId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LookupDetails::class, 'Google_Service_Area120Tables_LookupDetails');

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class RelationshipDetails extends \Google\Model
{
/**
* The name of the table this relationship is linked to.
*
* @var string
*/
public $linkedTable;
/**
* The name of the table this relationship is linked to.
*
* @param string $linkedTable
*/
public function setLinkedTable($linkedTable)
{
$this->linkedTable = $linkedTable;
}
/**
* @return string
*/
public function getLinkedTable()
{
return $this->linkedTable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RelationshipDetails::class, 'Google_Service_Area120Tables_RelationshipDetails');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables\Resource;
use Google\Service\Area120Tables\ListTablesResponse;
use Google\Service\Area120Tables\Table;
/**
* The "tables" collection of methods.
* Typical usage is:
* <code>
* $area120tablesService = new Google\Service\Area120Tables(...);
* $tables = $area120tablesService->tables;
* </code>
*/
class Tables extends \Google\Service\Resource
{
/**
* Gets a table. Returns NOT_FOUND if the table does not exist. (tables.get)
*
* @param string $name Required. The name of the table to retrieve. Format:
* tables/{table}
* @param array $optParams Optional parameters.
* @return Table
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Table::class);
}
/**
* Lists tables for the user. (tables.listTables)
*
* @param array $optParams Optional parameters.
*
* @opt_param string orderBy Optional. Sorting order for the list of tables on
* createTime/updateTime.
* @opt_param int pageSize The maximum number of tables to return. The service
* may return fewer than this value. If unspecified, at most 20 tables are
* returned. The maximum value is 100; values above 100 are coerced to 100.
* @opt_param string pageToken A page token, received from a previous
* `ListTables` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListTables` must match the call
* that provided the page token.
* @return ListTablesResponse
* @throws \Google\Service\Exception
*/
public function listTables($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTablesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Tables::class, 'Google_Service_Area120Tables_Resource_Tables');

View File

@@ -0,0 +1,193 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables\Resource;
use Google\Service\Area120Tables\Area120tablesEmpty;
use Google\Service\Area120Tables\BatchCreateRowsRequest;
use Google\Service\Area120Tables\BatchCreateRowsResponse;
use Google\Service\Area120Tables\BatchDeleteRowsRequest;
use Google\Service\Area120Tables\BatchUpdateRowsRequest;
use Google\Service\Area120Tables\BatchUpdateRowsResponse;
use Google\Service\Area120Tables\ListRowsResponse;
use Google\Service\Area120Tables\Row;
/**
* The "rows" collection of methods.
* Typical usage is:
* <code>
* $area120tablesService = new Google\Service\Area120Tables(...);
* $rows = $area120tablesService->tables_rows;
* </code>
*/
class TablesRows extends \Google\Service\Resource
{
/**
* Creates multiple rows. (rows.batchCreate)
*
* @param string $parent Required. The parent table where the rows will be
* created. Format: tables/{table}
* @param BatchCreateRowsRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchCreateRowsResponse
* @throws \Google\Service\Exception
*/
public function batchCreate($parent, BatchCreateRowsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchCreate', [$params], BatchCreateRowsResponse::class);
}
/**
* Deletes multiple rows. (rows.batchDelete)
*
* @param string $parent Required. The parent table shared by all rows being
* deleted. Format: tables/{table}
* @param BatchDeleteRowsRequest $postBody
* @param array $optParams Optional parameters.
* @return Area120tablesEmpty
* @throws \Google\Service\Exception
*/
public function batchDelete($parent, BatchDeleteRowsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchDelete', [$params], Area120tablesEmpty::class);
}
/**
* Updates multiple rows. (rows.batchUpdate)
*
* @param string $parent Required. The parent table shared by all rows being
* updated. Format: tables/{table}
* @param BatchUpdateRowsRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchUpdateRowsResponse
* @throws \Google\Service\Exception
*/
public function batchUpdate($parent, BatchUpdateRowsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchUpdate', [$params], BatchUpdateRowsResponse::class);
}
/**
* Creates a row. (rows.create)
*
* @param string $parent Required. The parent table where this row will be
* created. Format: tables/{table}
* @param Row $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string view Optional. Column key to use for values in the row.
* Defaults to user entered name.
* @return Row
* @throws \Google\Service\Exception
*/
public function create($parent, Row $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Row::class);
}
/**
* Deletes a row. (rows.delete)
*
* @param string $name Required. The name of the row to delete. Format:
* tables/{table}/rows/{row}
* @param array $optParams Optional parameters.
* @return Area120tablesEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Area120tablesEmpty::class);
}
/**
* Gets a row. Returns NOT_FOUND if the row does not exist in the table.
* (rows.get)
*
* @param string $name Required. The name of the row to retrieve. Format:
* tables/{table}/rows/{row}
* @param array $optParams Optional parameters.
*
* @opt_param string view Optional. Column key to use for values in the row.
* Defaults to user entered name.
* @return Row
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Row::class);
}
/**
* Lists rows in a table. Returns NOT_FOUND if the table does not exist.
* (rows.listTablesRows)
*
* @param string $parent Required. The parent table. Format: tables/{table}
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter to only include resources matching
* the requirements. For more information, see [Filtering list
* results](https://support.google.com/area120-tables/answer/10503371).
* @opt_param string orderBy Optional. Sorting order for the list of rows on
* createTime/updateTime.
* @opt_param int pageSize The maximum number of rows to return. The service may
* return fewer than this value. If unspecified, at most 50 rows are returned.
* The maximum value is 1,000; values above 1,000 are coerced to 1,000.
* @opt_param string pageToken A page token, received from a previous `ListRows`
* call. Provide this to retrieve the subsequent page. When paginating, all
* other parameters provided to `ListRows` must match the call that provided the
* page token.
* @opt_param string view Optional. Column key to use for values in the row.
* Defaults to user entered name.
* @return ListRowsResponse
* @throws \Google\Service\Exception
*/
public function listTablesRows($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRowsResponse::class);
}
/**
* Updates a row. (rows.patch)
*
* @param string $name The resource name of the row. Row names have the form
* `tables/{table}/rows/{row}`. The name is ignored when creating a row.
* @param Row $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The list of fields to update.
* @opt_param string view Optional. Column key to use for values in the row.
* Defaults to user entered name.
* @return Row
* @throws \Google\Service\Exception
*/
public function patch($name, Row $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Row::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TablesRows::class, 'Google_Service_Area120Tables_Resource_TablesRows');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables\Resource;
use Google\Service\Area120Tables\ListWorkspacesResponse;
use Google\Service\Area120Tables\Workspace;
/**
* The "workspaces" collection of methods.
* Typical usage is:
* <code>
* $area120tablesService = new Google\Service\Area120Tables(...);
* $workspaces = $area120tablesService->workspaces;
* </code>
*/
class Workspaces extends \Google\Service\Resource
{
/**
* Gets a workspace. Returns NOT_FOUND if the workspace does not exist.
* (workspaces.get)
*
* @param string $name Required. The name of the workspace to retrieve. Format:
* workspaces/{workspace}
* @param array $optParams Optional parameters.
* @return Workspace
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Workspace::class);
}
/**
* Lists workspaces for the user. (workspaces.listWorkspaces)
*
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of workspaces to return. The
* service may return fewer than this value. If unspecified, at most 10
* workspaces are returned. The maximum value is 25; values above 25 are coerced
* to 25.
* @opt_param string pageToken A page token, received from a previous
* `ListWorkspaces` call. Provide this to retrieve the subsequent page. When
* paginating, all other parameters provided to `ListWorkspaces` must match the
* call that provided the page token.
* @return ListWorkspacesResponse
* @throws \Google\Service\Exception
*/
public function listWorkspaces($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListWorkspacesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Workspaces::class, 'Google_Service_Area120Tables_Resource_Workspaces');

View File

@@ -0,0 +1,120 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class Row extends \Google\Model
{
/**
* Time when the row was created.
*
* @var string
*/
public $createTime;
/**
* The resource name of the row. Row names have the form
* `tables/{table}/rows/{row}`. The name is ignored when creating a row.
*
* @var string
*/
public $name;
/**
* Time when the row was last updated.
*
* @var string
*/
public $updateTime;
/**
* The values of the row. This is a map of column key to value. Key is user
* entered name(default) or the internal column id based on the view in the
* request.
*
* @var array[]
*/
public $values;
/**
* Time when the row was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The resource name of the row. Row names have the form
* `tables/{table}/rows/{row}`. The name is ignored when creating a row.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Time when the row was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* The values of the row. This is a map of column key to value. Key is user
* entered name(default) or the internal column id based on the view in the
* request.
*
* @param array[] $values
*/
public function setValues($values)
{
$this->values = $values;
}
/**
* @return array[]
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Row::class, 'Google_Service_Area120Tables_Row');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class SavedView extends \Google\Model
{
/**
* Internal id associated with the saved view.
*
* @var string
*/
public $id;
/**
* Display name of the saved view.
*
* @var string
*/
public $name;
/**
* Internal id associated with the saved view.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Display name of the saved view.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SavedView::class, 'Google_Service_Area120Tables_SavedView');

View File

@@ -0,0 +1,175 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class Table extends \Google\Collection
{
protected $collection_key = 'savedViews';
protected $columnsType = ColumnDescription::class;
protected $columnsDataType = 'array';
/**
* Time when the table was created.
*
* @var string
*/
public $createTime;
/**
* The human readable title of the table.
*
* @var string
*/
public $displayName;
/**
* The resource name of the table. Table names have the form `tables/{table}`.
*
* @var string
*/
public $name;
protected $savedViewsType = SavedView::class;
protected $savedViewsDataType = 'array';
/**
* The time zone of the table. IANA Time Zone Database time zone, e.g.
* "America/New_York".
*
* @var string
*/
public $timeZone;
/**
* Time when the table was last updated excluding updates to individual rows
*
* @var string
*/
public $updateTime;
/**
* List of columns in this table. Order of columns matches the display order.
*
* @param ColumnDescription[] $columns
*/
public function setColumns($columns)
{
$this->columns = $columns;
}
/**
* @return ColumnDescription[]
*/
public function getColumns()
{
return $this->columns;
}
/**
* Time when the table was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The human readable title of the table.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The resource name of the table. Table names have the form `tables/{table}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Saved views for this table.
*
* @param SavedView[] $savedViews
*/
public function setSavedViews($savedViews)
{
$this->savedViews = $savedViews;
}
/**
* @return SavedView[]
*/
public function getSavedViews()
{
return $this->savedViews;
}
/**
* The time zone of the table. IANA Time Zone Database time zone, e.g.
* "America/New_York".
*
* @param string $timeZone
*/
public function setTimeZone($timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return string
*/
public function getTimeZone()
{
return $this->timeZone;
}
/**
* Time when the table was last updated excluding updates to individual rows
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Table::class, 'Google_Service_Area120Tables_Table');

View File

@@ -0,0 +1,100 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class UpdateRowRequest extends \Google\Model
{
/**
* Defaults to user entered text.
*/
public const VIEW_VIEW_UNSPECIFIED = 'VIEW_UNSPECIFIED';
/**
* Uses internally generated column id to identify values.
*/
public const VIEW_COLUMN_ID_VIEW = 'COLUMN_ID_VIEW';
protected $rowType = Row::class;
protected $rowDataType = '';
/**
* The list of fields to update.
*
* @var string
*/
public $updateMask;
/**
* Optional. Column key to use for values in the row. Defaults to user entered
* name.
*
* @var string
*/
public $view;
/**
* Required. The row to update.
*
* @param Row $row
*/
public function setRow(Row $row)
{
$this->row = $row;
}
/**
* @return Row
*/
public function getRow()
{
return $this->row;
}
/**
* The list of fields to update.
*
* @param string $updateMask
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
/**
* Optional. Column key to use for values in the row. Defaults to user entered
* name.
*
* Accepted values: VIEW_UNSPECIFIED, COLUMN_ID_VIEW
*
* @param self::VIEW_* $view
*/
public function setView($view)
{
$this->view = $view;
}
/**
* @return self::VIEW_*
*/
public function getView()
{
return $this->view;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpdateRowRequest::class, 'Google_Service_Area120Tables_UpdateRowRequest');

View File

@@ -0,0 +1,135 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Area120Tables;
class Workspace extends \Google\Collection
{
protected $collection_key = 'tables';
/**
* Time when the workspace was created.
*
* @var string
*/
public $createTime;
/**
* The human readable title of the workspace.
*
* @var string
*/
public $displayName;
/**
* The resource name of the workspace. Workspace names have the form
* `workspaces/{workspace}`.
*
* @var string
*/
public $name;
protected $tablesType = Table::class;
protected $tablesDataType = 'array';
/**
* Time when the workspace was last updated.
*
* @var string
*/
public $updateTime;
/**
* Time when the workspace was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* The human readable title of the workspace.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The resource name of the workspace. Workspace names have the form
* `workspaces/{workspace}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The list of tables in the workspace.
*
* @param Table[] $tables
*/
public function setTables($tables)
{
$this->tables = $tables;
}
/**
* @return Table[]
*/
public function getTables()
{
return $this->tables;
}
/**
* Time when the workspace was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Workspace::class, 'Google_Service_Area120Tables_Workspace');