Skip to content

Commit 9a665b7

Browse files
Google APIscopybara-github
authored andcommitted
feat: A new field radius_area is added to message .google.shopping.merchant.accounts.v1.Region
PiperOrigin-RevId: 838817995
1 parent 8cd3749 commit 9a665b7

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

google/shopping/merchant/accounts/v1/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ proto_library(
6060
"//google/shopping/type:type_proto", # fixed manually
6161
"//google/type:date_proto",
6262
"//google/type:datetime_proto",
63+
"//google/type:latlng_proto",
6364
"//google/type:phone_number_proto",
6465
"//google/type:postal_address_proto",
6566
"@com_google_protobuf//:empty_proto",
@@ -204,6 +205,7 @@ go_grpc_library(
204205
"//google/shopping/type:type_go_proto", # manually fixed
205206
"//google/type:date_go_proto",
206207
"//google/type:datetime_go_proto",
208+
"//google/type:latlng_go_proto",
207209
"//google/type:phone_number_go_proto",
208210
"//google/type:postaladdress_go_proto",
209211
],

google/shopping/merchant/accounts/v1/regions.proto

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import "google/api/resource.proto";
2323
import "google/protobuf/empty.proto";
2424
import "google/protobuf/field_mask.proto";
2525
import "google/protobuf/wrappers.proto";
26+
import "google/type/latlng.proto";
2627

2728
option csharp_namespace = "Google.Shopping.Merchant.Accounts.V1";
2829
option go_package = "cloud.google.com/go/shopping/merchant/accounts/apiv1/accountspb;accountspb";
@@ -325,6 +326,36 @@ message Region {
325326
[(google.api.field_behavior) = REQUIRED];
326327
}
327328

329+
// A radius area that defines the region area.
330+
message RadiusArea {
331+
// The unit of measurement of the radius. Default is KILOMETERS.
332+
enum RadiusUnits {
333+
// Unused default value
334+
RADIUS_UNITS_UNSPECIFIED = 0;
335+
336+
// The distance is measured in miles.
337+
MILES = 1;
338+
339+
// The distance is measured in kilometers.
340+
KILOMETERS = 2;
341+
}
342+
343+
// Required. [CLDR territory
344+
// code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
345+
// or the country the radius area applies to.
346+
string region_code = 1 [(google.api.field_behavior) = REQUIRED];
347+
348+
// Required. The center of the radius area. It represents a
349+
// latitude/longitude pair in decimal degrees format.
350+
google.type.LatLng lat_lng = 2 [(google.api.field_behavior) = REQUIRED];
351+
352+
// Required. The radius distance of the area.
353+
double radius = 3 [(google.api.field_behavior) = REQUIRED];
354+
355+
// Optional. The unit of the radius.
356+
RadiusUnits radius_units = 4 [(google.api.field_behavior) = OPTIONAL];
357+
}
358+
328359
// Identifier. The resource name of the region.
329360
// Format: `accounts/{account}/regions/{region}`
330361
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
@@ -347,4 +378,7 @@ message Region {
347378
// Services configuration.
348379
google.protobuf.BoolValue shipping_eligible = 6
349380
[(google.api.field_behavior) = OUTPUT_ONLY];
381+
382+
// Optional. A radius area that defines the region area.
383+
RadiusArea radius_area = 7 [(google.api.field_behavior) = OPTIONAL];
350384
}

0 commit comments

Comments
 (0)