Skip to content

Commit 420f939

Browse files
feat: [google-maps-solar] Add experiments param to endpoints for access to pre-GA features (#14242)
BEGIN_COMMIT_OVERRIDE feat: Add `experiments` param to endpoints for access to pre-GA features feat: Add new `ImageryQuality` tier for allowing satellite-based Solar API results docs: Add more detailed descriptions for each `ImageryQuality` tier END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. feat: Add new `ImageryQuality` tier for allowing satellite-based Solar API results docs: Add more detailed descriptions for each `ImageryQuality` tier PiperOrigin-RevId: 795589896 Source-Link: googleapis/googleapis@74853d7 Source-Link: googleapis/googleapis-gen@4390cc0 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLW1hcHMtc29sYXIvLk93bEJvdC55YW1sIiwiaCI6IjQzOTBjYzBmZTljYmRmZGVhZWM3NDdiMDFhMDFhMDVmMThiOWIwMDMifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: ohmayr <[email protected]>
1 parent 47981a8 commit 420f939

File tree

13 files changed

+72
-24
lines changed

13 files changed

+72
-24
lines changed

packages/google-maps-solar/google/maps/solar/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
CashPurchaseSavings,
2626
DataLayers,
2727
DataLayerView,
28+
Experiment,
2829
FinancedPurchaseSavings,
2930
FinancialAnalysis,
3031
FinancialDetails,
@@ -66,6 +67,7 @@
6667
"SolarPanelConfig",
6768
"SolarPotential",
6869
"DataLayerView",
70+
"Experiment",
6971
"ImageryQuality",
7072
"SolarPanelOrientation",
7173
)

packages/google-maps-solar/google/maps/solar/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.1.8" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-maps-solar/google/maps/solar_v1/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
CashPurchaseSavings,
2525
DataLayers,
2626
DataLayerView,
27+
Experiment,
2728
FinancedPurchaseSavings,
2829
FinancialAnalysis,
2930
FinancialDetails,
@@ -49,6 +50,7 @@
4950
"CashPurchaseSavings",
5051
"DataLayerView",
5152
"DataLayers",
53+
"Experiment",
5254
"FinancedPurchaseSavings",
5355
"FinancialAnalysis",
5456
"FinancialDetails",

packages/google-maps-solar/google/maps/solar_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.1.8" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-maps-solar/google/maps/solar_v1/services/solar/async_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ async def find_closest_building_insights(
289289
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
290290
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
291291
) -> solar_service.BuildingInsights:
292-
r"""Locates the closest building to a query point. Returns an error
293-
with code ``NOT_FOUND`` if there are no buildings within
294-
approximately 50m of the query point.
292+
r"""Locates the building whose centroid is closest to a query point.
293+
Returns an error with code ``NOT_FOUND`` if there are no
294+
buildings within approximately 50m of the query point.
295295
296296
.. code-block:: python
297297

packages/google-maps-solar/google/maps/solar_v1/services/solar/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -697,9 +697,9 @@ def find_closest_building_insights(
697697
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
698698
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
699699
) -> solar_service.BuildingInsights:
700-
r"""Locates the closest building to a query point. Returns an error
701-
with code ``NOT_FOUND`` if there are no buildings within
702-
approximately 50m of the query point.
700+
r"""Locates the building whose centroid is closest to a query point.
701+
Returns an error with code ``NOT_FOUND`` if there are no
702+
buildings within approximately 50m of the query point.
703703
704704
.. code-block:: python
705705

packages/google-maps-solar/google/maps/solar_v1/services/solar/transports/grpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,9 @@ def find_closest_building_insights(
329329
]:
330330
r"""Return a callable for the find closest building insights method over gRPC.
331331
332-
Locates the closest building to a query point. Returns an error
333-
with code ``NOT_FOUND`` if there are no buildings within
334-
approximately 50m of the query point.
332+
Locates the building whose centroid is closest to a query point.
333+
Returns an error with code ``NOT_FOUND`` if there are no
334+
buildings within approximately 50m of the query point.
335335
336336
Returns:
337337
Callable[[~.FindClosestBuildingInsightsRequest],

packages/google-maps-solar/google/maps/solar_v1/services/solar/transports/grpc_asyncio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,9 @@ def find_closest_building_insights(
337337
]:
338338
r"""Return a callable for the find closest building insights method over gRPC.
339339
340-
Locates the closest building to a query point. Returns an error
341-
with code ``NOT_FOUND`` if there are no buildings within
342-
approximately 50m of the query point.
340+
Locates the building whose centroid is closest to a query point.
341+
Returns an error with code ``NOT_FOUND`` if there are no
342+
buildings within approximately 50m of the query point.
343343
344344
Returns:
345345
Callable[[~.FindClosestBuildingInsightsRequest],

packages/google-maps-solar/google/maps/solar_v1/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
CashPurchaseSavings,
1919
DataLayers,
2020
DataLayerView,
21+
Experiment,
2122
FinancedPurchaseSavings,
2223
FinancialAnalysis,
2324
FinancialDetails,
@@ -57,6 +58,7 @@
5758
"SolarPanelConfig",
5859
"SolarPotential",
5960
"DataLayerView",
61+
"Experiment",
6062
"ImageryQuality",
6163
"SolarPanelOrientation",
6264
)

