gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,131 @@
<?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\Bigquery;
class AggregateClassificationMetrics extends \Google\Model
{
/**
* Accuracy is the fraction of predictions given the correct label. For
* multiclass this is a micro-averaged metric.
*
* @var
*/
public $accuracy;
/**
* The F1 score is an average of recall and precision. For multiclass this is
* a macro-averaged metric.
*
* @var
*/
public $f1Score;
/**
* Logarithmic Loss. For multiclass this is a macro-averaged metric.
*
* @var
*/
public $logLoss;
/**
* Precision is the fraction of actual positive predictions that had positive
* actual labels. For multiclass this is a macro-averaged metric treating each
* class as a binary classifier.
*
* @var
*/
public $precision;
/**
* Recall is the fraction of actual positive labels that were given a positive
* prediction. For multiclass this is a macro-averaged metric.
*
* @var
*/
public $recall;
/**
* Area Under a ROC Curve. For multiclass this is a macro-averaged metric.
*
* @var
*/
public $rocAuc;
/**
* Threshold at which the metrics are computed. For binary classification
* models this is the positive class threshold. For multi-class classification
* models this is the confidence threshold.
*
* @var
*/
public $threshold;
public function setAccuracy($accuracy)
{
$this->accuracy = $accuracy;
}
public function getAccuracy()
{
return $this->accuracy;
}
public function setF1Score($f1Score)
{
$this->f1Score = $f1Score;
}
public function getF1Score()
{
return $this->f1Score;
}
public function setLogLoss($logLoss)
{
$this->logLoss = $logLoss;
}
public function getLogLoss()
{
return $this->logLoss;
}
public function setPrecision($precision)
{
$this->precision = $precision;
}
public function getPrecision()
{
return $this->precision;
}
public function setRecall($recall)
{
$this->recall = $recall;
}
public function getRecall()
{
return $this->recall;
}
public function setRocAuc($rocAuc)
{
$this->rocAuc = $rocAuc;
}
public function getRocAuc()
{
return $this->rocAuc;
}
public function setThreshold($threshold)
{
$this->threshold = $threshold;
}
public function getThreshold()
{
return $this->threshold;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AggregateClassificationMetrics::class, 'Google_Service_Bigquery_AggregateClassificationMetrics');
@@ -0,0 +1,79 @@
<?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\Bigquery;
class AggregationThresholdPolicy extends \Google\Collection
{
protected $collection_key = 'privacyUnitColumns';
/**
* Optional. The privacy unit column(s) associated with this policy. For now,
* only one column per data source object (table, view) is allowed as a
* privacy unit column. Representing as a repeated field in metadata for
* extensibility to multiple columns in future. Duplicates and Repeated struct
* fields are not allowed. For nested fields, use dot notation ("outer.inner")
*
* @var string[]
*/
public $privacyUnitColumns;
/**
* Optional. The threshold for the "aggregation threshold" policy.
*
* @var string
*/
public $threshold;
/**
* Optional. The privacy unit column(s) associated with this policy. For now,
* only one column per data source object (table, view) is allowed as a
* privacy unit column. Representing as a repeated field in metadata for
* extensibility to multiple columns in future. Duplicates and Repeated struct
* fields are not allowed. For nested fields, use dot notation ("outer.inner")
*
* @param string[] $privacyUnitColumns
*/
public function setPrivacyUnitColumns($privacyUnitColumns)
{
$this->privacyUnitColumns = $privacyUnitColumns;
}
/**
* @return string[]
*/
public function getPrivacyUnitColumns()
{
return $this->privacyUnitColumns;
}
/**
* Optional. The threshold for the "aggregation threshold" policy.
*
* @param string $threshold
*/
public function setThreshold($threshold)
{
$this->threshold = $threshold;
}
/**
* @return string
*/
public function getThreshold()
{
return $this->threshold;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AggregationThresholdPolicy::class, 'Google_Service_Bigquery_AggregationThresholdPolicy');
@@ -0,0 +1,177 @@
<?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\Bigquery;
class Argument extends \Google\Model
{
/**
* Default value.
*/
public const ARGUMENT_KIND_ARGUMENT_KIND_UNSPECIFIED = 'ARGUMENT_KIND_UNSPECIFIED';
/**
* The argument is a variable with fully specified type, which can be a struct
* or an array, but not a table.
*/
public const ARGUMENT_KIND_FIXED_TYPE = 'FIXED_TYPE';
/**
* The argument is any type, including struct or array, but not a table.
*/
public const ARGUMENT_KIND_ANY_TYPE = 'ANY_TYPE';
/**
* Default value.
*/
public const MODE_MODE_UNSPECIFIED = 'MODE_UNSPECIFIED';
/**
* The argument is input-only.
*/
public const MODE_IN = 'IN';
/**
* The argument is output-only.
*/
public const MODE_OUT = 'OUT';
/**
* The argument is both an input and an output.
*/
public const MODE_INOUT = 'INOUT';
/**
* Optional. Defaults to FIXED_TYPE.
*
* @var string
*/
public $argumentKind;
protected $dataTypeType = StandardSqlDataType::class;
protected $dataTypeDataType = '';
/**
* Optional. Whether the argument is an aggregate function parameter. Must be
* Unset for routine types other than AGGREGATE_FUNCTION. For
* AGGREGATE_FUNCTION, if set to false, it is equivalent to adding "NOT
* AGGREGATE" clause in DDL; Otherwise, it is equivalent to omitting "NOT
* AGGREGATE" clause in DDL.
*
* @var bool
*/
public $isAggregate;
/**
* Optional. Specifies whether the argument is input or output. Can be set for
* procedures only.
*
* @var string
*/
public $mode;
/**
* Optional. The name of this argument. Can be absent for function return
* argument.
*
* @var string
*/
public $name;
/**
* Optional. Defaults to FIXED_TYPE.
*
* Accepted values: ARGUMENT_KIND_UNSPECIFIED, FIXED_TYPE, ANY_TYPE
*
* @param self::ARGUMENT_KIND_* $argumentKind
*/
public function setArgumentKind($argumentKind)
{
$this->argumentKind = $argumentKind;
}
/**
* @return self::ARGUMENT_KIND_*
*/
public function getArgumentKind()
{
return $this->argumentKind;
}
/**
* Set if argument_kind == FIXED_TYPE.
*
* @param StandardSqlDataType $dataType
*/
public function setDataType(StandardSqlDataType $dataType)
{
$this->dataType = $dataType;
}
/**
* @return StandardSqlDataType
*/
public function getDataType()
{
return $this->dataType;
}
/**
* Optional. Whether the argument is an aggregate function parameter. Must be
* Unset for routine types other than AGGREGATE_FUNCTION. For
* AGGREGATE_FUNCTION, if set to false, it is equivalent to adding "NOT
* AGGREGATE" clause in DDL; Otherwise, it is equivalent to omitting "NOT
* AGGREGATE" clause in DDL.
*
* @param bool $isAggregate
*/
public function setIsAggregate($isAggregate)
{
$this->isAggregate = $isAggregate;
}
/**
* @return bool
*/
public function getIsAggregate()
{
return $this->isAggregate;
}
/**
* Optional. Specifies whether the argument is input or output. Can be set for
* procedures only.
*
* Accepted values: MODE_UNSPECIFIED, IN, OUT, INOUT
*
* @param self::MODE_* $mode
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return self::MODE_*
*/
public function getMode()
{
return $this->mode;
}
/**
* Optional. The name of this argument. Can be absent for function return
* argument.
*
* @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(Argument::class, 'Google_Service_Bigquery_Argument');
@@ -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\Bigquery;
class ArimaCoefficients extends \Google\Collection
{
protected $collection_key = 'movingAverageCoefficients';
/**
* Auto-regressive coefficients, an array of double.
*
* @var []
*/
public $autoRegressiveCoefficients;
/**
* Intercept coefficient, just a double not an array.
*
* @var
*/
public $interceptCoefficient;
/**
* Moving-average coefficients, an array of double.
*
* @var []
*/
public $movingAverageCoefficients;
public function setAutoRegressiveCoefficients($autoRegressiveCoefficients)
{
$this->autoRegressiveCoefficients = $autoRegressiveCoefficients;
}
public function getAutoRegressiveCoefficients()
{
return $this->autoRegressiveCoefficients;
}
public function setInterceptCoefficient($interceptCoefficient)
{
$this->interceptCoefficient = $interceptCoefficient;
}
public function getInterceptCoefficient()
{
return $this->interceptCoefficient;
}
public function setMovingAverageCoefficients($movingAverageCoefficients)
{
$this->movingAverageCoefficients = $movingAverageCoefficients;
}
public function getMovingAverageCoefficients()
{
return $this->movingAverageCoefficients;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ArimaCoefficients::class, 'Google_Service_Bigquery_ArimaCoefficients');
@@ -0,0 +1,68 @@
<?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\Bigquery;
class ArimaFittingMetrics extends \Google\Model
{
/**
* AIC.
*
* @var
*/
public $aic;
/**
* Log-likelihood.
*
* @var
*/
public $logLikelihood;
/**
* Variance.
*
* @var
*/
public $variance;
public function setAic($aic)
{
$this->aic = $aic;
}
public function getAic()
{
return $this->aic;
}
public function setLogLikelihood($logLikelihood)
{
$this->logLikelihood = $logLikelihood;
}
public function getLogLikelihood()
{
return $this->logLikelihood;
}
public function setVariance($variance)
{
$this->variance = $variance;
}
public function getVariance()
{
return $this->variance;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ArimaFittingMetrics::class, 'Google_Service_Bigquery_ArimaFittingMetrics');
@@ -0,0 +1,165 @@
<?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\Bigquery;
class ArimaForecastingMetrics extends \Google\Collection
{
protected $collection_key = 'timeSeriesId';
protected $arimaFittingMetricsType = ArimaFittingMetrics::class;
protected $arimaFittingMetricsDataType = 'array';
protected $arimaSingleModelForecastingMetricsType = ArimaSingleModelForecastingMetrics::class;
protected $arimaSingleModelForecastingMetricsDataType = 'array';
/**
* Whether Arima model fitted with drift or not. It is always false when d is
* not 1.
*
* @deprecated
* @var bool[]
*/
public $hasDrift;
protected $nonSeasonalOrderType = ArimaOrder::class;
protected $nonSeasonalOrderDataType = 'array';
/**
* Seasonal periods. Repeated because multiple periods are supported for one
* time series.
*
* @deprecated
* @var string[]
*/
public $seasonalPeriods;
/**
* Id to differentiate different time series for the large-scale case.
*
* @deprecated
* @var string[]
*/
public $timeSeriesId;
/**
* Arima model fitting metrics.
*
* @deprecated
* @param ArimaFittingMetrics[] $arimaFittingMetrics
*/
public function setArimaFittingMetrics($arimaFittingMetrics)
{
$this->arimaFittingMetrics = $arimaFittingMetrics;
}
/**
* @deprecated
* @return ArimaFittingMetrics[]
*/
public function getArimaFittingMetrics()
{
return $this->arimaFittingMetrics;
}
/**
* Repeated as there can be many metric sets (one for each model) in auto-
* arima and the large-scale case.
*
* @param ArimaSingleModelForecastingMetrics[] $arimaSingleModelForecastingMetrics
*/
public function setArimaSingleModelForecastingMetrics($arimaSingleModelForecastingMetrics)
{
$this->arimaSingleModelForecastingMetrics = $arimaSingleModelForecastingMetrics;
}
/**
* @return ArimaSingleModelForecastingMetrics[]
*/
public function getArimaSingleModelForecastingMetrics()
{
return $this->arimaSingleModelForecastingMetrics;
}
/**
* Whether Arima model fitted with drift or not. It is always false when d is
* not 1.
*
* @deprecated
* @param bool[] $hasDrift
*/
public function setHasDrift($hasDrift)
{
$this->hasDrift = $hasDrift;
}
/**
* @deprecated
* @return bool[]
*/
public function getHasDrift()
{
return $this->hasDrift;
}
/**
* Non-seasonal order.
*
* @deprecated
* @param ArimaOrder[] $nonSeasonalOrder
*/
public function setNonSeasonalOrder($nonSeasonalOrder)
{
$this->nonSeasonalOrder = $nonSeasonalOrder;
}
/**
* @deprecated
* @return ArimaOrder[]
*/
public function getNonSeasonalOrder()
{
return $this->nonSeasonalOrder;
}
/**
* Seasonal periods. Repeated because multiple periods are supported for one
* time series.
*
* @deprecated
* @param string[] $seasonalPeriods
*/
public function setSeasonalPeriods($seasonalPeriods)
{
$this->seasonalPeriods = $seasonalPeriods;
}
/**
* @deprecated
* @return string[]
*/
public function getSeasonalPeriods()
{
return $this->seasonalPeriods;
}
/**
* Id to differentiate different time series for the large-scale case.
*
* @deprecated
* @param string[] $timeSeriesId
*/
public function setTimeSeriesId($timeSeriesId)
{
$this->timeSeriesId = $timeSeriesId;
}
/**
* @deprecated
* @return string[]
*/
public function getTimeSeriesId()
{
return $this->timeSeriesId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ArimaForecastingMetrics::class, 'Google_Service_Bigquery_ArimaForecastingMetrics');
@@ -0,0 +1,251 @@
<?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\Bigquery;
class ArimaModelInfo extends \Google\Collection
{
protected $collection_key = 'timeSeriesIds';
protected $arimaCoefficientsType = ArimaCoefficients::class;
protected $arimaCoefficientsDataType = '';
protected $arimaFittingMetricsType = ArimaFittingMetrics::class;
protected $arimaFittingMetricsDataType = '';
/**
* Whether Arima model fitted with drift or not. It is always false when d is
* not 1.
*
* @var bool
*/
public $hasDrift;
/**
* If true, holiday_effect is a part of time series decomposition result.
*
* @var bool
*/
public $hasHolidayEffect;
/**
* If true, spikes_and_dips is a part of time series decomposition result.
*
* @var bool
*/
public $hasSpikesAndDips;
/**
* If true, step_changes is a part of time series decomposition result.
*
* @var bool
*/
public $hasStepChanges;
protected $nonSeasonalOrderType = ArimaOrder::class;
protected $nonSeasonalOrderDataType = '';
/**
* Seasonal periods. Repeated because multiple periods are supported for one
* time series.
*
* @var string[]
*/
public $seasonalPeriods;
/**
* The time_series_id value for this time series. It will be one of the unique
* values from the time_series_id_column specified during ARIMA model
* training. Only present when time_series_id_column training option was used.
*
* @var string
*/
public $timeSeriesId;
/**
* The tuple of time_series_ids identifying this time series. It will be one
* of the unique tuples of values present in the time_series_id_columns
* specified during ARIMA model training. Only present when
* time_series_id_columns training option was used and the order of values
* here are same as the order of time_series_id_columns.
*
* @var string[]
*/
public $timeSeriesIds;
/**
* Arima coefficients.
*
* @param ArimaCoefficients $arimaCoefficients
*/
public function setArimaCoefficients(ArimaCoefficients $arimaCoefficients)
{
$this->arimaCoefficients = $arimaCoefficients;
}
/**
* @return ArimaCoefficients
*/
public function getArimaCoefficients()
{
return $this->arimaCoefficients;
}
/**
* Arima fitting metrics.
*
* @param ArimaFittingMetrics $arimaFittingMetrics
*/
public function setArimaFittingMetrics(ArimaFittingMetrics $arimaFittingMetrics)
{
$this->arimaFittingMetrics = $arimaFittingMetrics;
}
/**
* @return ArimaFittingMetrics
*/
public function getArimaFittingMetrics()
{
return $this->arimaFittingMetrics;
}
/**
* Whether Arima model fitted with drift or not. It is always false when d is
* not 1.
*
* @param bool $hasDrift
*/
public function setHasDrift($hasDrift)
{
$this->hasDrift = $hasDrift;
}
/**
* @return bool
*/
public function getHasDrift()
{
return $this->hasDrift;
}
/**
* If true, holiday_effect is a part of time series decomposition result.
*
* @param bool $hasHolidayEffect
*/
public function setHasHolidayEffect($hasHolidayEffect)
{
$this->hasHolidayEffect = $hasHolidayEffect;
}
/**
* @return bool
*/
public function getHasHolidayEffect()
{
return $this->hasHolidayEffect;
}
/**
* If true, spikes_and_dips is a part of time series decomposition result.
*
* @param bool $hasSpikesAndDips
*/
public function setHasSpikesAndDips($hasSpikesAndDips)
{
$this->hasSpikesAndDips = $hasSpikesAndDips;
}
/**
* @return bool
*/
public function getHasSpikesAndDips()
{
return $this->hasSpikesAndDips;
}
/**
* If true, step_changes is a part of time series decomposition result.
*
* @param bool $hasStepChanges
*/
public function setHasStepChanges($hasStepChanges)
{
$this->hasStepChanges = $hasStepChanges;
}
/**
* @return bool
*/
public function getHasStepChanges()
{
return $this->hasStepChanges;
}
/**
* Non-seasonal order.
*
* @param ArimaOrder $nonSeasonalOrder
*/
public function setNonSeasonalOrder(ArimaOrder $nonSeasonalOrder)
{
$this->nonSeasonalOrder = $nonSeasonalOrder;
}
/**
* @return ArimaOrder
*/
public function getNonSeasonalOrder()
{
return $this->nonSeasonalOrder;
}
/**
* Seasonal periods. Repeated because multiple periods are supported for one
* time series.
*
* @param string[] $seasonalPeriods
*/
public function setSeasonalPeriods($seasonalPeriods)
{
$this->seasonalPeriods = $seasonalPeriods;
}
/**
* @return string[]
*/
public function getSeasonalPeriods()
{
return $this->seasonalPeriods;
}
/**
* The time_series_id value for this time series. It will be one of the unique
* values from the time_series_id_column specified during ARIMA model
* training. Only present when time_series_id_column training option was used.
*
* @param string $timeSeriesId
*/
public function setTimeSeriesId($timeSeriesId)
{
$this->timeSeriesId = $timeSeriesId;
}
/**
* @return string
*/
public function getTimeSeriesId()
{
return $this->timeSeriesId;
}
/**
* The tuple of time_series_ids identifying this time series. It will be one
* of the unique tuples of values present in the time_series_id_columns
* specified during ARIMA model training. Only present when
* time_series_id_columns training option was used and the order of values
* here are same as the order of time_series_id_columns.
*
* @param string[] $timeSeriesIds
*/
public function setTimeSeriesIds($timeSeriesIds)
{
$this->timeSeriesIds = $timeSeriesIds;
}
/**
* @return string[]
*/
public function getTimeSeriesIds()
{
return $this->timeSeriesIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ArimaModelInfo::class, 'Google_Service_Bigquery_ArimaModelInfo');
@@ -0,0 +1,92 @@
<?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\Bigquery;
class ArimaOrder extends \Google\Model
{
/**
* Order of the differencing part.
*
* @var string
*/
public $d;
/**
* Order of the autoregressive part.
*
* @var string
*/
public $p;
/**
* Order of the moving-average part.
*
* @var string
*/
public $q;
/**
* Order of the differencing part.
*
* @param string $d
*/
public function setD($d)
{
$this->d = $d;
}
/**
* @return string
*/
public function getD()
{
return $this->d;
}
/**
* Order of the autoregressive part.
*
* @param string $p
*/
public function setP($p)
{
$this->p = $p;
}
/**
* @return string
*/
public function getP()
{
return $this->p;
}
/**
* Order of the moving-average part.
*
* @param string $q
*/
public function setQ($q)
{
$this->q = $q;
}
/**
* @return string
*/
public function getQ()
{
return $this->q;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ArimaOrder::class, 'Google_Service_Bigquery_ArimaOrder');
@@ -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\Bigquery;
class ArimaResult extends \Google\Collection
{
protected $collection_key = 'seasonalPeriods';
protected $arimaModelInfoType = ArimaModelInfo::class;
protected $arimaModelInfoDataType = 'array';
/**
* Seasonal periods. Repeated because multiple periods are supported for one
* time series.
*
* @var string[]
*/
public $seasonalPeriods;
/**
* This message is repeated because there are multiple arima models fitted in
* auto-arima. For non-auto-arima model, its size is one.
*
* @param ArimaModelInfo[] $arimaModelInfo
*/
public function setArimaModelInfo($arimaModelInfo)
{
$this->arimaModelInfo = $arimaModelInfo;
}
/**
* @return ArimaModelInfo[]
*/
public function getArimaModelInfo()
{
return $this->arimaModelInfo;
}
/**
* Seasonal periods. Repeated because multiple periods are supported for one
* time series.
*
* @param string[] $seasonalPeriods
*/
public function setSeasonalPeriods($seasonalPeriods)
{
$this->seasonalPeriods = $seasonalPeriods;
}
/**
* @return string[]
*/
public function getSeasonalPeriods()
{
return $this->seasonalPeriods;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ArimaResult::class, 'Google_Service_Bigquery_ArimaResult');
@@ -0,0 +1,233 @@
<?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\Bigquery;
class ArimaSingleModelForecastingMetrics extends \Google\Collection
{
protected $collection_key = 'timeSeriesIds';
protected $arimaFittingMetricsType = ArimaFittingMetrics::class;
protected $arimaFittingMetricsDataType = '';
/**
* Is arima model fitted with drift or not. It is always false when d is not
* 1.
*
* @var bool
*/
public $hasDrift;
/**
* If true, holiday_effect is a part of time series decomposition result.
*
* @var bool
*/
public $hasHolidayEffect;
/**
* If true, spikes_and_dips is a part of time series decomposition result.
*
* @var bool
*/
public $hasSpikesAndDips;
/**
* If true, step_changes is a part of time series decomposition result.
*
* @var bool
*/
public $hasStepChanges;
protected $nonSeasonalOrderType = ArimaOrder::class;
protected $nonSeasonalOrderDataType = '';
/**
* Seasonal periods. Repeated because multiple periods are supported for one
* time series.
*
* @var string[]
*/
public $seasonalPeriods;
/**
* The time_series_id value for this time series. It will be one of the unique
* values from the time_series_id_column specified during ARIMA model
* training. Only present when time_series_id_column training option was used.
*
* @var string
*/
public $timeSeriesId;
/**
* The tuple of time_series_ids identifying this time series. It will be one
* of the unique tuples of values present in the time_series_id_columns
* specified during ARIMA model training. Only present when
* time_series_id_columns training option was used and the order of values
* here are same as the order of time_series_id_columns.
*
* @var string[]
*/
public $timeSeriesIds;
/**
* Arima fitting metrics.
*
* @param ArimaFittingMetrics $arimaFittingMetrics
*/
public function setArimaFittingMetrics(ArimaFittingMetrics $arimaFittingMetrics)
{
$this->arimaFittingMetrics = $arimaFittingMetrics;
}
/**
* @return ArimaFittingMetrics
*/
public function getArimaFittingMetrics()
{
return $this->arimaFittingMetrics;
}
/**
* Is arima model fitted with drift or not. It is always false when d is not
* 1.
*
* @param bool $hasDrift
*/
public function setHasDrift($hasDrift)
{
$this->hasDrift = $hasDrift;
}
/**
* @return bool
*/
public function getHasDrift()
{
return $this->hasDrift;
}
/**
* If true, holiday_effect is a part of time series decomposition result.
*
* @param bool $hasHolidayEffect
*/
public function setHasHolidayEffect($hasHolidayEffect)
{
$this->hasHolidayEffect = $hasHolidayEffect;
}
/**
* @return bool
*/
public function getHasHolidayEffect()
{
return $this->hasHolidayEffect;
}
/**
* If true, spikes_and_dips is a part of time series decomposition result.
*
* @param bool $hasSpikesAndDips
*/
public function setHasSpikesAndDips($hasSpikesAndDips)
{
$this->hasSpikesAndDips = $hasSpikesAndDips;
}
/**
* @return bool
*/
public function getHasSpikesAndDips()
{
return $this->hasSpikesAndDips;
}
/**
* If true, step_changes is a part of time series decomposition result.
*
* @param bool $hasStepChanges
*/
public function setHasStepChanges($hasStepChanges)
{
$this->hasStepChanges = $hasStepChanges;
}
/**
* @return bool
*/
public function getHasStepChanges()
{
return $this->hasStepChanges;
}
/**
* Non-seasonal order.
*
* @param ArimaOrder $nonSeasonalOrder
*/
public function setNonSeasonalOrder(ArimaOrder $nonSeasonalOrder)
{
$this->nonSeasonalOrder = $nonSeasonalOrder;
}
/**
* @return ArimaOrder
*/
public function getNonSeasonalOrder()
{
return $this->nonSeasonalOrder;
}
/**
* Seasonal periods. Repeated because multiple periods are supported for one
* time series.
*
* @param string[] $seasonalPeriods
*/
public function setSeasonalPeriods($seasonalPeriods)
{
$this->seasonalPeriods = $seasonalPeriods;
}
/**
* @return string[]
*/
public function getSeasonalPeriods()
{
return $this->seasonalPeriods;
}
/**
* The time_series_id value for this time series. It will be one of the unique
* values from the time_series_id_column specified during ARIMA model
* training. Only present when time_series_id_column training option was used.
*
* @param string $timeSeriesId
*/
public function setTimeSeriesId($timeSeriesId)
{
$this->timeSeriesId = $timeSeriesId;
}
/**
* @return string
*/
public function getTimeSeriesId()
{
return $this->timeSeriesId;
}
/**
* The tuple of time_series_ids identifying this time series. It will be one
* of the unique tuples of values present in the time_series_id_columns
* specified during ARIMA model training. Only present when
* time_series_id_columns training option was used and the order of values
* here are same as the order of time_series_id_columns.
*
* @param string[] $timeSeriesIds
*/
public function setTimeSeriesIds($timeSeriesIds)
{
$this->timeSeriesIds = $timeSeriesIds;
}
/**
* @return string[]
*/
public function getTimeSeriesIds()
{
return $this->timeSeriesIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ArimaSingleModelForecastingMetrics::class, 'Google_Service_Bigquery_ArimaSingleModelForecastingMetrics');
@@ -0,0 +1,71 @@
<?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\Bigquery;
class AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @var string
*/
public $service;
/**
* The configuration for logging of each type of permission.
*
* @param AuditLogConfig[] $auditLogConfigs
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @param string $service
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditConfig::class, 'Google_Service_Bigquery_AuditConfig');
@@ -0,0 +1,91 @@
<?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\Bigquery;
class AuditLogConfig extends \Google\Collection
{
/**
* Default case. Should never be this.
*/
public const LOG_TYPE_LOG_TYPE_UNSPECIFIED = 'LOG_TYPE_UNSPECIFIED';
/**
* Admin reads. Example: CloudIAM getIamPolicy
*/
public const LOG_TYPE_ADMIN_READ = 'ADMIN_READ';
/**
* Data writes. Example: CloudSQL Users create
*/
public const LOG_TYPE_DATA_WRITE = 'DATA_WRITE';
/**
* Data reads. Example: CloudSQL Users list
*/
public const LOG_TYPE_DATA_READ = 'DATA_READ';
protected $collection_key = 'exemptedMembers';
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @var string[]
*/
public $exemptedMembers;
/**
* The log type that this config enables.
*
* @var string
*/
public $logType;
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @param string[] $exemptedMembers
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* The log type that this config enables.
*
* Accepted values: LOG_TYPE_UNSPECIFIED, ADMIN_READ, DATA_WRITE, DATA_READ
*
* @param self::LOG_TYPE_* $logType
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return self::LOG_TYPE_*
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditLogConfig::class, 'Google_Service_Bigquery_AuditLogConfig');
@@ -0,0 +1,52 @@
<?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\Bigquery;
class AvroOptions extends \Google\Model
{
/**
* Optional. If sourceFormat is set to "AVRO", indicates whether to interpret
* logical types as the corresponding BigQuery data type (for example,
* TIMESTAMP), instead of using the raw type (for example, INTEGER).
*
* @var bool
*/
public $useAvroLogicalTypes;
/**
* Optional. If sourceFormat is set to "AVRO", indicates whether to interpret
* logical types as the corresponding BigQuery data type (for example,
* TIMESTAMP), instead of using the raw type (for example, INTEGER).
*
* @param bool $useAvroLogicalTypes
*/
public function setUseAvroLogicalTypes($useAvroLogicalTypes)
{
$this->useAvroLogicalTypes = $useAvroLogicalTypes;
}
/**
* @return bool
*/
public function getUseAvroLogicalTypes()
{
return $this->useAvroLogicalTypes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AvroOptions::class, 'Google_Service_Bigquery_AvroOptions');
@@ -0,0 +1,75 @@
<?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\Bigquery;
class BatchDeleteRowAccessPoliciesRequest extends \Google\Collection
{
protected $collection_key = 'policyIds';
/**
* If set to true, it deletes the row access policy even if it's the last row
* access policy on the table and the deletion will widen the access rather
* narrowing it.
*
* @var bool
*/
public $force;
/**
* Required. Policy IDs of the row access policies.
*
* @var string[]
*/
public $policyIds;
/**
* If set to true, it deletes the row access policy even if it's the last row
* access policy on the table and the deletion will widen the access rather
* narrowing it.
*
* @param bool $force
*/
public function setForce($force)
{
$this->force = $force;
}
/**
* @return bool
*/
public function getForce()
{
return $this->force;
}
/**
* Required. Policy IDs of the row access policies.
*
* @param string[] $policyIds
*/
public function setPolicyIds($policyIds)
{
$this->policyIds = $policyIds;
}
/**
* @return string[]
*/
public function getPolicyIds()
{
return $this->policyIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchDeleteRowAccessPoliciesRequest::class, 'Google_Service_Bigquery_BatchDeleteRowAccessPoliciesRequest');
@@ -0,0 +1,106 @@
<?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\Bigquery;
class BiEngineReason extends \Google\Model
{
/**
* BiEngineReason not specified.
*/
public const CODE_CODE_UNSPECIFIED = 'CODE_UNSPECIFIED';
/**
* No reservation available for BI Engine acceleration.
*/
public const CODE_NO_RESERVATION = 'NO_RESERVATION';
/**
* Not enough memory available for BI Engine acceleration.
*/
public const CODE_INSUFFICIENT_RESERVATION = 'INSUFFICIENT_RESERVATION';
/**
* This particular SQL text is not supported for acceleration by BI Engine.
*/
public const CODE_UNSUPPORTED_SQL_TEXT = 'UNSUPPORTED_SQL_TEXT';
/**
* Input too large for acceleration by BI Engine.
*/
public const CODE_INPUT_TOO_LARGE = 'INPUT_TOO_LARGE';
/**
* Catch-all code for all other cases for partial or disabled acceleration.
*/
public const CODE_OTHER_REASON = 'OTHER_REASON';
/**
* One or more tables were not eligible for BI Engine acceleration.
*/
public const CODE_TABLE_EXCLUDED = 'TABLE_EXCLUDED';
/**
* Output only. High-level BI Engine reason for partial or disabled
* acceleration
*
* @var string
*/
public $code;
/**
* Output only. Free form human-readable reason for partial or disabled
* acceleration.
*
* @var string
*/
public $message;
/**
* Output only. High-level BI Engine reason for partial or disabled
* acceleration
*
* Accepted values: CODE_UNSPECIFIED, NO_RESERVATION,
* INSUFFICIENT_RESERVATION, UNSUPPORTED_SQL_TEXT, INPUT_TOO_LARGE,
* OTHER_REASON, TABLE_EXCLUDED
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* Output only. Free form human-readable reason for partial or disabled
* acceleration.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BiEngineReason::class, 'Google_Service_Bigquery_BiEngineReason');
@@ -0,0 +1,140 @@
<?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\Bigquery;
class BiEngineStatistics extends \Google\Collection
{
/**
* BiEngineMode type not specified.
*/
public const ACCELERATION_MODE_BI_ENGINE_ACCELERATION_MODE_UNSPECIFIED = 'BI_ENGINE_ACCELERATION_MODE_UNSPECIFIED';
/**
* BI Engine acceleration was attempted but disabled. bi_engine_reasons
* specifies a more detailed reason.
*/
public const ACCELERATION_MODE_BI_ENGINE_DISABLED = 'BI_ENGINE_DISABLED';
/**
* Some inputs were accelerated using BI Engine. See bi_engine_reasons for why
* parts of the query were not accelerated.
*/
public const ACCELERATION_MODE_PARTIAL_INPUT = 'PARTIAL_INPUT';
/**
* All of the query inputs were accelerated using BI Engine.
*/
public const ACCELERATION_MODE_FULL_INPUT = 'FULL_INPUT';
/**
* All of the query was accelerated using BI Engine.
*/
public const ACCELERATION_MODE_FULL_QUERY = 'FULL_QUERY';
/**
* BiEngineMode type not specified.
*/
public const BI_ENGINE_MODE_ACCELERATION_MODE_UNSPECIFIED = 'ACCELERATION_MODE_UNSPECIFIED';
/**
* BI Engine disabled the acceleration. bi_engine_reasons specifies a more
* detailed reason.
*/
public const BI_ENGINE_MODE_DISABLED = 'DISABLED';
/**
* Part of the query was accelerated using BI Engine. See bi_engine_reasons
* for why parts of the query were not accelerated.
*/
public const BI_ENGINE_MODE_PARTIAL = 'PARTIAL';
/**
* All of the query was accelerated using BI Engine.
*/
public const BI_ENGINE_MODE_FULL = 'FULL';
protected $collection_key = 'biEngineReasons';
/**
* Output only. Specifies which mode of BI Engine acceleration was performed
* (if any).
*
* @var string
*/
public $accelerationMode;
/**
* Output only. Specifies which mode of BI Engine acceleration was performed
* (if any).
*
* @var string
*/
public $biEngineMode;
protected $biEngineReasonsType = BiEngineReason::class;
protected $biEngineReasonsDataType = 'array';
/**
* Output only. Specifies which mode of BI Engine acceleration was performed
* (if any).
*
* Accepted values: BI_ENGINE_ACCELERATION_MODE_UNSPECIFIED,
* BI_ENGINE_DISABLED, PARTIAL_INPUT, FULL_INPUT, FULL_QUERY
*
* @param self::ACCELERATION_MODE_* $accelerationMode
*/
public function setAccelerationMode($accelerationMode)
{
$this->accelerationMode = $accelerationMode;
}
/**
* @return self::ACCELERATION_MODE_*
*/
public function getAccelerationMode()
{
return $this->accelerationMode;
}
/**
* Output only. Specifies which mode of BI Engine acceleration was performed
* (if any).
*
* Accepted values: ACCELERATION_MODE_UNSPECIFIED, DISABLED, PARTIAL, FULL
*
* @param self::BI_ENGINE_MODE_* $biEngineMode
*/
public function setBiEngineMode($biEngineMode)
{
$this->biEngineMode = $biEngineMode;
}
/**
* @return self::BI_ENGINE_MODE_*
*/
public function getBiEngineMode()
{
return $this->biEngineMode;
}
/**
* In case of DISABLED or PARTIAL bi_engine_mode, these contain the
* explanatory reasons as to why BI Engine could not accelerate. In case the
* full query was accelerated, this field is not populated.
*
* @param BiEngineReason[] $biEngineReasons
*/
public function setBiEngineReasons($biEngineReasons)
{
$this->biEngineReasons = $biEngineReasons;
}
/**
* @return BiEngineReason[]
*/
public function getBiEngineReasons()
{
return $this->biEngineReasons;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BiEngineStatistics::class, 'Google_Service_Bigquery_BiEngineStatistics');
@@ -0,0 +1,144 @@
<?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\Bigquery;
class BigLakeConfiguration extends \Google\Model
{
/**
* Default Value.
*/
public const FILE_FORMAT_FILE_FORMAT_UNSPECIFIED = 'FILE_FORMAT_UNSPECIFIED';
/**
* Apache Parquet format.
*/
public const FILE_FORMAT_PARQUET = 'PARQUET';
/**
* Default Value.
*/
public const TABLE_FORMAT_TABLE_FORMAT_UNSPECIFIED = 'TABLE_FORMAT_UNSPECIFIED';
/**
* Apache Iceberg format.
*/
public const TABLE_FORMAT_ICEBERG = 'ICEBERG';
/**
* Optional. The connection specifying the credentials to be used to read and
* write to external storage, such as Cloud Storage. The connection_id can
* have the form `{project}.{location}.{connection_id}` or
* `projects/{project}/locations/{location}/connections/{connection_id}".
*
* @var string
*/
public $connectionId;
/**
* Optional. The file format the table data is stored in.
*
* @var string
*/
public $fileFormat;
/**
* Optional. The fully qualified location prefix of the external folder where
* table data is stored. The '*' wildcard character is not allowed. The URI
* should be in the format `gs://bucket/path_to_table/`
*
* @var string
*/
public $storageUri;
/**
* Optional. The table format the metadata only snapshots are stored in.
*
* @var string
*/
public $tableFormat;
/**
* Optional. The connection specifying the credentials to be used to read and
* write to external storage, such as Cloud Storage. The connection_id can
* have the form `{project}.{location}.{connection_id}` or
* `projects/{project}/locations/{location}/connections/{connection_id}".
*
* @param string $connectionId
*/
public function setConnectionId($connectionId)
{
$this->connectionId = $connectionId;
}
/**
* @return string
*/
public function getConnectionId()
{
return $this->connectionId;
}
/**
* Optional. The file format the table data is stored in.
*
* Accepted values: FILE_FORMAT_UNSPECIFIED, PARQUET
*
* @param self::FILE_FORMAT_* $fileFormat
*/
public function setFileFormat($fileFormat)
{
$this->fileFormat = $fileFormat;
}
/**
* @return self::FILE_FORMAT_*
*/
public function getFileFormat()
{
return $this->fileFormat;
}
/**
* Optional. The fully qualified location prefix of the external folder where
* table data is stored. The '*' wildcard character is not allowed. The URI
* should be in the format `gs://bucket/path_to_table/`
*
* @param string $storageUri
*/
public function setStorageUri($storageUri)
{
$this->storageUri = $storageUri;
}
/**
* @return string
*/
public function getStorageUri()
{
return $this->storageUri;
}
/**
* Optional. The table format the metadata only snapshots are stored in.
*
* Accepted values: TABLE_FORMAT_UNSPECIFIED, ICEBERG
*
* @param self::TABLE_FORMAT_* $tableFormat
*/
public function setTableFormat($tableFormat)
{
$this->tableFormat = $tableFormat;
}
/**
* @return self::TABLE_FORMAT_*
*/
public function getTableFormat()
{
return $this->tableFormat;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BigLakeConfiguration::class, 'Google_Service_Bigquery_BigLakeConfiguration');
@@ -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\Bigquery;
class BigQueryModelTraining extends \Google\Model
{
/**
* Deprecated.
*
* @var int
*/
public $currentIteration;
/**
* Deprecated.
*
* @var string
*/
public $expectedTotalIterations;
/**
* Deprecated.
*
* @param int $currentIteration
*/
public function setCurrentIteration($currentIteration)
{
$this->currentIteration = $currentIteration;
}
/**
* @return int
*/
public function getCurrentIteration()
{
return $this->currentIteration;
}
/**
* Deprecated.
*
* @param string $expectedTotalIterations
*/
public function setExpectedTotalIterations($expectedTotalIterations)
{
$this->expectedTotalIterations = $expectedTotalIterations;
}
/**
* @return string
*/
public function getExpectedTotalIterations()
{
return $this->expectedTotalIterations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BigQueryModelTraining::class, 'Google_Service_Bigquery_BigQueryModelTraining');
@@ -0,0 +1,223 @@
<?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\Bigquery;
class BigtableColumn extends \Google\Model
{
/**
* Optional. The encoding of the values when the type is not STRING.
* Acceptable encoding values are: TEXT - indicates values are alphanumeric
* text strings. BINARY - indicates values are encoded using HBase
* Bytes.toBytes family of functions. PROTO_BINARY - indicates values are
* encoded using serialized proto messages. This can only be used in
* combination with JSON type. 'encoding' can also be set at the column family
* level. However, the setting at this level takes precedence if 'encoding' is
* set at both levels.
*
* @var string
*/
public $encoding;
/**
* Optional. If the qualifier is not a valid BigQuery field identifier i.e.
* does not match a-zA-Z*, a valid identifier must be provided as the column
* field name and is used as field name in queries.
*
* @var string
*/
public $fieldName;
/**
* Optional. If this is set, only the latest version of value in this column
* are exposed. 'onlyReadLatest' can also be set at the column family level.
* However, the setting at this level takes precedence if 'onlyReadLatest' is
* set at both levels.
*
* @var bool
*/
public $onlyReadLatest;
protected $protoConfigType = BigtableProtoConfig::class;
protected $protoConfigDataType = '';
/**
* [Required] Qualifier of the column. Columns in the parent column family
* that has this exact qualifier are exposed as `.` field. If the qualifier is
* valid UTF-8 string, it can be specified in the qualifier_string field.
* Otherwise, a base-64 encoded value must be set to qualifier_encoded. The
* column field name is the same as the column qualifier. However, if the
* qualifier is not a valid BigQuery field identifier i.e. does not match
* a-zA-Z*, a valid identifier must be provided as field_name.
*
* @var string
*/
public $qualifierEncoded;
/**
* Qualifier string.
*
* @var string
*/
public $qualifierString;
/**
* Optional. The type to convert the value in cells of this column. The values
* are expected to be encoded using HBase Bytes.toBytes function when using
* the BINARY encoding value. Following BigQuery types are allowed (case-
* sensitive): * BYTES * STRING * INTEGER * FLOAT * BOOLEAN * JSON Default
* type is BYTES. 'type' can also be set at the column family level. However,
* the setting at this level takes precedence if 'type' is set at both levels.
*
* @var string
*/
public $type;
/**
* Optional. The encoding of the values when the type is not STRING.
* Acceptable encoding values are: TEXT - indicates values are alphanumeric
* text strings. BINARY - indicates values are encoded using HBase
* Bytes.toBytes family of functions. PROTO_BINARY - indicates values are
* encoded using serialized proto messages. This can only be used in
* combination with JSON type. 'encoding' can also be set at the column family
* level. However, the setting at this level takes precedence if 'encoding' is
* set at both levels.
*
* @param string $encoding
*/
public function setEncoding($encoding)
{
$this->encoding = $encoding;
}
/**
* @return string
*/
public function getEncoding()
{
return $this->encoding;
}
/**
* Optional. If the qualifier is not a valid BigQuery field identifier i.e.
* does not match a-zA-Z*, a valid identifier must be provided as the column
* field name and is used as field name in queries.
*
* @param string $fieldName
*/
public function setFieldName($fieldName)
{
$this->fieldName = $fieldName;
}
/**
* @return string
*/
public function getFieldName()
{
return $this->fieldName;
}
/**
* Optional. If this is set, only the latest version of value in this column
* are exposed. 'onlyReadLatest' can also be set at the column family level.
* However, the setting at this level takes precedence if 'onlyReadLatest' is
* set at both levels.
*
* @param bool $onlyReadLatest
*/
public function setOnlyReadLatest($onlyReadLatest)
{
$this->onlyReadLatest = $onlyReadLatest;
}
/**
* @return bool
*/
public function getOnlyReadLatest()
{
return $this->onlyReadLatest;
}
/**
* Optional. Protobuf-specific configurations, only takes effect when the
* encoding is PROTO_BINARY.
*
* @param BigtableProtoConfig $protoConfig
*/
public function setProtoConfig(BigtableProtoConfig $protoConfig)
{
$this->protoConfig = $protoConfig;
}
/**
* @return BigtableProtoConfig
*/
public function getProtoConfig()
{
return $this->protoConfig;
}
/**
* [Required] Qualifier of the column. Columns in the parent column family
* that has this exact qualifier are exposed as `.` field. If the qualifier is
* valid UTF-8 string, it can be specified in the qualifier_string field.
* Otherwise, a base-64 encoded value must be set to qualifier_encoded. The
* column field name is the same as the column qualifier. However, if the
* qualifier is not a valid BigQuery field identifier i.e. does not match
* a-zA-Z*, a valid identifier must be provided as field_name.
*
* @param string $qualifierEncoded
*/
public function setQualifierEncoded($qualifierEncoded)
{
$this->qualifierEncoded = $qualifierEncoded;
}
/**
* @return string
*/
public function getQualifierEncoded()
{
return $this->qualifierEncoded;
}
/**
* Qualifier string.
*
* @param string $qualifierString
*/
public function setQualifierString($qualifierString)
{
$this->qualifierString = $qualifierString;
}
/**
* @return string
*/
public function getQualifierString()
{
return $this->qualifierString;
}
/**
* Optional. The type to convert the value in cells of this column. The values
* are expected to be encoded using HBase Bytes.toBytes function when using
* the BINARY encoding value. Following BigQuery types are allowed (case-
* sensitive): * BYTES * STRING * INTEGER * FLOAT * BOOLEAN * JSON Default
* type is BYTES. 'type' can also be set at the column family level. However,
* the setting at this level takes precedence if 'type' is set at both levels.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BigtableColumn::class, 'Google_Service_Bigquery_BigtableColumn');
@@ -0,0 +1,183 @@
<?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\Bigquery;
class BigtableColumnFamily extends \Google\Collection
{
protected $collection_key = 'columns';
protected $columnsType = BigtableColumn::class;
protected $columnsDataType = 'array';
/**
* Optional. The encoding of the values when the type is not STRING.
* Acceptable encoding values are: TEXT - indicates values are alphanumeric
* text strings. BINARY - indicates values are encoded using HBase
* Bytes.toBytes family of functions. PROTO_BINARY - indicates values are
* encoded using serialized proto messages. This can only be used in
* combination with JSON type. This can be overridden for a specific column by
* listing that column in 'columns' and specifying an encoding for it.
*
* @var string
*/
public $encoding;
/**
* Identifier of the column family.
*
* @var string
*/
public $familyId;
/**
* Optional. If this is set only the latest version of value are exposed for
* all columns in this column family. This can be overridden for a specific
* column by listing that column in 'columns' and specifying a different
* setting for that column.
*
* @var bool
*/
public $onlyReadLatest;
protected $protoConfigType = BigtableProtoConfig::class;
protected $protoConfigDataType = '';
/**
* Optional. The type to convert the value in cells of this column family. The
* values are expected to be encoded using HBase Bytes.toBytes function when
* using the BINARY encoding value. Following BigQuery types are allowed
* (case-sensitive): * BYTES * STRING * INTEGER * FLOAT * BOOLEAN * JSON
* Default type is BYTES. This can be overridden for a specific column by
* listing that column in 'columns' and specifying a type for it.
*
* @var string
*/
public $type;
/**
* Optional. Lists of columns that should be exposed as individual fields as
* opposed to a list of (column name, value) pairs. All columns whose
* qualifier matches a qualifier in this list can be accessed as `.`. Other
* columns can be accessed as a list through the `.Column` field.
*
* @param BigtableColumn[] $columns
*/
public function setColumns($columns)
{
$this->columns = $columns;
}
/**
* @return BigtableColumn[]
*/
public function getColumns()
{
return $this->columns;
}
/**
* Optional. The encoding of the values when the type is not STRING.
* Acceptable encoding values are: TEXT - indicates values are alphanumeric
* text strings. BINARY - indicates values are encoded using HBase
* Bytes.toBytes family of functions. PROTO_BINARY - indicates values are
* encoded using serialized proto messages. This can only be used in
* combination with JSON type. This can be overridden for a specific column by
* listing that column in 'columns' and specifying an encoding for it.
*
* @param string $encoding
*/
public function setEncoding($encoding)
{
$this->encoding = $encoding;
}
/**
* @return string
*/
public function getEncoding()
{
return $this->encoding;
}
/**
* Identifier of the column family.
*
* @param string $familyId
*/
public function setFamilyId($familyId)
{
$this->familyId = $familyId;
}
/**
* @return string
*/
public function getFamilyId()
{
return $this->familyId;
}
/**
* Optional. If this is set only the latest version of value are exposed for
* all columns in this column family. This can be overridden for a specific
* column by listing that column in 'columns' and specifying a different
* setting for that column.
*
* @param bool $onlyReadLatest
*/
public function setOnlyReadLatest($onlyReadLatest)
{
$this->onlyReadLatest = $onlyReadLatest;
}
/**
* @return bool
*/
public function getOnlyReadLatest()
{
return $this->onlyReadLatest;
}
/**
* Optional. Protobuf-specific configurations, only takes effect when the
* encoding is PROTO_BINARY.
*
* @param BigtableProtoConfig $protoConfig
*/
public function setProtoConfig(BigtableProtoConfig $protoConfig)
{
$this->protoConfig = $protoConfig;
}
/**
* @return BigtableProtoConfig
*/
public function getProtoConfig()
{
return $this->protoConfig;
}
/**
* Optional. The type to convert the value in cells of this column family. The
* values are expected to be encoded using HBase Bytes.toBytes function when
* using the BINARY encoding value. Following BigQuery types are allowed
* (case-sensitive): * BYTES * STRING * INTEGER * FLOAT * BOOLEAN * JSON
* Default type is BYTES. This can be overridden for a specific column by
* listing that column in 'columns' and specifying a type for it.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BigtableColumnFamily::class, 'Google_Service_Bigquery_BigtableColumnFamily');
@@ -0,0 +1,131 @@
<?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\Bigquery;
class BigtableOptions extends \Google\Collection
{
protected $collection_key = 'columnFamilies';
protected $columnFamiliesType = BigtableColumnFamily::class;
protected $columnFamiliesDataType = 'array';
/**
* Optional. If field is true, then the column families that are not specified
* in columnFamilies list are not exposed in the table schema. Otherwise, they
* are read with BYTES type values. The default value is false.
*
* @var bool
*/
public $ignoreUnspecifiedColumnFamilies;
/**
* Optional. If field is true, then each column family will be read as a
* single JSON column. Otherwise they are read as a repeated cell structure
* containing timestamp/value tuples. The default value is false.
*
* @var bool
*/
public $outputColumnFamiliesAsJson;
/**
* Optional. If field is true, then the rowkey column families will be read
* and converted to string. Otherwise they are read with BYTES type values and
* users need to manually cast them with CAST if necessary. The default value
* is false.
*
* @var bool
*/
public $readRowkeyAsString;
/**
* Optional. List of column families to expose in the table schema along with
* their types. This list restricts the column families that can be referenced
* in queries and specifies their value types. You can use this list to do
* type conversions - see the 'type' field for more details. If you leave this
* list empty, all column families are present in the table schema and their
* values are read as BYTES. During a query only the column families
* referenced in that query are read from Bigtable.
*
* @param BigtableColumnFamily[] $columnFamilies
*/
public function setColumnFamilies($columnFamilies)
{
$this->columnFamilies = $columnFamilies;
}
/**
* @return BigtableColumnFamily[]
*/
public function getColumnFamilies()
{
return $this->columnFamilies;
}
/**
* Optional. If field is true, then the column families that are not specified
* in columnFamilies list are not exposed in the table schema. Otherwise, they
* are read with BYTES type values. The default value is false.
*
* @param bool $ignoreUnspecifiedColumnFamilies
*/
public function setIgnoreUnspecifiedColumnFamilies($ignoreUnspecifiedColumnFamilies)
{
$this->ignoreUnspecifiedColumnFamilies = $ignoreUnspecifiedColumnFamilies;
}
/**
* @return bool
*/
public function getIgnoreUnspecifiedColumnFamilies()
{
return $this->ignoreUnspecifiedColumnFamilies;
}
/**
* Optional. If field is true, then each column family will be read as a
* single JSON column. Otherwise they are read as a repeated cell structure
* containing timestamp/value tuples. The default value is false.
*
* @param bool $outputColumnFamiliesAsJson
*/
public function setOutputColumnFamiliesAsJson($outputColumnFamiliesAsJson)
{
$this->outputColumnFamiliesAsJson = $outputColumnFamiliesAsJson;
}
/**
* @return bool
*/
public function getOutputColumnFamiliesAsJson()
{
return $this->outputColumnFamiliesAsJson;
}
/**
* Optional. If field is true, then the rowkey column families will be read
* and converted to string. Otherwise they are read with BYTES type values and
* users need to manually cast them with CAST if necessary. The default value
* is false.
*
* @param bool $readRowkeyAsString
*/
public function setReadRowkeyAsString($readRowkeyAsString)
{
$this->readRowkeyAsString = $readRowkeyAsString;
}
/**
* @return bool
*/
public function getReadRowkeyAsString()
{
return $this->readRowkeyAsString;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BigtableOptions::class, 'Google_Service_Bigquery_BigtableOptions');
@@ -0,0 +1,84 @@
<?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\Bigquery;
class BigtableProtoConfig extends \Google\Model
{
/**
* Optional. The fully qualified proto message name of the protobuf. In the
* format of "foo.bar.Message".
*
* @var string
*/
public $protoMessageName;
/**
* Optional. The ID of the Bigtable SchemaBundle resource associated with this
* protobuf. The ID should be referred to within the parent table, e.g., `foo`
* rather than
* `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/foo`.
* See [more details on Bigtable
* SchemaBundles](https://docs.cloud.google.com/bigtable/docs/create-manage-
* protobuf-schemas).
*
* @var string
*/
public $schemaBundleId;
/**
* Optional. The fully qualified proto message name of the protobuf. In the
* format of "foo.bar.Message".
*
* @param string $protoMessageName
*/
public function setProtoMessageName($protoMessageName)
{
$this->protoMessageName = $protoMessageName;
}
/**
* @return string
*/
public function getProtoMessageName()
{
return $this->protoMessageName;
}
/**
* Optional. The ID of the Bigtable SchemaBundle resource associated with this
* protobuf. The ID should be referred to within the parent table, e.g., `foo`
* rather than
* `projects/{project}/instances/{instance}/tables/{table}/schemaBundles/foo`.
* See [more details on Bigtable
* SchemaBundles](https://docs.cloud.google.com/bigtable/docs/create-manage-
* protobuf-schemas).
*
* @param string $schemaBundleId
*/
public function setSchemaBundleId($schemaBundleId)
{
$this->schemaBundleId = $schemaBundleId;
}
/**
* @return string
*/
public function getSchemaBundleId()
{
return $this->schemaBundleId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BigtableProtoConfig::class, 'Google_Service_Bigquery_BigtableProtoConfig');
@@ -0,0 +1,107 @@
<?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\Bigquery;
class BinaryClassificationMetrics extends \Google\Collection
{
protected $collection_key = 'binaryConfusionMatrixList';
protected $aggregateClassificationMetricsType = AggregateClassificationMetrics::class;
protected $aggregateClassificationMetricsDataType = '';
protected $binaryConfusionMatrixListType = BinaryConfusionMatrix::class;
protected $binaryConfusionMatrixListDataType = 'array';
/**
* Label representing the negative class.
*
* @var string
*/
public $negativeLabel;
/**
* Label representing the positive class.
*
* @var string
*/
public $positiveLabel;
/**
* Aggregate classification metrics.
*
* @param AggregateClassificationMetrics $aggregateClassificationMetrics
*/
public function setAggregateClassificationMetrics(AggregateClassificationMetrics $aggregateClassificationMetrics)
{
$this->aggregateClassificationMetrics = $aggregateClassificationMetrics;
}
/**
* @return AggregateClassificationMetrics
*/
public function getAggregateClassificationMetrics()
{
return $this->aggregateClassificationMetrics;
}
/**
* Binary confusion matrix at multiple thresholds.
*
* @param BinaryConfusionMatrix[] $binaryConfusionMatrixList
*/
public function setBinaryConfusionMatrixList($binaryConfusionMatrixList)
{
$this->binaryConfusionMatrixList = $binaryConfusionMatrixList;
}
/**
* @return BinaryConfusionMatrix[]
*/
public function getBinaryConfusionMatrixList()
{
return $this->binaryConfusionMatrixList;
}
/**
* Label representing the negative class.
*
* @param string $negativeLabel
*/
public function setNegativeLabel($negativeLabel)
{
$this->negativeLabel = $negativeLabel;
}
/**
* @return string
*/
public function getNegativeLabel()
{
return $this->negativeLabel;
}
/**
* Label representing the positive class.
*
* @param string $positiveLabel
*/
public function setPositiveLabel($positiveLabel)
{
$this->positiveLabel = $positiveLabel;
}
/**
* @return string
*/
public function getPositiveLabel()
{
return $this->positiveLabel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BinaryClassificationMetrics::class, 'Google_Service_Bigquery_BinaryClassificationMetrics');
@@ -0,0 +1,186 @@
<?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\Bigquery;
class BinaryConfusionMatrix extends \Google\Model
{
/**
* The fraction of predictions given the correct label.
*
* @var
*/
public $accuracy;
/**
* The equally weighted average of recall and precision.
*
* @var
*/
public $f1Score;
/**
* Number of false samples predicted as false.
*
* @var string
*/
public $falseNegatives;
/**
* Number of false samples predicted as true.
*
* @var string
*/
public $falsePositives;
/**
* Threshold value used when computing each of the following metric.
*
* @var
*/
public $positiveClassThreshold;
/**
* The fraction of actual positive predictions that had positive actual
* labels.
*
* @var
*/
public $precision;
/**
* The fraction of actual positive labels that were given a positive
* prediction.
*
* @var
*/
public $recall;
/**
* Number of true samples predicted as false.
*
* @var string
*/
public $trueNegatives;
/**
* Number of true samples predicted as true.
*
* @var string
*/
public $truePositives;
public function setAccuracy($accuracy)
{
$this->accuracy = $accuracy;
}
public function getAccuracy()
{
return $this->accuracy;
}
public function setF1Score($f1Score)
{
$this->f1Score = $f1Score;
}
public function getF1Score()
{
return $this->f1Score;
}
/**
* Number of false samples predicted as false.
*
* @param string $falseNegatives
*/
public function setFalseNegatives($falseNegatives)
{
$this->falseNegatives = $falseNegatives;
}
/**
* @return string
*/
public function getFalseNegatives()
{
return $this->falseNegatives;
}
/**
* Number of false samples predicted as true.
*
* @param string $falsePositives
*/
public function setFalsePositives($falsePositives)
{
$this->falsePositives = $falsePositives;
}
/**
* @return string
*/
public function getFalsePositives()
{
return $this->falsePositives;
}
public function setPositiveClassThreshold($positiveClassThreshold)
{
$this->positiveClassThreshold = $positiveClassThreshold;
}
public function getPositiveClassThreshold()
{
return $this->positiveClassThreshold;
}
public function setPrecision($precision)
{
$this->precision = $precision;
}
public function getPrecision()
{
return $this->precision;
}
public function setRecall($recall)
{
$this->recall = $recall;
}
public function getRecall()
{
return $this->recall;
}
/**
* Number of true samples predicted as false.
*
* @param string $trueNegatives
*/
public function setTrueNegatives($trueNegatives)
{
$this->trueNegatives = $trueNegatives;
}
/**
* @return string
*/
public function getTrueNegatives()
{
return $this->trueNegatives;
}
/**
* Number of true samples predicted as true.
*
* @param string $truePositives
*/
public function setTruePositives($truePositives)
{
$this->truePositives = $truePositives;
}
/**
* @return string
*/
public function getTruePositives()
{
return $this->truePositives;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BinaryConfusionMatrix::class, 'Google_Service_Bigquery_BinaryConfusionMatrix');
@@ -0,0 +1,216 @@
<?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\Bigquery;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @var string[]
*/
public $members;
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @var string
*/
public $role;
/**
* The condition that is associated with this binding. If the condition
* evaluates to `true`, then this binding applies to the current request. If
* the condition evaluates to `false`, then this binding does not apply to the
* current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding. To learn which
* resources support conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param Expr $condition
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @param string[] $members
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_Bigquery_Binding');
@@ -0,0 +1,112 @@
<?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\Bigquery;
class BqmlIterationResult extends \Google\Model
{
/**
* Deprecated.
*
* @var string
*/
public $durationMs;
/**
* Deprecated.
*
* @var
*/
public $evalLoss;
/**
* Deprecated.
*
* @var int
*/
public $index;
/**
* Deprecated.
*
* @var
*/
public $learnRate;
/**
* Deprecated.
*
* @var
*/
public $trainingLoss;
/**
* Deprecated.
*
* @param string $durationMs
*/
public function setDurationMs($durationMs)
{
$this->durationMs = $durationMs;
}
/**
* @return string
*/
public function getDurationMs()
{
return $this->durationMs;
}
public function setEvalLoss($evalLoss)
{
$this->evalLoss = $evalLoss;
}
public function getEvalLoss()
{
return $this->evalLoss;
}
/**
* Deprecated.
*
* @param int $index
*/
public function setIndex($index)
{
$this->index = $index;
}
/**
* @return int
*/
public function getIndex()
{
return $this->index;
}
public function setLearnRate($learnRate)
{
$this->learnRate = $learnRate;
}
public function getLearnRate()
{
return $this->learnRate;
}
public function setTrainingLoss($trainingLoss)
{
$this->trainingLoss = $trainingLoss;
}
public function getTrainingLoss()
{
return $this->trainingLoss;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BqmlIterationResult::class, 'Google_Service_Bigquery_BqmlIterationResult');
@@ -0,0 +1,107 @@
<?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\Bigquery;
class BqmlTrainingRun extends \Google\Collection
{
protected $collection_key = 'iterationResults';
protected $iterationResultsType = BqmlIterationResult::class;
protected $iterationResultsDataType = 'array';
/**
* Deprecated.
*
* @var string
*/
public $startTime;
/**
* Deprecated.
*
* @var string
*/
public $state;
protected $trainingOptionsType = BqmlTrainingRunTrainingOptions::class;
protected $trainingOptionsDataType = '';
/**
* Deprecated.
*
* @param BqmlIterationResult[] $iterationResults
*/
public function setIterationResults($iterationResults)
{
$this->iterationResults = $iterationResults;
}
/**
* @return BqmlIterationResult[]
*/
public function getIterationResults()
{
return $this->iterationResults;
}
/**
* Deprecated.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* Deprecated.
*
* @param string $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* Deprecated.
*
* @param BqmlTrainingRunTrainingOptions $trainingOptions
*/
public function setTrainingOptions(BqmlTrainingRunTrainingOptions $trainingOptions)
{
$this->trainingOptions = $trainingOptions;
}
/**
* @return BqmlTrainingRunTrainingOptions
*/
public function getTrainingOptions()
{
return $this->trainingOptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BqmlTrainingRun::class, 'Google_Service_Bigquery_BqmlTrainingRun');
@@ -0,0 +1,143 @@
<?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\Bigquery;
class BqmlTrainingRunTrainingOptions extends \Google\Model
{
/**
* @var bool
*/
public $earlyStop;
public $l1Reg;
public $l2Reg;
public $learnRate;
/**
* @var string
*/
public $learnRateStrategy;
public $lineSearchInitLearnRate;
/**
* @var string
*/
public $maxIteration;
public $minRelProgress;
/**
* @var bool
*/
public $warmStart;
/**
* @param bool $earlyStop
*/
public function setEarlyStop($earlyStop)
{
$this->earlyStop = $earlyStop;
}
/**
* @return bool
*/
public function getEarlyStop()
{
return $this->earlyStop;
}
public function setL1Reg($l1Reg)
{
$this->l1Reg = $l1Reg;
}
public function getL1Reg()
{
return $this->l1Reg;
}
public function setL2Reg($l2Reg)
{
$this->l2Reg = $l2Reg;
}
public function getL2Reg()
{
return $this->l2Reg;
}
public function setLearnRate($learnRate)
{
$this->learnRate = $learnRate;
}
public function getLearnRate()
{
return $this->learnRate;
}
/**
* @param string $learnRateStrategy
*/
public function setLearnRateStrategy($learnRateStrategy)
{
$this->learnRateStrategy = $learnRateStrategy;
}
/**
* @return string
*/
public function getLearnRateStrategy()
{
return $this->learnRateStrategy;
}
public function setLineSearchInitLearnRate($lineSearchInitLearnRate)
{
$this->lineSearchInitLearnRate = $lineSearchInitLearnRate;
}
public function getLineSearchInitLearnRate()
{
return $this->lineSearchInitLearnRate;
}
/**
* @param string $maxIteration
*/
public function setMaxIteration($maxIteration)
{
$this->maxIteration = $maxIteration;
}
/**
* @return string
*/
public function getMaxIteration()
{
return $this->maxIteration;
}
public function setMinRelProgress($minRelProgress)
{
$this->minRelProgress = $minRelProgress;
}
public function getMinRelProgress()
{
return $this->minRelProgress;
}
/**
* @param bool $warmStart
*/
public function setWarmStart($warmStart)
{
$this->warmStart = $warmStart;
}
/**
* @return bool
*/
public function getWarmStart()
{
return $this->warmStart;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BqmlTrainingRunTrainingOptions::class, 'Google_Service_Bigquery_BqmlTrainingRunTrainingOptions');
@@ -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\Bigquery;
class CategoricalValue extends \Google\Collection
{
protected $collection_key = 'categoryCounts';
protected $categoryCountsType = CategoryCount::class;
protected $categoryCountsDataType = 'array';
/**
* Counts of all categories for the categorical feature. If there are more
* than ten categories, we return top ten (by count) and return one more
* CategoryCount with category "_OTHER_" and count as aggregate counts of
* remaining categories.
*
* @param CategoryCount[] $categoryCounts
*/
public function setCategoryCounts($categoryCounts)
{
$this->categoryCounts = $categoryCounts;
}
/**
* @return CategoryCount[]
*/
public function getCategoryCounts()
{
return $this->categoryCounts;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CategoricalValue::class, 'Google_Service_Bigquery_CategoricalValue');
@@ -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\Bigquery;
class CategoryCount extends \Google\Model
{
/**
* The name of category.
*
* @var string
*/
public $category;
/**
* The count of training samples matching the category within the cluster.
*
* @var string
*/
public $count;
/**
* The name of category.
*
* @param string $category
*/
public function setCategory($category)
{
$this->category = $category;
}
/**
* @return string
*/
public function getCategory()
{
return $this->category;
}
/**
* The count of training samples matching the category within the cluster.
*
* @param string $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CategoryCount::class, 'Google_Service_Bigquery_CategoryCount');
@@ -0,0 +1,68 @@
<?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\Bigquery;
class CloneDefinition extends \Google\Model
{
protected $baseTableReferenceType = TableReference::class;
protected $baseTableReferenceDataType = '';
/**
* Required. The time at which the base table was cloned. This value is
* reported in the JSON response using RFC3339 format.
*
* @var string
*/
public $cloneTime;
/**
* Required. Reference describing the ID of the table that was cloned.
*
* @param TableReference $baseTableReference
*/
public function setBaseTableReference(TableReference $baseTableReference)
{
$this->baseTableReference = $baseTableReference;
}
/**
* @return TableReference
*/
public function getBaseTableReference()
{
return $this->baseTableReference;
}
/**
* Required. The time at which the base table was cloned. This value is
* reported in the JSON response using RFC3339 format.
*
* @param string $cloneTime
*/
public function setCloneTime($cloneTime)
{
$this->cloneTime = $cloneTime;
}
/**
* @return string
*/
public function getCloneTime()
{
return $this->cloneTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloneDefinition::class, 'Google_Service_Bigquery_CloneDefinition');
@@ -0,0 +1,89 @@
<?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\Bigquery;
class Cluster extends \Google\Collection
{
protected $collection_key = 'featureValues';
/**
* Centroid id.
*
* @var string
*/
public $centroidId;
/**
* Count of training data rows that were assigned to this cluster.
*
* @var string
*/
public $count;
protected $featureValuesType = FeatureValue::class;
protected $featureValuesDataType = 'array';
/**
* Centroid id.
*
* @param string $centroidId
*/
public function setCentroidId($centroidId)
{
$this->centroidId = $centroidId;
}
/**
* @return string
*/
public function getCentroidId()
{
return $this->centroidId;
}
/**
* Count of training data rows that were assigned to this cluster.
*
* @param string $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
/**
* Values of highly variant features for this cluster.
*
* @param FeatureValue[] $featureValues
*/
public function setFeatureValues($featureValues)
{
$this->featureValues = $featureValues;
}
/**
* @return FeatureValue[]
*/
public function getFeatureValues()
{
return $this->featureValues;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Cluster::class, 'Google_Service_Bigquery_Cluster');
@@ -0,0 +1,85 @@
<?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\Bigquery;
class ClusterInfo extends \Google\Model
{
/**
* Centroid id.
*
* @var string
*/
public $centroidId;
/**
* Cluster radius, the average distance from centroid to each point assigned
* to the cluster.
*
* @var
*/
public $clusterRadius;
/**
* Cluster size, the total number of points assigned to the cluster.
*
* @var string
*/
public $clusterSize;
/**
* Centroid id.
*
* @param string $centroidId
*/
public function setCentroidId($centroidId)
{
$this->centroidId = $centroidId;
}
/**
* @return string
*/
public function getCentroidId()
{
return $this->centroidId;
}
public function setClusterRadius($clusterRadius)
{
$this->clusterRadius = $clusterRadius;
}
public function getClusterRadius()
{
return $this->clusterRadius;
}
/**
* Cluster size, the total number of points assigned to the cluster.
*
* @param string $clusterSize
*/
public function setClusterSize($clusterSize)
{
$this->clusterSize = $clusterSize;
}
/**
* @return string
*/
public function getClusterSize()
{
return $this->clusterSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusterInfo::class, 'Google_Service_Bigquery_ClusterInfo');
@@ -0,0 +1,59 @@
<?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\Bigquery;
class Clustering extends \Google\Collection
{
protected $collection_key = 'fields';
/**
* One or more fields on which data should be clustered. Only top-level, non-
* repeated, simple-type fields are supported. The ordering of the clustering
* fields should be prioritized from most to least important for filtering
* purposes. For additional information, see [Introduction to clustered
* tables](https://cloud.google.com/bigquery/docs/clustered-
* tables#limitations).
*
* @var string[]
*/
public $fields;
/**
* One or more fields on which data should be clustered. Only top-level, non-
* repeated, simple-type fields are supported. The ordering of the clustering
* fields should be prioritized from most to least important for filtering
* purposes. For additional information, see [Introduction to clustered
* tables](https://cloud.google.com/bigquery/docs/clustered-
* tables#limitations).
*
* @param string[] $fields
*/
public function setFields($fields)
{
$this->fields = $fields;
}
/**
* @return string[]
*/
public function getFields()
{
return $this->fields;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Clustering::class, 'Google_Service_Bigquery_Clustering');
@@ -0,0 +1,73 @@
<?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\Bigquery;
class ClusteringMetrics extends \Google\Collection
{
protected $collection_key = 'clusters';
protected $clustersType = Cluster::class;
protected $clustersDataType = 'array';
/**
* Davies-Bouldin index.
*
* @var
*/
public $daviesBouldinIndex;
/**
* Mean of squared distances between each sample to its cluster centroid.
*
* @var
*/
public $meanSquaredDistance;
/**
* Information for all clusters.
*
* @param Cluster[] $clusters
*/
public function setClusters($clusters)
{
$this->clusters = $clusters;
}
/**
* @return Cluster[]
*/
public function getClusters()
{
return $this->clusters;
}
public function setDaviesBouldinIndex($daviesBouldinIndex)
{
$this->daviesBouldinIndex = $daviesBouldinIndex;
}
public function getDaviesBouldinIndex()
{
return $this->daviesBouldinIndex;
}
public function setMeanSquaredDistance($meanSquaredDistance)
{
$this->meanSquaredDistance = $meanSquaredDistance;
}
public function getMeanSquaredDistance()
{
return $this->meanSquaredDistance;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClusteringMetrics::class, 'Google_Service_Bigquery_ClusteringMetrics');
@@ -0,0 +1,60 @@
<?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\Bigquery;
class ConfusionMatrix extends \Google\Collection
{
protected $collection_key = 'rows';
/**
* Confidence threshold used when computing the entries of the confusion
* matrix.
*
* @var
*/
public $confidenceThreshold;
protected $rowsType = Row::class;
protected $rowsDataType = 'array';
public function setConfidenceThreshold($confidenceThreshold)
{
$this->confidenceThreshold = $confidenceThreshold;
}
public function getConfidenceThreshold()
{
return $this->confidenceThreshold;
}
/**
* One row per actual label.
*
* @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(ConfusionMatrix::class, 'Google_Service_Bigquery_ConfusionMatrix');
@@ -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\Bigquery;
class ConnectionProperty extends \Google\Model
{
/**
* The key of the property to set.
*
* @var string
*/
public $key;
/**
* The value of the property to set.
*
* @var string
*/
public $value;
/**
* The key of the property to set.
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* The value of the property to set.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConnectionProperty::class, 'Google_Service_Bigquery_ConnectionProperty');
@@ -0,0 +1,355 @@
<?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\Bigquery;
class CsvOptions extends \Google\Collection
{
protected $collection_key = 'nullMarkers';
/**
* Optional. Indicates if BigQuery should accept rows that are missing
* trailing optional columns. If true, BigQuery treats missing trailing
* columns as null values. If false, records with missing trailing columns are
* treated as bad records, and if there are too many bad records, an invalid
* error is returned in the job result. The default value is false.
*
* @var bool
*/
public $allowJaggedRows;
/**
* Optional. Indicates if BigQuery should allow quoted data sections that
* contain newline characters in a CSV file. The default value is false.
*
* @var bool
*/
public $allowQuotedNewlines;
/**
* Optional. The character encoding of the data. The supported values are
* UTF-8, ISO-8859-1, UTF-16BE, UTF-16LE, UTF-32BE, and UTF-32LE. The default
* value is UTF-8. BigQuery decodes the data after the raw, binary data has
* been split using the values of the quote and fieldDelimiter properties.
*
* @var string
*/
public $encoding;
/**
* Optional. The separator character for fields in a CSV file. The separator
* is interpreted as a single byte. For files encoded in ISO-8859-1, any
* single character can be used as a separator. For files encoded in UTF-8,
* characters represented in decimal range 1-127 (U+0001-U+007F) can be used
* without any modification. UTF-8 characters encoded with multiple bytes
* (i.e. U+0080 and above) will have only the first byte used for separating
* fields. The remaining bytes will be treated as a part of the field.
* BigQuery also supports the escape sequence "\t" (U+0009) to specify a tab
* separator. The default value is comma (",", U+002C).
*
* @var string
*/
public $fieldDelimiter;
/**
* Optional. Specifies a string that represents a null value in a CSV file.
* For example, if you specify "\N", BigQuery interprets "\N" as a null value
* when querying a CSV file. The default value is the empty string. If you set
* this property to a custom value, BigQuery throws an error if an empty
* string is present for all data types except for STRING and BYTE. For STRING
* and BYTE columns, BigQuery interprets the empty string as an empty value.
*
* @var string
*/
public $nullMarker;
/**
* Optional. A list of strings represented as SQL NULL value in a CSV file.
* null_marker and null_markers can't be set at the same time. If null_marker
* is set, null_markers has to be not set. If null_markers is set, null_marker
* has to be not set. If both null_marker and null_markers are set at the same
* time, a user error would be thrown. Any strings listed in null_markers,
* including empty string would be interpreted as SQL NULL. This applies to
* all column types.
*
* @var string[]
*/
public $nullMarkers;
/**
* Optional. Indicates if the embedded ASCII control characters (the first 32
* characters in the ASCII-table, from '\x00' to '\x1F') are preserved.
*
* @var bool
*/
public $preserveAsciiControlCharacters;
/**
* Optional. The value that is used to quote data sections in a CSV file.
* BigQuery converts the string to ISO-8859-1 encoding, and then uses the
* first byte of the encoded string to split the data in its raw, binary
* state. The default value is a double-quote ("). If your data does not
* contain quoted sections, set the property value to an empty string. If your
* data contains quoted newline characters, you must also set the
* allowQuotedNewlines property to true. To include the specific quote
* character within a quoted value, precede it with an additional matching
* quote character. For example, if you want to escape the default character '
* " ', use ' "" '.
*
* @var string
*/
public $quote;
/**
* Optional. The number of rows at the top of a CSV file that BigQuery will
* skip when reading the data. The default value is 0. This property is useful
* if you have header rows in the file that should be skipped. When autodetect
* is on, the behavior is the following: * skipLeadingRows unspecified -
* Autodetect tries to detect headers in the first row. If they are not
* detected, the row is read as data. Otherwise data is read starting from the
* second row. * skipLeadingRows is 0 - Instructs autodetect that there are no
* headers and data should be read starting from the first row. *
* skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect
* headers in row N. If headers are not detected, row N is just skipped.
* Otherwise row N is used to extract column names for the detected schema.
*
* @var string
*/
public $skipLeadingRows;
/**
* Optional. Controls the strategy used to match loaded columns to the schema.
* If not set, a sensible default is chosen based on how the schema is
* provided. If autodetect is used, then columns are matched by name.
* Otherwise, columns are matched by position. This is done to keep the
* behavior backward-compatible. Acceptable values are: POSITION - matches by
* position. This assumes that the columns are ordered the same way as the
* schema. NAME - matches by name. This reads the header row as column names
* and reorders columns to match the field names in the schema.
*
* @var string
*/
public $sourceColumnMatch;
/**
* Optional. Indicates if BigQuery should accept rows that are missing
* trailing optional columns. If true, BigQuery treats missing trailing
* columns as null values. If false, records with missing trailing columns are
* treated as bad records, and if there are too many bad records, an invalid
* error is returned in the job result. The default value is false.
*
* @param bool $allowJaggedRows
*/
public function setAllowJaggedRows($allowJaggedRows)
{
$this->allowJaggedRows = $allowJaggedRows;
}
/**
* @return bool
*/
public function getAllowJaggedRows()
{
return $this->allowJaggedRows;
}
/**
* Optional. Indicates if BigQuery should allow quoted data sections that
* contain newline characters in a CSV file. The default value is false.
*
* @param bool $allowQuotedNewlines
*/
public function setAllowQuotedNewlines($allowQuotedNewlines)
{
$this->allowQuotedNewlines = $allowQuotedNewlines;
}
/**
* @return bool
*/
public function getAllowQuotedNewlines()
{
return $this->allowQuotedNewlines;
}
/**
* Optional. The character encoding of the data. The supported values are
* UTF-8, ISO-8859-1, UTF-16BE, UTF-16LE, UTF-32BE, and UTF-32LE. The default
* value is UTF-8. BigQuery decodes the data after the raw, binary data has
* been split using the values of the quote and fieldDelimiter properties.
*
* @param string $encoding
*/
public function setEncoding($encoding)
{
$this->encoding = $encoding;
}
/**
* @return string
*/
public function getEncoding()
{
return $this->encoding;
}
/**
* Optional. The separator character for fields in a CSV file. The separator
* is interpreted as a single byte. For files encoded in ISO-8859-1, any
* single character can be used as a separator. For files encoded in UTF-8,
* characters represented in decimal range 1-127 (U+0001-U+007F) can be used
* without any modification. UTF-8 characters encoded with multiple bytes
* (i.e. U+0080 and above) will have only the first byte used for separating
* fields. The remaining bytes will be treated as a part of the field.
* BigQuery also supports the escape sequence "\t" (U+0009) to specify a tab
* separator. The default value is comma (",", U+002C).
*
* @param string $fieldDelimiter
*/
public function setFieldDelimiter($fieldDelimiter)
{
$this->fieldDelimiter = $fieldDelimiter;
}
/**
* @return string
*/
public function getFieldDelimiter()
{
return $this->fieldDelimiter;
}
/**
* Optional. Specifies a string that represents a null value in a CSV file.
* For example, if you specify "\N", BigQuery interprets "\N" as a null value
* when querying a CSV file. The default value is the empty string. If you set
* this property to a custom value, BigQuery throws an error if an empty
* string is present for all data types except for STRING and BYTE. For STRING
* and BYTE columns, BigQuery interprets the empty string as an empty value.
*
* @param string $nullMarker
*/
public function setNullMarker($nullMarker)
{
$this->nullMarker = $nullMarker;
}
/**
* @return string
*/
public function getNullMarker()
{
return $this->nullMarker;
}
/**
* Optional. A list of strings represented as SQL NULL value in a CSV file.
* null_marker and null_markers can't be set at the same time. If null_marker
* is set, null_markers has to be not set. If null_markers is set, null_marker
* has to be not set. If both null_marker and null_markers are set at the same
* time, a user error would be thrown. Any strings listed in null_markers,
* including empty string would be interpreted as SQL NULL. This applies to
* all column types.
*
* @param string[] $nullMarkers
*/
public function setNullMarkers($nullMarkers)
{
$this->nullMarkers = $nullMarkers;
}
/**
* @return string[]
*/
public function getNullMarkers()
{
return $this->nullMarkers;
}
/**
* Optional. Indicates if the embedded ASCII control characters (the first 32
* characters in the ASCII-table, from '\x00' to '\x1F') are preserved.
*
* @param bool $preserveAsciiControlCharacters
*/
public function setPreserveAsciiControlCharacters($preserveAsciiControlCharacters)
{
$this->preserveAsciiControlCharacters = $preserveAsciiControlCharacters;
}
/**
* @return bool
*/
public function getPreserveAsciiControlCharacters()
{
return $this->preserveAsciiControlCharacters;
}
/**
* Optional. The value that is used to quote data sections in a CSV file.
* BigQuery converts the string to ISO-8859-1 encoding, and then uses the
* first byte of the encoded string to split the data in its raw, binary
* state. The default value is a double-quote ("). If your data does not
* contain quoted sections, set the property value to an empty string. If your
* data contains quoted newline characters, you must also set the
* allowQuotedNewlines property to true. To include the specific quote
* character within a quoted value, precede it with an additional matching
* quote character. For example, if you want to escape the default character '
* " ', use ' "" '.
*
* @param string $quote
*/
public function setQuote($quote)
{
$this->quote = $quote;
}
/**
* @return string
*/
public function getQuote()
{
return $this->quote;
}
/**
* Optional. The number of rows at the top of a CSV file that BigQuery will
* skip when reading the data. The default value is 0. This property is useful
* if you have header rows in the file that should be skipped. When autodetect
* is on, the behavior is the following: * skipLeadingRows unspecified -
* Autodetect tries to detect headers in the first row. If they are not
* detected, the row is read as data. Otherwise data is read starting from the
* second row. * skipLeadingRows is 0 - Instructs autodetect that there are no
* headers and data should be read starting from the first row. *
* skipLeadingRows = N > 0 - Autodetect skips N-1 rows and tries to detect
* headers in row N. If headers are not detected, row N is just skipped.
* Otherwise row N is used to extract column names for the detected schema.
*
* @param string $skipLeadingRows
*/
public function setSkipLeadingRows($skipLeadingRows)
{
$this->skipLeadingRows = $skipLeadingRows;
}
/**
* @return string
*/
public function getSkipLeadingRows()
{
return $this->skipLeadingRows;
}
/**
* Optional. Controls the strategy used to match loaded columns to the schema.
* If not set, a sensible default is chosen based on how the schema is
* provided. If autodetect is used, then columns are matched by name.
* Otherwise, columns are matched by position. This is done to keep the
* behavior backward-compatible. Acceptable values are: POSITION - matches by
* position. This assumes that the columns are ordered the same way as the
* schema. NAME - matches by name. This reads the header row as column names
* and reorders columns to match the field names in the schema.
*
* @param string $sourceColumnMatch
*/
public function setSourceColumnMatch($sourceColumnMatch)
{
$this->sourceColumnMatch = $sourceColumnMatch;
}
/**
* @return string
*/
public function getSourceColumnMatch()
{
return $this->sourceColumnMatch;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CsvOptions::class, 'Google_Service_Bigquery_CsvOptions');
@@ -0,0 +1,94 @@
<?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\Bigquery;
class DataFormatOptions extends \Google\Model
{
/**
* Corresponds to default API output behavior, which is FLOAT64.
*/
public const TIMESTAMP_OUTPUT_FORMAT_TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED = 'TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED';
/**
* Timestamp is output as float64 seconds since Unix epoch.
*/
public const TIMESTAMP_OUTPUT_FORMAT_FLOAT64 = 'FLOAT64';
/**
* Timestamp is output as int64 microseconds since Unix epoch.
*/
public const TIMESTAMP_OUTPUT_FORMAT_INT64 = 'INT64';
/**
* Timestamp is output as ISO 8601 String ("YYYY-MM-
* DDTHH:MM:SS.FFFFFFFFFFFFZ").
*/
public const TIMESTAMP_OUTPUT_FORMAT_ISO8601_STRING = 'ISO8601_STRING';
/**
* Optional. The API output format for a timestamp. This offers more explicit
* control over the timestamp output format as compared to the existing
* `use_int64_timestamp` option.
*
* @var string
*/
public $timestampOutputFormat;
/**
* Optional. Output timestamp as usec int64. Default is false.
*
* @var bool
*/
public $useInt64Timestamp;
/**
* Optional. The API output format for a timestamp. This offers more explicit
* control over the timestamp output format as compared to the existing
* `use_int64_timestamp` option.
*
* Accepted values: TIMESTAMP_OUTPUT_FORMAT_UNSPECIFIED, FLOAT64, INT64,
* ISO8601_STRING
*
* @param self::TIMESTAMP_OUTPUT_FORMAT_* $timestampOutputFormat
*/
public function setTimestampOutputFormat($timestampOutputFormat)
{
$this->timestampOutputFormat = $timestampOutputFormat;
}
/**
* @return self::TIMESTAMP_OUTPUT_FORMAT_*
*/
public function getTimestampOutputFormat()
{
return $this->timestampOutputFormat;
}
/**
* Optional. Output timestamp as usec int64. Default is false.
*
* @param bool $useInt64Timestamp
*/
public function setUseInt64Timestamp($useInt64Timestamp)
{
$this->useInt64Timestamp = $useInt64Timestamp;
}
/**
* @return bool
*/
public function getUseInt64Timestamp()
{
return $this->useInt64Timestamp;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataFormatOptions::class, 'Google_Service_Bigquery_DataFormatOptions');
@@ -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\Bigquery;
class DataMaskingStatistics extends \Google\Model
{
/**
* Whether any accessed data was protected by the data masking.
*
* @var bool
*/
public $dataMaskingApplied;
/**
* Whether any accessed data was protected by the data masking.
*
* @param bool $dataMaskingApplied
*/
public function setDataMaskingApplied($dataMaskingApplied)
{
$this->dataMaskingApplied = $dataMaskingApplied;
}
/**
* @return bool
*/
public function getDataMaskingApplied()
{
return $this->dataMaskingApplied;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataMaskingStatistics::class, 'Google_Service_Bigquery_DataMaskingStatistics');
@@ -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\Bigquery;
class DataPolicyList extends \Google\Collection
{
protected $collection_key = 'dataPolicies';
protected $dataPoliciesType = DataPolicyOption::class;
protected $dataPoliciesDataType = 'array';
/**
* Contains a list of data policy options. At most 9 data policies are allowed
* per field.
*
* @param DataPolicyOption[] $dataPolicies
*/
public function setDataPolicies($dataPolicies)
{
$this->dataPolicies = $dataPolicies;
}
/**
* @return DataPolicyOption[]
*/
public function getDataPolicies()
{
return $this->dataPolicies;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataPolicyList::class, 'Google_Service_Bigquery_DataPolicyList');
@@ -0,0 +1,50 @@
<?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\Bigquery;
class DataPolicyOption extends \Google\Model
{
/**
* Data policy resource name in the form of
* projects/project_id/locations/location_id/dataPolicies/data_policy_id.
*
* @var string
*/
public $name;
/**
* Data policy resource name in the form of
* projects/project_id/locations/location_id/dataPolicies/data_policy_id.
*
* @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(DataPolicyOption::class, 'Google_Service_Bigquery_DataPolicyOption');
@@ -0,0 +1,80 @@
<?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\Bigquery;
class DataSplitResult extends \Google\Model
{
protected $evaluationTableType = TableReference::class;
protected $evaluationTableDataType = '';
protected $testTableType = TableReference::class;
protected $testTableDataType = '';
protected $trainingTableType = TableReference::class;
protected $trainingTableDataType = '';
/**
* Table reference of the evaluation data after split.
*
* @param TableReference $evaluationTable
*/
public function setEvaluationTable(TableReference $evaluationTable)
{
$this->evaluationTable = $evaluationTable;
}
/**
* @return TableReference
*/
public function getEvaluationTable()
{
return $this->evaluationTable;
}
/**
* Table reference of the test data after split.
*
* @param TableReference $testTable
*/
public function setTestTable(TableReference $testTable)
{
$this->testTable = $testTable;
}
/**
* @return TableReference
*/
public function getTestTable()
{
return $this->testTable;
}
/**
* Table reference of the training data after split.
*
* @param TableReference $trainingTable
*/
public function setTrainingTable(TableReference $trainingTable)
{
$this->trainingTable = $trainingTable;
}
/**
* @return TableReference
*/
public function getTrainingTable()
{
return $this->trainingTable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataSplitResult::class, 'Google_Service_Bigquery_DataSplitResult');
@@ -0,0 +1,853 @@
<?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\Bigquery;
class Dataset extends \Google\Collection
{
/**
* Unspecified will default to using ROUND_HALF_AWAY_FROM_ZERO.
*/
public const DEFAULT_ROUNDING_MODE_ROUNDING_MODE_UNSPECIFIED = 'ROUNDING_MODE_UNSPECIFIED';
/**
* ROUND_HALF_AWAY_FROM_ZERO rounds half values away from zero when applying
* precision and scale upon writing of NUMERIC and BIGNUMERIC values. For
* Scale: 0 1.1, 1.2, 1.3, 1.4 => 1 1.5, 1.6, 1.7, 1.8, 1.9 => 2
*/
public const DEFAULT_ROUNDING_MODE_ROUND_HALF_AWAY_FROM_ZERO = 'ROUND_HALF_AWAY_FROM_ZERO';
/**
* ROUND_HALF_EVEN rounds half values to the nearest even value when applying
* precision and scale upon writing of NUMERIC and BIGNUMERIC values. For
* Scale: 0 1.1, 1.2, 1.3, 1.4 => 1 1.5 => 2 1.6, 1.7, 1.8, 1.9 => 2 2.5 => 2
*/
public const DEFAULT_ROUNDING_MODE_ROUND_HALF_EVEN = 'ROUND_HALF_EVEN';
/**
* Value not set.
*/
public const STORAGE_BILLING_MODEL_STORAGE_BILLING_MODEL_UNSPECIFIED = 'STORAGE_BILLING_MODEL_UNSPECIFIED';
/**
* Billing for logical bytes.
*/
public const STORAGE_BILLING_MODEL_LOGICAL = 'LOGICAL';
/**
* Billing for physical bytes.
*/
public const STORAGE_BILLING_MODEL_PHYSICAL = 'PHYSICAL';
protected $collection_key = 'tags';
protected $accessType = DatasetAccess::class;
protected $accessDataType = 'array';
/**
* Output only. The origin of the dataset, one of: * (Unset) - Native BigQuery
* Dataset * BIGLAKE - Dataset is backed by a namespace stored natively in
* Biglake
*
* @var string
*/
public $catalogSource;
/**
* Output only. The time when this dataset was created, in milliseconds since
* the epoch.
*
* @var string
*/
public $creationTime;
protected $datasetReferenceType = DatasetReference::class;
protected $datasetReferenceDataType = '';
/**
* Optional. Defines the default collation specification of future tables
* created in the dataset. If a table is created in this dataset without
* table-level default collation, then the table inherits the dataset default
* collation, which is applied to the string fields that do not have explicit
* collation specified. A change to this field affects only tables created
* afterwards, and does not alter the existing tables. The following values
* are supported: * 'und:ci': undetermined locale, case insensitive. * '':
* empty string. Default to case-sensitive behavior.
*
* @var string
*/
public $defaultCollation;
protected $defaultEncryptionConfigurationType = EncryptionConfiguration::class;
protected $defaultEncryptionConfigurationDataType = '';
/**
* This default partition expiration, expressed in milliseconds. When new
* time-partitioned tables are created in a dataset where this property is
* set, the table will inherit this value, propagated as the
* `TimePartitioning.expirationMs` property on the new table. If you set
* `TimePartitioning.expirationMs` explicitly when creating a table, the
* `defaultPartitionExpirationMs` of the containing dataset is ignored. When
* creating a partitioned table, if `defaultPartitionExpirationMs` is set, the
* `defaultTableExpirationMs` value is ignored and the table will not be
* inherit a table expiration deadline.
*
* @var string
*/
public $defaultPartitionExpirationMs;
/**
* Optional. Defines the default rounding mode specification of new tables
* created within this dataset. During table creation, if this field is
* specified, the table within this dataset will inherit the default rounding
* mode of the dataset. Setting the default rounding mode on a table overrides
* this option. Existing tables in the dataset are unaffected. If columns are
* defined during that table creation, they will immediately inherit the
* table's default rounding mode, unless otherwise specified.
*
* @var string
*/
public $defaultRoundingMode;
/**
* Optional. The default lifetime of all tables in the dataset, in
* milliseconds. The minimum lifetime value is 3600000 milliseconds (one
* hour). To clear an existing default expiration with a PATCH request, set to
* 0. Once this property is set, all newly-created tables in the dataset will
* have an expirationTime property set to the creation time plus the value in
* this property, and changing the value will only affect new tables, not
* existing ones. When the expirationTime for a given table is reached, that
* table will be deleted automatically. If a table's expirationTime is
* modified or removed before the table expires, or if you provide an explicit
* expirationTime when creating a table, that value takes precedence over the
* default expiration time indicated by this property.
*
* @var string
*/
public $defaultTableExpirationMs;
/**
* Optional. A user-friendly description of the dataset.
*
* @var string
*/
public $description;
/**
* Output only. A hash of the resource.
*
* @var string
*/
public $etag;
protected $externalCatalogDatasetOptionsType = ExternalCatalogDatasetOptions::class;
protected $externalCatalogDatasetOptionsDataType = '';
protected $externalDatasetReferenceType = ExternalDatasetReference::class;
protected $externalDatasetReferenceDataType = '';
/**
* Optional. A descriptive name for the dataset.
*
* @var string
*/
public $friendlyName;
/**
* Output only. The fully-qualified unique name of the dataset in the format
* projectId:datasetId. The dataset name without the project name is given in
* the datasetId field. When creating a new dataset, leave this field blank,
* and instead specify the datasetId field.
*
* @var string
*/
public $id;
/**
* Optional. TRUE if the dataset and its table names are case-insensitive,
* otherwise FALSE. By default, this is FALSE, which means the dataset and its
* table names are case-sensitive. This field does not affect routine
* references.
*
* @var bool
*/
public $isCaseInsensitive;
/**
* Output only. The resource type.
*
* @var string
*/
public $kind;
/**
* The labels associated with this dataset. You can use these to organize and
* group your datasets. You can set this property when inserting or updating a
* dataset. See [Creating and Updating Dataset
* Labels](https://cloud.google.com/bigquery/docs/creating-managing-
* labels#creating_and_updating_dataset_labels) for more information.
*
* @var string[]
*/
public $labels;
/**
* Output only. The date when this dataset was last modified, in milliseconds
* since the epoch.
*
* @var string
*/
public $lastModifiedTime;
protected $linkedDatasetMetadataType = LinkedDatasetMetadata::class;
protected $linkedDatasetMetadataDataType = '';
protected $linkedDatasetSourceType = LinkedDatasetSource::class;
protected $linkedDatasetSourceDataType = '';
/**
* The geographic location where the dataset should reside. See
* https://cloud.google.com/bigquery/docs/locations for supported locations.
*
* @var string
*/
public $location;
/**
* Optional. Defines the time travel window in hours. The value can be from 48
* to 168 hours (2 to 7 days). The default value is 168 hours if this is not
* set.
*
* @var string
*/
public $maxTimeTravelHours;
/**
* Optional. The [tags](https://cloud.google.com/bigquery/docs/tags) attached
* to this dataset. Tag keys are globally unique. Tag key is expected to be in
* the namespaced format, for example "123456789012/environment" where
* 123456789012 is the ID of the parent organization or project resource for
* this tag key. Tag value is expected to be the short name, for example
* "Production". See [Tag definitions](https://cloud.google.com/iam/docs/tags-
* access-control#definitions) for more details.
*
* @var string[]
*/
public $resourceTags;
protected $restrictionsType = RestrictionConfig::class;
protected $restrictionsDataType = '';
/**
* Output only. Reserved for future use.
*
* @var bool
*/
public $satisfiesPzi;
/**
* Output only. Reserved for future use.
*
* @var bool
*/
public $satisfiesPzs;
/**
* Output only. A URL that can be used to access the resource again. You can
* use this URL in Get or Update requests to the resource.
*
* @var string
*/
public $selfLink;
/**
* Optional. Updates storage_billing_model for the dataset.
*
* @var string
*/
public $storageBillingModel;
protected $tagsType = DatasetTags::class;
protected $tagsDataType = 'array';
/**
* Output only. Same as `type` in `ListFormatDataset`. The type of the
* dataset, one of: * DEFAULT - only accessible by owner and authorized
* accounts, * PUBLIC - accessible by everyone, * LINKED - linked dataset, *
* EXTERNAL - dataset with definition in external metadata catalog, *
* BIGLAKE_ICEBERG - a Biglake dataset accessible through the Iceberg API, *
* BIGLAKE_HIVE - a Biglake dataset accessible through the Hive API.
*
* @var string
*/
public $type;
/**
* Optional. An array of objects that define dataset access for one or more
* entities. You can set this property when inserting or updating a dataset in
* order to control who is allowed to access the data. If unspecified at
* dataset creation time, BigQuery adds default dataset access for the
* following entities: access.specialGroup: projectReaders; access.role:
* READER; access.specialGroup: projectWriters; access.role: WRITER;
* access.specialGroup: projectOwners; access.role: OWNER; access.userByEmail:
* [dataset creator email]; access.role: OWNER; If you patch a dataset, then
* this field is overwritten by the patched dataset's access field. To add
* entities, you must supply the entire existing access array in addition to
* any new entities that you want to add.
*
* @param DatasetAccess[] $access
*/
public function setAccess($access)
{
$this->access = $access;
}
/**
* @return DatasetAccess[]
*/
public function getAccess()
{
return $this->access;
}
/**
* Output only. The origin of the dataset, one of: * (Unset) - Native BigQuery
* Dataset * BIGLAKE - Dataset is backed by a namespace stored natively in
* Biglake
*
* @param string $catalogSource
*/
public function setCatalogSource($catalogSource)
{
$this->catalogSource = $catalogSource;
}
/**
* @return string
*/
public function getCatalogSource()
{
return $this->catalogSource;
}
/**
* Output only. The time when this dataset was created, in milliseconds since
* the epoch.
*
* @param string $creationTime
*/
public function setCreationTime($creationTime)
{
$this->creationTime = $creationTime;
}
/**
* @return string
*/
public function getCreationTime()
{
return $this->creationTime;
}
/**
* Required. A reference that identifies the dataset.
*
* @param DatasetReference $datasetReference
*/
public function setDatasetReference(DatasetReference $datasetReference)
{
$this->datasetReference = $datasetReference;
}
/**
* @return DatasetReference
*/
public function getDatasetReference()
{
return $this->datasetReference;
}
/**
* Optional. Defines the default collation specification of future tables
* created in the dataset. If a table is created in this dataset without
* table-level default collation, then the table inherits the dataset default
* collation, which is applied to the string fields that do not have explicit
* collation specified. A change to this field affects only tables created
* afterwards, and does not alter the existing tables. The following values
* are supported: * 'und:ci': undetermined locale, case insensitive. * '':
* empty string. Default to case-sensitive behavior.
*
* @param string $defaultCollation
*/
public function setDefaultCollation($defaultCollation)
{
$this->defaultCollation = $defaultCollation;
}
/**
* @return string
*/
public function getDefaultCollation()
{
return $this->defaultCollation;
}
/**
* The default encryption key for all tables in the dataset. After this
* property is set, the encryption key of all newly-created tables in the
* dataset is set to this value unless the table creation request or query
* explicitly overrides the key.
*
* @param EncryptionConfiguration $defaultEncryptionConfiguration
*/
public function setDefaultEncryptionConfiguration(EncryptionConfiguration $defaultEncryptionConfiguration)
{
$this->defaultEncryptionConfiguration = $defaultEncryptionConfiguration;
}
/**
* @return EncryptionConfiguration
*/
public function getDefaultEncryptionConfiguration()
{
return $this->defaultEncryptionConfiguration;
}
/**
* This default partition expiration, expressed in milliseconds. When new
* time-partitioned tables are created in a dataset where this property is
* set, the table will inherit this value, propagated as the
* `TimePartitioning.expirationMs` property on the new table. If you set
* `TimePartitioning.expirationMs` explicitly when creating a table, the
* `defaultPartitionExpirationMs` of the containing dataset is ignored. When
* creating a partitioned table, if `defaultPartitionExpirationMs` is set, the
* `defaultTableExpirationMs` value is ignored and the table will not be
* inherit a table expiration deadline.
*
* @param string $defaultPartitionExpirationMs
*/
public function setDefaultPartitionExpirationMs($defaultPartitionExpirationMs)
{
$this->defaultPartitionExpirationMs = $defaultPartitionExpirationMs;
}
/**
* @return string
*/
public function getDefaultPartitionExpirationMs()
{
return $this->defaultPartitionExpirationMs;
}
/**
* Optional. Defines the default rounding mode specification of new tables
* created within this dataset. During table creation, if this field is
* specified, the table within this dataset will inherit the default rounding
* mode of the dataset. Setting the default rounding mode on a table overrides
* this option. Existing tables in the dataset are unaffected. If columns are
* defined during that table creation, they will immediately inherit the
* table's default rounding mode, unless otherwise specified.
*
* Accepted values: ROUNDING_MODE_UNSPECIFIED, ROUND_HALF_AWAY_FROM_ZERO,
* ROUND_HALF_EVEN
*
* @param self::DEFAULT_ROUNDING_MODE_* $defaultRoundingMode
*/
public function setDefaultRoundingMode($defaultRoundingMode)
{
$this->defaultRoundingMode = $defaultRoundingMode;
}
/**
* @return self::DEFAULT_ROUNDING_MODE_*
*/
public function getDefaultRoundingMode()
{
return $this->defaultRoundingMode;
}
/**
* Optional. The default lifetime of all tables in the dataset, in
* milliseconds. The minimum lifetime value is 3600000 milliseconds (one
* hour). To clear an existing default expiration with a PATCH request, set to
* 0. Once this property is set, all newly-created tables in the dataset will
* have an expirationTime property set to the creation time plus the value in
* this property, and changing the value will only affect new tables, not
* existing ones. When the expirationTime for a given table is reached, that
* table will be deleted automatically. If a table's expirationTime is
* modified or removed before the table expires, or if you provide an explicit
* expirationTime when creating a table, that value takes precedence over the
* default expiration time indicated by this property.
*
* @param string $defaultTableExpirationMs
*/
public function setDefaultTableExpirationMs($defaultTableExpirationMs)
{
$this->defaultTableExpirationMs = $defaultTableExpirationMs;
}
/**
* @return string
*/
public function getDefaultTableExpirationMs()
{
return $this->defaultTableExpirationMs;
}
/**
* Optional. A user-friendly description of the dataset.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. A hash of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. Options defining open source compatible datasets living in the
* BigQuery catalog. Contains metadata of open source database, schema or
* namespace represented by the current dataset.
*
* @param ExternalCatalogDatasetOptions $externalCatalogDatasetOptions
*/
public function setExternalCatalogDatasetOptions(ExternalCatalogDatasetOptions $externalCatalogDatasetOptions)
{
$this->externalCatalogDatasetOptions = $externalCatalogDatasetOptions;
}
/**
* @return ExternalCatalogDatasetOptions
*/
public function getExternalCatalogDatasetOptions()
{
return $this->externalCatalogDatasetOptions;
}
/**
* Optional. Reference to a read-only external dataset defined in data
* catalogs outside of BigQuery. Filled out when the dataset type is EXTERNAL.
*
* @param ExternalDatasetReference $externalDatasetReference
*/
public function setExternalDatasetReference(ExternalDatasetReference $externalDatasetReference)
{
$this->externalDatasetReference = $externalDatasetReference;
}
/**
* @return ExternalDatasetReference
*/
public function getExternalDatasetReference()
{
return $this->externalDatasetReference;
}
/**
* Optional. A descriptive name for the dataset.
*
* @param string $friendlyName
*/
public function setFriendlyName($friendlyName)
{
$this->friendlyName = $friendlyName;
}
/**
* @return string
*/
public function getFriendlyName()
{
return $this->friendlyName;
}
/**
* Output only. The fully-qualified unique name of the dataset in the format
* projectId:datasetId. The dataset name without the project name is given in
* the datasetId field. When creating a new dataset, leave this field blank,
* and instead specify the datasetId field.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Optional. TRUE if the dataset and its table names are case-insensitive,
* otherwise FALSE. By default, this is FALSE, which means the dataset and its
* table names are case-sensitive. This field does not affect routine
* references.
*
* @param bool $isCaseInsensitive
*/
public function setIsCaseInsensitive($isCaseInsensitive)
{
$this->isCaseInsensitive = $isCaseInsensitive;
}
/**
* @return bool
*/
public function getIsCaseInsensitive()
{
return $this->isCaseInsensitive;
}
/**
* Output only. The resource type.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The labels associated with this dataset. You can use these to organize and
* group your datasets. You can set this property when inserting or updating a
* dataset. See [Creating and Updating Dataset
* Labels](https://cloud.google.com/bigquery/docs/creating-managing-
* labels#creating_and_updating_dataset_labels) for more information.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. The date when this dataset was last modified, in milliseconds
* since the epoch.
*
* @param string $lastModifiedTime
*/
public function setLastModifiedTime($lastModifiedTime)
{
$this->lastModifiedTime = $lastModifiedTime;
}
/**
* @return string
*/
public function getLastModifiedTime()
{
return $this->lastModifiedTime;
}
/**
* Output only. Metadata about the LinkedDataset. Filled out when the dataset
* type is LINKED.
*
* @param LinkedDatasetMetadata $linkedDatasetMetadata
*/
public function setLinkedDatasetMetadata(LinkedDatasetMetadata $linkedDatasetMetadata)
{
$this->linkedDatasetMetadata = $linkedDatasetMetadata;
}
/**
* @return LinkedDatasetMetadata
*/
public function getLinkedDatasetMetadata()
{
return $this->linkedDatasetMetadata;
}
/**
* Optional. The source dataset reference when the dataset is of type LINKED.
* For all other dataset types it is not set. This field cannot be updated
* once it is set. Any attempt to update this field using Update and Patch API
* Operations will be ignored.
*
* @param LinkedDatasetSource $linkedDatasetSource
*/
public function setLinkedDatasetSource(LinkedDatasetSource $linkedDatasetSource)
{
$this->linkedDatasetSource = $linkedDatasetSource;
}
/**
* @return LinkedDatasetSource
*/
public function getLinkedDatasetSource()
{
return $this->linkedDatasetSource;
}
/**
* The geographic location where the dataset should reside. See
* https://cloud.google.com/bigquery/docs/locations for supported locations.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Optional. Defines the time travel window in hours. The value can be from 48
* to 168 hours (2 to 7 days). The default value is 168 hours if this is not
* set.
*
* @param string $maxTimeTravelHours
*/
public function setMaxTimeTravelHours($maxTimeTravelHours)
{
$this->maxTimeTravelHours = $maxTimeTravelHours;
}
/**
* @return string
*/
public function getMaxTimeTravelHours()
{
return $this->maxTimeTravelHours;
}
/**
* Optional. The [tags](https://cloud.google.com/bigquery/docs/tags) attached
* to this dataset. Tag keys are globally unique. Tag key is expected to be in
* the namespaced format, for example "123456789012/environment" where
* 123456789012 is the ID of the parent organization or project resource for
* this tag key. Tag value is expected to be the short name, for example
* "Production". See [Tag definitions](https://cloud.google.com/iam/docs/tags-
* access-control#definitions) for more details.
*
* @param string[] $resourceTags
*/
public function setResourceTags($resourceTags)
{
$this->resourceTags = $resourceTags;
}
/**
* @return string[]
*/
public function getResourceTags()
{
return $this->resourceTags;
}
/**
* Optional. Output only. Restriction config for all tables and dataset. If
* set, restrict certain accesses on the dataset and all its tables based on
* the config. See [Data
* egress](https://cloud.google.com/bigquery/docs/analytics-hub-
* introduction#data_egress) for more details.
*
* @param RestrictionConfig $restrictions
*/
public function setRestrictions(RestrictionConfig $restrictions)
{
$this->restrictions = $restrictions;
}
/**
* @return RestrictionConfig
*/
public function getRestrictions()
{
return $this->restrictions;
}
/**
* Output only. Reserved for future use.
*
* @param bool $satisfiesPzi
*/
public function setSatisfiesPzi($satisfiesPzi)
{
$this->satisfiesPzi = $satisfiesPzi;
}
/**
* @return bool
*/
public function getSatisfiesPzi()
{
return $this->satisfiesPzi;
}
/**
* Output only. Reserved for future use.
*
* @param bool $satisfiesPzs
*/
public function setSatisfiesPzs($satisfiesPzs)
{
$this->satisfiesPzs = $satisfiesPzs;
}
/**
* @return bool
*/
public function getSatisfiesPzs()
{
return $this->satisfiesPzs;
}
/**
* Output only. A URL that can be used to access the resource again. You can
* use this URL in Get or Update requests to the resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Optional. Updates storage_billing_model for the dataset.
*
* Accepted values: STORAGE_BILLING_MODEL_UNSPECIFIED, LOGICAL, PHYSICAL
*
* @param self::STORAGE_BILLING_MODEL_* $storageBillingModel
*/
public function setStorageBillingModel($storageBillingModel)
{
$this->storageBillingModel = $storageBillingModel;
}
/**
* @return self::STORAGE_BILLING_MODEL_*
*/
public function getStorageBillingModel()
{
return $this->storageBillingModel;
}
/**
* Output only. Tags for the dataset. To provide tags as inputs, use the
* `resourceTags` field.
*
* @deprecated
* @param DatasetTags[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @deprecated
* @return DatasetTags[]
*/
public function getTags()
{
return $this->tags;
}
/**
* Output only. Same as `type` in `ListFormatDataset`. The type of the
* dataset, one of: * DEFAULT - only accessible by owner and authorized
* accounts, * PUBLIC - accessible by everyone, * LINKED - linked dataset, *
* EXTERNAL - dataset with definition in external metadata catalog, *
* BIGLAKE_ICEBERG - a Biglake dataset accessible through the Iceberg API, *
* BIGLAKE_HIVE - a Biglake dataset accessible through the Hive API.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Dataset::class, 'Google_Service_Bigquery_Dataset');
@@ -0,0 +1,276 @@
<?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\Bigquery;
class DatasetAccess extends \Google\Model
{
protected $conditionType = Expr::class;
protected $conditionDataType = '';
protected $datasetType = DatasetAccessEntry::class;
protected $datasetDataType = '';
/**
* [Pick one] A domain to grant access to. Any users signed in with the domain
* specified will be granted the specified access. Example: "example.com".
* Maps to IAM policy member "domain:DOMAIN".
*
* @var string
*/
public $domain;
/**
* [Pick one] An email address of a Google Group to grant access to. Maps to
* IAM policy member "group:GROUP".
*
* @var string
*/
public $groupByEmail;
/**
* [Pick one] Some other type of member that appears in the IAM Policy but
* isn't a user, group, domain, or special group.
*
* @var string
*/
public $iamMember;
/**
* An IAM role ID that should be granted to the user, group, or domain
* specified in this access entry. The following legacy mappings will be
* applied: * `OWNER`: `roles/bigquery.dataOwner` * `WRITER`:
* `roles/bigquery.dataEditor` * `READER`: `roles/bigquery.dataViewer` This
* field will accept any of the above formats, but will return only the legacy
* format. For example, if you set this field to "roles/bigquery.dataOwner",
* it will be returned back as "OWNER".
*
* @var string
*/
public $role;
protected $routineType = RoutineReference::class;
protected $routineDataType = '';
/**
* [Pick one] A special group to grant access to. Possible values include: *
* projectOwners: Owners of the enclosing project. * projectReaders: Readers
* of the enclosing project. * projectWriters: Writers of the enclosing
* project. * allAuthenticatedUsers: All authenticated BigQuery users. Maps to
* similarly-named IAM members.
*
* @var string
*/
public $specialGroup;
/**
* [Pick one] An email address of a user to grant access to. For example:
* fred@example.com. Maps to IAM policy member "user:EMAIL" or
* "serviceAccount:EMAIL".
*
* @var string
*/
public $userByEmail;
protected $viewType = TableReference::class;
protected $viewDataType = '';
/**
* Optional. condition for the binding. If CEL expression in this field is
* true, this access binding will be considered
*
* @param Expr $condition
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* [Pick one] A grant authorizing all resources of a particular type in a
* particular dataset access to this dataset. Only views are supported for
* now. The role field is not required when this field is set. If that dataset
* is deleted and re-created, its access needs to be granted again via an
* update operation.
*
* @param DatasetAccessEntry $dataset
*/
public function setDataset(DatasetAccessEntry $dataset)
{
$this->dataset = $dataset;
}
/**
* @return DatasetAccessEntry
*/
public function getDataset()
{
return $this->dataset;
}
/**
* [Pick one] A domain to grant access to. Any users signed in with the domain
* specified will be granted the specified access. Example: "example.com".
* Maps to IAM policy member "domain:DOMAIN".
*
* @param string $domain
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* [Pick one] An email address of a Google Group to grant access to. Maps to
* IAM policy member "group:GROUP".
*
* @param string $groupByEmail
*/
public function setGroupByEmail($groupByEmail)
{
$this->groupByEmail = $groupByEmail;
}
/**
* @return string
*/
public function getGroupByEmail()
{
return $this->groupByEmail;
}
/**
* [Pick one] Some other type of member that appears in the IAM Policy but
* isn't a user, group, domain, or special group.
*
* @param string $iamMember
*/
public function setIamMember($iamMember)
{
$this->iamMember = $iamMember;
}
/**
* @return string
*/
public function getIamMember()
{
return $this->iamMember;
}
/**
* An IAM role ID that should be granted to the user, group, or domain
* specified in this access entry. The following legacy mappings will be
* applied: * `OWNER`: `roles/bigquery.dataOwner` * `WRITER`:
* `roles/bigquery.dataEditor` * `READER`: `roles/bigquery.dataViewer` This
* field will accept any of the above formats, but will return only the legacy
* format. For example, if you set this field to "roles/bigquery.dataOwner",
* it will be returned back as "OWNER".
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
/**
* [Pick one] A routine from a different dataset to grant access to. Queries
* executed against that routine will have read access to
* views/tables/routines in this dataset. Only UDF is supported for now. The
* role field is not required when this field is set. If that routine is
* updated by any user, access to the routine needs to be granted again via an
* update operation.
*
* @param RoutineReference $routine
*/
public function setRoutine(RoutineReference $routine)
{
$this->routine = $routine;
}
/**
* @return RoutineReference
*/
public function getRoutine()
{
return $this->routine;
}
/**
* [Pick one] A special group to grant access to. Possible values include: *
* projectOwners: Owners of the enclosing project. * projectReaders: Readers
* of the enclosing project. * projectWriters: Writers of the enclosing
* project. * allAuthenticatedUsers: All authenticated BigQuery users. Maps to
* similarly-named IAM members.
*
* @param string $specialGroup
*/
public function setSpecialGroup($specialGroup)
{
$this->specialGroup = $specialGroup;
}
/**
* @return string
*/
public function getSpecialGroup()
{
return $this->specialGroup;
}
/**
* [Pick one] An email address of a user to grant access to. For example:
* fred@example.com. Maps to IAM policy member "user:EMAIL" or
* "serviceAccount:EMAIL".
*
* @param string $userByEmail
*/
public function setUserByEmail($userByEmail)
{
$this->userByEmail = $userByEmail;
}
/**
* @return string
*/
public function getUserByEmail()
{
return $this->userByEmail;
}
/**
* [Pick one] A view from a different dataset to grant access to. Queries
* executed against that view will have read access to views/tables/routines
* in this dataset. The role field is not required when this field is set. If
* that view is updated by any user, access to the view needs to be granted
* again via an update operation.
*
* @param TableReference $view
*/
public function setView(TableReference $view)
{
$this->view = $view;
}
/**
* @return TableReference
*/
public function getView()
{
return $this->view;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatasetAccess::class, 'Google_Service_Bigquery_DatasetAccess');
@@ -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\Bigquery;
class DatasetAccessEntry extends \Google\Collection
{
protected $collection_key = 'targetTypes';
protected $datasetType = DatasetReference::class;
protected $datasetDataType = '';
/**
* Which resources in the dataset this entry applies to. Currently, only views
* are supported, but additional target types may be added in the future.
*
* @var string[]
*/
public $targetTypes;
/**
* The dataset this entry applies to
*
* @param DatasetReference $dataset
*/
public function setDataset(DatasetReference $dataset)
{
$this->dataset = $dataset;
}
/**
* @return DatasetReference
*/
public function getDataset()
{
return $this->dataset;
}
/**
* Which resources in the dataset this entry applies to. Currently, only views
* are supported, but additional target types may be added in the future.
*
* @param string[] $targetTypes
*/
public function setTargetTypes($targetTypes)
{
$this->targetTypes = $targetTypes;
}
/**
* @return string[]
*/
public function getTargetTypes()
{
return $this->targetTypes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatasetAccessEntry::class, 'Google_Service_Bigquery_DatasetAccessEntry');
@@ -0,0 +1,44 @@
<?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\Bigquery;
class DatasetAccessEntryTargetTypes extends \Google\Model
{
/**
* @var string
*/
public $targetType;
/**
* @param string
*/
public function setTargetType($targetType)
{
$this->targetType = $targetType;
}
/**
* @return string
*/
public function getTargetType()
{
return $this->targetType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatasetAccessEntryTargetTypes::class, 'Google_Service_Bigquery_DatasetAccessEntryTargetTypes');
@@ -0,0 +1,146 @@
<?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\Bigquery;
class DatasetList extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $datasetsType = DatasetListDatasets::class;
protected $datasetsDataType = 'array';
/**
* Output only. A hash value of the results page. You can use this property to
* determine if the page has changed since the last request.
*
* @var string
*/
public $etag;
/**
* Output only. The resource type. This property always returns the value
* "bigquery#datasetList"
*
* @var string
*/
public $kind;
/**
* A token that can be used to request the next results page. This property is
* omitted on the final results page.
*
* @var string
*/
public $nextPageToken;
/**
* A list of skipped locations that were unreachable. For more information
* about BigQuery locations, see:
* https://cloud.google.com/bigquery/docs/locations. Example: "europe-west5"
*
* @var string[]
*/
public $unreachable;
/**
* An array of the dataset resources in the project. Each resource contains
* basic information. For full information about a particular dataset
* resource, use the Datasets: get method. This property is omitted when there
* are no datasets in the project.
*
* @param DatasetListDatasets[] $datasets
*/
public function setDatasets($datasets)
{
$this->datasets = $datasets;
}
/**
* @return DatasetListDatasets[]
*/
public function getDatasets()
{
return $this->datasets;
}
/**
* Output only. A hash value of the results page. You can use this property to
* determine if the page has changed since the last request.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Output only. The resource type. This property always returns the value
* "bigquery#datasetList"
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* A token that can be used to request the next results page. This property is
* omitted on the final results page.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of skipped locations that were unreachable. For more information
* about BigQuery locations, see:
* https://cloud.google.com/bigquery/docs/locations. Example: "europe-west5"
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatasetList::class, 'Google_Service_Bigquery_DatasetList');
@@ -0,0 +1,238 @@
<?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\Bigquery;
class DatasetListDatasets extends \Google\Model
{
/**
* Output only. The origin of the dataset, one of: * (Unset) - Native BigQuery
* Dataset. * BIGLAKE - Dataset is backed by a namespace stored natively in
* Biglake.
*
* @var string
*/
public $catalogSource;
protected $datasetReferenceType = DatasetReference::class;
protected $datasetReferenceDataType = '';
protected $externalDatasetReferenceType = ExternalDatasetReference::class;
protected $externalDatasetReferenceDataType = '';
/**
* An alternate name for the dataset. The friendly name is purely decorative
* in nature.
*
* @var string
*/
public $friendlyName;
/**
* The fully-qualified, unique, opaque ID of the dataset.
*
* @var string
*/
public $id;
/**
* The resource type. This property always returns the value
* "bigquery#dataset"
*
* @var string
*/
public $kind;
/**
* The labels associated with this dataset. You can use these to organize and
* group your datasets.
*
* @var string[]
*/
public $labels;
/**
* The geographic location where the dataset resides.
*
* @var string
*/
public $location;
/**
* Output only. Same as `type` in `Dataset`. The type of the dataset, one of:
* * DEFAULT - only accessible by owner and authorized accounts, * PUBLIC -
* accessible by everyone, * LINKED - linked dataset, * EXTERNAL - dataset
* with definition in external metadata catalog, * BIGLAKE_ICEBERG - a Biglake
* dataset accessible through the Iceberg API, * BIGLAKE_HIVE - a Biglake
* dataset accessible through the Hive API.
*
* @var string
*/
public $type;
/**
* Output only. The origin of the dataset, one of: * (Unset) - Native BigQuery
* Dataset. * BIGLAKE - Dataset is backed by a namespace stored natively in
* Biglake.
*
* @param string $catalogSource
*/
public function setCatalogSource($catalogSource)
{
$this->catalogSource = $catalogSource;
}
/**
* @return string
*/
public function getCatalogSource()
{
return $this->catalogSource;
}
/**
* The dataset reference. Use this property to access specific parts of the
* dataset's ID, such as project ID or dataset ID.
*
* @param DatasetReference $datasetReference
*/
public function setDatasetReference(DatasetReference $datasetReference)
{
$this->datasetReference = $datasetReference;
}
/**
* @return DatasetReference
*/
public function getDatasetReference()
{
return $this->datasetReference;
}
/**
* Output only. Reference to a read-only external dataset defined in data
* catalogs outside of BigQuery. Filled out when the dataset type is EXTERNAL.
*
* @param ExternalDatasetReference $externalDatasetReference
*/
public function setExternalDatasetReference(ExternalDatasetReference $externalDatasetReference)
{
$this->externalDatasetReference = $externalDatasetReference;
}
/**
* @return ExternalDatasetReference
*/
public function getExternalDatasetReference()
{
return $this->externalDatasetReference;
}
/**
* An alternate name for the dataset. The friendly name is purely decorative
* in nature.
*
* @param string $friendlyName
*/
public function setFriendlyName($friendlyName)
{
$this->friendlyName = $friendlyName;
}
/**
* @return string
*/
public function getFriendlyName()
{
return $this->friendlyName;
}
/**
* The fully-qualified, unique, opaque ID of the dataset.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The resource type. This property always returns the value
* "bigquery#dataset"
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The labels associated with this dataset. You can use these to organize and
* group your datasets.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The geographic location where the dataset resides.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Output only. Same as `type` in `Dataset`. The type of the dataset, one of:
* * DEFAULT - only accessible by owner and authorized accounts, * PUBLIC -
* accessible by everyone, * LINKED - linked dataset, * EXTERNAL - dataset
* with definition in external metadata catalog, * BIGLAKE_ICEBERG - a Biglake
* dataset accessible through the Iceberg API, * BIGLAKE_HIVE - a Biglake
* dataset accessible through the Hive API.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatasetListDatasets::class, 'Google_Service_Bigquery_DatasetListDatasets');
@@ -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\Bigquery;
class DatasetReference extends \Google\Model
{
/**
* Required. A unique ID for this dataset, without the project name. The ID
* must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
* The maximum length is 1,024 characters.
*
* @var string
*/
public $datasetId;
/**
* Optional. The ID of the project containing this dataset.
*
* @var string
*/
public $projectId;
/**
* Required. A unique ID for this dataset, without the project name. The ID
* must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_).
* The maximum length is 1,024 characters.
*
* @param string $datasetId
*/
public function setDatasetId($datasetId)
{
$this->datasetId = $datasetId;
}
/**
* @return string
*/
public function getDatasetId()
{
return $this->datasetId;
}
/**
* Optional. The ID of the project containing this dataset.
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatasetReference::class, 'Google_Service_Bigquery_DatasetReference');
@@ -0,0 +1,72 @@
<?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\Bigquery;
class DatasetTags extends \Google\Model
{
/**
* Required. The namespaced friendly name of the tag key, e.g.
* "12345/environment" where 12345 is org id.
*
* @var string
*/
public $tagKey;
/**
* Required. The friendly short name of the tag value, e.g. "production".
*
* @var string
*/
public $tagValue;
/**
* Required. The namespaced friendly name of the tag key, e.g.
* "12345/environment" where 12345 is org id.
*
* @param string $tagKey
*/
public function setTagKey($tagKey)
{
$this->tagKey = $tagKey;
}
/**
* @return string
*/
public function getTagKey()
{
return $this->tagKey;
}
/**
* Required. The friendly short name of the tag value, e.g. "production".
*
* @param string $tagValue
*/
public function setTagValue($tagValue)
{
$this->tagValue = $tagValue;
}
/**
* @return string
*/
public function getTagValue()
{
return $this->tagValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatasetTags::class, 'Google_Service_Bigquery_DatasetTags');
@@ -0,0 +1,128 @@
<?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\Bigquery;
class DestinationTableProperties extends \Google\Model
{
/**
* Optional. The description for the destination table. This will only be used
* if the destination table is newly created. If the table already exists and
* a value different than the current description is provided, the job will
* fail.
*
* @var string
*/
public $description;
/**
* Internal use only.
*
* @var string
*/
public $expirationTime;
/**
* Optional. Friendly name for the destination table. If the table already
* exists, it should be same as the existing friendly name.
*
* @var string
*/
public $friendlyName;
/**
* Optional. The labels associated with this table. You can use these to
* organize and group your tables. This will only be used if the destination
* table is newly created. If the table already exists and labels are
* different than the current labels are provided, the job will fail.
*
* @var string[]
*/
public $labels;
/**
* Optional. The description for the destination table. This will only be used
* if the destination table is newly created. If the table already exists and
* a value different than the current description is provided, the job will
* fail.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Internal use only.
*
* @param string $expirationTime
*/
public function setExpirationTime($expirationTime)
{
$this->expirationTime = $expirationTime;
}
/**
* @return string
*/
public function getExpirationTime()
{
return $this->expirationTime;
}
/**
* Optional. Friendly name for the destination table. If the table already
* exists, it should be same as the existing friendly name.
*
* @param string $friendlyName
*/
public function setFriendlyName($friendlyName)
{
$this->friendlyName = $friendlyName;
}
/**
* @return string
*/
public function getFriendlyName()
{
return $this->friendlyName;
}
/**
* Optional. The labels associated with this table. You can use these to
* organize and group your tables. This will only be used if the destination
* table is newly created. If the table already exists and labels are
* different than the current labels are provided, the job will fail.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DestinationTableProperties::class, 'Google_Service_Bigquery_DestinationTableProperties');
@@ -0,0 +1,199 @@
<?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\Bigquery;
class DifferentialPrivacyPolicy extends \Google\Model
{
/**
* Optional. The total delta budget for all queries against the privacy-
* protected view. Each subscriber query against this view charges the amount
* of delta that is pre-defined by the contributor through the privacy policy
* delta_per_query field. If there is sufficient budget, then the subscriber
* query attempts to complete. It might still fail due to other reasons, in
* which case the charge is refunded. If there is insufficient budget the
* query is rejected. There might be multiple charge attempts if a single
* query references multiple views. In this case there must be sufficient
* budget for all charges or the query is rejected and charges are refunded in
* best effort. The budget does not have a refresh policy and can only be
* updated via ALTER VIEW or circumvented by creating a new view that can be
* queried with a fresh budget.
*
* @var
*/
public $deltaBudget;
/**
* Output only. The delta budget remaining. If budget is exhausted, no more
* queries are allowed. Note that the budget for queries that are in progress
* is deducted before the query executes. If the query fails or is cancelled
* then the budget is refunded. In this case the amount of budget remaining
* can increase.
*
* @var
*/
public $deltaBudgetRemaining;
/**
* Optional. The delta value that is used per query. Delta represents the
* probability that any row will fail to be epsilon differentially private.
* Indicates the risk associated with exposing aggregate rows in the result of
* a query.
*
* @var
*/
public $deltaPerQuery;
/**
* Optional. The total epsilon budget for all queries against the privacy-
* protected view. Each subscriber query against this view charges the amount
* of epsilon they request in their query. If there is sufficient budget, then
* the subscriber query attempts to complete. It might still fail due to other
* reasons, in which case the charge is refunded. If there is insufficient
* budget the query is rejected. There might be multiple charge attempts if a
* single query references multiple views. In this case there must be
* sufficient budget for all charges or the query is rejected and charges are
* refunded in best effort. The budget does not have a refresh policy and can
* only be updated via ALTER VIEW or circumvented by creating a new view that
* can be queried with a fresh budget.
*
* @var
*/
public $epsilonBudget;
/**
* Output only. The epsilon budget remaining. If budget is exhausted, no more
* queries are allowed. Note that the budget for queries that are in progress
* is deducted before the query executes. If the query fails or is cancelled
* then the budget is refunded. In this case the amount of budget remaining
* can increase.
*
* @var
*/
public $epsilonBudgetRemaining;
/**
* Optional. The maximum epsilon value that a query can consume. If the
* subscriber specifies epsilon as a parameter in a SELECT query, it must be
* less than or equal to this value. The epsilon parameter controls the amount
* of noise that is added to the groups — a higher epsilon means less noise.
*
* @var
*/
public $maxEpsilonPerQuery;
/**
* Optional. The maximum groups contributed value that is used per query.
* Represents the maximum number of groups to which each protected entity can
* contribute. Changing this value does not improve or worsen privacy. The
* best value for accuracy and utility depends on the query and data.
*
* @var string
*/
public $maxGroupsContributed;
/**
* Optional. The privacy unit column associated with this policy. Differential
* privacy policies can only have one privacy unit column per data source
* object (table, view).
*
* @var string
*/
public $privacyUnitColumn;
public function setDeltaBudget($deltaBudget)
{
$this->deltaBudget = $deltaBudget;
}
public function getDeltaBudget()
{
return $this->deltaBudget;
}
public function setDeltaBudgetRemaining($deltaBudgetRemaining)
{
$this->deltaBudgetRemaining = $deltaBudgetRemaining;
}
public function getDeltaBudgetRemaining()
{
return $this->deltaBudgetRemaining;
}
public function setDeltaPerQuery($deltaPerQuery)
{
$this->deltaPerQuery = $deltaPerQuery;
}
public function getDeltaPerQuery()
{
return $this->deltaPerQuery;
}
public function setEpsilonBudget($epsilonBudget)
{
$this->epsilonBudget = $epsilonBudget;
}
public function getEpsilonBudget()
{
return $this->epsilonBudget;
}
public function setEpsilonBudgetRemaining($epsilonBudgetRemaining)
{
$this->epsilonBudgetRemaining = $epsilonBudgetRemaining;
}
public function getEpsilonBudgetRemaining()
{
return $this->epsilonBudgetRemaining;
}
public function setMaxEpsilonPerQuery($maxEpsilonPerQuery)
{
$this->maxEpsilonPerQuery = $maxEpsilonPerQuery;
}
public function getMaxEpsilonPerQuery()
{
return $this->maxEpsilonPerQuery;
}
/**
* Optional. The maximum groups contributed value that is used per query.
* Represents the maximum number of groups to which each protected entity can
* contribute. Changing this value does not improve or worsen privacy. The
* best value for accuracy and utility depends on the query and data.
*
* @param string $maxGroupsContributed
*/
public function setMaxGroupsContributed($maxGroupsContributed)
{
$this->maxGroupsContributed = $maxGroupsContributed;
}
/**
* @return string
*/
public function getMaxGroupsContributed()
{
return $this->maxGroupsContributed;
}
/**
* Optional. The privacy unit column associated with this policy. Differential
* privacy policies can only have one privacy unit column per data source
* object (table, view).
*
* @param string $privacyUnitColumn
*/
public function setPrivacyUnitColumn($privacyUnitColumn)
{
$this->privacyUnitColumn = $privacyUnitColumn;
}
/**
* @return string
*/
public function getPrivacyUnitColumn()
{
return $this->privacyUnitColumn;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DifferentialPrivacyPolicy::class, 'Google_Service_Bigquery_DifferentialPrivacyPolicy');
@@ -0,0 +1,41 @@
<?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\Bigquery;
class DimensionalityReductionMetrics extends \Google\Model
{
/**
* Total percentage of variance explained by the selected principal
* components.
*
* @var
*/
public $totalExplainedVarianceRatio;
public function setTotalExplainedVarianceRatio($totalExplainedVarianceRatio)
{
$this->totalExplainedVarianceRatio = $totalExplainedVarianceRatio;
}
public function getTotalExplainedVarianceRatio()
{
return $this->totalExplainedVarianceRatio;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DimensionalityReductionMetrics::class, 'Google_Service_Bigquery_DimensionalityReductionMetrics');
@@ -0,0 +1,178 @@
<?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\Bigquery;
class DmlStatistics extends \Google\Model
{
/**
* Default value. This value is unused.
*/
public const DML_MODE_DML_MODE_UNSPECIFIED = 'DML_MODE_UNSPECIFIED';
/**
* Coarse-grained DML was used.
*/
public const DML_MODE_COARSE_GRAINED_DML = 'COARSE_GRAINED_DML';
/**
* Fine-grained DML was used.
*/
public const DML_MODE_FINE_GRAINED_DML = 'FINE_GRAINED_DML';
/**
* Default value. This value is unused.
*/
public const FINE_GRAINED_DML_UNUSED_REASON_FINE_GRAINED_DML_UNUSED_REASON_UNSPECIFIED = 'FINE_GRAINED_DML_UNUSED_REASON_UNSPECIFIED';
/**
* Max partition size threshold exceeded. [Fine-grained DML Limitations]
* (https://docs.cloud.google.com/bigquery/docs/data-manipulation-
* language#fine-grained-dml-limitations)
*/
public const FINE_GRAINED_DML_UNUSED_REASON_MAX_PARTITION_SIZE_EXCEEDED = 'MAX_PARTITION_SIZE_EXCEEDED';
/**
* The table is not enrolled for fine-grained DML.
*/
public const FINE_GRAINED_DML_UNUSED_REASON_TABLE_NOT_ENROLLED = 'TABLE_NOT_ENROLLED';
/**
* The DML statement is part of a multi-statement transaction.
*/
public const FINE_GRAINED_DML_UNUSED_REASON_DML_IN_MULTI_STATEMENT_TRANSACTION = 'DML_IN_MULTI_STATEMENT_TRANSACTION';
/**
* Output only. Number of deleted Rows. populated by DML DELETE, MERGE and
* TRUNCATE statements.
*
* @var string
*/
public $deletedRowCount;
/**
* Output only. DML mode used.
*
* @var string
*/
public $dmlMode;
/**
* Output only. Reason for disabling fine-grained DML if applicable.
*
* @var string
*/
public $fineGrainedDmlUnusedReason;
/**
* Output only. Number of inserted Rows. Populated by DML INSERT and MERGE
* statements
*
* @var string
*/
public $insertedRowCount;
/**
* Output only. Number of updated Rows. Populated by DML UPDATE and MERGE
* statements.
*
* @var string
*/
public $updatedRowCount;
/**
* Output only. Number of deleted Rows. populated by DML DELETE, MERGE and
* TRUNCATE statements.
*
* @param string $deletedRowCount
*/
public function setDeletedRowCount($deletedRowCount)
{
$this->deletedRowCount = $deletedRowCount;
}
/**
* @return string
*/
public function getDeletedRowCount()
{
return $this->deletedRowCount;
}
/**
* Output only. DML mode used.
*
* Accepted values: DML_MODE_UNSPECIFIED, COARSE_GRAINED_DML, FINE_GRAINED_DML
*
* @param self::DML_MODE_* $dmlMode
*/
public function setDmlMode($dmlMode)
{
$this->dmlMode = $dmlMode;
}
/**
* @return self::DML_MODE_*
*/
public function getDmlMode()
{
return $this->dmlMode;
}
/**
* Output only. Reason for disabling fine-grained DML if applicable.
*
* Accepted values: FINE_GRAINED_DML_UNUSED_REASON_UNSPECIFIED,
* MAX_PARTITION_SIZE_EXCEEDED, TABLE_NOT_ENROLLED,
* DML_IN_MULTI_STATEMENT_TRANSACTION
*
* @param self::FINE_GRAINED_DML_UNUSED_REASON_* $fineGrainedDmlUnusedReason
*/
public function setFineGrainedDmlUnusedReason($fineGrainedDmlUnusedReason)
{
$this->fineGrainedDmlUnusedReason = $fineGrainedDmlUnusedReason;
}
/**
* @return self::FINE_GRAINED_DML_UNUSED_REASON_*
*/
public function getFineGrainedDmlUnusedReason()
{
return $this->fineGrainedDmlUnusedReason;
}
/**
* Output only. Number of inserted Rows. Populated by DML INSERT and MERGE
* statements
*
* @param string $insertedRowCount
*/
public function setInsertedRowCount($insertedRowCount)
{
$this->insertedRowCount = $insertedRowCount;
}
/**
* @return string
*/
public function getInsertedRowCount()
{
return $this->insertedRowCount;
}
/**
* Output only. Number of updated Rows. Populated by DML UPDATE and MERGE
* statements.
*
* @param string $updatedRowCount
*/
public function setUpdatedRowCount($updatedRowCount)
{
$this->updatedRowCount = $updatedRowCount;
}
/**
* @return string
*/
public function getUpdatedRowCount()
{
return $this->updatedRowCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DmlStatistics::class, 'Google_Service_Bigquery_DmlStatistics');
@@ -0,0 +1,41 @@
<?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\Bigquery;
class DoubleCandidates extends \Google\Collection
{
protected $collection_key = 'candidates';
/**
* Candidates for the double parameter in increasing order.
*
* @var []
*/
public $candidates;
public function setCandidates($candidates)
{
$this->candidates = $candidates;
}
public function getCandidates()
{
return $this->candidates;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DoubleCandidates::class, 'Google_Service_Bigquery_DoubleCandidates');
@@ -0,0 +1,62 @@
<?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\Bigquery;
class DoubleHparamSearchSpace extends \Google\Model
{
protected $candidatesType = DoubleCandidates::class;
protected $candidatesDataType = '';
protected $rangeType = DoubleRange::class;
protected $rangeDataType = '';
/**
* Candidates of the double hyperparameter.
*
* @param DoubleCandidates $candidates
*/
public function setCandidates(DoubleCandidates $candidates)
{
$this->candidates = $candidates;
}
/**
* @return DoubleCandidates
*/
public function getCandidates()
{
return $this->candidates;
}
/**
* Range of the double hyperparameter.
*
* @param DoubleRange $range
*/
public function setRange(DoubleRange $range)
{
$this->range = $range;
}
/**
* @return DoubleRange
*/
public function getRange()
{
return $this->range;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DoubleHparamSearchSpace::class, 'Google_Service_Bigquery_DoubleHparamSearchSpace');
@@ -0,0 +1,54 @@
<?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\Bigquery;
class DoubleRange extends \Google\Model
{
/**
* Max value of the double parameter.
*
* @var
*/
public $max;
/**
* Min value of the double parameter.
*
* @var
*/
public $min;
public function setMax($max)
{
$this->max = $max;
}
public function getMax()
{
return $this->max;
}
public function setMin($min)
{
$this->min = $min;
}
public function getMin()
{
return $this->min;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DoubleRange::class, 'Google_Service_Bigquery_DoubleRange');
@@ -0,0 +1,52 @@
<?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\Bigquery;
class EncryptionConfiguration extends \Google\Model
{
/**
* Optional. Describes the Cloud KMS encryption key that will be used to
* protect destination BigQuery table. The BigQuery Service Account associated
* with your project requires access to this encryption key.
*
* @var string
*/
public $kmsKeyName;
/**
* Optional. Describes the Cloud KMS encryption key that will be used to
* protect destination BigQuery table. The BigQuery Service Account associated
* with your project requires access to this encryption key.
*
* @param string $kmsKeyName
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EncryptionConfiguration::class, 'Google_Service_Bigquery_EncryptionConfiguration');
+72
View File
@@ -0,0 +1,72 @@
<?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\Bigquery;
class Entry extends \Google\Model
{
/**
* Number of items being predicted as this label.
*
* @var string
*/
public $itemCount;
/**
* The predicted label. For confidence_threshold > 0, we will also add an
* entry indicating the number of items under the confidence threshold.
*
* @var string
*/
public $predictedLabel;
/**
* Number of items being predicted as this label.
*
* @param string $itemCount
*/
public function setItemCount($itemCount)
{
$this->itemCount = $itemCount;
}
/**
* @return string
*/
public function getItemCount()
{
return $this->itemCount;
}
/**
* The predicted label. For confidence_threshold > 0, we will also add an
* entry indicating the number of items under the confidence threshold.
*
* @param string $predictedLabel
*/
public function setPredictedLabel($predictedLabel)
{
$this->predictedLabel = $predictedLabel;
}
/**
* @return string
*/
public function getPredictedLabel()
{
return $this->predictedLabel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Entry::class, 'Google_Service_Bigquery_Entry');
@@ -0,0 +1,116 @@
<?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\Bigquery;
class ErrorProto extends \Google\Model
{
/**
* Debugging information. This property is internal to Google and should not
* be used.
*
* @var string
*/
public $debugInfo;
/**
* Specifies where the error occurred, if present.
*
* @var string
*/
public $location;
/**
* A human-readable description of the error.
*
* @var string
*/
public $message;
/**
* A short error code that summarizes the error.
*
* @var string
*/
public $reason;
/**
* Debugging information. This property is internal to Google and should not
* be used.
*
* @param string $debugInfo
*/
public function setDebugInfo($debugInfo)
{
$this->debugInfo = $debugInfo;
}
/**
* @return string
*/
public function getDebugInfo()
{
return $this->debugInfo;
}
/**
* Specifies where the error occurred, if present.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* A human-readable description of the error.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* A short error code that summarizes the error.
*
* @param string $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ErrorProto::class, 'Google_Service_Bigquery_ErrorProto');
@@ -0,0 +1,154 @@
<?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\Bigquery;
class EvaluationMetrics extends \Google\Model
{
protected $arimaForecastingMetricsType = ArimaForecastingMetrics::class;
protected $arimaForecastingMetricsDataType = '';
protected $binaryClassificationMetricsType = BinaryClassificationMetrics::class;
protected $binaryClassificationMetricsDataType = '';
protected $clusteringMetricsType = ClusteringMetrics::class;
protected $clusteringMetricsDataType = '';
protected $dimensionalityReductionMetricsType = DimensionalityReductionMetrics::class;
protected $dimensionalityReductionMetricsDataType = '';
protected $multiClassClassificationMetricsType = MultiClassClassificationMetrics::class;
protected $multiClassClassificationMetricsDataType = '';
protected $rankingMetricsType = RankingMetrics::class;
protected $rankingMetricsDataType = '';
protected $regressionMetricsType = RegressionMetrics::class;
protected $regressionMetricsDataType = '';
/**
* Populated for ARIMA models.
*
* @param ArimaForecastingMetrics $arimaForecastingMetrics
*/
public function setArimaForecastingMetrics(ArimaForecastingMetrics $arimaForecastingMetrics)
{
$this->arimaForecastingMetrics = $arimaForecastingMetrics;
}
/**
* @return ArimaForecastingMetrics
*/
public function getArimaForecastingMetrics()
{
return $this->arimaForecastingMetrics;
}
/**
* Populated for binary classification/classifier models.
*
* @param BinaryClassificationMetrics $binaryClassificationMetrics
*/
public function setBinaryClassificationMetrics(BinaryClassificationMetrics $binaryClassificationMetrics)
{
$this->binaryClassificationMetrics = $binaryClassificationMetrics;
}
/**
* @return BinaryClassificationMetrics
*/
public function getBinaryClassificationMetrics()
{
return $this->binaryClassificationMetrics;
}
/**
* Populated for clustering models.
*
* @param ClusteringMetrics $clusteringMetrics
*/
public function setClusteringMetrics(ClusteringMetrics $clusteringMetrics)
{
$this->clusteringMetrics = $clusteringMetrics;
}
/**
* @return ClusteringMetrics
*/
public function getClusteringMetrics()
{
return $this->clusteringMetrics;
}
/**
* Evaluation metrics when the model is a dimensionality reduction model,
* which currently includes PCA.
*
* @param DimensionalityReductionMetrics $dimensionalityReductionMetrics
*/
public function setDimensionalityReductionMetrics(DimensionalityReductionMetrics $dimensionalityReductionMetrics)
{
$this->dimensionalityReductionMetrics = $dimensionalityReductionMetrics;
}
/**
* @return DimensionalityReductionMetrics
*/
public function getDimensionalityReductionMetrics()
{
return $this->dimensionalityReductionMetrics;
}
/**
* Populated for multi-class classification/classifier models.
*
* @param MultiClassClassificationMetrics $multiClassClassificationMetrics
*/
public function setMultiClassClassificationMetrics(MultiClassClassificationMetrics $multiClassClassificationMetrics)
{
$this->multiClassClassificationMetrics = $multiClassClassificationMetrics;
}
/**
* @return MultiClassClassificationMetrics
*/
public function getMultiClassClassificationMetrics()
{
return $this->multiClassClassificationMetrics;
}
/**
* Populated for implicit feedback type matrix factorization models.
*
* @param RankingMetrics $rankingMetrics
*/
public function setRankingMetrics(RankingMetrics $rankingMetrics)
{
$this->rankingMetrics = $rankingMetrics;
}
/**
* @return RankingMetrics
*/
public function getRankingMetrics()
{
return $this->rankingMetrics;
}
/**
* Populated for regression models and explicit feedback type matrix
* factorization models.
*
* @param RegressionMetrics $regressionMetrics
*/
public function setRegressionMetrics(RegressionMetrics $regressionMetrics)
{
$this->regressionMetrics = $regressionMetrics;
}
/**
* @return RegressionMetrics
*/
public function getRegressionMetrics()
{
return $this->regressionMetrics;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EvaluationMetrics::class, 'Google_Service_Bigquery_EvaluationMetrics');
@@ -0,0 +1,656 @@
<?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\Bigquery;
class ExplainQueryStage extends \Google\Collection
{
/**
* ComputeMode type not specified.
*/
public const COMPUTE_MODE_COMPUTE_MODE_UNSPECIFIED = 'COMPUTE_MODE_UNSPECIFIED';
/**
* This stage was processed using BigQuery slots.
*/
public const COMPUTE_MODE_BIGQUERY = 'BIGQUERY';
/**
* This stage was processed using BI Engine compute.
*/
public const COMPUTE_MODE_BI_ENGINE = 'BI_ENGINE';
protected $collection_key = 'steps';
/**
* Number of parallel input segments completed.
*
* @var string
*/
public $completedParallelInputs;
/**
* Output only. Compute mode for this stage.
*
* @var string
*/
public $computeMode;
/**
* Milliseconds the average shard spent on CPU-bound tasks.
*
* @var string
*/
public $computeMsAvg;
/**
* Milliseconds the slowest shard spent on CPU-bound tasks.
*
* @var string
*/
public $computeMsMax;
/**
* Relative amount of time the average shard spent on CPU-bound tasks.
*
* @var
*/
public $computeRatioAvg;
/**
* Relative amount of time the slowest shard spent on CPU-bound tasks.
*
* @var
*/
public $computeRatioMax;
/**
* Stage end time represented as milliseconds since the epoch.
*
* @var string
*/
public $endMs;
/**
* Unique ID for the stage within the plan.
*
* @var string
*/
public $id;
/**
* IDs for stages that are inputs to this stage.
*
* @var string[]
*/
public $inputStages;
/**
* Human-readable name for the stage.
*
* @var string
*/
public $name;
/**
* Number of parallel input segments to be processed
*
* @var string
*/
public $parallelInputs;
/**
* Milliseconds the average shard spent reading input.
*
* @var string
*/
public $readMsAvg;
/**
* Milliseconds the slowest shard spent reading input.
*
* @var string
*/
public $readMsMax;
/**
* Relative amount of time the average shard spent reading input.
*
* @var
*/
public $readRatioAvg;
/**
* Relative amount of time the slowest shard spent reading input.
*
* @var
*/
public $readRatioMax;
/**
* Number of records read into the stage.
*
* @var string
*/
public $recordsRead;
/**
* Number of records written by the stage.
*
* @var string
*/
public $recordsWritten;
/**
* Total number of bytes written to shuffle.
*
* @var string
*/
public $shuffleOutputBytes;
/**
* Total number of bytes written to shuffle and spilled to disk.
*
* @var string
*/
public $shuffleOutputBytesSpilled;
/**
* Slot-milliseconds used by the stage.
*
* @var string
*/
public $slotMs;
/**
* Stage start time represented as milliseconds since the epoch.
*
* @var string
*/
public $startMs;
/**
* Current status for this stage.
*
* @var string
*/
public $status;
protected $stepsType = ExplainQueryStep::class;
protected $stepsDataType = 'array';
/**
* Milliseconds the average shard spent waiting to be scheduled.
*
* @var string
*/
public $waitMsAvg;
/**
* Milliseconds the slowest shard spent waiting to be scheduled.
*
* @var string
*/
public $waitMsMax;
/**
* Relative amount of time the average shard spent waiting to be scheduled.
*
* @var
*/
public $waitRatioAvg;
/**
* Relative amount of time the slowest shard spent waiting to be scheduled.
*
* @var
*/
public $waitRatioMax;
/**
* Milliseconds the average shard spent on writing output.
*
* @var string
*/
public $writeMsAvg;
/**
* Milliseconds the slowest shard spent on writing output.
*
* @var string
*/
public $writeMsMax;
/**
* Relative amount of time the average shard spent on writing output.
*
* @var
*/
public $writeRatioAvg;
/**
* Relative amount of time the slowest shard spent on writing output.
*
* @var
*/
public $writeRatioMax;
/**
* Number of parallel input segments completed.
*
* @param string $completedParallelInputs
*/
public function setCompletedParallelInputs($completedParallelInputs)
{
$this->completedParallelInputs = $completedParallelInputs;
}
/**
* @return string
*/
public function getCompletedParallelInputs()
{
return $this->completedParallelInputs;
}
/**
* Output only. Compute mode for this stage.
*
* Accepted values: COMPUTE_MODE_UNSPECIFIED, BIGQUERY, BI_ENGINE
*
* @param self::COMPUTE_MODE_* $computeMode
*/
public function setComputeMode($computeMode)
{
$this->computeMode = $computeMode;
}
/**
* @return self::COMPUTE_MODE_*
*/
public function getComputeMode()
{
return $this->computeMode;
}
/**
* Milliseconds the average shard spent on CPU-bound tasks.
*
* @param string $computeMsAvg
*/
public function setComputeMsAvg($computeMsAvg)
{
$this->computeMsAvg = $computeMsAvg;
}
/**
* @return string
*/
public function getComputeMsAvg()
{
return $this->computeMsAvg;
}
/**
* Milliseconds the slowest shard spent on CPU-bound tasks.
*
* @param string $computeMsMax
*/
public function setComputeMsMax($computeMsMax)
{
$this->computeMsMax = $computeMsMax;
}
/**
* @return string
*/
public function getComputeMsMax()
{
return $this->computeMsMax;
}
public function setComputeRatioAvg($computeRatioAvg)
{
$this->computeRatioAvg = $computeRatioAvg;
}
public function getComputeRatioAvg()
{
return $this->computeRatioAvg;
}
public function setComputeRatioMax($computeRatioMax)
{
$this->computeRatioMax = $computeRatioMax;
}
public function getComputeRatioMax()
{
return $this->computeRatioMax;
}
/**
* Stage end time represented as milliseconds since the epoch.
*
* @param string $endMs
*/
public function setEndMs($endMs)
{
$this->endMs = $endMs;
}
/**
* @return string
*/
public function getEndMs()
{
return $this->endMs;
}
/**
* Unique ID for the stage within the plan.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* IDs for stages that are inputs to this stage.
*
* @param string[] $inputStages
*/
public function setInputStages($inputStages)
{
$this->inputStages = $inputStages;
}
/**
* @return string[]
*/
public function getInputStages()
{
return $this->inputStages;
}
/**
* Human-readable name for the stage.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Number of parallel input segments to be processed
*
* @param string $parallelInputs
*/
public function setParallelInputs($parallelInputs)
{
$this->parallelInputs = $parallelInputs;
}
/**
* @return string
*/
public function getParallelInputs()
{
return $this->parallelInputs;
}
/**
* Milliseconds the average shard spent reading input.
*
* @param string $readMsAvg
*/
public function setReadMsAvg($readMsAvg)
{
$this->readMsAvg = $readMsAvg;
}
/**
* @return string
*/
public function getReadMsAvg()
{
return $this->readMsAvg;
}
/**
* Milliseconds the slowest shard spent reading input.
*
* @param string $readMsMax
*/
public function setReadMsMax($readMsMax)
{
$this->readMsMax = $readMsMax;
}
/**
* @return string
*/
public function getReadMsMax()
{
return $this->readMsMax;
}
public function setReadRatioAvg($readRatioAvg)
{
$this->readRatioAvg = $readRatioAvg;
}
public function getReadRatioAvg()
{
return $this->readRatioAvg;
}
public function setReadRatioMax($readRatioMax)
{
$this->readRatioMax = $readRatioMax;
}
public function getReadRatioMax()
{
return $this->readRatioMax;
}
/**
* Number of records read into the stage.
*
* @param string $recordsRead
*/
public function setRecordsRead($recordsRead)
{
$this->recordsRead = $recordsRead;
}
/**
* @return string
*/
public function getRecordsRead()
{
return $this->recordsRead;
}
/**
* Number of records written by the stage.
*
* @param string $recordsWritten
*/
public function setRecordsWritten($recordsWritten)
{
$this->recordsWritten = $recordsWritten;
}
/**
* @return string
*/
public function getRecordsWritten()
{
return $this->recordsWritten;
}
/**
* Total number of bytes written to shuffle.
*
* @param string $shuffleOutputBytes
*/
public function setShuffleOutputBytes($shuffleOutputBytes)
{
$this->shuffleOutputBytes = $shuffleOutputBytes;
}
/**
* @return string
*/
public function getShuffleOutputBytes()
{
return $this->shuffleOutputBytes;
}
/**
* Total number of bytes written to shuffle and spilled to disk.
*
* @param string $shuffleOutputBytesSpilled
*/
public function setShuffleOutputBytesSpilled($shuffleOutputBytesSpilled)
{
$this->shuffleOutputBytesSpilled = $shuffleOutputBytesSpilled;
}
/**
* @return string
*/
public function getShuffleOutputBytesSpilled()
{
return $this->shuffleOutputBytesSpilled;
}
/**
* Slot-milliseconds used by the stage.
*
* @param string $slotMs
*/
public function setSlotMs($slotMs)
{
$this->slotMs = $slotMs;
}
/**
* @return string
*/
public function getSlotMs()
{
return $this->slotMs;
}
/**
* Stage start time represented as milliseconds since the epoch.
*
* @param string $startMs
*/
public function setStartMs($startMs)
{
$this->startMs = $startMs;
}
/**
* @return string
*/
public function getStartMs()
{
return $this->startMs;
}
/**
* Current status for this stage.
*
* @param string $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* List of operations within the stage in dependency order (approximately
* chronological).
*
* @param ExplainQueryStep[] $steps
*/
public function setSteps($steps)
{
$this->steps = $steps;
}
/**
* @return ExplainQueryStep[]
*/
public function getSteps()
{
return $this->steps;
}
/**
* Milliseconds the average shard spent waiting to be scheduled.
*
* @param string $waitMsAvg
*/
public function setWaitMsAvg($waitMsAvg)
{
$this->waitMsAvg = $waitMsAvg;
}
/**
* @return string
*/
public function getWaitMsAvg()
{
return $this->waitMsAvg;
}
/**
* Milliseconds the slowest shard spent waiting to be scheduled.
*
* @param string $waitMsMax
*/
public function setWaitMsMax($waitMsMax)
{
$this->waitMsMax = $waitMsMax;
}
/**
* @return string
*/
public function getWaitMsMax()
{
return $this->waitMsMax;
}
public function setWaitRatioAvg($waitRatioAvg)
{
$this->waitRatioAvg = $waitRatioAvg;
}
public function getWaitRatioAvg()
{
return $this->waitRatioAvg;
}
public function setWaitRatioMax($waitRatioMax)
{
$this->waitRatioMax = $waitRatioMax;
}
public function getWaitRatioMax()
{
return $this->waitRatioMax;
}
/**
* Milliseconds the average shard spent on writing output.
*
* @param string $writeMsAvg
*/
public function setWriteMsAvg($writeMsAvg)
{
$this->writeMsAvg = $writeMsAvg;
}
/**
* @return string
*/
public function getWriteMsAvg()
{
return $this->writeMsAvg;
}
/**
* Milliseconds the slowest shard spent on writing output.
*
* @param string $writeMsMax
*/
public function setWriteMsMax($writeMsMax)
{
$this->writeMsMax = $writeMsMax;
}
/**
* @return string
*/
public function getWriteMsMax()
{
return $this->writeMsMax;
}
public function setWriteRatioAvg($writeRatioAvg)
{
$this->writeRatioAvg = $writeRatioAvg;
}
public function getWriteRatioAvg()
{
return $this->writeRatioAvg;
}
public function setWriteRatioMax($writeRatioMax)
{
$this->writeRatioMax = $writeRatioMax;
}
public function getWriteRatioMax()
{
return $this->writeRatioMax;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExplainQueryStage::class, 'Google_Service_Bigquery_ExplainQueryStage');
@@ -0,0 +1,71 @@
<?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\Bigquery;
class ExplainQueryStep extends \Google\Collection
{
protected $collection_key = 'substeps';
/**
* Machine-readable operation type.
*
* @var string
*/
public $kind;
/**
* Human-readable description of the step(s).
*
* @var string[]
*/
public $substeps;
/**
* Machine-readable operation type.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Human-readable description of the step(s).
*
* @param string[] $substeps
*/
public function setSubsteps($substeps)
{
$this->substeps = $substeps;
}
/**
* @return string[]
*/
public function getSubsteps()
{
return $this->substeps;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExplainQueryStep::class, 'Google_Service_Bigquery_ExplainQueryStep');
@@ -0,0 +1,66 @@
<?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\Bigquery;
class Explanation extends \Google\Model
{
/**
* Attribution of feature.
*
* @var
*/
public $attribution;
/**
* The full feature name. For non-numerical features, will be formatted like
* `.`. Overall size of feature name will always be truncated to first 120
* characters.
*
* @var string
*/
public $featureName;
public function setAttribution($attribution)
{
$this->attribution = $attribution;
}
public function getAttribution()
{
return $this->attribution;
}
/**
* The full feature name. For non-numerical features, will be formatted like
* `.`. Overall size of feature name will always be truncated to first 120
* characters.
*
* @param string $featureName
*/
public function setFeatureName($featureName)
{
$this->featureName = $featureName;
}
/**
* @return string
*/
public function getFeatureName()
{
return $this->featureName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Explanation::class, 'Google_Service_Bigquery_Explanation');
@@ -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\Bigquery;
class ExportDataStatistics extends \Google\Model
{
/**
* Number of destination files generated in case of EXPORT DATA statement
* only.
*
* @var string
*/
public $fileCount;
/**
* [Alpha] Number of destination rows generated in case of EXPORT DATA
* statement only.
*
* @var string
*/
public $rowCount;
/**
* Number of destination files generated in case of EXPORT DATA statement
* only.
*
* @param string $fileCount
*/
public function setFileCount($fileCount)
{
$this->fileCount = $fileCount;
}
/**
* @return string
*/
public function getFileCount()
{
return $this->fileCount;
}
/**
* [Alpha] Number of destination rows generated in case of EXPORT DATA
* statement only.
*
* @param string $rowCount
*/
public function setRowCount($rowCount)
{
$this->rowCount = $rowCount;
}
/**
* @return string
*/
public function getRowCount()
{
return $this->rowCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExportDataStatistics::class, 'Google_Service_Bigquery_ExportDataStatistics');
+122
View File
@@ -0,0 +1,122 @@
<?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\Bigquery;
class Expr extends \Google\Model
{
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @var string
*/
public $description;
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @var string
*/
public $expression;
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @var string
*/
public $location;
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @var string
*/
public $title;
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @param string $expression
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_Bigquery_Expr');
@@ -0,0 +1,76 @@
<?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\Bigquery;
class ExternalCatalogDatasetOptions extends \Google\Model
{
/**
* Optional. The storage location URI for all tables in the dataset.
* Equivalent to hive metastore's database locationUri. Maximum length of 1024
* characters.
*
* @var string
*/
public $defaultStorageLocationUri;
/**
* Optional. A map of key value pairs defining the parameters and properties
* of the open source schema. Maximum size of 2MiB.
*
* @var string[]
*/
public $parameters;
/**
* Optional. The storage location URI for all tables in the dataset.
* Equivalent to hive metastore's database locationUri. Maximum length of 1024
* characters.
*
* @param string $defaultStorageLocationUri
*/
public function setDefaultStorageLocationUri($defaultStorageLocationUri)
{
$this->defaultStorageLocationUri = $defaultStorageLocationUri;
}
/**
* @return string
*/
public function getDefaultStorageLocationUri()
{
return $this->defaultStorageLocationUri;
}
/**
* Optional. A map of key value pairs defining the parameters and properties
* of the open source schema. Maximum size of 2MiB.
*
* @param string[] $parameters
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return string[]
*/
public function getParameters()
{
return $this->parameters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExternalCatalogDatasetOptions::class, 'Google_Service_Bigquery_ExternalCatalogDatasetOptions');
@@ -0,0 +1,101 @@
<?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\Bigquery;
class ExternalCatalogTableOptions extends \Google\Model
{
/**
* Optional. A connection ID that specifies the credentials to be used to read
* external storage, such as Azure Blob, Cloud Storage, or Amazon S3. This
* connection is needed to read the open source table from BigQuery. The
* connection_id format must be either `..` or
* `projects//locations//connections/`.
*
* @var string
*/
public $connectionId;
/**
* Optional. A map of the key-value pairs defining the parameters and
* properties of the open source table. Corresponds with Hive metastore table
* parameters. Maximum size of 4MiB.
*
* @var string[]
*/
public $parameters;
protected $storageDescriptorType = StorageDescriptor::class;
protected $storageDescriptorDataType = '';
/**
* Optional. A connection ID that specifies the credentials to be used to read
* external storage, such as Azure Blob, Cloud Storage, or Amazon S3. This
* connection is needed to read the open source table from BigQuery. The
* connection_id format must be either `..` or
* `projects//locations//connections/`.
*
* @param string $connectionId
*/
public function setConnectionId($connectionId)
{
$this->connectionId = $connectionId;
}
/**
* @return string
*/
public function getConnectionId()
{
return $this->connectionId;
}
/**
* Optional. A map of the key-value pairs defining the parameters and
* properties of the open source table. Corresponds with Hive metastore table
* parameters. Maximum size of 4MiB.
*
* @param string[] $parameters
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return string[]
*/
public function getParameters()
{
return $this->parameters;
}
/**
* Optional. A storage descriptor containing information about the physical
* storage of this table.
*
* @param StorageDescriptor $storageDescriptor
*/
public function setStorageDescriptor(StorageDescriptor $storageDescriptor)
{
$this->storageDescriptor = $storageDescriptor;
}
/**
* @return StorageDescriptor
*/
public function getStorageDescriptor()
{
return $this->storageDescriptor;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExternalCatalogTableOptions::class, 'Google_Service_Bigquery_ExternalCatalogTableOptions');
@@ -0,0 +1,804 @@
<?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\Bigquery;
class ExternalDataConfiguration extends \Google\Collection
{
/**
* This option expands source URIs by listing files from the object store. It
* is the default behavior if FileSetSpecType is not set.
*/
public const FILE_SET_SPEC_TYPE_FILE_SET_SPEC_TYPE_FILE_SYSTEM_MATCH = 'FILE_SET_SPEC_TYPE_FILE_SYSTEM_MATCH';
/**
* This option indicates that the provided URIs are newline-delimited manifest
* files, with one URI per line. Wildcard URIs are not supported.
*/
public const FILE_SET_SPEC_TYPE_FILE_SET_SPEC_TYPE_NEW_LINE_DELIMITED_MANIFEST = 'FILE_SET_SPEC_TYPE_NEW_LINE_DELIMITED_MANIFEST';
/**
* The default if provided value is not one included in the enum, or the value
* is not specified. The source format is parsed without any modification.
*/
public const JSON_EXTENSION_JSON_EXTENSION_UNSPECIFIED = 'JSON_EXTENSION_UNSPECIFIED';
/**
* Use GeoJSON variant of JSON. See https://tools.ietf.org/html/rfc7946.
*/
public const JSON_EXTENSION_GEOJSON = 'GEOJSON';
/**
* Unspecified metadata cache mode.
*/
public const METADATA_CACHE_MODE_METADATA_CACHE_MODE_UNSPECIFIED = 'METADATA_CACHE_MODE_UNSPECIFIED';
/**
* Set this mode to trigger automatic background refresh of metadata cache
* from the external source. Queries will use the latest available cache
* version within the table's maxStaleness interval.
*/
public const METADATA_CACHE_MODE_AUTOMATIC = 'AUTOMATIC';
/**
* Set this mode to enable triggering manual refresh of the metadata cache
* from external source. Queries will use the latest manually triggered cache
* version within the table's maxStaleness interval.
*/
public const METADATA_CACHE_MODE_MANUAL = 'MANUAL';
/**
* Unspecified by default.
*/
public const OBJECT_METADATA_OBJECT_METADATA_UNSPECIFIED = 'OBJECT_METADATA_UNSPECIFIED';
/**
* A synonym for `SIMPLE`.
*/
public const OBJECT_METADATA_DIRECTORY = 'DIRECTORY';
/**
* Directory listing of objects.
*/
public const OBJECT_METADATA_SIMPLE = 'SIMPLE';
protected $collection_key = 'timestampTargetPrecision';
/**
* Try to detect schema and format options automatically. Any option specified
* explicitly will be honored.
*
* @var bool
*/
public $autodetect;
protected $avroOptionsType = AvroOptions::class;
protected $avroOptionsDataType = '';
protected $bigtableOptionsType = BigtableOptions::class;
protected $bigtableOptionsDataType = '';
/**
* Optional. The compression type of the data source. Possible values include
* GZIP and NONE. The default value is NONE. This setting is ignored for
* Google Cloud Bigtable, Google Cloud Datastore backups, Avro, ORC and
* Parquet formats. An empty string is an invalid value.
*
* @var string
*/
public $compression;
/**
* Optional. The connection specifying the credentials to be used to read
* external storage, such as Azure Blob, Cloud Storage, or S3. The
* connection_id can have the form
* `{project_id}.{location_id};{connection_id}` or `projects/{project_id}/loca
* tions/{location_id}/connections/{connection_id}`.
*
* @var string
*/
public $connectionId;
protected $csvOptionsType = CsvOptions::class;
protected $csvOptionsDataType = '';
/**
* Optional. Format used to parse DATE values. Supports C-style and SQL-style
* values.
*
* @var string
*/
public $dateFormat;
/**
* Optional. Format used to parse DATETIME values. Supports C-style and SQL-
* style values.
*
* @var string
*/
public $datetimeFormat;
/**
* Defines the list of possible SQL data types to which the source decimal
* values are converted. This list and the precision and the scale parameters
* of the decimal field determine the target type. In the order of NUMERIC,
* BIGNUMERIC, and STRING, a type is picked if it is in the specified list and
* if it supports the precision and the scale. STRING supports all precision
* and scale values. If none of the listed types supports the precision and
* the scale, the type supporting the widest range in the specified list is
* picked, and if a value exceeds the supported range when reading the data,
* an error will be thrown. Example: Suppose the value of this field is
* ["NUMERIC", "BIGNUMERIC"]. If (precision,scale) is: * (38,9) -> NUMERIC; *
* (39,9) -> BIGNUMERIC (NUMERIC cannot hold 30 integer digits); * (38,10) ->
* BIGNUMERIC (NUMERIC cannot hold 10 fractional digits); * (76,38) ->
* BIGNUMERIC; * (77,38) -> BIGNUMERIC (error if value exceeds supported
* range). This field cannot contain duplicate types. The order of the types
* in this field is ignored. For example, ["BIGNUMERIC", "NUMERIC"] is the
* same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes precedence over
* BIGNUMERIC. Defaults to ["NUMERIC", "STRING"] for ORC and ["NUMERIC"] for
* the other file formats.
*
* @var string[]
*/
public $decimalTargetTypes;
/**
* Optional. Specifies how source URIs are interpreted for constructing the
* file set to load. By default source URIs are expanded against the
* underlying storage. Other options include specifying manifest files. Only
* applicable to object storage systems.
*
* @var string
*/
public $fileSetSpecType;
protected $googleSheetsOptionsType = GoogleSheetsOptions::class;
protected $googleSheetsOptionsDataType = '';
protected $hivePartitioningOptionsType = HivePartitioningOptions::class;
protected $hivePartitioningOptionsDataType = '';
/**
* Optional. Indicates if BigQuery should allow extra values that are not
* represented in the table schema. If true, the extra values are ignored. If
* false, records with extra columns are treated as bad records, and if there
* are too many bad records, an invalid error is returned in the job result.
* The default value is false. The sourceFormat property determines what
* BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values
* that don't match any column names Google Cloud Bigtable: This setting is
* ignored. Google Cloud Datastore backups: This setting is ignored. Avro:
* This setting is ignored. ORC: This setting is ignored. Parquet: This
* setting is ignored.
*
* @var bool
*/
public $ignoreUnknownValues;
/**
* Optional. Load option to be used together with source_format newline-
* delimited JSON to indicate that a variant of JSON is being loaded. To load
* newline-delimited GeoJSON, specify GEOJSON (and source_format must be set
* to NEWLINE_DELIMITED_JSON).
*
* @var string
*/
public $jsonExtension;
protected $jsonOptionsType = JsonOptions::class;
protected $jsonOptionsDataType = '';
/**
* Optional. The maximum number of bad records that BigQuery can ignore when
* reading data. If the number of bad records exceeds this value, an invalid
* error is returned in the job result. The default value is 0, which requires
* that all records are valid. This setting is ignored for Google Cloud
* Bigtable, Google Cloud Datastore backups, Avro, ORC and Parquet formats.
*
* @var int
*/
public $maxBadRecords;
/**
* Optional. Metadata Cache Mode for the table. Set this to enable caching of
* metadata from external data source.
*
* @var string
*/
public $metadataCacheMode;
/**
* Optional. ObjectMetadata is used to create Object Tables. Object Tables
* contain a listing of objects (with their metadata) found at the
* source_uris. If ObjectMetadata is set, source_format should be omitted.
* Currently SIMPLE is the only supported Object Metadata type.
*
* @var string
*/
public $objectMetadata;
protected $parquetOptionsType = ParquetOptions::class;
protected $parquetOptionsDataType = '';
/**
* Optional. When creating an external table, the user can provide a reference
* file with the table schema. This is enabled for the following formats:
* AVRO, PARQUET, ORC.
*
* @var string
*/
public $referenceFileSchemaUri;
protected $schemaType = TableSchema::class;
protected $schemaDataType = '';
/**
* [Required] The data format. For CSV files, specify "CSV". For Google
* sheets, specify "GOOGLE_SHEETS". For newline-delimited JSON, specify
* "NEWLINE_DELIMITED_JSON". For Avro files, specify "AVRO". For Google Cloud
* Datastore backups, specify "DATASTORE_BACKUP". For Apache Iceberg tables,
* specify "ICEBERG". For ORC files, specify "ORC". For Parquet files, specify
* "PARQUET". [Beta] For Google Cloud Bigtable, specify "BIGTABLE".
*
* @var string
*/
public $sourceFormat;
/**
* [Required] The fully-qualified URIs that point to your data in Google
* Cloud. For Google Cloud Storage URIs: Each URI can contain one '*' wildcard
* character and it must come after the 'bucket' name. Size limits related to
* load jobs apply to external data sources. For Google Cloud Bigtable URIs:
* Exactly one URI can be specified and it has be a fully specified and valid
* HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore
* backups, exactly one URI can be specified. Also, the '*' wildcard character
* is not allowed.
*
* @var string[]
*/
public $sourceUris;
/**
* Optional. Format used to parse TIME values. Supports C-style and SQL-style
* values.
*
* @var string
*/
public $timeFormat;
/**
* Optional. Time zone used when parsing timestamp values that do not have
* specific time zone information (e.g. 2024-04-20 12:34:56). The expected
* format is a IANA timezone string (e.g. America/Los_Angeles).
*
* @var string
*/
public $timeZone;
/**
* Optional. Format used to parse TIMESTAMP values. Supports C-style and SQL-
* style values.
*
* @var string
*/
public $timestampFormat;
/**
* Precisions (maximum number of total digits in base 10) for seconds of
* TIMESTAMP types that are allowed to the destination table for autodetection
* mode. Available for the formats: CSV, PARQUET, and AVRO. Possible values
* include: Not Specified, [], or [6]: timestamp(6) for all auto detected
* TIMESTAMP columns [6, 12]: timestamp(6) for all auto detected TIMESTAMP
* columns that have less than 6 digits of subseconds. timestamp(12) for all
* auto detected TIMESTAMP columns that have more than 6 digits of subseconds.
* [12]: timestamp(12) for all auto detected TIMESTAMP columns. The order of
* the elements in this array is ignored. Inputs that have higher precision
* than the highest target precision in this array will be truncated.
*
* @var int[]
*/
public $timestampTargetPrecision;
/**
* Try to detect schema and format options automatically. Any option specified
* explicitly will be honored.
*
* @param bool $autodetect
*/
public function setAutodetect($autodetect)
{
$this->autodetect = $autodetect;
}
/**
* @return bool
*/
public function getAutodetect()
{
return $this->autodetect;
}
/**
* Optional. Additional properties to set if sourceFormat is set to AVRO.
*
* @param AvroOptions $avroOptions
*/
public function setAvroOptions(AvroOptions $avroOptions)
{
$this->avroOptions = $avroOptions;
}
/**
* @return AvroOptions
*/
public function getAvroOptions()
{
return $this->avroOptions;
}
/**
* Optional. Additional options if sourceFormat is set to BIGTABLE.
*
* @param BigtableOptions $bigtableOptions
*/
public function setBigtableOptions(BigtableOptions $bigtableOptions)
{
$this->bigtableOptions = $bigtableOptions;
}
/**
* @return BigtableOptions
*/
public function getBigtableOptions()
{
return $this->bigtableOptions;
}
/**
* Optional. The compression type of the data source. Possible values include
* GZIP and NONE. The default value is NONE. This setting is ignored for
* Google Cloud Bigtable, Google Cloud Datastore backups, Avro, ORC and
* Parquet formats. An empty string is an invalid value.
*
* @param string $compression
*/
public function setCompression($compression)
{
$this->compression = $compression;
}
/**
* @return string
*/
public function getCompression()
{
return $this->compression;
}
/**
* Optional. The connection specifying the credentials to be used to read
* external storage, such as Azure Blob, Cloud Storage, or S3. The
* connection_id can have the form
* `{project_id}.{location_id};{connection_id}` or `projects/{project_id}/loca
* tions/{location_id}/connections/{connection_id}`.
*
* @param string $connectionId
*/
public function setConnectionId($connectionId)
{
$this->connectionId = $connectionId;
}
/**
* @return string
*/
public function getConnectionId()
{
return $this->connectionId;
}
/**
* Optional. Additional properties to set if sourceFormat is set to CSV.
*
* @param CsvOptions $csvOptions
*/
public function setCsvOptions(CsvOptions $csvOptions)
{
$this->csvOptions = $csvOptions;
}
/**
* @return CsvOptions
*/
public function getCsvOptions()
{
return $this->csvOptions;
}
/**
* Optional. Format used to parse DATE values. Supports C-style and SQL-style
* values.
*
* @param string $dateFormat
*/
public function setDateFormat($dateFormat)
{
$this->dateFormat = $dateFormat;
}
/**
* @return string
*/
public function getDateFormat()
{
return $this->dateFormat;
}
/**
* Optional. Format used to parse DATETIME values. Supports C-style and SQL-
* style values.
*
* @param string $datetimeFormat
*/
public function setDatetimeFormat($datetimeFormat)
{
$this->datetimeFormat = $datetimeFormat;
}
/**
* @return string
*/
public function getDatetimeFormat()
{
return $this->datetimeFormat;
}
/**
* Defines the list of possible SQL data types to which the source decimal
* values are converted. This list and the precision and the scale parameters
* of the decimal field determine the target type. In the order of NUMERIC,
* BIGNUMERIC, and STRING, a type is picked if it is in the specified list and
* if it supports the precision and the scale. STRING supports all precision
* and scale values. If none of the listed types supports the precision and
* the scale, the type supporting the widest range in the specified list is
* picked, and if a value exceeds the supported range when reading the data,
* an error will be thrown. Example: Suppose the value of this field is
* ["NUMERIC", "BIGNUMERIC"]. If (precision,scale) is: * (38,9) -> NUMERIC; *
* (39,9) -> BIGNUMERIC (NUMERIC cannot hold 30 integer digits); * (38,10) ->
* BIGNUMERIC (NUMERIC cannot hold 10 fractional digits); * (76,38) ->
* BIGNUMERIC; * (77,38) -> BIGNUMERIC (error if value exceeds supported
* range). This field cannot contain duplicate types. The order of the types
* in this field is ignored. For example, ["BIGNUMERIC", "NUMERIC"] is the
* same as ["NUMERIC", "BIGNUMERIC"] and NUMERIC always takes precedence over
* BIGNUMERIC. Defaults to ["NUMERIC", "STRING"] for ORC and ["NUMERIC"] for
* the other file formats.
*
* @param string[] $decimalTargetTypes
*/
public function setDecimalTargetTypes($decimalTargetTypes)
{
$this->decimalTargetTypes = $decimalTargetTypes;
}
/**
* @return string[]
*/
public function getDecimalTargetTypes()
{
return $this->decimalTargetTypes;
}
/**
* Optional. Specifies how source URIs are interpreted for constructing the
* file set to load. By default source URIs are expanded against the
* underlying storage. Other options include specifying manifest files. Only
* applicable to object storage systems.
*
* Accepted values: FILE_SET_SPEC_TYPE_FILE_SYSTEM_MATCH,
* FILE_SET_SPEC_TYPE_NEW_LINE_DELIMITED_MANIFEST
*
* @param self::FILE_SET_SPEC_TYPE_* $fileSetSpecType
*/
public function setFileSetSpecType($fileSetSpecType)
{
$this->fileSetSpecType = $fileSetSpecType;
}
/**
* @return self::FILE_SET_SPEC_TYPE_*
*/
public function getFileSetSpecType()
{
return $this->fileSetSpecType;
}
/**
* Optional. Additional options if sourceFormat is set to GOOGLE_SHEETS.
*
* @param GoogleSheetsOptions $googleSheetsOptions
*/
public function setGoogleSheetsOptions(GoogleSheetsOptions $googleSheetsOptions)
{
$this->googleSheetsOptions = $googleSheetsOptions;
}
/**
* @return GoogleSheetsOptions
*/
public function getGoogleSheetsOptions()
{
return $this->googleSheetsOptions;
}
/**
* Optional. When set, configures hive partitioning support. Not all storage
* formats support hive partitioning -- requesting hive partitioning on an
* unsupported format will lead to an error, as will providing an invalid
* specification.
*
* @param HivePartitioningOptions $hivePartitioningOptions
*/
public function setHivePartitioningOptions(HivePartitioningOptions $hivePartitioningOptions)
{
$this->hivePartitioningOptions = $hivePartitioningOptions;
}
/**
* @return HivePartitioningOptions
*/
public function getHivePartitioningOptions()
{
return $this->hivePartitioningOptions;
}
/**
* Optional. Indicates if BigQuery should allow extra values that are not
* represented in the table schema. If true, the extra values are ignored. If
* false, records with extra columns are treated as bad records, and if there
* are too many bad records, an invalid error is returned in the job result.
* The default value is false. The sourceFormat property determines what
* BigQuery treats as an extra value: CSV: Trailing columns JSON: Named values
* that don't match any column names Google Cloud Bigtable: This setting is
* ignored. Google Cloud Datastore backups: This setting is ignored. Avro:
* This setting is ignored. ORC: This setting is ignored. Parquet: This
* setting is ignored.
*
* @param bool $ignoreUnknownValues
*/
public function setIgnoreUnknownValues($ignoreUnknownValues)
{
$this->ignoreUnknownValues = $ignoreUnknownValues;
}
/**
* @return bool
*/
public function getIgnoreUnknownValues()
{
return $this->ignoreUnknownValues;
}
/**
* Optional. Load option to be used together with source_format newline-
* delimited JSON to indicate that a variant of JSON is being loaded. To load
* newline-delimited GeoJSON, specify GEOJSON (and source_format must be set
* to NEWLINE_DELIMITED_JSON).
*
* Accepted values: JSON_EXTENSION_UNSPECIFIED, GEOJSON
*
* @param self::JSON_EXTENSION_* $jsonExtension
*/
public function setJsonExtension($jsonExtension)
{
$this->jsonExtension = $jsonExtension;
}
/**
* @return self::JSON_EXTENSION_*
*/
public function getJsonExtension()
{
return $this->jsonExtension;
}
/**
* Optional. Additional properties to set if sourceFormat is set to JSON.
*
* @param JsonOptions $jsonOptions
*/
public function setJsonOptions(JsonOptions $jsonOptions)
{
$this->jsonOptions = $jsonOptions;
}
/**
* @return JsonOptions
*/
public function getJsonOptions()
{
return $this->jsonOptions;
}
/**
* Optional. The maximum number of bad records that BigQuery can ignore when
* reading data. If the number of bad records exceeds this value, an invalid
* error is returned in the job result. The default value is 0, which requires
* that all records are valid. This setting is ignored for Google Cloud
* Bigtable, Google Cloud Datastore backups, Avro, ORC and Parquet formats.
*
* @param int $maxBadRecords
*/
public function setMaxBadRecords($maxBadRecords)
{
$this->maxBadRecords = $maxBadRecords;
}
/**
* @return int
*/
public function getMaxBadRecords()
{
return $this->maxBadRecords;
}
/**
* Optional. Metadata Cache Mode for the table. Set this to enable caching of
* metadata from external data source.
*
* Accepted values: METADATA_CACHE_MODE_UNSPECIFIED, AUTOMATIC, MANUAL
*
* @param self::METADATA_CACHE_MODE_* $metadataCacheMode
*/
public function setMetadataCacheMode($metadataCacheMode)
{
$this->metadataCacheMode = $metadataCacheMode;
}
/**
* @return self::METADATA_CACHE_MODE_*
*/
public function getMetadataCacheMode()
{
return $this->metadataCacheMode;
}
/**
* Optional. ObjectMetadata is used to create Object Tables. Object Tables
* contain a listing of objects (with their metadata) found at the
* source_uris. If ObjectMetadata is set, source_format should be omitted.
* Currently SIMPLE is the only supported Object Metadata type.
*
* Accepted values: OBJECT_METADATA_UNSPECIFIED, DIRECTORY, SIMPLE
*
* @param self::OBJECT_METADATA_* $objectMetadata
*/
public function setObjectMetadata($objectMetadata)
{
$this->objectMetadata = $objectMetadata;
}
/**
* @return self::OBJECT_METADATA_*
*/
public function getObjectMetadata()
{
return $this->objectMetadata;
}
/**
* Optional. Additional properties to set if sourceFormat is set to PARQUET.
*
* @param ParquetOptions $parquetOptions
*/
public function setParquetOptions(ParquetOptions $parquetOptions)
{
$this->parquetOptions = $parquetOptions;
}
/**
* @return ParquetOptions
*/
public function getParquetOptions()
{
return $this->parquetOptions;
}
/**
* Optional. When creating an external table, the user can provide a reference
* file with the table schema. This is enabled for the following formats:
* AVRO, PARQUET, ORC.
*
* @param string $referenceFileSchemaUri
*/
public function setReferenceFileSchemaUri($referenceFileSchemaUri)
{
$this->referenceFileSchemaUri = $referenceFileSchemaUri;
}
/**
* @return string
*/
public function getReferenceFileSchemaUri()
{
return $this->referenceFileSchemaUri;
}
/**
* Optional. The schema for the data. Schema is required for CSV and JSON
* formats if autodetect is not on. Schema is disallowed for Google Cloud
* Bigtable, Cloud Datastore backups, Avro, ORC and Parquet formats.
*
* @param TableSchema $schema
*/
public function setSchema(TableSchema $schema)
{
$this->schema = $schema;
}
/**
* @return TableSchema
*/
public function getSchema()
{
return $this->schema;
}
/**
* [Required] The data format. For CSV files, specify "CSV". For Google
* sheets, specify "GOOGLE_SHEETS". For newline-delimited JSON, specify
* "NEWLINE_DELIMITED_JSON". For Avro files, specify "AVRO". For Google Cloud
* Datastore backups, specify "DATASTORE_BACKUP". For Apache Iceberg tables,
* specify "ICEBERG". For ORC files, specify "ORC". For Parquet files, specify
* "PARQUET". [Beta] For Google Cloud Bigtable, specify "BIGTABLE".
*
* @param string $sourceFormat
*/
public function setSourceFormat($sourceFormat)
{
$this->sourceFormat = $sourceFormat;
}
/**
* @return string
*/
public function getSourceFormat()
{
return $this->sourceFormat;
}
/**
* [Required] The fully-qualified URIs that point to your data in Google
* Cloud. For Google Cloud Storage URIs: Each URI can contain one '*' wildcard
* character and it must come after the 'bucket' name. Size limits related to
* load jobs apply to external data sources. For Google Cloud Bigtable URIs:
* Exactly one URI can be specified and it has be a fully specified and valid
* HTTPS URL for a Google Cloud Bigtable table. For Google Cloud Datastore
* backups, exactly one URI can be specified. Also, the '*' wildcard character
* is not allowed.
*
* @param string[] $sourceUris
*/
public function setSourceUris($sourceUris)
{
$this->sourceUris = $sourceUris;
}
/**
* @return string[]
*/
public function getSourceUris()
{
return $this->sourceUris;
}
/**
* Optional. Format used to parse TIME values. Supports C-style and SQL-style
* values.
*
* @param string $timeFormat
*/
public function setTimeFormat($timeFormat)
{
$this->timeFormat = $timeFormat;
}
/**
* @return string
*/
public function getTimeFormat()
{
return $this->timeFormat;
}
/**
* Optional. Time zone used when parsing timestamp values that do not have
* specific time zone information (e.g. 2024-04-20 12:34:56). The expected
* format is a IANA timezone string (e.g. America/Los_Angeles).
*
* @param string $timeZone
*/
public function setTimeZone($timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return string
*/
public function getTimeZone()
{
return $this->timeZone;
}
/**
* Optional. Format used to parse TIMESTAMP values. Supports C-style and SQL-
* style values.
*
* @param string $timestampFormat
*/
public function setTimestampFormat($timestampFormat)
{
$this->timestampFormat = $timestampFormat;
}
/**
* @return string
*/
public function getTimestampFormat()
{
return $this->timestampFormat;
}
/**
* Precisions (maximum number of total digits in base 10) for seconds of
* TIMESTAMP types that are allowed to the destination table for autodetection
* mode. Available for the formats: CSV, PARQUET, and AVRO. Possible values
* include: Not Specified, [], or [6]: timestamp(6) for all auto detected
* TIMESTAMP columns [6, 12]: timestamp(6) for all auto detected TIMESTAMP
* columns that have less than 6 digits of subseconds. timestamp(12) for all
* auto detected TIMESTAMP columns that have more than 6 digits of subseconds.
* [12]: timestamp(12) for all auto detected TIMESTAMP columns. The order of
* the elements in this array is ignored. Inputs that have higher precision
* than the highest target precision in this array will be truncated.
*
* @param int[] $timestampTargetPrecision
*/
public function setTimestampTargetPrecision($timestampTargetPrecision)
{
$this->timestampTargetPrecision = $timestampTargetPrecision;
}
/**
* @return int[]
*/
public function getTimestampTargetPrecision()
{
return $this->timestampTargetPrecision;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExternalDataConfiguration::class, 'Google_Service_Bigquery_ExternalDataConfiguration');
@@ -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\Bigquery;
class ExternalDatasetReference extends \Google\Model
{
/**
* Required. The connection id that is used to access the external_source.
* Format:
* projects/{project_id}/locations/{location_id}/connections/{connection_id}
*
* @var string
*/
public $connection;
/**
* Required. External source that backs this dataset.
*
* @var string
*/
public $externalSource;
/**
* Required. The connection id that is used to access the external_source.
* Format:
* projects/{project_id}/locations/{location_id}/connections/{connection_id}
*
* @param string $connection
*/
public function setConnection($connection)
{
$this->connection = $connection;
}
/**
* @return string
*/
public function getConnection()
{
return $this->connection;
}
/**
* Required. External source that backs this dataset.
*
* @param string $externalSource
*/
public function setExternalSource($externalSource)
{
$this->externalSource = $externalSource;
}
/**
* @return string
*/
public function getExternalSource()
{
return $this->externalSource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExternalDatasetReference::class, 'Google_Service_Bigquery_ExternalDatasetReference');
@@ -0,0 +1,173 @@
<?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\Bigquery;
class ExternalRuntimeOptions extends \Google\Model
{
/**
* Optional. Amount of CPU provisioned for a Python UDF container instance.
* For more information, see [Configure container limits for Python
* UDFs](https://cloud.google.com/bigquery/docs/user-defined-functions-
* python#configure-container-limits)
*
* @var
*/
public $containerCpu;
/**
* Optional. Amount of memory provisioned for a Python UDF container instance.
* Format: {number}{unit} where unit is one of "M", "G", "Mi" and "Gi" (e.g.
* 1G, 512Mi). If not specified, the default value is 512Mi. For more
* information, see [Configure container limits for Python
* UDFs](https://cloud.google.com/bigquery/docs/user-defined-functions-
* python#configure-container-limits)
*
* @var string
*/
public $containerMemory;
/**
* Optional. Maximum number of requests that a Cloud Run instance can handle
* concurrently. If absent or if `0`, a default concurrency is used.
*
* @var string
*/
public $containerRequestConcurrency;
/**
* Optional. Maximum number of rows in each batch sent to the external
* runtime. If absent or if 0, BigQuery dynamically decides the number of rows
* in a batch.
*
* @var string
*/
public $maxBatchingRows;
/**
* Optional. Fully qualified name of the connection whose service account will
* be used to execute the code in the container. Format: ```"projects/{project
* _id}/locations/{location_id}/connections/{connection_id}"```
*
* @var string
*/
public $runtimeConnection;
/**
* Optional. Language runtime version. Example: `python-3.11`.
*
* @var string
*/
public $runtimeVersion;
public function setContainerCpu($containerCpu)
{
$this->containerCpu = $containerCpu;
}
public function getContainerCpu()
{
return $this->containerCpu;
}
/**
* Optional. Amount of memory provisioned for a Python UDF container instance.
* Format: {number}{unit} where unit is one of "M", "G", "Mi" and "Gi" (e.g.
* 1G, 512Mi). If not specified, the default value is 512Mi. For more
* information, see [Configure container limits for Python
* UDFs](https://cloud.google.com/bigquery/docs/user-defined-functions-
* python#configure-container-limits)
*
* @param string $containerMemory
*/
public function setContainerMemory($containerMemory)
{
$this->containerMemory = $containerMemory;
}
/**
* @return string
*/
public function getContainerMemory()
{
return $this->containerMemory;
}
/**
* Optional. Maximum number of requests that a Cloud Run instance can handle
* concurrently. If absent or if `0`, a default concurrency is used.
*
* @param string $containerRequestConcurrency
*/
public function setContainerRequestConcurrency($containerRequestConcurrency)
{
$this->containerRequestConcurrency = $containerRequestConcurrency;
}
/**
* @return string
*/
public function getContainerRequestConcurrency()
{
return $this->containerRequestConcurrency;
}
/**
* Optional. Maximum number of rows in each batch sent to the external
* runtime. If absent or if 0, BigQuery dynamically decides the number of rows
* in a batch.
*
* @param string $maxBatchingRows
*/
public function setMaxBatchingRows($maxBatchingRows)
{
$this->maxBatchingRows = $maxBatchingRows;
}
/**
* @return string
*/
public function getMaxBatchingRows()
{
return $this->maxBatchingRows;
}
/**
* Optional. Fully qualified name of the connection whose service account will
* be used to execute the code in the container. Format: ```"projects/{project
* _id}/locations/{location_id}/connections/{connection_id}"```
*
* @param string $runtimeConnection
*/
public function setRuntimeConnection($runtimeConnection)
{
$this->runtimeConnection = $runtimeConnection;
}
/**
* @return string
*/
public function getRuntimeConnection()
{
return $this->runtimeConnection;
}
/**
* Optional. Language runtime version. Example: `python-3.11`.
*
* @param string $runtimeVersion
*/
public function setRuntimeVersion($runtimeVersion)
{
$this->runtimeVersion = $runtimeVersion;
}
/**
* @return string
*/
public function getRuntimeVersion()
{
return $this->runtimeVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExternalRuntimeOptions::class, 'Google_Service_Bigquery_ExternalRuntimeOptions');
@@ -0,0 +1,166 @@
<?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\Bigquery;
class ExternalServiceCost extends \Google\Model
{
/**
* The billing method used for the external job. This field, set to
* `SERVICES_SKU`, is only used when billing under the services SKU.
* Otherwise, it is unspecified for backward compatibility.
*
* @var string
*/
public $billingMethod;
/**
* External service cost in terms of bigquery bytes billed.
*
* @var string
*/
public $bytesBilled;
/**
* External service cost in terms of bigquery bytes processed.
*
* @var string
*/
public $bytesProcessed;
/**
* External service name.
*
* @var string
*/
public $externalService;
/**
* Non-preemptable reserved slots used for external job. For example, reserved
* slots for Cloua AI Platform job are the VM usages converted to BigQuery
* slot with equivalent mount of price.
*
* @var string
*/
public $reservedSlotCount;
/**
* External service cost in terms of bigquery slot milliseconds.
*
* @var string
*/
public $slotMs;
/**
* The billing method used for the external job. This field, set to
* `SERVICES_SKU`, is only used when billing under the services SKU.
* Otherwise, it is unspecified for backward compatibility.
*
* @param string $billingMethod
*/
public function setBillingMethod($billingMethod)
{
$this->billingMethod = $billingMethod;
}
/**
* @return string
*/
public function getBillingMethod()
{
return $this->billingMethod;
}
/**
* External service cost in terms of bigquery bytes billed.
*
* @param string $bytesBilled
*/
public function setBytesBilled($bytesBilled)
{
$this->bytesBilled = $bytesBilled;
}
/**
* @return string
*/
public function getBytesBilled()
{
return $this->bytesBilled;
}
/**
* External service cost in terms of bigquery bytes processed.
*
* @param string $bytesProcessed
*/
public function setBytesProcessed($bytesProcessed)
{
$this->bytesProcessed = $bytesProcessed;
}
/**
* @return string
*/
public function getBytesProcessed()
{
return $this->bytesProcessed;
}
/**
* External service name.
*
* @param string $externalService
*/
public function setExternalService($externalService)
{
$this->externalService = $externalService;
}
/**
* @return string
*/
public function getExternalService()
{
return $this->externalService;
}
/**
* Non-preemptable reserved slots used for external job. For example, reserved
* slots for Cloua AI Platform job are the VM usages converted to BigQuery
* slot with equivalent mount of price.
*
* @param string $reservedSlotCount
*/
public function setReservedSlotCount($reservedSlotCount)
{
$this->reservedSlotCount = $reservedSlotCount;
}
/**
* @return string
*/
public function getReservedSlotCount()
{
return $this->reservedSlotCount;
}
/**
* External service cost in terms of bigquery slot milliseconds.
*
* @param string $slotMs
*/
public function setSlotMs($slotMs)
{
$this->slotMs = $slotMs;
}
/**
* @return string
*/
public function getSlotMs()
{
return $this->slotMs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ExternalServiceCost::class, 'Google_Service_Bigquery_ExternalServiceCost');
@@ -0,0 +1,80 @@
<?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\Bigquery;
class FeatureValue extends \Google\Model
{
protected $categoricalValueType = CategoricalValue::class;
protected $categoricalValueDataType = '';
/**
* The feature column name.
*
* @var string
*/
public $featureColumn;
/**
* The numerical feature value. This is the centroid value for this feature.
*
* @var
*/
public $numericalValue;
/**
* The categorical feature value.
*
* @param CategoricalValue $categoricalValue
*/
public function setCategoricalValue(CategoricalValue $categoricalValue)
{
$this->categoricalValue = $categoricalValue;
}
/**
* @return CategoricalValue
*/
public function getCategoricalValue()
{
return $this->categoricalValue;
}
/**
* The feature column name.
*
* @param string $featureColumn
*/
public function setFeatureColumn($featureColumn)
{
$this->featureColumn = $featureColumn;
}
/**
* @return string
*/
public function getFeatureColumn()
{
return $this->featureColumn;
}
public function setNumericalValue($numericalValue)
{
$this->numericalValue = $numericalValue;
}
public function getNumericalValue()
{
return $this->numericalValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FeatureValue::class, 'Google_Service_Bigquery_FeatureValue');
@@ -0,0 +1,58 @@
<?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\Bigquery;
class ForeignTypeInfo extends \Google\Model
{
/**
* TypeSystem not specified.
*/
public const TYPE_SYSTEM_TYPE_SYSTEM_UNSPECIFIED = 'TYPE_SYSTEM_UNSPECIFIED';
/**
* Represents Hive data types.
*/
public const TYPE_SYSTEM_HIVE = 'HIVE';
/**
* Required. Specifies the system which defines the foreign data type.
*
* @var string
*/
public $typeSystem;
/**
* Required. Specifies the system which defines the foreign data type.
*
* Accepted values: TYPE_SYSTEM_UNSPECIFIED, HIVE
*
* @param self::TYPE_SYSTEM_* $typeSystem
*/
public function setTypeSystem($typeSystem)
{
$this->typeSystem = $typeSystem;
}
/**
* @return self::TYPE_SYSTEM_*
*/
public function getTypeSystem()
{
return $this->typeSystem;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ForeignTypeInfo::class, 'Google_Service_Bigquery_ForeignTypeInfo');
@@ -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\Bigquery;
class ForeignViewDefinition extends \Google\Model
{
/**
* Optional. Represents the dialect of the query.
*
* @var string
*/
public $dialect;
/**
* Required. The query that defines the view.
*
* @var string
*/
public $query;
/**
* Optional. Represents the dialect of the query.
*
* @param string $dialect
*/
public function setDialect($dialect)
{
$this->dialect = $dialect;
}
/**
* @return string
*/
public function getDialect()
{
return $this->dialect;
}
/**
* Required. The query that defines the view.
*
* @param string $query
*/
public function setQuery($query)
{
$this->query = $query;
}
/**
* @return string
*/
public function getQuery()
{
return $this->query;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ForeignViewDefinition::class, 'Google_Service_Bigquery_ForeignViewDefinition');
@@ -0,0 +1,49 @@
<?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\Bigquery;
class GenAiErrorStats extends \Google\Collection
{
protected $collection_key = 'errors';
/**
* A list of unique errors at query level (up to 5, truncated to 100 chars)
*
* @var string[]
*/
public $errors;
/**
* A list of unique errors at query level (up to 5, truncated to 100 chars)
*
* @param string[] $errors
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return string[]
*/
public function getErrors()
{
return $this->errors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenAiErrorStats::class, 'Google_Service_Bigquery_GenAiErrorStats');
@@ -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\Bigquery;
class GenAiFunctionCacheStats extends \Google\Model
{
/**
* Number of rows served from cache.
*
* @var string
*/
public $numCacheHitRows;
/**
* Number of rows served from cache.
*
* @param string $numCacheHitRows
*/
public function setNumCacheHitRows($numCacheHitRows)
{
$this->numCacheHitRows = $numCacheHitRows;
}
/**
* @return string
*/
public function getNumCacheHitRows()
{
return $this->numCacheHitRows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenAiFunctionCacheStats::class, 'Google_Service_Bigquery_GenAiFunctionCacheStats');
@@ -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\Bigquery;
class GenAiFunctionCostOptimizationStats extends \Google\Model
{
/**
* System generated message to provide insights into cost optimization state.
*
* @var string
*/
public $message;
/**
* Number of rows inferred via cost optimized workflow.
*
* @var string
*/
public $numCostOptimizedRows;
/**
* System generated message to provide insights into cost optimization state.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Number of rows inferred via cost optimized workflow.
*
* @param string $numCostOptimizedRows
*/
public function setNumCostOptimizedRows($numCostOptimizedRows)
{
$this->numCostOptimizedRows = $numCostOptimizedRows;
}
/**
* @return string
*/
public function getNumCostOptimizedRows()
{
return $this->numCostOptimizedRows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenAiFunctionCostOptimizationStats::class, 'Google_Service_Bigquery_GenAiFunctionCostOptimizationStats');
@@ -0,0 +1,73 @@
<?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\Bigquery;
class GenAiFunctionErrorStats extends \Google\Collection
{
protected $collection_key = 'errors';
/**
* A list of unique errors at function level (up to 5, truncated to 100
* chars).
*
* @var string[]
*/
public $errors;
/**
* Number of failed rows processed by the function
*
* @var string
*/
public $numFailedRows;
/**
* A list of unique errors at function level (up to 5, truncated to 100
* chars).
*
* @param string[] $errors
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return string[]
*/
public function getErrors()
{
return $this->errors;
}
/**
* Number of failed rows processed by the function
*
* @param string $numFailedRows
*/
public function setNumFailedRows($numFailedRows)
{
$this->numFailedRows = $numFailedRows;
}
/**
* @return string
*/
public function getNumFailedRows()
{
return $this->numFailedRows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenAiFunctionErrorStats::class, 'Google_Service_Bigquery_GenAiFunctionErrorStats');
@@ -0,0 +1,148 @@
<?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\Bigquery;
class GenAiFunctionStats extends \Google\Model
{
protected $cacheStatsType = GenAiFunctionCacheStats::class;
protected $cacheStatsDataType = '';
protected $costOptimizationStatsType = GenAiFunctionCostOptimizationStats::class;
protected $costOptimizationStatsDataType = '';
protected $errorStatsType = GenAiFunctionErrorStats::class;
protected $errorStatsDataType = '';
/**
* Name of the function.
*
* @var string
*/
public $functionName;
/**
* Number of rows processed by this GenAi function. This includes all
* cost_optimized, llm_inferred and failed_rows.
*
* @var string
*/
public $numProcessedRows;
/**
* User input prompt of the function (truncated to 20 chars).
*
* @var string
*/
public $prompt;
/**
* Cache stats for the function.
*
* @param GenAiFunctionCacheStats $cacheStats
*/
public function setCacheStats(GenAiFunctionCacheStats $cacheStats)
{
$this->cacheStats = $cacheStats;
}
/**
* @return GenAiFunctionCacheStats
*/
public function getCacheStats()
{
return $this->cacheStats;
}
/**
* Cost optimization stats if applied on the rows processed by the function.
*
* @param GenAiFunctionCostOptimizationStats $costOptimizationStats
*/
public function setCostOptimizationStats(GenAiFunctionCostOptimizationStats $costOptimizationStats)
{
$this->costOptimizationStats = $costOptimizationStats;
}
/**
* @return GenAiFunctionCostOptimizationStats
*/
public function getCostOptimizationStats()
{
return $this->costOptimizationStats;
}
/**
* Error stats for the function.
*
* @param GenAiFunctionErrorStats $errorStats
*/
public function setErrorStats(GenAiFunctionErrorStats $errorStats)
{
$this->errorStats = $errorStats;
}
/**
* @return GenAiFunctionErrorStats
*/
public function getErrorStats()
{
return $this->errorStats;
}
/**
* Name of the function.
*
* @param string $functionName
*/
public function setFunctionName($functionName)
{
$this->functionName = $functionName;
}
/**
* @return string
*/
public function getFunctionName()
{
return $this->functionName;
}
/**
* Number of rows processed by this GenAi function. This includes all
* cost_optimized, llm_inferred and failed_rows.
*
* @param string $numProcessedRows
*/
public function setNumProcessedRows($numProcessedRows)
{
$this->numProcessedRows = $numProcessedRows;
}
/**
* @return string
*/
public function getNumProcessedRows()
{
return $this->numProcessedRows;
}
/**
* User input prompt of the function (truncated to 20 chars).
*
* @param string $prompt
*/
public function setPrompt($prompt)
{
$this->prompt = $prompt;
}
/**
* @return string
*/
public function getPrompt()
{
return $this->prompt;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenAiFunctionStats::class, 'Google_Service_Bigquery_GenAiFunctionStats');
@@ -0,0 +1,64 @@
<?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\Bigquery;
class GenAiStats extends \Google\Collection
{
protected $collection_key = 'functionStats';
protected $errorStatsType = GenAiErrorStats::class;
protected $errorStatsDataType = '';
protected $functionStatsType = GenAiFunctionStats::class;
protected $functionStatsDataType = 'array';
/**
* Job level error stats across all GenAi functions
*
* @param GenAiErrorStats $errorStats
*/
public function setErrorStats(GenAiErrorStats $errorStats)
{
$this->errorStats = $errorStats;
}
/**
* @return GenAiErrorStats
*/
public function getErrorStats()
{
return $this->errorStats;
}
/**
* Function level stats for GenAi Functions. See
* https://docs.cloud.google.com/bigquery/docs/generative-ai-overview
*
* @param GenAiFunctionStats[] $functionStats
*/
public function setFunctionStats($functionStats)
{
$this->functionStats = $functionStats;
}
/**
* @return GenAiFunctionStats[]
*/
public function getFunctionStats()
{
return $this->functionStats;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenAiStats::class, 'Google_Service_Bigquery_GenAiStats');
@@ -0,0 +1,85 @@
<?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\Bigquery;
class GeneratedColumn extends \Google\Model
{
/**
* Unspecified GeneratedMode will default to GENERATED_ALWAYS.
*/
public const GENERATED_MODE_GENERATED_MODE_UNSPECIFIED = 'GENERATED_MODE_UNSPECIFIED';
/**
* Field can only have system generated values. Users cannot manually insert
* values into the field.
*/
public const GENERATED_MODE_GENERATED_ALWAYS = 'GENERATED_ALWAYS';
/**
* Use system generated values only if the user does not explicitly provide a
* value.
*/
public const GENERATED_MODE_GENERATED_BY_DEFAULT = 'GENERATED_BY_DEFAULT';
protected $generatedExpressionInfoType = GeneratedExpressionInfo::class;
protected $generatedExpressionInfoDataType = '';
/**
* Optional. Dictates when system generated values are used to populate the
* field.
*
* @var string
*/
public $generatedMode;
/**
* Definition of the expression used to generate the field.
*
* @param GeneratedExpressionInfo $generatedExpressionInfo
*/
public function setGeneratedExpressionInfo(GeneratedExpressionInfo $generatedExpressionInfo)
{
$this->generatedExpressionInfo = $generatedExpressionInfo;
}
/**
* @return GeneratedExpressionInfo
*/
public function getGeneratedExpressionInfo()
{
return $this->generatedExpressionInfo;
}
/**
* Optional. Dictates when system generated values are used to populate the
* field.
*
* Accepted values: GENERATED_MODE_UNSPECIFIED, GENERATED_ALWAYS,
* GENERATED_BY_DEFAULT
*
* @param self::GENERATED_MODE_* $generatedMode
*/
public function setGeneratedMode($generatedMode)
{
$this->generatedMode = $generatedMode;
}
/**
* @return self::GENERATED_MODE_*
*/
public function getGeneratedMode()
{
return $this->generatedMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GeneratedColumn::class, 'Google_Service_Bigquery_GeneratedColumn');
@@ -0,0 +1,94 @@
<?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\Bigquery;
class GeneratedExpressionInfo extends \Google\Model
{
/**
* Optional. Whether the column generation is done asynchronously.
*
* @var bool
*/
public $asynchronous;
/**
* Optional. The generation expression (e.g. AI.EMBED(...)) used to generated
* the field.
*
* @var string
*/
public $generationExpression;
/**
* Optional. Whether the generated column is stored in the table.
*
* @var bool
*/
public $stored;
/**
* Optional. Whether the column generation is done asynchronously.
*
* @param bool $asynchronous
*/
public function setAsynchronous($asynchronous)
{
$this->asynchronous = $asynchronous;
}
/**
* @return bool
*/
public function getAsynchronous()
{
return $this->asynchronous;
}
/**
* Optional. The generation expression (e.g. AI.EMBED(...)) used to generated
* the field.
*
* @param string $generationExpression
*/
public function setGenerationExpression($generationExpression)
{
$this->generationExpression = $generationExpression;
}
/**
* @return string
*/
public function getGenerationExpression()
{
return $this->generationExpression;
}
/**
* Optional. Whether the generated column is stored in the table.
*
* @param bool $stored
*/
public function setStored($stored)
{
$this->stored = $stored;
}
/**
* @return bool
*/
public function getStored()
{
return $this->stored;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GeneratedExpressionInfo::class, 'Google_Service_Bigquery_GeneratedExpressionInfo');
@@ -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\Bigquery;
class GetIamPolicyRequest extends \Google\Model
{
protected $optionsType = GetPolicyOptions::class;
protected $optionsDataType = '';
/**
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
* `GetIamPolicy`.
*
* @param GetPolicyOptions $options
*/
public function setOptions(GetPolicyOptions $options)
{
$this->options = $options;
}
/**
* @return GetPolicyOptions
*/
public function getOptions()
{
return $this->options;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetIamPolicyRequest::class, 'Google_Service_Bigquery_GetIamPolicyRequest');
@@ -0,0 +1,68 @@
<?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\Bigquery;
class GetPolicyOptions extends \Google\Model
{
/**
* Optional. The maximum policy version that will be used to format the
* policy. Valid values are 0, 1, and 3. Requests specifying an invalid value
* will be rejected. Requests for policies with any conditional role bindings
* must specify version 3. Policies with no conditional role bindings may
* specify any valid value or leave the field unset. The policy in the
* response might use the policy version that you specified, or it might use a
* lower policy version. For example, if you specify version 3, but the policy
* has no conditional role bindings, the response uses version 1. To learn
* which resources support conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @var int
*/
public $requestedPolicyVersion;
/**
* Optional. The maximum policy version that will be used to format the
* policy. Valid values are 0, 1, and 3. Requests specifying an invalid value
* will be rejected. Requests for policies with any conditional role bindings
* must specify version 3. Policies with no conditional role bindings may
* specify any valid value or leave the field unset. The policy in the
* response might use the policy version that you specified, or it might use a
* lower policy version. For example, if you specify version 3, but the policy
* has no conditional role bindings, the response uses version 1. To learn
* which resources support conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param int $requestedPolicyVersion
*/
public function setRequestedPolicyVersion($requestedPolicyVersion)
{
$this->requestedPolicyVersion = $requestedPolicyVersion;
}
/**
* @return int
*/
public function getRequestedPolicyVersion()
{
return $this->requestedPolicyVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetPolicyOptions::class, 'Google_Service_Bigquery_GetPolicyOptions');
@@ -0,0 +1,302 @@
<?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\Bigquery;
class GetQueryResultsResponse extends \Google\Collection
{
protected $collection_key = 'rows';
/**
* Whether the query result was fetched from the query cache.
*
* @var bool
*/
public $cacheHit;
protected $errorsType = ErrorProto::class;
protected $errorsDataType = 'array';
/**
* A hash of this response.
*
* @var string
*/
public $etag;
/**
* Whether the query has completed or not. If rows or totalRows are present,
* this will always be true. If this is false, totalRows will not be
* available.
*
* @var bool
*/
public $jobComplete;
protected $jobReferenceType = JobReference::class;
protected $jobReferenceDataType = '';
/**
* The resource type of the response.
*
* @var string
*/
public $kind;
/**
* Output only. The number of rows affected by a DML statement. Present only
* for DML statements INSERT, UPDATE or DELETE.
*
* @var string
*/
public $numDmlAffectedRows;
/**
* A token used for paging results. When this token is non-empty, it indicates
* additional results are available.
*
* @var string
*/
public $pageToken;
protected $rowsType = TableRow::class;
protected $rowsDataType = 'array';
protected $schemaType = TableSchema::class;
protected $schemaDataType = '';
/**
* The total number of bytes processed for this query.
*
* @var string
*/
public $totalBytesProcessed;
/**
* The total number of rows in the complete query result set, which can be
* more than the number of rows in this single page of results. Present only
* when the query completes successfully.
*
* @var string
*/
public $totalRows;
/**
* Whether the query result was fetched from the query cache.
*
* @param bool $cacheHit
*/
public function setCacheHit($cacheHit)
{
$this->cacheHit = $cacheHit;
}
/**
* @return bool
*/
public function getCacheHit()
{
return $this->cacheHit;
}
/**
* Output only. The first errors or warnings encountered during the running of
* the job. The final message includes the number of errors that caused the
* process to stop. Errors here do not necessarily mean that the job has
* completed or was unsuccessful. For more information about error messages,
* see [Error messages](https://cloud.google.com/bigquery/docs/error-
* messages).
*
* @param ErrorProto[] $errors
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return ErrorProto[]
*/
public function getErrors()
{
return $this->errors;
}
/**
* A hash of this response.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Whether the query has completed or not. If rows or totalRows are present,
* this will always be true. If this is false, totalRows will not be
* available.
*
* @param bool $jobComplete
*/
public function setJobComplete($jobComplete)
{
$this->jobComplete = $jobComplete;
}
/**
* @return bool
*/
public function getJobComplete()
{
return $this->jobComplete;
}
/**
* Reference to the BigQuery Job that was created to run the query. This field
* will be present even if the original request timed out, in which case
* GetQueryResults can be used to read the results once the query has
* completed. Since this API only returns the first page of results,
* subsequent pages can be fetched via the same mechanism (GetQueryResults).
*
* @param JobReference $jobReference
*/
public function setJobReference(JobReference $jobReference)
{
$this->jobReference = $jobReference;
}
/**
* @return JobReference
*/
public function getJobReference()
{
return $this->jobReference;
}
/**
* The resource type of the response.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Output only. The number of rows affected by a DML statement. Present only
* for DML statements INSERT, UPDATE or DELETE.
*
* @param string $numDmlAffectedRows
*/
public function setNumDmlAffectedRows($numDmlAffectedRows)
{
$this->numDmlAffectedRows = $numDmlAffectedRows;
}
/**
* @return string
*/
public function getNumDmlAffectedRows()
{
return $this->numDmlAffectedRows;
}
/**
* A token used for paging results. When this token is non-empty, it indicates
* additional results are available.
*
* @param string $pageToken
*/
public function setPageToken($pageToken)
{
$this->pageToken = $pageToken;
}
/**
* @return string
*/
public function getPageToken()
{
return $this->pageToken;
}
/**
* An object with as many results as can be contained within the maximum
* permitted reply size. To get any additional rows, you can call
* GetQueryResults and specify the jobReference returned above. Present only
* when the query completes successfully. The REST-based representation of
* this data leverages a series of JSON f,v objects for indicating fields and
* values.
*
* @param TableRow[] $rows
*/
public function setRows($rows)
{
$this->rows = $rows;
}
/**
* @return TableRow[]
*/
public function getRows()
{
return $this->rows;
}
/**
* The schema of the results. Present only when the query completes
* successfully.
*
* @param TableSchema $schema
*/
public function setSchema(TableSchema $schema)
{
$this->schema = $schema;
}
/**
* @return TableSchema
*/
public function getSchema()
{
return $this->schema;
}
/**
* The total number of bytes processed for this query.
*
* @param string $totalBytesProcessed
*/
public function setTotalBytesProcessed($totalBytesProcessed)
{
$this->totalBytesProcessed = $totalBytesProcessed;
}
/**
* @return string
*/
public function getTotalBytesProcessed()
{
return $this->totalBytesProcessed;
}
/**
* The total number of rows in the complete query result set, which can be
* more than the number of rows in this single page of results. Present only
* when the query completes successfully.
*
* @param string $totalRows
*/
public function setTotalRows($totalRows)
{
$this->totalRows = $totalRows;
}
/**
* @return string
*/
public function getTotalRows()
{
return $this->totalRows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetQueryResultsResponse::class, 'Google_Service_Bigquery_GetQueryResultsResponse');
@@ -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\Bigquery;
class GetServiceAccountResponse extends \Google\Model
{
/**
* The service account email address.
*
* @var string
*/
public $email;
/**
* The resource type of the response.
*
* @var string
*/
public $kind;
/**
* The service account email address.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* The resource type of the response.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetServiceAccountResponse::class, 'Google_Service_Bigquery_GetServiceAccountResponse');
@@ -0,0 +1,72 @@
<?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\Bigquery;
class GlobalExplanation extends \Google\Collection
{
protected $collection_key = 'explanations';
/**
* Class label for this set of global explanations. Will be empty/null for
* binary logistic and linear regression models. Sorted alphabetically in
* descending order.
*
* @var string
*/
public $classLabel;
protected $explanationsType = Explanation::class;
protected $explanationsDataType = 'array';
/**
* Class label for this set of global explanations. Will be empty/null for
* binary logistic and linear regression models. Sorted alphabetically in
* descending order.
*
* @param string $classLabel
*/
public function setClassLabel($classLabel)
{
$this->classLabel = $classLabel;
}
/**
* @return string
*/
public function getClassLabel()
{
return $this->classLabel;
}
/**
* A list of the top global explanations. Sorted by absolute value of
* attribution in descending order.
*
* @param Explanation[] $explanations
*/
public function setExplanations($explanations)
{
$this->explanations = $explanations;
}
/**
* @return Explanation[]
*/
public function getExplanations()
{
return $this->explanations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GlobalExplanation::class, 'Google_Service_Bigquery_GlobalExplanation');
@@ -0,0 +1,94 @@
<?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\Bigquery;
class GoogleSheetsOptions extends \Google\Model
{
/**
* Optional. Range of a sheet to query from. Only used when non-empty. Typical
* format: sheet_name!top_left_cell_id:bottom_right_cell_id For example:
* sheet1!A1:B20
*
* @var string
*/
public $range;
/**
* Optional. The number of rows at the top of a sheet that BigQuery will skip
* when reading the data. The default value is 0. This property is useful if
* you have header rows that should be skipped. When autodetect is on, the
* behavior is the following: * skipLeadingRows unspecified - Autodetect tries
* to detect headers in the first row. If they are not detected, the row is
* read as data. Otherwise data is read starting from the second row. *
* skipLeadingRows is 0 - Instructs autodetect that there are no headers and
* data should be read starting from the first row. * skipLeadingRows = N > 0
* - Autodetect skips N-1 rows and tries to detect headers in row N. If
* headers are not detected, row N is just skipped. Otherwise row N is used to
* extract column names for the detected schema.
*
* @var string
*/
public $skipLeadingRows;
/**
* Optional. Range of a sheet to query from. Only used when non-empty. Typical
* format: sheet_name!top_left_cell_id:bottom_right_cell_id For example:
* sheet1!A1:B20
*
* @param string $range
*/
public function setRange($range)
{
$this->range = $range;
}
/**
* @return string
*/
public function getRange()
{
return $this->range;
}
/**
* Optional. The number of rows at the top of a sheet that BigQuery will skip
* when reading the data. The default value is 0. This property is useful if
* you have header rows that should be skipped. When autodetect is on, the
* behavior is the following: * skipLeadingRows unspecified - Autodetect tries
* to detect headers in the first row. If they are not detected, the row is
* read as data. Otherwise data is read starting from the second row. *
* skipLeadingRows is 0 - Instructs autodetect that there are no headers and
* data should be read starting from the first row. * skipLeadingRows = N > 0
* - Autodetect skips N-1 rows and tries to detect headers in row N. If
* headers are not detected, row N is just skipped. Otherwise row N is used to
* extract column names for the detected schema.
*
* @param string $skipLeadingRows
*/
public function setSkipLeadingRows($skipLeadingRows)
{
$this->skipLeadingRows = $skipLeadingRows;
}
/**
* @return string
*/
public function getSkipLeadingRows()
{
return $this->skipLeadingRows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleSheetsOptions::class, 'Google_Service_Bigquery_GoogleSheetsOptions');
@@ -0,0 +1,114 @@
<?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\Bigquery;
class HighCardinalityJoin extends \Google\Model
{
/**
* Output only. Count of left input rows.
*
* @var string
*/
public $leftRows;
/**
* Output only. Count of the output rows.
*
* @var string
*/
public $outputRows;
/**
* Output only. Count of right input rows.
*
* @var string
*/
public $rightRows;
/**
* Output only. The index of the join operator in the ExplainQueryStep lists.
*
* @var int
*/
public $stepIndex;
/**
* Output only. Count of left input rows.
*
* @param string $leftRows
*/
public function setLeftRows($leftRows)
{
$this->leftRows = $leftRows;
}
/**
* @return string
*/
public function getLeftRows()
{
return $this->leftRows;
}
/**
* Output only. Count of the output rows.
*
* @param string $outputRows
*/
public function setOutputRows($outputRows)
{
$this->outputRows = $outputRows;
}
/**
* @return string
*/
public function getOutputRows()
{
return $this->outputRows;
}
/**
* Output only. Count of right input rows.
*
* @param string $rightRows
*/
public function setRightRows($rightRows)
{
$this->rightRows = $rightRows;
}
/**
* @return string
*/
public function getRightRows()
{
return $this->rightRows;
}
/**
* Output only. The index of the join operator in the ExplainQueryStep lists.
*
* @param int $stepIndex
*/
public function setStepIndex($stepIndex)
{
$this->stepIndex = $stepIndex;
}
/**
* @return int
*/
public function getStepIndex()
{
return $this->stepIndex;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HighCardinalityJoin::class, 'Google_Service_Bigquery_HighCardinalityJoin');
@@ -0,0 +1,173 @@
<?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\Bigquery;
class HivePartitioningOptions extends \Google\Collection
{
protected $collection_key = 'fields';
/**
* Output only. For permanent external tables, this field is populated with
* the hive partition keys in the order they were inferred. The types of the
* partition keys can be deduced by checking the table schema (which will
* include the partition keys). Not every API will populate this field in the
* output. For example, Tables.Get will populate it, but Tables.List will not
* contain this field.
*
* @var string[]
*/
public $fields;
/**
* Optional. When set, what mode of hive partitioning to use when reading
* data. The following modes are supported: * AUTO: automatically infer
* partition key name(s) and type(s). * STRINGS: automatically infer partition
* key name(s). All types are strings. * CUSTOM: partition key schema is
* encoded in the source URI prefix. Not all storage formats support hive
* partitioning. Requesting hive partitioning on an unsupported format will
* lead to an error. Currently supported formats are: JSON, CSV, ORC, Avro and
* Parquet.
*
* @var string
*/
public $mode;
/**
* Optional. If set to true, queries over this table require a partition
* filter that can be used for partition elimination to be specified. Note
* that this field should only be true when creating a permanent external
* table or querying a temporary external table. Hive-partitioned loads with
* require_partition_filter explicitly set to true will fail.
*
* @var bool
*/
public $requirePartitionFilter;
/**
* Optional. When hive partition detection is requested, a common prefix for
* all source uris must be required. The prefix must end immediately before
* the partition key encoding begins. For example, consider files following
* this data layout:
* gs://bucket/path_to_table/dt=2019-06-01/country=USA/id=7/file.avro
* gs://bucket/path_to_table/dt=2019-05-31/country=CA/id=3/file.avro When hive
* partitioning is requested with either AUTO or STRINGS detection, the common
* prefix can be either of gs://bucket/path_to_table or
* gs://bucket/path_to_table/. CUSTOM detection requires encoding the
* partitioning schema immediately after the common prefix. For CUSTOM, any of
* * gs://bucket/path_to_table/{dt:DATE}/{country:STRING}/{id:INTEGER} *
* gs://bucket/path_to_table/{dt:STRING}/{country:STRING}/{id:INTEGER} *
* gs://bucket/path_to_table/{dt:DATE}/{country:STRING}/{id:STRING} would all
* be valid source URI prefixes.
*
* @var string
*/
public $sourceUriPrefix;
/**
* Output only. For permanent external tables, this field is populated with
* the hive partition keys in the order they were inferred. The types of the
* partition keys can be deduced by checking the table schema (which will
* include the partition keys). Not every API will populate this field in the
* output. For example, Tables.Get will populate it, but Tables.List will not
* contain this field.
*
* @param string[] $fields
*/
public function setFields($fields)
{
$this->fields = $fields;
}
/**
* @return string[]
*/
public function getFields()
{
return $this->fields;
}
/**
* Optional. When set, what mode of hive partitioning to use when reading
* data. The following modes are supported: * AUTO: automatically infer
* partition key name(s) and type(s). * STRINGS: automatically infer partition
* key name(s). All types are strings. * CUSTOM: partition key schema is
* encoded in the source URI prefix. Not all storage formats support hive
* partitioning. Requesting hive partitioning on an unsupported format will
* lead to an error. Currently supported formats are: JSON, CSV, ORC, Avro and
* Parquet.
*
* @param string $mode
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return string
*/
public function getMode()
{
return $this->mode;
}
/**
* Optional. If set to true, queries over this table require a partition
* filter that can be used for partition elimination to be specified. Note
* that this field should only be true when creating a permanent external
* table or querying a temporary external table. Hive-partitioned loads with
* require_partition_filter explicitly set to true will fail.
*
* @param bool $requirePartitionFilter
*/
public function setRequirePartitionFilter($requirePartitionFilter)
{
$this->requirePartitionFilter = $requirePartitionFilter;
}
/**
* @return bool
*/
public function getRequirePartitionFilter()
{
return $this->requirePartitionFilter;
}
/**
* Optional. When hive partition detection is requested, a common prefix for
* all source uris must be required. The prefix must end immediately before
* the partition key encoding begins. For example, consider files following
* this data layout:
* gs://bucket/path_to_table/dt=2019-06-01/country=USA/id=7/file.avro
* gs://bucket/path_to_table/dt=2019-05-31/country=CA/id=3/file.avro When hive
* partitioning is requested with either AUTO or STRINGS detection, the common
* prefix can be either of gs://bucket/path_to_table or
* gs://bucket/path_to_table/. CUSTOM detection requires encoding the
* partitioning schema immediately after the common prefix. For CUSTOM, any of
* * gs://bucket/path_to_table/{dt:DATE}/{country:STRING}/{id:INTEGER} *
* gs://bucket/path_to_table/{dt:STRING}/{country:STRING}/{id:INTEGER} *
* gs://bucket/path_to_table/{dt:DATE}/{country:STRING}/{id:STRING} would all
* be valid source URI prefixes.
*
* @param string $sourceUriPrefix
*/
public function setSourceUriPrefix($sourceUriPrefix)
{
$this->sourceUriPrefix = $sourceUriPrefix;
}
/**
* @return string
*/
public function getSourceUriPrefix()
{
return $this->sourceUriPrefix;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HivePartitioningOptions::class, 'Google_Service_Bigquery_HivePartitioningOptions');
@@ -0,0 +1,426 @@
<?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\Bigquery;
class HparamSearchSpaces extends \Google\Model
{
protected $activationFnType = StringHparamSearchSpace::class;
protected $activationFnDataType = '';
protected $batchSizeType = IntHparamSearchSpace::class;
protected $batchSizeDataType = '';
protected $boosterTypeType = StringHparamSearchSpace::class;
protected $boosterTypeDataType = '';
protected $colsampleBylevelType = DoubleHparamSearchSpace::class;
protected $colsampleBylevelDataType = '';
protected $colsampleBynodeType = DoubleHparamSearchSpace::class;
protected $colsampleBynodeDataType = '';
protected $colsampleBytreeType = DoubleHparamSearchSpace::class;
protected $colsampleBytreeDataType = '';
protected $dartNormalizeTypeType = StringHparamSearchSpace::class;
protected $dartNormalizeTypeDataType = '';
protected $dropoutType = DoubleHparamSearchSpace::class;
protected $dropoutDataType = '';
protected $hiddenUnitsType = IntArrayHparamSearchSpace::class;
protected $hiddenUnitsDataType = '';
protected $l1RegType = DoubleHparamSearchSpace::class;
protected $l1RegDataType = '';
protected $l2RegType = DoubleHparamSearchSpace::class;
protected $l2RegDataType = '';
protected $learnRateType = DoubleHparamSearchSpace::class;
protected $learnRateDataType = '';
protected $maxTreeDepthType = IntHparamSearchSpace::class;
protected $maxTreeDepthDataType = '';
protected $minSplitLossType = DoubleHparamSearchSpace::class;
protected $minSplitLossDataType = '';
protected $minTreeChildWeightType = IntHparamSearchSpace::class;
protected $minTreeChildWeightDataType = '';
protected $numClustersType = IntHparamSearchSpace::class;
protected $numClustersDataType = '';
protected $numFactorsType = IntHparamSearchSpace::class;
protected $numFactorsDataType = '';
protected $numParallelTreeType = IntHparamSearchSpace::class;
protected $numParallelTreeDataType = '';
protected $optimizerType = StringHparamSearchSpace::class;
protected $optimizerDataType = '';
protected $subsampleType = DoubleHparamSearchSpace::class;
protected $subsampleDataType = '';
protected $treeMethodType = StringHparamSearchSpace::class;
protected $treeMethodDataType = '';
protected $walsAlphaType = DoubleHparamSearchSpace::class;
protected $walsAlphaDataType = '';
/**
* Activation functions of neural network models.
*
* @param StringHparamSearchSpace $activationFn
*/
public function setActivationFn(StringHparamSearchSpace $activationFn)
{
$this->activationFn = $activationFn;
}
/**
* @return StringHparamSearchSpace
*/
public function getActivationFn()
{
return $this->activationFn;
}
/**
* Mini batch sample size.
*
* @param IntHparamSearchSpace $batchSize
*/
public function setBatchSize(IntHparamSearchSpace $batchSize)
{
$this->batchSize = $batchSize;
}
/**
* @return IntHparamSearchSpace
*/
public function getBatchSize()
{
return $this->batchSize;
}
/**
* Booster type for boosted tree models.
*
* @param StringHparamSearchSpace $boosterType
*/
public function setBoosterType(StringHparamSearchSpace $boosterType)
{
$this->boosterType = $boosterType;
}
/**
* @return StringHparamSearchSpace
*/
public function getBoosterType()
{
return $this->boosterType;
}
/**
* Subsample ratio of columns for each level for boosted tree models.
*
* @param DoubleHparamSearchSpace $colsampleBylevel
*/
public function setColsampleBylevel(DoubleHparamSearchSpace $colsampleBylevel)
{
$this->colsampleBylevel = $colsampleBylevel;
}
/**
* @return DoubleHparamSearchSpace
*/
public function getColsampleBylevel()
{
return $this->colsampleBylevel;
}
/**
* Subsample ratio of columns for each node(split) for boosted tree models.
*
* @param DoubleHparamSearchSpace $colsampleBynode
*/
public function setColsampleBynode(DoubleHparamSearchSpace $colsampleBynode)
{
$this->colsampleBynode = $colsampleBynode;
}
/**
* @return DoubleHparamSearchSpace
*/
public function getColsampleBynode()
{
return $this->colsampleBynode;
}
/**
* Subsample ratio of columns when constructing each tree for boosted tree
* models.
*
* @param DoubleHparamSearchSpace $colsampleBytree
*/
public function setColsampleBytree(DoubleHparamSearchSpace $colsampleBytree)
{
$this->colsampleBytree = $colsampleBytree;
}
/**
* @return DoubleHparamSearchSpace
*/
public function getColsampleBytree()
{
return $this->colsampleBytree;
}
/**
* Dart normalization type for boosted tree models.
*
* @param StringHparamSearchSpace $dartNormalizeType
*/
public function setDartNormalizeType(StringHparamSearchSpace $dartNormalizeType)
{
$this->dartNormalizeType = $dartNormalizeType;
}
/**
* @return StringHparamSearchSpace
*/
public function getDartNormalizeType()
{
return $this->dartNormalizeType;
}
/**
* Dropout probability for dnn model training and boosted tree models using
* dart booster.
*
* @param DoubleHparamSearchSpace $dropout
*/
public function setDropout(DoubleHparamSearchSpace $dropout)
{
$this->dropout = $dropout;
}
/**
* @return DoubleHparamSearchSpace
*/
public function getDropout()
{
return $this->dropout;
}
/**
* Hidden units for neural network models.
*
* @param IntArrayHparamSearchSpace $hiddenUnits
*/
public function setHiddenUnits(IntArrayHparamSearchSpace $hiddenUnits)
{
$this->hiddenUnits = $hiddenUnits;
}
/**
* @return IntArrayHparamSearchSpace
*/
public function getHiddenUnits()
{
return $this->hiddenUnits;
}
/**
* L1 regularization coefficient.
*
* @param DoubleHparamSearchSpace $l1Reg
*/
public function setL1Reg(DoubleHparamSearchSpace $l1Reg)
{
$this->l1Reg = $l1Reg;
}
/**
* @return DoubleHparamSearchSpace
*/
public function getL1Reg()
{
return $this->l1Reg;
}
/**
* L2 regularization coefficient.
*
* @param DoubleHparamSearchSpace $l2Reg
*/
public function setL2Reg(DoubleHparamSearchSpace $l2Reg)
{
$this->l2Reg = $l2Reg;
}
/**
* @return DoubleHparamSearchSpace
*/
public function getL2Reg()
{
return $this->l2Reg;
}
/**
* Learning rate of training jobs.
*
* @param DoubleHparamSearchSpace $learnRate
*/
public function setLearnRate(DoubleHparamSearchSpace $learnRate)
{
$this->learnRate = $learnRate;
}
/**
* @return DoubleHparamSearchSpace
*/
public function getLearnRate()
{
return $this->learnRate;
}
/**
* Maximum depth of a tree for boosted tree models.
*
* @param IntHparamSearchSpace $maxTreeDepth
*/
public function setMaxTreeDepth(IntHparamSearchSpace $maxTreeDepth)
{
$this->maxTreeDepth = $maxTreeDepth;
}
/**
* @return IntHparamSearchSpace
*/
public function getMaxTreeDepth()
{
return $this->maxTreeDepth;
}
/**
* Minimum split loss for boosted tree models.
*
* @param DoubleHparamSearchSpace $minSplitLoss
*/
public function setMinSplitLoss(DoubleHparamSearchSpace $minSplitLoss)
{
$this->minSplitLoss = $minSplitLoss;
}
/**
* @return DoubleHparamSearchSpace
*/
public function getMinSplitLoss()
{
return $this->minSplitLoss;
}
/**
* Minimum sum of instance weight needed in a child for boosted tree models.
*
* @param IntHparamSearchSpace $minTreeChildWeight
*/
public function setMinTreeChildWeight(IntHparamSearchSpace $minTreeChildWeight)
{
$this->minTreeChildWeight = $minTreeChildWeight;
}
/**
* @return IntHparamSearchSpace
*/
public function getMinTreeChildWeight()
{
return $this->minTreeChildWeight;
}
/**
* Number of clusters for k-means.
*
* @param IntHparamSearchSpace $numClusters
*/
public function setNumClusters(IntHparamSearchSpace $numClusters)
{
$this->numClusters = $numClusters;
}
/**
* @return IntHparamSearchSpace
*/
public function getNumClusters()
{
return $this->numClusters;
}
/**
* Number of latent factors to train on.
*
* @param IntHparamSearchSpace $numFactors
*/
public function setNumFactors(IntHparamSearchSpace $numFactors)
{
$this->numFactors = $numFactors;
}
/**
* @return IntHparamSearchSpace
*/
public function getNumFactors()
{
return $this->numFactors;
}
/**
* Number of parallel trees for boosted tree models.
*
* @param IntHparamSearchSpace $numParallelTree
*/
public function setNumParallelTree(IntHparamSearchSpace $numParallelTree)
{
$this->numParallelTree = $numParallelTree;
}
/**
* @return IntHparamSearchSpace
*/
public function getNumParallelTree()
{
return $this->numParallelTree;
}
/**
* Optimizer of TF models.
*
* @param StringHparamSearchSpace $optimizer
*/
public function setOptimizer(StringHparamSearchSpace $optimizer)
{
$this->optimizer = $optimizer;
}
/**
* @return StringHparamSearchSpace
*/
public function getOptimizer()
{
return $this->optimizer;
}
/**
* Subsample the training data to grow tree to prevent overfitting for boosted
* tree models.
*
* @param DoubleHparamSearchSpace $subsample
*/
public function setSubsample(DoubleHparamSearchSpace $subsample)
{
$this->subsample = $subsample;
}
/**
* @return DoubleHparamSearchSpace
*/
public function getSubsample()
{
return $this->subsample;
}
/**
* Tree construction algorithm for boosted tree models.
*
* @param StringHparamSearchSpace $treeMethod
*/
public function setTreeMethod(StringHparamSearchSpace $treeMethod)
{
$this->treeMethod = $treeMethod;
}
/**
* @return StringHparamSearchSpace
*/
public function getTreeMethod()
{
return $this->treeMethod;
}
/**
* Hyperparameter for matrix factoration when implicit feedback type is
* specified.
*
* @param DoubleHparamSearchSpace $walsAlpha
*/
public function setWalsAlpha(DoubleHparamSearchSpace $walsAlpha)
{
$this->walsAlpha = $walsAlpha;
}
/**
* @return DoubleHparamSearchSpace
*/
public function getWalsAlpha()
{
return $this->walsAlpha;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HparamSearchSpaces::class, 'Google_Service_Bigquery_HparamSearchSpaces');
@@ -0,0 +1,252 @@
<?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\Bigquery;
class HparamTuningTrial extends \Google\Model
{
/**
* Default value.
*/
public const STATUS_TRIAL_STATUS_UNSPECIFIED = 'TRIAL_STATUS_UNSPECIFIED';
/**
* Scheduled but not started.
*/
public const STATUS_NOT_STARTED = 'NOT_STARTED';
/**
* Running state.
*/
public const STATUS_RUNNING = 'RUNNING';
/**
* The trial succeeded.
*/
public const STATUS_SUCCEEDED = 'SUCCEEDED';
/**
* The trial failed.
*/
public const STATUS_FAILED = 'FAILED';
/**
* The trial is infeasible due to the invalid params.
*/
public const STATUS_INFEASIBLE = 'INFEASIBLE';
/**
* Trial stopped early because it's not promising.
*/
public const STATUS_STOPPED_EARLY = 'STOPPED_EARLY';
/**
* Ending time of the trial.
*
* @var string
*/
public $endTimeMs;
/**
* Error message for FAILED and INFEASIBLE trial.
*
* @var string
*/
public $errorMessage;
/**
* Loss computed on the eval data at the end of trial.
*
* @var
*/
public $evalLoss;
protected $evaluationMetricsType = EvaluationMetrics::class;
protected $evaluationMetricsDataType = '';
protected $hparamTuningEvaluationMetricsType = EvaluationMetrics::class;
protected $hparamTuningEvaluationMetricsDataType = '';
protected $hparamsType = TrainingOptions::class;
protected $hparamsDataType = '';
/**
* Starting time of the trial.
*
* @var string
*/
public $startTimeMs;
/**
* The status of the trial.
*
* @var string
*/
public $status;
/**
* Loss computed on the training data at the end of trial.
*
* @var
*/
public $trainingLoss;
/**
* 1-based index of the trial.
*
* @var string
*/
public $trialId;
/**
* Ending time of the trial.
*
* @param string $endTimeMs
*/
public function setEndTimeMs($endTimeMs)
{
$this->endTimeMs = $endTimeMs;
}
/**
* @return string
*/
public function getEndTimeMs()
{
return $this->endTimeMs;
}
/**
* Error message for FAILED and INFEASIBLE trial.
*
* @param string $errorMessage
*/
public function setErrorMessage($errorMessage)
{
$this->errorMessage = $errorMessage;
}
/**
* @return string
*/
public function getErrorMessage()
{
return $this->errorMessage;
}
public function setEvalLoss($evalLoss)
{
$this->evalLoss = $evalLoss;
}
public function getEvalLoss()
{
return $this->evalLoss;
}
/**
* Evaluation metrics of this trial calculated on the test data. Empty in Job
* API.
*
* @param EvaluationMetrics $evaluationMetrics
*/
public function setEvaluationMetrics(EvaluationMetrics $evaluationMetrics)
{
$this->evaluationMetrics = $evaluationMetrics;
}
/**
* @return EvaluationMetrics
*/
public function getEvaluationMetrics()
{
return $this->evaluationMetrics;
}
/**
* Hyperparameter tuning evaluation metrics of this trial calculated on the
* eval data. Unlike evaluation_metrics, only the fields corresponding to the
* hparam_tuning_objectives are set.
*
* @param EvaluationMetrics $hparamTuningEvaluationMetrics
*/
public function setHparamTuningEvaluationMetrics(EvaluationMetrics $hparamTuningEvaluationMetrics)
{
$this->hparamTuningEvaluationMetrics = $hparamTuningEvaluationMetrics;
}
/**
* @return EvaluationMetrics
*/
public function getHparamTuningEvaluationMetrics()
{
return $this->hparamTuningEvaluationMetrics;
}
/**
* The hyperprameters selected for this trial.
*
* @param TrainingOptions $hparams
*/
public function setHparams(TrainingOptions $hparams)
{
$this->hparams = $hparams;
}
/**
* @return TrainingOptions
*/
public function getHparams()
{
return $this->hparams;
}
/**
* Starting time of the trial.
*
* @param string $startTimeMs
*/
public function setStartTimeMs($startTimeMs)
{
$this->startTimeMs = $startTimeMs;
}
/**
* @return string
*/
public function getStartTimeMs()
{
return $this->startTimeMs;
}
/**
* The status of the trial.
*
* Accepted values: TRIAL_STATUS_UNSPECIFIED, NOT_STARTED, RUNNING, SUCCEEDED,
* FAILED, INFEASIBLE, STOPPED_EARLY
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
public function setTrainingLoss($trainingLoss)
{
$this->trainingLoss = $trainingLoss;
}
public function getTrainingLoss()
{
return $this->trainingLoss;
}
/**
* 1-based index of the trial.
*
* @param string $trialId
*/
public function setTrialId($trialId)
{
$this->trialId = $trialId;
}
/**
* @return string
*/
public function getTrialId()
{
return $this->trialId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HparamTuningTrial::class, 'Google_Service_Bigquery_HparamTuningTrial');
@@ -0,0 +1,80 @@
<?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\Bigquery;
class IdentityColumnInfo extends \Google\Model
{
/**
* @var string
*/
public $generatedMode;
/**
* @var string
*/
public $increment;
/**
* @var string
*/
public $start;
/**
* @param string
*/
public function setGeneratedMode($generatedMode)
{
$this->generatedMode = $generatedMode;
}
/**
* @return string
*/
public function getGeneratedMode()
{
return $this->generatedMode;
}
/**
* @param string
*/
public function setIncrement($increment)
{
$this->increment = $increment;
}
/**
* @return string
*/
public function getIncrement()
{
return $this->increment;
}
/**
* @param string
*/
public function setStart($start)
{
$this->start = $start;
}
/**
* @return string
*/
public function getStart()
{
return $this->start;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IdentityColumnInfo::class, 'Google_Service_Bigquery_IdentityColumnInfo');
@@ -0,0 +1,213 @@
<?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\Bigquery;
class IncrementalResultStats extends \Google\Model
{
/**
* Disabled reason not specified.
*/
public const DISABLED_REASON_DISABLED_REASON_UNSPECIFIED = 'DISABLED_REASON_UNSPECIFIED';
/**
* Incremental results are/were disabled for reasons not covered by the other
* enum values, e.g. runtime issues.
*/
public const DISABLED_REASON_OTHER = 'OTHER';
/**
* Query includes an operation that is not supported.
*/
public const DISABLED_REASON_UNSUPPORTED_OPERATOR = 'UNSUPPORTED_OPERATOR';
/**
* Output only. Reason why incremental query results are/were not written by
* the query.
*
* @var string
*/
public $disabledReason;
/**
* Output only. Additional human-readable clarification, if available, for
* DisabledReason.
*
* @var string
*/
public $disabledReasonDetails;
/**
* Output only. The time at which the first incremental result was written. If
* the query needed to restart internally, this only describes the final
* attempt.
*
* @var string
*/
public $firstIncrementalRowTime;
/**
* Output only. Number of rows that were in the latest result set before query
* completion.
*
* @var string
*/
public $incrementalRowCount;
/**
* Output only. The time at which the last incremental result was written.
* Does not include the final result written after query completion.
*
* @var string
*/
public $lastIncrementalRowTime;
/**
* Output only. The time at which the result table's contents were modified.
* May be absent if no results have been written or the query has completed.
*
* @var string
*/
public $resultSetLastModifyTime;
/**
* Output only. The time at which the result table's contents were completely
* replaced. May be absent if no results have been written or the query has
* completed.
*
* @var string
*/
public $resultSetLastReplaceTime;
/**
* Output only. Reason why incremental query results are/were not written by
* the query.
*
* Accepted values: DISABLED_REASON_UNSPECIFIED, OTHER, UNSUPPORTED_OPERATOR
*
* @param self::DISABLED_REASON_* $disabledReason
*/
public function setDisabledReason($disabledReason)
{
$this->disabledReason = $disabledReason;
}
/**
* @return self::DISABLED_REASON_*
*/
public function getDisabledReason()
{
return $this->disabledReason;
}
/**
* Output only. Additional human-readable clarification, if available, for
* DisabledReason.
*
* @param string $disabledReasonDetails
*/
public function setDisabledReasonDetails($disabledReasonDetails)
{
$this->disabledReasonDetails = $disabledReasonDetails;
}
/**
* @return string
*/
public function getDisabledReasonDetails()
{
return $this->disabledReasonDetails;
}
/**
* Output only. The time at which the first incremental result was written. If
* the query needed to restart internally, this only describes the final
* attempt.
*
* @param string $firstIncrementalRowTime
*/
public function setFirstIncrementalRowTime($firstIncrementalRowTime)
{
$this->firstIncrementalRowTime = $firstIncrementalRowTime;
}
/**
* @return string
*/
public function getFirstIncrementalRowTime()
{
return $this->firstIncrementalRowTime;
}
/**
* Output only. Number of rows that were in the latest result set before query
* completion.
*
* @param string $incrementalRowCount
*/
public function setIncrementalRowCount($incrementalRowCount)
{
$this->incrementalRowCount = $incrementalRowCount;
}
/**
* @return string
*/
public function getIncrementalRowCount()
{
return $this->incrementalRowCount;
}
/**
* Output only. The time at which the last incremental result was written.
* Does not include the final result written after query completion.
*
* @param string $lastIncrementalRowTime
*/
public function setLastIncrementalRowTime($lastIncrementalRowTime)
{
$this->lastIncrementalRowTime = $lastIncrementalRowTime;
}
/**
* @return string
*/
public function getLastIncrementalRowTime()
{
return $this->lastIncrementalRowTime;
}
/**
* Output only. The time at which the result table's contents were modified.
* May be absent if no results have been written or the query has completed.
*
* @param string $resultSetLastModifyTime
*/
public function setResultSetLastModifyTime($resultSetLastModifyTime)
{
$this->resultSetLastModifyTime = $resultSetLastModifyTime;
}
/**
* @return string
*/
public function getResultSetLastModifyTime()
{
return $this->resultSetLastModifyTime;
}
/**
* Output only. The time at which the result table's contents were completely
* replaced. May be absent if no results have been written or the query has
* completed.
*
* @param string $resultSetLastReplaceTime
*/
public function setResultSetLastReplaceTime($resultSetLastReplaceTime)
{
$this->resultSetLastReplaceTime = $resultSetLastReplaceTime;
}
/**
* @return string
*/
public function getResultSetLastReplaceTime()
{
return $this->resultSetLastReplaceTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IncrementalResultStats::class, 'Google_Service_Bigquery_IncrementalResultStats');
@@ -0,0 +1,110 @@
<?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\Bigquery;
class IndexPruningStats extends \Google\Model
{
protected $baseTableType = TableReference::class;
protected $baseTableDataType = '';
/**
* The index id.
*
* @var string
*/
public $indexId;
/**
* The number of parallel inputs after index pruning.
*
* @var string
*/
public $postIndexPruningParallelInputCount;
/**
* The number of parallel inputs before index pruning.
*
* @var string
*/
public $preIndexPruningParallelInputCount;
/**
* The base table reference.
*
* @param TableReference $baseTable
*/
public function setBaseTable(TableReference $baseTable)
{
$this->baseTable = $baseTable;
}
/**
* @return TableReference
*/
public function getBaseTable()
{
return $this->baseTable;
}
/**
* The index id.
*
* @param string $indexId
*/
public function setIndexId($indexId)
{
$this->indexId = $indexId;
}
/**
* @return string
*/
public function getIndexId()
{
return $this->indexId;
}
/**
* The number of parallel inputs after index pruning.
*
* @param string $postIndexPruningParallelInputCount
*/
public function setPostIndexPruningParallelInputCount($postIndexPruningParallelInputCount)
{
$this->postIndexPruningParallelInputCount = $postIndexPruningParallelInputCount;
}
/**
* @return string
*/
public function getPostIndexPruningParallelInputCount()
{
return $this->postIndexPruningParallelInputCount;
}
/**
* The number of parallel inputs before index pruning.
*
* @param string $preIndexPruningParallelInputCount
*/
public function setPreIndexPruningParallelInputCount($preIndexPruningParallelInputCount)
{
$this->preIndexPruningParallelInputCount = $preIndexPruningParallelInputCount;
}
/**
* @return string
*/
public function getPreIndexPruningParallelInputCount()
{
return $this->preIndexPruningParallelInputCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IndexPruningStats::class, 'Google_Service_Bigquery_IndexPruningStats');
@@ -0,0 +1,236 @@
<?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\Bigquery;
class IndexUnusedReason extends \Google\Model
{
/**
* Code not specified.
*/
public const CODE_CODE_UNSPECIFIED = 'CODE_UNSPECIFIED';
/**
* Indicates the search index configuration has not been created.
*/
public const CODE_INDEX_CONFIG_NOT_AVAILABLE = 'INDEX_CONFIG_NOT_AVAILABLE';
/**
* Indicates the search index creation has not been completed.
*/
public const CODE_PENDING_INDEX_CREATION = 'PENDING_INDEX_CREATION';
/**
* Indicates the base table has been truncated (rows have been removed from
* table with TRUNCATE TABLE statement) since the last time the search index
* was refreshed.
*/
public const CODE_BASE_TABLE_TRUNCATED = 'BASE_TABLE_TRUNCATED';
/**
* Indicates the search index configuration has been changed since the last
* time the search index was refreshed.
*/
public const CODE_INDEX_CONFIG_MODIFIED = 'INDEX_CONFIG_MODIFIED';
/**
* Indicates the search query accesses data at a timestamp before the last
* time the search index was refreshed.
*/
public const CODE_TIME_TRAVEL_QUERY = 'TIME_TRAVEL_QUERY';
/**
* Indicates the usage of search index will not contribute to any pruning
* improvement for the search function, e.g. when the search predicate is in a
* disjunction with other non-search predicates.
*/
public const CODE_NO_PRUNING_POWER = 'NO_PRUNING_POWER';
/**
* Indicates the search index does not cover all fields in the search
* function.
*/
public const CODE_UNINDEXED_SEARCH_FIELDS = 'UNINDEXED_SEARCH_FIELDS';
/**
* Indicates the search index does not support the given search query pattern.
*/
public const CODE_UNSUPPORTED_SEARCH_PATTERN = 'UNSUPPORTED_SEARCH_PATTERN';
/**
* Indicates the query has been optimized by using a materialized view.
*/
public const CODE_OPTIMIZED_WITH_MATERIALIZED_VIEW = 'OPTIMIZED_WITH_MATERIALIZED_VIEW';
/**
* Indicates the query has been secured by data masking, and thus search
* indexes are not applicable.
*/
public const CODE_SECURED_BY_DATA_MASKING = 'SECURED_BY_DATA_MASKING';
/**
* Indicates that the search index and the search function call do not have
* the same text analyzer.
*/
public const CODE_MISMATCHED_TEXT_ANALYZER = 'MISMATCHED_TEXT_ANALYZER';
/**
* Indicates the base table is too small (below a certain threshold). The
* index does not provide noticeable search performance gains when the base
* table is too small.
*/
public const CODE_BASE_TABLE_TOO_SMALL = 'BASE_TABLE_TOO_SMALL';
/**
* Indicates that the total size of indexed base tables in your organization
* exceeds your region's limit and the index is not used in the query. To
* index larger base tables, you can use your own reservation for index-
* management jobs.
*/
public const CODE_BASE_TABLE_TOO_LARGE = 'BASE_TABLE_TOO_LARGE';
/**
* Indicates that the estimated performance gain from using the search index
* is too low for the given search query.
*/
public const CODE_ESTIMATED_PERFORMANCE_GAIN_TOO_LOW = 'ESTIMATED_PERFORMANCE_GAIN_TOO_LOW';
/**
* Indicates that the column metadata index (which the search index depends
* on) is not used. User can refer to the [column metadata index
* usage](https://cloud.google.com/bigquery/docs/metadata-indexing-managed-
* tables#view_column_metadata_index_usage) for more details on why it was not
* used.
*/
public const CODE_COLUMN_METADATA_INDEX_NOT_USED = 'COLUMN_METADATA_INDEX_NOT_USED';
/**
* Indicates that search indexes can not be used for search query with
* STANDARD edition.
*/
public const CODE_NOT_SUPPORTED_IN_STANDARD_EDITION = 'NOT_SUPPORTED_IN_STANDARD_EDITION';
/**
* Indicates that an option in the search function that cannot make use of the
* index has been selected.
*/
public const CODE_INDEX_SUPPRESSED_BY_FUNCTION_OPTION = 'INDEX_SUPPRESSED_BY_FUNCTION_OPTION';
/**
* Indicates that the query was cached, and thus the search index was not
* used.
*/
public const CODE_QUERY_CACHE_HIT = 'QUERY_CACHE_HIT';
/**
* The index cannot be used in the search query because it is stale.
*/
public const CODE_STALE_INDEX = 'STALE_INDEX';
/**
* Indicates an internal error that causes the search index to be unused.
*/
public const CODE_INTERNAL_ERROR = 'INTERNAL_ERROR';
/**
* Indicates that the reason search indexes cannot be used in the query is not
* covered by any of the other IndexUnusedReason options.
*/
public const CODE_OTHER_REASON = 'OTHER_REASON';
protected $baseTableType = TableReference::class;
protected $baseTableDataType = '';
/**
* Specifies the high-level reason for the scenario when no search index was
* used.
*
* @var string
*/
public $code;
/**
* Specifies the name of the unused search index, if available.
*
* @var string
*/
public $indexName;
/**
* Free form human-readable reason for the scenario when no search index was
* used.
*
* @var string
*/
public $message;
/**
* Specifies the base table involved in the reason that no search index was
* used.
*
* @param TableReference $baseTable
*/
public function setBaseTable(TableReference $baseTable)
{
$this->baseTable = $baseTable;
}
/**
* @return TableReference
*/
public function getBaseTable()
{
return $this->baseTable;
}
/**
* Specifies the high-level reason for the scenario when no search index was
* used.
*
* Accepted values: CODE_UNSPECIFIED, INDEX_CONFIG_NOT_AVAILABLE,
* PENDING_INDEX_CREATION, BASE_TABLE_TRUNCATED, INDEX_CONFIG_MODIFIED,
* TIME_TRAVEL_QUERY, NO_PRUNING_POWER, UNINDEXED_SEARCH_FIELDS,
* UNSUPPORTED_SEARCH_PATTERN, OPTIMIZED_WITH_MATERIALIZED_VIEW,
* SECURED_BY_DATA_MASKING, MISMATCHED_TEXT_ANALYZER, BASE_TABLE_TOO_SMALL,
* BASE_TABLE_TOO_LARGE, ESTIMATED_PERFORMANCE_GAIN_TOO_LOW,
* COLUMN_METADATA_INDEX_NOT_USED, NOT_SUPPORTED_IN_STANDARD_EDITION,
* INDEX_SUPPRESSED_BY_FUNCTION_OPTION, QUERY_CACHE_HIT, STALE_INDEX,
* INTERNAL_ERROR, OTHER_REASON
*
* @param self::CODE_* $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return self::CODE_*
*/
public function getCode()
{
return $this->code;
}
/**
* Specifies the name of the unused search index, if available.
*
* @param string $indexName
*/
public function setIndexName($indexName)
{
$this->indexName = $indexName;
}
/**
* @return string
*/
public function getIndexName()
{
return $this->indexName;
}
/**
* Free form human-readable reason for the scenario when no search index was
* used.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IndexUnusedReason::class, 'Google_Service_Bigquery_IndexUnusedReason');
@@ -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\Bigquery;
class InputDataChange extends \Google\Model
{
/**
* Output only. Records read difference percentage compared to a previous run.
*
* @var float
*/
public $recordsReadDiffPercentage;
/**
* Output only. Records read difference percentage compared to a previous run.
*
* @param float $recordsReadDiffPercentage
*/
public function setRecordsReadDiffPercentage($recordsReadDiffPercentage)
{
$this->recordsReadDiffPercentage = $recordsReadDiffPercentage;
}
/**
* @return float
*/
public function getRecordsReadDiffPercentage()
{
return $this->recordsReadDiffPercentage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InputDataChange::class, 'Google_Service_Bigquery_InputDataChange');
@@ -0,0 +1,49 @@
<?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\Bigquery;
class IntArray extends \Google\Collection
{
protected $collection_key = 'elements';
/**
* Elements in the int array.
*
* @var string[]
*/
public $elements;
/**
* Elements in the int array.
*
* @param string[] $elements
*/
public function setElements($elements)
{
$this->elements = $elements;
}
/**
* @return string[]
*/
public function getElements()
{
return $this->elements;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IntArray::class, 'Google_Service_Bigquery_IntArray');

Some files were not shown because too many files have changed in this diff Show More