Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,214 @@
<?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\Solar;
class BuildingInsights extends \Google\Model
{
/**
* @var string
*/
public $administrativeArea;
protected $boundingBoxType = LatLngBox::class;
protected $boundingBoxDataType = '';
protected $centerType = LatLng::class;
protected $centerDataType = '';
protected $imageryDateType = Date::class;
protected $imageryDateDataType = '';
protected $imageryProcessedDateType = Date::class;
protected $imageryProcessedDateDataType = '';
/**
* @var string
*/
public $imageryQuality;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $postalCode;
/**
* @var string
*/
public $regionCode;
protected $solarPotentialType = SolarPotential::class;
protected $solarPotentialDataType = '';
/**
* @var string
*/
public $statisticalArea;
/**
* @param string
*/
public function setAdministrativeArea($administrativeArea)
{
$this->administrativeArea = $administrativeArea;
}
/**
* @return string
*/
public function getAdministrativeArea()
{
return $this->administrativeArea;
}
/**
* @param LatLngBox
*/
public function setBoundingBox(LatLngBox $boundingBox)
{
$this->boundingBox = $boundingBox;
}
/**
* @return LatLngBox
*/
public function getBoundingBox()
{
return $this->boundingBox;
}
/**
* @param LatLng
*/
public function setCenter(LatLng $center)
{
$this->center = $center;
}
/**
* @return LatLng
*/
public function getCenter()
{
return $this->center;
}
/**
* @param Date
*/
public function setImageryDate(Date $imageryDate)
{
$this->imageryDate = $imageryDate;
}
/**
* @return Date
*/
public function getImageryDate()
{
return $this->imageryDate;
}
/**
* @param Date
*/
public function setImageryProcessedDate(Date $imageryProcessedDate)
{
$this->imageryProcessedDate = $imageryProcessedDate;
}
/**
* @return Date
*/
public function getImageryProcessedDate()
{
return $this->imageryProcessedDate;
}
/**
* @param string
*/
public function setImageryQuality($imageryQuality)
{
$this->imageryQuality = $imageryQuality;
}
/**
* @return string
*/
public function getImageryQuality()
{
return $this->imageryQuality;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPostalCode($postalCode)
{
$this->postalCode = $postalCode;
}
/**
* @return string
*/
public function getPostalCode()
{
return $this->postalCode;
}
/**
* @param string
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
/**
* @param SolarPotential
*/
public function setSolarPotential(SolarPotential $solarPotential)
{
$this->solarPotential = $solarPotential;
}
/**
* @return SolarPotential
*/
public function getSolarPotential()
{
return $this->solarPotential;
}
/**
* @param string
*/
public function setStatisticalArea($statisticalArea)
{
$this->statisticalArea = $statisticalArea;
}
/**
* @return string
*/
public function getStatisticalArea()
{
return $this->statisticalArea;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BuildingInsights::class, 'Google_Service_Solar_BuildingInsights');

View File

@@ -0,0 +1,108 @@
<?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\Solar;
class CashPurchaseSavings extends \Google\Model
{
protected $outOfPocketCostType = Money::class;
protected $outOfPocketCostDataType = '';
/**
* @var float
*/
public $paybackYears;
protected $rebateValueType = Money::class;
protected $rebateValueDataType = '';
protected $savingsType = SavingsOverTime::class;
protected $savingsDataType = '';
protected $upfrontCostType = Money::class;
protected $upfrontCostDataType = '';
/**
* @param Money
*/
public function setOutOfPocketCost(Money $outOfPocketCost)
{
$this->outOfPocketCost = $outOfPocketCost;
}
/**
* @return Money
*/
public function getOutOfPocketCost()
{
return $this->outOfPocketCost;
}
/**
* @param float
*/
public function setPaybackYears($paybackYears)
{
$this->paybackYears = $paybackYears;
}
/**
* @return float
*/
public function getPaybackYears()
{
return $this->paybackYears;
}
/**
* @param Money
*/
public function setRebateValue(Money $rebateValue)
{
$this->rebateValue = $rebateValue;
}
/**
* @return Money
*/
public function getRebateValue()
{
return $this->rebateValue;
}
/**
* @param SavingsOverTime
*/
public function setSavings(SavingsOverTime $savings)
{
$this->savings = $savings;
}
/**
* @return SavingsOverTime
*/
public function getSavings()
{
return $this->savings;
}
/**
* @param Money
*/
public function setUpfrontCost(Money $upfrontCost)
{
$this->upfrontCost = $upfrontCost;
}
/**
* @return Money
*/
public function getUpfrontCost()
{
return $this->upfrontCost;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CashPurchaseSavings::class, 'Google_Service_Solar_CashPurchaseSavings');

View File

@@ -0,0 +1,185 @@
<?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\Solar;
class DataLayers extends \Google\Collection
{
protected $collection_key = 'hourlyShadeUrls';
/**
* @var string
*/
public $annualFluxUrl;
/**
* @var string
*/
public $dsmUrl;
/**
* @var string[]
*/
public $hourlyShadeUrls;
protected $imageryDateType = Date::class;
protected $imageryDateDataType = '';
protected $imageryProcessedDateType = Date::class;
protected $imageryProcessedDateDataType = '';
/**
* @var string
*/
public $imageryQuality;
/**
* @var string
*/
public $maskUrl;
/**
* @var string
*/
public $monthlyFluxUrl;
/**
* @var string
*/
public $rgbUrl;
/**
* @param string
*/
public function setAnnualFluxUrl($annualFluxUrl)
{
$this->annualFluxUrl = $annualFluxUrl;
}
/**
* @return string
*/
public function getAnnualFluxUrl()
{
return $this->annualFluxUrl;
}
/**
* @param string
*/
public function setDsmUrl($dsmUrl)
{
$this->dsmUrl = $dsmUrl;
}
/**
* @return string
*/
public function getDsmUrl()
{
return $this->dsmUrl;
}
/**
* @param string[]
*/
public function setHourlyShadeUrls($hourlyShadeUrls)
{
$this->hourlyShadeUrls = $hourlyShadeUrls;
}
/**
* @return string[]
*/
public function getHourlyShadeUrls()
{
return $this->hourlyShadeUrls;
}
/**
* @param Date
*/
public function setImageryDate(Date $imageryDate)
{
$this->imageryDate = $imageryDate;
}
/**
* @return Date
*/
public function getImageryDate()
{
return $this->imageryDate;
}
/**
* @param Date
*/
public function setImageryProcessedDate(Date $imageryProcessedDate)
{
$this->imageryProcessedDate = $imageryProcessedDate;
}
/**
* @return Date
*/
public function getImageryProcessedDate()
{
return $this->imageryProcessedDate;
}
/**
* @param string
*/
public function setImageryQuality($imageryQuality)
{
$this->imageryQuality = $imageryQuality;
}
/**
* @return string
*/
public function getImageryQuality()
{
return $this->imageryQuality;
}
/**
* @param string
*/
public function setMaskUrl($maskUrl)
{
$this->maskUrl = $maskUrl;
}
/**
* @return string
*/
public function getMaskUrl()
{
return $this->maskUrl;
}
/**
* @param string
*/
public function setMonthlyFluxUrl($monthlyFluxUrl)
{
$this->monthlyFluxUrl = $monthlyFluxUrl;
}
/**
* @return string
*/
public function getMonthlyFluxUrl()
{
return $this->monthlyFluxUrl;
}
/**
* @param string
*/
public function setRgbUrl($rgbUrl)
{
$this->rgbUrl = $rgbUrl;
}
/**
* @return string
*/
public function getRgbUrl()
{
return $this->rgbUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataLayers::class, 'Google_Service_Solar_DataLayers');

View File

@@ -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\Solar;
class Date extends \Google\Model
{
/**
* @var int
*/
public $day;
/**
* @var int
*/
public $month;
/**
* @var int
*/
public $year;
/**
* @param int
*/
public function setDay($day)
{
$this->day = $day;
}
/**
* @return int
*/
public function getDay()
{
return $this->day;
}
/**
* @param int
*/
public function setMonth($month)
{
$this->month = $month;
}
/**
* @return int
*/
public function getMonth()
{
return $this->month;
}
/**
* @param int
*/
public function setYear($year)
{
$this->year = $year;
}
/**
* @return int
*/
public function getYear()
{
return $this->year;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Date::class, 'Google_Service_Solar_Date');

View File

@@ -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\Solar;
class FinancedPurchaseSavings extends \Google\Model
{
protected $annualLoanPaymentType = Money::class;
protected $annualLoanPaymentDataType = '';
/**
* @var float
*/
public $loanInterestRate;
protected $rebateValueType = Money::class;
protected $rebateValueDataType = '';
protected $savingsType = SavingsOverTime::class;
protected $savingsDataType = '';
/**
* @param Money
*/
public function setAnnualLoanPayment(Money $annualLoanPayment)
{
$this->annualLoanPayment = $annualLoanPayment;
}
/**
* @return Money
*/
public function getAnnualLoanPayment()
{
return $this->annualLoanPayment;
}
/**
* @param float
*/
public function setLoanInterestRate($loanInterestRate)
{
$this->loanInterestRate = $loanInterestRate;
}
/**
* @return float
*/
public function getLoanInterestRate()
{
return $this->loanInterestRate;
}
/**
* @param Money
*/
public function setRebateValue(Money $rebateValue)
{
$this->rebateValue = $rebateValue;
}
/**
* @return Money
*/
public function getRebateValue()
{
return $this->rebateValue;
}
/**
* @param SavingsOverTime
*/
public function setSavings(SavingsOverTime $savings)
{
$this->savings = $savings;
}
/**
* @return SavingsOverTime
*/
public function getSavings()
{
return $this->savings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FinancedPurchaseSavings::class, 'Google_Service_Solar_FinancedPurchaseSavings');

View File

@@ -0,0 +1,160 @@
<?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\Solar;
class FinancialAnalysis extends \Google\Model
{
/**
* @var float
*/
public $averageKwhPerMonth;
protected $cashPurchaseSavingsType = CashPurchaseSavings::class;
protected $cashPurchaseSavingsDataType = '';
/**
* @var bool
*/
public $defaultBill;
protected $financedPurchaseSavingsType = FinancedPurchaseSavings::class;
protected $financedPurchaseSavingsDataType = '';
protected $financialDetailsType = FinancialDetails::class;
protected $financialDetailsDataType = '';
protected $leasingSavingsType = LeasingSavings::class;
protected $leasingSavingsDataType = '';
protected $monthlyBillType = Money::class;
protected $monthlyBillDataType = '';
/**
* @var int
*/
public $panelConfigIndex;
/**
* @param float
*/
public function setAverageKwhPerMonth($averageKwhPerMonth)
{
$this->averageKwhPerMonth = $averageKwhPerMonth;
}
/**
* @return float
*/
public function getAverageKwhPerMonth()
{
return $this->averageKwhPerMonth;
}
/**
* @param CashPurchaseSavings
*/
public function setCashPurchaseSavings(CashPurchaseSavings $cashPurchaseSavings)
{
$this->cashPurchaseSavings = $cashPurchaseSavings;
}
/**
* @return CashPurchaseSavings
*/
public function getCashPurchaseSavings()
{
return $this->cashPurchaseSavings;
}
/**
* @param bool
*/
public function setDefaultBill($defaultBill)
{
$this->defaultBill = $defaultBill;
}
/**
* @return bool
*/
public function getDefaultBill()
{
return $this->defaultBill;
}
/**
* @param FinancedPurchaseSavings
*/
public function setFinancedPurchaseSavings(FinancedPurchaseSavings $financedPurchaseSavings)
{
$this->financedPurchaseSavings = $financedPurchaseSavings;
}
/**
* @return FinancedPurchaseSavings
*/
public function getFinancedPurchaseSavings()
{
return $this->financedPurchaseSavings;
}
/**
* @param FinancialDetails
*/
public function setFinancialDetails(FinancialDetails $financialDetails)
{
$this->financialDetails = $financialDetails;
}
/**
* @return FinancialDetails
*/
public function getFinancialDetails()
{
return $this->financialDetails;
}
/**
* @param LeasingSavings
*/
public function setLeasingSavings(LeasingSavings $leasingSavings)
{
$this->leasingSavings = $leasingSavings;
}
/**
* @return LeasingSavings
*/
public function getLeasingSavings()
{
return $this->leasingSavings;
}
/**
* @param Money
*/
public function setMonthlyBill(Money $monthlyBill)
{
$this->monthlyBill = $monthlyBill;
}
/**
* @return Money
*/
public function getMonthlyBill()
{
return $this->monthlyBill;
}
/**
* @param int
*/
public function setPanelConfigIndex($panelConfigIndex)
{
$this->panelConfigIndex = $panelConfigIndex;
}
/**
* @return int
*/
public function getPanelConfigIndex()
{
return $this->panelConfigIndex;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FinancialAnalysis::class, 'Google_Service_Solar_FinancialAnalysis');

View File

@@ -0,0 +1,194 @@
<?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\Solar;
class FinancialDetails extends \Google\Model
{
protected $costOfElectricityWithoutSolarType = Money::class;
protected $costOfElectricityWithoutSolarDataType = '';
protected $federalIncentiveType = Money::class;
protected $federalIncentiveDataType = '';
/**
* @var float
*/
public $initialAcKwhPerYear;
protected $lifetimeSrecTotalType = Money::class;
protected $lifetimeSrecTotalDataType = '';
/**
* @var bool
*/
public $netMeteringAllowed;
/**
* @var float
*/
public $percentageExportedToGrid;
protected $remainingLifetimeUtilityBillType = Money::class;
protected $remainingLifetimeUtilityBillDataType = '';
/**
* @var float
*/
public $solarPercentage;
protected $stateIncentiveType = Money::class;
protected $stateIncentiveDataType = '';
protected $utilityIncentiveType = Money::class;
protected $utilityIncentiveDataType = '';
/**
* @param Money
*/
public function setCostOfElectricityWithoutSolar(Money $costOfElectricityWithoutSolar)
{
$this->costOfElectricityWithoutSolar = $costOfElectricityWithoutSolar;
}
/**
* @return Money
*/
public function getCostOfElectricityWithoutSolar()
{
return $this->costOfElectricityWithoutSolar;
}
/**
* @param Money
*/
public function setFederalIncentive(Money $federalIncentive)
{
$this->federalIncentive = $federalIncentive;
}
/**
* @return Money
*/
public function getFederalIncentive()
{
return $this->federalIncentive;
}
/**
* @param float
*/
public function setInitialAcKwhPerYear($initialAcKwhPerYear)
{
$this->initialAcKwhPerYear = $initialAcKwhPerYear;
}
/**
* @return float
*/
public function getInitialAcKwhPerYear()
{
return $this->initialAcKwhPerYear;
}
/**
* @param Money
*/
public function setLifetimeSrecTotal(Money $lifetimeSrecTotal)
{
$this->lifetimeSrecTotal = $lifetimeSrecTotal;
}
/**
* @return Money
*/
public function getLifetimeSrecTotal()
{
return $this->lifetimeSrecTotal;
}
/**
* @param bool
*/
public function setNetMeteringAllowed($netMeteringAllowed)
{
$this->netMeteringAllowed = $netMeteringAllowed;
}
/**
* @return bool
*/
public function getNetMeteringAllowed()
{
return $this->netMeteringAllowed;
}
/**
* @param float
*/
public function setPercentageExportedToGrid($percentageExportedToGrid)
{
$this->percentageExportedToGrid = $percentageExportedToGrid;
}
/**
* @return float
*/
public function getPercentageExportedToGrid()
{
return $this->percentageExportedToGrid;
}
/**
* @param Money
*/
public function setRemainingLifetimeUtilityBill(Money $remainingLifetimeUtilityBill)
{
$this->remainingLifetimeUtilityBill = $remainingLifetimeUtilityBill;
}
/**
* @return Money
*/
public function getRemainingLifetimeUtilityBill()
{
return $this->remainingLifetimeUtilityBill;
}
/**
* @param float
*/
public function setSolarPercentage($solarPercentage)
{
$this->solarPercentage = $solarPercentage;
}
/**
* @return float
*/
public function getSolarPercentage()
{
return $this->solarPercentage;
}
/**
* @param Money
*/
public function setStateIncentive(Money $stateIncentive)
{
$this->stateIncentive = $stateIncentive;
}
/**
* @return Money
*/
public function getStateIncentive()
{
return $this->stateIncentive;
}
/**
* @param Money
*/
public function setUtilityIncentive(Money $utilityIncentive)
{
$this->utilityIncentive = $utilityIncentive;
}
/**
* @return Money
*/
public function getUtilityIncentive()
{
return $this->utilityIncentive;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FinancialDetails::class, 'Google_Service_Solar_FinancialDetails');

View File

@@ -0,0 +1,81 @@
<?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\Solar;
class HttpBody extends \Google\Collection
{
protected $collection_key = 'extensions';
/**
* @var string
*/
public $contentType;
/**
* @var string
*/
public $data;
/**
* @var array[]
*/
public $extensions;
/**
* @param string
*/
public function setContentType($contentType)
{
$this->contentType = $contentType;
}
/**
* @return string
*/
public function getContentType()
{
return $this->contentType;
}
/**
* @param string
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* @param array[]
*/
public function setExtensions($extensions)
{
$this->extensions = $extensions;
}
/**
* @return array[]
*/
public function getExtensions()
{
return $this->extensions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpBody::class, 'Google_Service_Solar_HttpBody');

View File

@@ -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\Solar;
class LatLng extends \Google\Model
{
public $latitude;
public $longitude;
public function setLatitude($latitude)
{
$this->latitude = $latitude;
}
public function getLatitude()
{
return $this->latitude;
}
public function setLongitude($longitude)
{
$this->longitude = $longitude;
}
public function getLongitude()
{
return $this->longitude;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LatLng::class, 'Google_Service_Solar_LatLng');

View File

@@ -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\Solar;
class LatLngBox extends \Google\Model
{
protected $neType = LatLng::class;
protected $neDataType = '';
protected $swType = LatLng::class;
protected $swDataType = '';
/**
* @param LatLng
*/
public function setNe(LatLng $ne)
{
$this->ne = $ne;
}
/**
* @return LatLng
*/
public function getNe()
{
return $this->ne;
}
/**
* @param LatLng
*/
public function setSw(LatLng $sw)
{
$this->sw = $sw;
}
/**
* @return LatLng
*/
public function getSw()
{
return $this->sw;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LatLngBox::class, 'Google_Service_Solar_LatLngBox');

View File

@@ -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\Solar;
class LeasingSavings extends \Google\Model
{
protected $annualLeasingCostType = Money::class;
protected $annualLeasingCostDataType = '';
/**
* @var bool
*/
public $leasesAllowed;
/**
* @var bool
*/
public $leasesSupported;
protected $savingsType = SavingsOverTime::class;
protected $savingsDataType = '';
/**
* @param Money
*/
public function setAnnualLeasingCost(Money $annualLeasingCost)
{
$this->annualLeasingCost = $annualLeasingCost;
}
/**
* @return Money
*/
public function getAnnualLeasingCost()
{
return $this->annualLeasingCost;
}
/**
* @param bool
*/
public function setLeasesAllowed($leasesAllowed)
{
$this->leasesAllowed = $leasesAllowed;
}
/**
* @return bool
*/
public function getLeasesAllowed()
{
return $this->leasesAllowed;
}
/**
* @param bool
*/
public function setLeasesSupported($leasesSupported)
{
$this->leasesSupported = $leasesSupported;
}
/**
* @return bool
*/
public function getLeasesSupported()
{
return $this->leasesSupported;
}
/**
* @param SavingsOverTime
*/
public function setSavings(SavingsOverTime $savings)
{
$this->savings = $savings;
}
/**
* @return SavingsOverTime
*/
public function getSavings()
{
return $this->savings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LeasingSavings::class, 'Google_Service_Solar_LeasingSavings');

View File

@@ -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\Solar;
class Money extends \Google\Model
{
/**
* @var string
*/
public $currencyCode;
/**
* @var int
*/
public $nanos;
/**
* @var string
*/
public $units;
/**
* @param string
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
/**
* @param int
*/
public function setNanos($nanos)
{
$this->nanos = $nanos;
}
/**
* @return int
*/
public function getNanos()
{
return $this->nanos;
}
/**
* @param string
*/
public function setUnits($units)
{
$this->units = $units;
}
/**
* @return string
*/
public function getUnits()
{
return $this->units;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Money::class, 'Google_Service_Solar_Money');

View File

@@ -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\Solar\Resource;
use Google\Service\Solar\BuildingInsights as BuildingInsightsModel;
/**
* The "buildingInsights" collection of methods.
* Typical usage is:
* <code>
* $solarService = new Google\Service\Solar(...);
* $buildingInsights = $solarService->buildingInsights;
* </code>
*/
class BuildingInsights extends \Google\Service\Resource
{
/**
* Locates the closest building to a query point. Returns an error with code
* `NOT_FOUND` if there are no buildings within approximately 50m of the query
* point. (buildingInsights.findClosest)
*
* @param array $optParams Optional parameters.
*
* @opt_param string experiments Optional. Specifies the pre-GA features to
* enable.
* @opt_param double location.latitude The latitude in degrees. It must be in
* the range [-90.0, +90.0].
* @opt_param double location.longitude The longitude in degrees. It must be in
* the range [-180.0, +180.0].
* @opt_param string requiredQuality Optional. The minimum quality level allowed
* in the results. No result with lower quality than this will be returned. Not
* specifying this is equivalent to restricting to HIGH quality only.
* @return BuildingInsightsModel
* @throws \Google\Service\Exception
*/
public function findClosest($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('findClosest', [$params], BuildingInsightsModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BuildingInsights::class, 'Google_Service_Solar_Resource_BuildingInsights');

View File

@@ -0,0 +1,81 @@
<?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\Solar\Resource;
use Google\Service\Solar\DataLayers as DataLayersModel;
/**
* The "dataLayers" collection of methods.
* Typical usage is:
* <code>
* $solarService = new Google\Service\Solar(...);
* $dataLayers = $solarService->dataLayers;
* </code>
*/
class DataLayers extends \Google\Service\Resource
{
/**
* Gets solar information for a region surrounding a location. Returns an error
* with code `NOT_FOUND` if the location is outside the coverage area.
* (dataLayers.get)
*
* @param array $optParams Optional parameters.
*
* @opt_param bool exactQualityRequired Optional. Whether to require exact
* quality of the imagery. If set to false, the `required_quality` field is
* interpreted as the minimum required quality, such that HIGH quality imagery
* may be returned when `required_quality` is set to MEDIUM. If set to true,
* `required_quality` is interpreted as the exact required quality and only
* `MEDIUM` quality imagery is returned if `required_quality` is set to
* `MEDIUM`.
* @opt_param string experiments Optional. Specifies the pre-GA experiments to
* enable.
* @opt_param double location.latitude The latitude in degrees. It must be in
* the range [-90.0, +90.0].
* @opt_param double location.longitude The longitude in degrees. It must be in
* the range [-180.0, +180.0].
* @opt_param float pixelSizeMeters Optional. The minimum scale, in meters per
* pixel, of the data to return. Values of 0.1 (the default, if this field is
* not set explicitly), 0.25, 0.5, and 1.0 are supported. Imagery components
* whose normal resolution is less than `pixel_size_meters` will be returned at
* the resolution specified by `pixel_size_meters`; imagery components whose
* normal resolution is equal to or greater than `pixel_size_meters` will be
* returned at that normal resolution.
* @opt_param float radiusMeters Required. The radius, in meters, defining the
* region surrounding that centre point for which data should be returned. The
* limitations on this value are: * Any value up to 100m can always be
* specified. * Values over 100m can be specified, as long as `radius_meters` <=
* `pixel_size_meters * 1000`. * However, for values over 175m, the
* `DataLayerView` in the request must not include monthly flux or hourly shade.
* @opt_param string requiredQuality Optional. The minimum quality level allowed
* in the results. No result with lower quality than this will be returned. Not
* specifying this is equivalent to restricting to HIGH quality only.
* @opt_param string view Optional. The desired subset of the data to return.
* @return DataLayersModel
* @throws \Google\Service\Exception
*/
public function get($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DataLayersModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataLayers::class, 'Google_Service_Solar_Resource_DataLayers');

View File

@@ -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\Solar\Resource;
use Google\Service\Solar\HttpBody;
/**
* The "geoTiff" collection of methods.
* Typical usage is:
* <code>
* $solarService = new Google\Service\Solar(...);
* $geoTiff = $solarService->geoTiff;
* </code>
*/
class GeoTiff extends \Google\Service\Resource
{
/**
* Returns an image by its ID. (geoTiff.get)
*
* @param array $optParams Optional parameters.
*
* @opt_param string id Required. The ID of the asset being requested.
* @return HttpBody
* @throws \Google\Service\Exception
*/
public function get($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], HttpBody::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GeoTiff::class, 'Google_Service_Solar_Resource_GeoTiff');

View File

@@ -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\Solar;
class RoofSegmentSizeAndSunshineStats extends \Google\Model
{
/**
* @var float
*/
public $azimuthDegrees;
protected $boundingBoxType = LatLngBox::class;
protected $boundingBoxDataType = '';
protected $centerType = LatLng::class;
protected $centerDataType = '';
/**
* @var float
*/
public $pitchDegrees;
/**
* @var float
*/
public $planeHeightAtCenterMeters;
protected $statsType = SizeAndSunshineStats::class;
protected $statsDataType = '';
/**
* @param float
*/
public function setAzimuthDegrees($azimuthDegrees)
{
$this->azimuthDegrees = $azimuthDegrees;
}
/**
* @return float
*/
public function getAzimuthDegrees()
{
return $this->azimuthDegrees;
}
/**
* @param LatLngBox
*/
public function setBoundingBox(LatLngBox $boundingBox)
{
$this->boundingBox = $boundingBox;
}
/**
* @return LatLngBox
*/
public function getBoundingBox()
{
return $this->boundingBox;
}
/**
* @param LatLng
*/
public function setCenter(LatLng $center)
{
$this->center = $center;
}
/**
* @return LatLng
*/
public function getCenter()
{
return $this->center;
}
/**
* @param float
*/
public function setPitchDegrees($pitchDegrees)
{
$this->pitchDegrees = $pitchDegrees;
}
/**
* @return float
*/
public function getPitchDegrees()
{
return $this->pitchDegrees;
}
/**
* @param float
*/
public function setPlaneHeightAtCenterMeters($planeHeightAtCenterMeters)
{
$this->planeHeightAtCenterMeters = $planeHeightAtCenterMeters;
}
/**
* @return float
*/
public function getPlaneHeightAtCenterMeters()
{
return $this->planeHeightAtCenterMeters;
}
/**
* @param SizeAndSunshineStats
*/
public function setStats(SizeAndSunshineStats $stats)
{
$this->stats = $stats;
}
/**
* @return SizeAndSunshineStats
*/
public function getStats()
{
return $this->stats;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RoofSegmentSizeAndSunshineStats::class, 'Google_Service_Solar_RoofSegmentSizeAndSunshineStats');

View File

@@ -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\Solar;
class RoofSegmentSummary extends \Google\Model
{
/**
* @var float
*/
public $azimuthDegrees;
/**
* @var int
*/
public $panelsCount;
/**
* @var float
*/
public $pitchDegrees;
/**
* @var int
*/
public $segmentIndex;
/**
* @var float
*/
public $yearlyEnergyDcKwh;
/**
* @param float
*/
public function setAzimuthDegrees($azimuthDegrees)
{
$this->azimuthDegrees = $azimuthDegrees;
}
/**
* @return float
*/
public function getAzimuthDegrees()
{
return $this->azimuthDegrees;
}
/**
* @param int
*/
public function setPanelsCount($panelsCount)
{
$this->panelsCount = $panelsCount;
}
/**
* @return int
*/
public function getPanelsCount()
{
return $this->panelsCount;
}
/**
* @param float
*/
public function setPitchDegrees($pitchDegrees)
{
$this->pitchDegrees = $pitchDegrees;
}
/**
* @return float
*/
public function getPitchDegrees()
{
return $this->pitchDegrees;
}
/**
* @param int
*/
public function setSegmentIndex($segmentIndex)
{
$this->segmentIndex = $segmentIndex;
}
/**
* @return int
*/
public function getSegmentIndex()
{
return $this->segmentIndex;
}
/**
* @param float
*/
public function setYearlyEnergyDcKwh($yearlyEnergyDcKwh)
{
$this->yearlyEnergyDcKwh = $yearlyEnergyDcKwh;
}
/**
* @return float
*/
public function getYearlyEnergyDcKwh()
{
return $this->yearlyEnergyDcKwh;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RoofSegmentSummary::class, 'Google_Service_Solar_RoofSegmentSummary');

View File

@@ -0,0 +1,124 @@
<?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\Solar;
class SavingsOverTime extends \Google\Model
{
/**
* @var bool
*/
public $financiallyViable;
protected $presentValueOfSavingsLifetimeType = Money::class;
protected $presentValueOfSavingsLifetimeDataType = '';
protected $presentValueOfSavingsYear20Type = Money::class;
protected $presentValueOfSavingsYear20DataType = '';
protected $savingsLifetimeType = Money::class;
protected $savingsLifetimeDataType = '';
protected $savingsYear1Type = Money::class;
protected $savingsYear1DataType = '';
protected $savingsYear20Type = Money::class;
protected $savingsYear20DataType = '';
/**
* @param bool
*/
public function setFinanciallyViable($financiallyViable)
{
$this->financiallyViable = $financiallyViable;
}
/**
* @return bool
*/
public function getFinanciallyViable()
{
return $this->financiallyViable;
}
/**
* @param Money
*/
public function setPresentValueOfSavingsLifetime(Money $presentValueOfSavingsLifetime)
{
$this->presentValueOfSavingsLifetime = $presentValueOfSavingsLifetime;
}
/**
* @return Money
*/
public function getPresentValueOfSavingsLifetime()
{
return $this->presentValueOfSavingsLifetime;
}
/**
* @param Money
*/
public function setPresentValueOfSavingsYear20(Money $presentValueOfSavingsYear20)
{
$this->presentValueOfSavingsYear20 = $presentValueOfSavingsYear20;
}
/**
* @return Money
*/
public function getPresentValueOfSavingsYear20()
{
return $this->presentValueOfSavingsYear20;
}
/**
* @param Money
*/
public function setSavingsLifetime(Money $savingsLifetime)
{
$this->savingsLifetime = $savingsLifetime;
}
/**
* @return Money
*/
public function getSavingsLifetime()
{
return $this->savingsLifetime;
}
/**
* @param Money
*/
public function setSavingsYear1(Money $savingsYear1)
{
$this->savingsYear1 = $savingsYear1;
}
/**
* @return Money
*/
public function getSavingsYear1()
{
return $this->savingsYear1;
}
/**
* @param Money
*/
public function setSavingsYear20(Money $savingsYear20)
{
$this->savingsYear20 = $savingsYear20;
}
/**
* @return Money
*/
public function getSavingsYear20()
{
return $this->savingsYear20;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SavingsOverTime::class, 'Google_Service_Solar_SavingsOverTime');

View File

@@ -0,0 +1,81 @@
<?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\Solar;
class SizeAndSunshineStats extends \Google\Collection
{
protected $collection_key = 'sunshineQuantiles';
/**
* @var float
*/
public $areaMeters2;
/**
* @var float
*/
public $groundAreaMeters2;
/**
* @var float[]
*/
public $sunshineQuantiles;
/**
* @param float
*/
public function setAreaMeters2($areaMeters2)
{
$this->areaMeters2 = $areaMeters2;
}
/**
* @return float
*/
public function getAreaMeters2()
{
return $this->areaMeters2;
}
/**
* @param float
*/
public function setGroundAreaMeters2($groundAreaMeters2)
{
$this->groundAreaMeters2 = $groundAreaMeters2;
}
/**
* @return float
*/
public function getGroundAreaMeters2()
{
return $this->groundAreaMeters2;
}
/**
* @param float[]
*/
public function setSunshineQuantiles($sunshineQuantiles)
{
$this->sunshineQuantiles = $sunshineQuantiles;
}
/**
* @return float[]
*/
public function getSunshineQuantiles()
{
return $this->sunshineQuantiles;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SizeAndSunshineStats::class, 'Google_Service_Solar_SizeAndSunshineStats');

View File

@@ -0,0 +1,96 @@
<?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\Solar;
class SolarPanel extends \Google\Model
{
protected $centerType = LatLng::class;
protected $centerDataType = '';
/**
* @var string
*/
public $orientation;
/**
* @var int
*/
public $segmentIndex;
/**
* @var float
*/
public $yearlyEnergyDcKwh;
/**
* @param LatLng
*/
public function setCenter(LatLng $center)
{
$this->center = $center;
}
/**
* @return LatLng
*/
public function getCenter()
{
return $this->center;
}
/**
* @param string
*/
public function setOrientation($orientation)
{
$this->orientation = $orientation;
}
/**
* @return string
*/
public function getOrientation()
{
return $this->orientation;
}
/**
* @param int
*/
public function setSegmentIndex($segmentIndex)
{
$this->segmentIndex = $segmentIndex;
}
/**
* @return int
*/
public function getSegmentIndex()
{
return $this->segmentIndex;
}
/**
* @param float
*/
public function setYearlyEnergyDcKwh($yearlyEnergyDcKwh)
{
$this->yearlyEnergyDcKwh = $yearlyEnergyDcKwh;
}
/**
* @return float
*/
public function getYearlyEnergyDcKwh()
{
return $this->yearlyEnergyDcKwh;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SolarPanel::class, 'Google_Service_Solar_SolarPanel');

View File

@@ -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\Solar;
class SolarPanelConfig extends \Google\Collection
{
protected $collection_key = 'roofSegmentSummaries';
/**
* @var int
*/
public $panelsCount;
protected $roofSegmentSummariesType = RoofSegmentSummary::class;
protected $roofSegmentSummariesDataType = 'array';
/**
* @var float
*/
public $yearlyEnergyDcKwh;
/**
* @param int
*/
public function setPanelsCount($panelsCount)
{
$this->panelsCount = $panelsCount;
}
/**
* @return int
*/
public function getPanelsCount()
{
return $this->panelsCount;
}
/**
* @param RoofSegmentSummary[]
*/
public function setRoofSegmentSummaries($roofSegmentSummaries)
{
$this->roofSegmentSummaries = $roofSegmentSummaries;
}
/**
* @return RoofSegmentSummary[]
*/
public function getRoofSegmentSummaries()
{
return $this->roofSegmentSummaries;
}
/**
* @param float
*/
public function setYearlyEnergyDcKwh($yearlyEnergyDcKwh)
{
$this->yearlyEnergyDcKwh = $yearlyEnergyDcKwh;
}
/**
* @return float
*/
public function getYearlyEnergyDcKwh()
{
return $this->yearlyEnergyDcKwh;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SolarPanelConfig::class, 'Google_Service_Solar_SolarPanelConfig');

View File

@@ -0,0 +1,267 @@
<?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\Solar;
class SolarPotential extends \Google\Collection
{
protected $collection_key = 'solarPanels';
protected $buildingStatsType = SizeAndSunshineStats::class;
protected $buildingStatsDataType = '';
/**
* @var float
*/
public $carbonOffsetFactorKgPerMwh;
protected $financialAnalysesType = FinancialAnalysis::class;
protected $financialAnalysesDataType = 'array';
/**
* @var float
*/
public $maxArrayAreaMeters2;
/**
* @var int
*/
public $maxArrayPanelsCount;
/**
* @var float
*/
public $maxSunshineHoursPerYear;
/**
* @var float
*/
public $panelCapacityWatts;
/**
* @var float
*/
public $panelHeightMeters;
/**
* @var int
*/
public $panelLifetimeYears;
/**
* @var float
*/
public $panelWidthMeters;
protected $roofSegmentStatsType = RoofSegmentSizeAndSunshineStats::class;
protected $roofSegmentStatsDataType = 'array';
protected $solarPanelConfigsType = SolarPanelConfig::class;
protected $solarPanelConfigsDataType = 'array';
protected $solarPanelsType = SolarPanel::class;
protected $solarPanelsDataType = 'array';
protected $wholeRoofStatsType = SizeAndSunshineStats::class;
protected $wholeRoofStatsDataType = '';
/**
* @param SizeAndSunshineStats
*/
public function setBuildingStats(SizeAndSunshineStats $buildingStats)
{
$this->buildingStats = $buildingStats;
}
/**
* @return SizeAndSunshineStats
*/
public function getBuildingStats()
{
return $this->buildingStats;
}
/**
* @param float
*/
public function setCarbonOffsetFactorKgPerMwh($carbonOffsetFactorKgPerMwh)
{
$this->carbonOffsetFactorKgPerMwh = $carbonOffsetFactorKgPerMwh;
}
/**
* @return float
*/
public function getCarbonOffsetFactorKgPerMwh()
{
return $this->carbonOffsetFactorKgPerMwh;
}
/**
* @param FinancialAnalysis[]
*/
public function setFinancialAnalyses($financialAnalyses)
{
$this->financialAnalyses = $financialAnalyses;
}
/**
* @return FinancialAnalysis[]
*/
public function getFinancialAnalyses()
{
return $this->financialAnalyses;
}
/**
* @param float
*/
public function setMaxArrayAreaMeters2($maxArrayAreaMeters2)
{
$this->maxArrayAreaMeters2 = $maxArrayAreaMeters2;
}
/**
* @return float
*/
public function getMaxArrayAreaMeters2()
{
return $this->maxArrayAreaMeters2;
}
/**
* @param int
*/
public function setMaxArrayPanelsCount($maxArrayPanelsCount)
{
$this->maxArrayPanelsCount = $maxArrayPanelsCount;
}
/**
* @return int
*/
public function getMaxArrayPanelsCount()
{
return $this->maxArrayPanelsCount;
}
/**
* @param float
*/
public function setMaxSunshineHoursPerYear($maxSunshineHoursPerYear)
{
$this->maxSunshineHoursPerYear = $maxSunshineHoursPerYear;
}
/**
* @return float
*/
public function getMaxSunshineHoursPerYear()
{
return $this->maxSunshineHoursPerYear;
}
/**
* @param float
*/
public function setPanelCapacityWatts($panelCapacityWatts)
{
$this->panelCapacityWatts = $panelCapacityWatts;
}
/**
* @return float
*/
public function getPanelCapacityWatts()
{
return $this->panelCapacityWatts;
}
/**
* @param float
*/
public function setPanelHeightMeters($panelHeightMeters)
{
$this->panelHeightMeters = $panelHeightMeters;
}
/**
* @return float
*/
public function getPanelHeightMeters()
{
return $this->panelHeightMeters;
}
/**
* @param int
*/
public function setPanelLifetimeYears($panelLifetimeYears)
{
$this->panelLifetimeYears = $panelLifetimeYears;
}
/**
* @return int
*/
public function getPanelLifetimeYears()
{
return $this->panelLifetimeYears;
}
/**
* @param float
*/
public function setPanelWidthMeters($panelWidthMeters)
{
$this->panelWidthMeters = $panelWidthMeters;
}
/**
* @return float
*/
public function getPanelWidthMeters()
{
return $this->panelWidthMeters;
}
/**
* @param RoofSegmentSizeAndSunshineStats[]
*/
public function setRoofSegmentStats($roofSegmentStats)
{
$this->roofSegmentStats = $roofSegmentStats;
}
/**
* @return RoofSegmentSizeAndSunshineStats[]
*/
public function getRoofSegmentStats()
{
return $this->roofSegmentStats;
}
/**
* @param SolarPanelConfig[]
*/
public function setSolarPanelConfigs($solarPanelConfigs)
{
$this->solarPanelConfigs = $solarPanelConfigs;
}
/**
* @return SolarPanelConfig[]
*/
public function getSolarPanelConfigs()
{
return $this->solarPanelConfigs;
}
/**
* @param SolarPanel[]
*/
public function setSolarPanels($solarPanels)
{
$this->solarPanels = $solarPanels;
}
/**
* @return SolarPanel[]
*/
public function getSolarPanels()
{
return $this->solarPanels;
}
/**
* @param SizeAndSunshineStats
*/
public function setWholeRoofStats(SizeAndSunshineStats $wholeRoofStats)
{
$this->wholeRoofStats = $wholeRoofStats;
}
/**
* @return SizeAndSunshineStats
*/
public function getWholeRoofStats()
{
return $this->wholeRoofStats;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SolarPotential::class, 'Google_Service_Solar_SolarPotential');