packages/google-maps-solar/google/maps/solar_v1/types/solar_service.py

Lines changed: 45 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"DataLayerView",
2929
"ImageryQuality",
3030
"SolarPanelOrientation",
31+
"Experiment",
3132
"FindClosestBuildingInsightsRequest",
3233
"LatLngBox",
3334
"BuildingInsights",
@@ -88,19 +89,25 @@ class ImageryQuality(proto.Enum):
8889
IMAGERY_QUALITY_UNSPECIFIED (0):
8990
No quality is known.
9091
HIGH (1):
91-
The underlying imagery and DSM data were
92-
processed at 0.1 m/pixel.
92+
Solar data is derived from aerial imagery
93+
captured at low-altitude and processed at 0.1
94+
m/pixel.
9395
MEDIUM (2):
94-
The underlying imagery and DSM data were
95-
processed at 0.25 m/pixel.
96+
Solar data is derived from enhanced aerial
97+
imagery captured at high-altitude and processed
98+
at 0.25 m/pixel.
9699
LOW (3):
97-
The underlying imagery and DSM data were
98-
processed at 0.5 m/pixel.
100+
Solar data is derived from enhanced satellite
101+
imagery processed at 0.25 m/pixel.
102+
BASE (4):
103+
Solar data is derived from enhanced satellite
104+
imagery processed at 0.25 m/pixel.
99105
"""
100106
IMAGERY_QUALITY_UNSPECIFIED = 0
101107
HIGH = 1
102108
MEDIUM = 2
103109
LOW = 3
110+
BASE = 4
104111

105112

106113
class SolarPanelOrientation(proto.Enum):
@@ -123,6 +130,21 @@ class SolarPanelOrientation(proto.Enum):
123130
PORTRAIT = 2
124131

125132

133+
class Experiment(proto.Enum):
134+
r"""Specifies pre-GA experiments that can be enabled in the API.
135+
136+
Values:
137+
EXPERIMENT_UNSPECIFIED (0):
138+
No experiments are specified.
139+
EXPANDED_COVERAGE (1):
140+
Expands the geographic region available for querying solar
141+
data. For more information, see `Expanded
142+
Coverage <https://developers.google.com/maps/documentation/solar/expanded-coverage>`__.
143+
"""
144+
EXPERIMENT_UNSPECIFIED = 0
145+
EXPANDED_COVERAGE = 1
146+
147+
126148
class FindClosestBuildingInsightsRequest(proto.Message):
127149
r"""Request message for ``Solar.FindClosestBuildingInsights``.
128150
@@ -146,6 +168,9 @@ class FindClosestBuildingInsightsRequest(proto.Message):
146168
interpreted as the exact required quality and only
147169
``MEDIUM`` quality imagery is returned if
148170
``required_quality`` is set to ``MEDIUM``.
171+
experiments (MutableSequence[google.maps.solar_v1.types.Experiment]):
172+
Optional. Specifies the pre-GA features to
173+
enable.
149174
"""
150175

151176
location: latlng_pb2.LatLng = proto.Field(
@@ -162,6 +187,11 @@ class FindClosestBuildingInsightsRequest(proto.Message):
162187
proto.BOOL,
163188
number=4,
164189
)
190+
experiments: MutableSequence["Experiment"] = proto.RepeatedField(
191+
proto.ENUM,
192+
number=5,
193+
enum="Experiment",
194+
)
165195

166196

167197
class LatLngBox(proto.Message):
@@ -194,7 +224,7 @@ class BuildingInsights(proto.Message):
194224
Attributes:
195225
name (str):
196226
The resource name for the building, of the format
197-
``building/<place ID>``.
227+
``buildings/{place_id}``.
198228
center (google.type.latlng_pb2.LatLng):
199229
A point near the center of the building.
200230
bounding_box (google.maps.solar_v1.types.LatLngBox):
@@ -1123,6 +1153,9 @@ class GetDataLayersRequest(proto.Message):
11231153
interpreted as the exact required quality and only
11241154
``MEDIUM`` quality imagery is returned if
11251155
``required_quality`` is set to ``MEDIUM``.
1156+
experiments (MutableSequence[google.maps.solar_v1.types.Experiment]):
1157+
Optional. Specifies the pre-GA experiments to
1158+
enable.
11261159
"""
11271160

11281161
location: latlng_pb2.LatLng = proto.Field(
@@ -1152,6 +1185,11 @@ class GetDataLayersRequest(proto.Message):
11521185
proto.BOOL,
11531186
number=7,
11541187
)
1188+
experiments: MutableSequence["Experiment"] = proto.RepeatedField(
1189+
proto.ENUM,
1190+
number=8,
1191+
enum="Experiment",
1192+
)
11551193

11561194

11571195
class DataLayers(proto.Message):

0 commit comments

Comments
 (0)