Skip to content

Commit 1d71ab7

Browse files
feat: A new field radius_area is added to message .google.shopping.merchant.accounts.v1.Region (#32230)
PiperOrigin-RevId: 838817995 Source-Link: googleapis/googleapis@9a665b7 Source-Link: googleapis/googleapis-gen@7fdb862 Copy-Tag: eyJwIjoiZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LWFjY291bnRzLXYxLy5Pd2xCb3QueWFtbCIsImgiOiI3ZmRiODYyYzI0MmMxYWYwN2NlNjA4NmExNWI4NDdkZjhkZjhmYzQ5In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 26349e3 commit 1d71ab7

4 files changed

Lines changed: 80 additions & 1 deletion

File tree

google-shopping-merchant-accounts-v1/.owlbot-manifest.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@
259259
"proto_docs/google/shopping/type/types.rb",
260260
"proto_docs/google/type/date.rb",
261261
"proto_docs/google/type/datetime.rb",
262+
"proto_docs/google/type/latlng.rb",
262263
"proto_docs/google/type/phone_number.rb",
263264
"proto_docs/google/type/postal_address.rb",
264265
"snippets/Gemfile",

google-shopping-merchant-accounts-v1/lib/google/shopping/merchant/accounts/v1/regions_pb.rb

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google-shopping-merchant-accounts-v1/proto_docs/google/shopping/merchant/accounts/v1/regions.rb

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ class ListRegionsResponse
196196
# @return [::Google::Protobuf::BoolValue]
197197
# Output only. Indicates if the region is eligible for use in the Shipping
198198
# Services configuration.
199+
# @!attribute [rw] radius_area
200+
# @return [::Google::Shopping::Merchant::Accounts::V1::Region::RadiusArea]
201+
# Optional. A radius area that defines the region area.
199202
class Region
200203
include ::Google::Protobuf::MessageExts
201204
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -247,6 +250,39 @@ class GeoTargetArea
247250
include ::Google::Protobuf::MessageExts
248251
extend ::Google::Protobuf::MessageExts::ClassMethods
249252
end
253+
254+
# A radius area that defines the region area.
255+
# @!attribute [rw] region_code
256+
# @return [::String]
257+
# Required. [CLDR territory
258+
# code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
259+
# or the country the radius area applies to.
260+
# @!attribute [rw] lat_lng
261+
# @return [::Google::Type::LatLng]
262+
# Required. The center of the radius area. It represents a
263+
# latitude/longitude pair in decimal degrees format.
264+
# @!attribute [rw] radius
265+
# @return [::Float]
266+
# Required. The radius distance of the area.
267+
# @!attribute [rw] radius_units
268+
# @return [::Google::Shopping::Merchant::Accounts::V1::Region::RadiusArea::RadiusUnits]
269+
# Optional. The unit of the radius.
270+
class RadiusArea
271+
include ::Google::Protobuf::MessageExts
272+
extend ::Google::Protobuf::MessageExts::ClassMethods
273+
274+
# The unit of measurement of the radius. Default is KILOMETERS.
275+
module RadiusUnits
276+
# Unused default value
277+
RADIUS_UNITS_UNSPECIFIED = 0
278+
279+
# The distance is measured in miles.
280+
MILES = 1
281+
282+
# The distance is measured in kilometers.
283+
KILOMETERS = 2
284+
end
285+
end
250286
end
251287
end
252288
end
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# frozen_string_literal: true
2+
3+
# Copyright 2025 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18+
19+
20+
module Google
21+
module Type
22+
# An object that represents a latitude/longitude pair. This is expressed as a
23+
# pair of doubles to represent degrees latitude and degrees longitude. Unless
24+
# specified otherwise, this must conform to the
25+
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
26+
# standard</a>. Values must be within normalized ranges.
27+
# @!attribute [rw] latitude
28+
# @return [::Float]
29+
# The latitude in degrees. It must be in the range [-90.0, +90.0].
30+
# @!attribute [rw] longitude
31+
# @return [::Float]
32+
# The longitude in degrees. It must be in the range [-180.0, +180.0].
33+
class LatLng
34+
include ::Google::Protobuf::MessageExts
35+
extend ::Google::Protobuf::MessageExts::ClassMethods
36+
end
37+
end
38+
end

0 commit comments

Comments
 (0)