@@ -23,6 +23,7 @@ import "google/api/resource.proto";
2323import "google/protobuf/empty.proto" ;
2424import "google/protobuf/field_mask.proto" ;
2525import "google/protobuf/wrappers.proto" ;
26+ import "google/type/latlng.proto" ;
2627
2728option csharp_namespace = "Google.Shopping.Merchant.Accounts.V1" ;
2829option 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