Class: Google::Shopping::Merchant::Accounts::V1::Region

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/shopping/merchant/accounts/v1/regions.rb

Overview

Represents a geographic region that you can use as a target with both the RegionalInventory and ShippingSettings services. You can define regions as collections of either postal codes or, in some countries, using predefined geotargets. For more information, see Set up regions for more information.

Defined Under Namespace

Classes: GeoTargetArea, PostalCodeArea, RadiusArea

Instance Attribute Summary collapse

Instance Attribute Details

#display_name::String

Returns Optional. The display name of the region.

Returns:

  • (::String)

    Optional. The display name of the region.



202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
# File 'proto_docs/google/shopping/merchant/accounts/v1/regions.rb', line 202

class Region
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A list of postal codes that defines the region area.
  # Note: All regions defined using postal codes are accessible through the
  # account's `ShippingSettings.postalCodeGroups` resource.
  # @!attribute [rw] region_code
  #   @return [::String]
  #     Required. [CLDR territory
  #     code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
  #     or the country the postal code group applies to.
  # @!attribute [rw] postal_codes
  #   @return [::Array<::Google::Shopping::Merchant::Accounts::V1::Region::PostalCodeArea::PostalCodeRange>]
  #     Required. A range of postal codes.
  class PostalCodeArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A range of postal codes that defines the region area.
    # @!attribute [rw] begin
    #   @return [::String]
    #     Required. A postal code or a pattern of the form prefix* denoting the
    #     inclusive lower bound of the range defining the area. Examples values:
    #     `94108`, `9410*`, `9*`.
    # @!attribute [rw] end
    #   @return [::String]
    #     Optional. A postal code or a pattern of the form `prefix*` denoting the
    #     inclusive upper bound of the range defining the area. It must have the
    #     same length as postalCodeRangeBegin: if postalCodeRangeBegin is a
    #     postal code then postalCodeRangeEnd must be a postal code too; if
    #     postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a
    #     pattern with the same prefix length. Optional: if not set, then the
    #     area is defined as being all the postal codes matching
    #     postalCodeRangeBegin.
    class PostalCodeRange
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # A list of geotargets that defines the region area.
  # @!attribute [rw] geotarget_criteria_ids
  #   @return [::Array<::Integer>]
  #     Required. A non-empty list of [location
  #     IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting).
  #     They must all be of the same location type (for example, state).
  class GeoTargetArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A radius area that defines the region area.
  # @!attribute [rw] region_code
  #   @return [::String]
  #     Required. [CLDR territory
  #     code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
  #     or the country the radius area applies to.
  # @!attribute [rw] lat_lng
  #   @return [::Google::Type::LatLng]
  #     Required. The center of the radius area. It represents a
  #     latitude/longitude pair in decimal degrees format.
  # @!attribute [rw] radius
  #   @return [::Float]
  #     Required. The radius distance of the area.
  # @!attribute [rw] radius_units
  #   @return [::Google::Shopping::Merchant::Accounts::V1::Region::RadiusArea::RadiusUnits]
  #     Optional. The unit of the radius.
  class RadiusArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The unit of measurement of the radius. Default is KILOMETERS.
    module RadiusUnits
      # Unused default value
      RADIUS_UNITS_UNSPECIFIED = 0

      # The distance is measured in miles.
      MILES = 1

      # The distance is measured in kilometers.
      KILOMETERS = 2
    end
  end
end

#geotarget_area::Google::Shopping::Merchant::Accounts::V1::Region::GeoTargetArea

Returns Optional. A list of geotargets that defines the region area.

Returns:



202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
# File 'proto_docs/google/shopping/merchant/accounts/v1/regions.rb', line 202

class Region
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A list of postal codes that defines the region area.
  # Note: All regions defined using postal codes are accessible through the
  # account's `ShippingSettings.postalCodeGroups` resource.
  # @!attribute [rw] region_code
  #   @return [::String]
  #     Required. [CLDR territory
  #     code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
  #     or the country the postal code group applies to.
  # @!attribute [rw] postal_codes
  #   @return [::Array<::Google::Shopping::Merchant::Accounts::V1::Region::PostalCodeArea::PostalCodeRange>]
  #     Required. A range of postal codes.
  class PostalCodeArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A range of postal codes that defines the region area.
    # @!attribute [rw] begin
    #   @return [::String]
    #     Required. A postal code or a pattern of the form prefix* denoting the
    #     inclusive lower bound of the range defining the area. Examples values:
    #     `94108`, `9410*`, `9*`.
    # @!attribute [rw] end
    #   @return [::String]
    #     Optional. A postal code or a pattern of the form `prefix*` denoting the
    #     inclusive upper bound of the range defining the area. It must have the
    #     same length as postalCodeRangeBegin: if postalCodeRangeBegin is a
    #     postal code then postalCodeRangeEnd must be a postal code too; if
    #     postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a
    #     pattern with the same prefix length. Optional: if not set, then the
    #     area is defined as being all the postal codes matching
    #     postalCodeRangeBegin.
    class PostalCodeRange
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # A list of geotargets that defines the region area.
  # @!attribute [rw] geotarget_criteria_ids
  #   @return [::Array<::Integer>]
  #     Required. A non-empty list of [location
  #     IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting).
  #     They must all be of the same location type (for example, state).
  class GeoTargetArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A radius area that defines the region area.
  # @!attribute [rw] region_code
  #   @return [::String]
  #     Required. [CLDR territory
  #     code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
  #     or the country the radius area applies to.
  # @!attribute [rw] lat_lng
  #   @return [::Google::Type::LatLng]
  #     Required. The center of the radius area. It represents a
  #     latitude/longitude pair in decimal degrees format.
  # @!attribute [rw] radius
  #   @return [::Float]
  #     Required. The radius distance of the area.
  # @!attribute [rw] radius_units
  #   @return [::Google::Shopping::Merchant::Accounts::V1::Region::RadiusArea::RadiusUnits]
  #     Optional. The unit of the radius.
  class RadiusArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The unit of measurement of the radius. Default is KILOMETERS.
    module RadiusUnits
      # Unused default value
      RADIUS_UNITS_UNSPECIFIED = 0

      # The distance is measured in miles.
      MILES = 1

      # The distance is measured in kilometers.
      KILOMETERS = 2
    end
  end
end

#name::String

Returns Identifier. The resource name of the region. Format: accounts/{account}/regions/{region}.

Returns:

  • (::String)

    Identifier. The resource name of the region. Format: accounts/{account}/regions/{region}



202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
# File 'proto_docs/google/shopping/merchant/accounts/v1/regions.rb', line 202

class Region
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A list of postal codes that defines the region area.
  # Note: All regions defined using postal codes are accessible through the
  # account's `ShippingSettings.postalCodeGroups` resource.
  # @!attribute [rw] region_code
  #   @return [::String]
  #     Required. [CLDR territory
  #     code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
  #     or the country the postal code group applies to.
  # @!attribute [rw] postal_codes
  #   @return [::Array<::Google::Shopping::Merchant::Accounts::V1::Region::PostalCodeArea::PostalCodeRange>]
  #     Required. A range of postal codes.
  class PostalCodeArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A range of postal codes that defines the region area.
    # @!attribute [rw] begin
    #   @return [::String]
    #     Required. A postal code or a pattern of the form prefix* denoting the
    #     inclusive lower bound of the range defining the area. Examples values:
    #     `94108`, `9410*`, `9*`.
    # @!attribute [rw] end
    #   @return [::String]
    #     Optional. A postal code or a pattern of the form `prefix*` denoting the
    #     inclusive upper bound of the range defining the area. It must have the
    #     same length as postalCodeRangeBegin: if postalCodeRangeBegin is a
    #     postal code then postalCodeRangeEnd must be a postal code too; if
    #     postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a
    #     pattern with the same prefix length. Optional: if not set, then the
    #     area is defined as being all the postal codes matching
    #     postalCodeRangeBegin.
    class PostalCodeRange
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # A list of geotargets that defines the region area.
  # @!attribute [rw] geotarget_criteria_ids
  #   @return [::Array<::Integer>]
  #     Required. A non-empty list of [location
  #     IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting).
  #     They must all be of the same location type (for example, state).
  class GeoTargetArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A radius area that defines the region area.
  # @!attribute [rw] region_code
  #   @return [::String]
  #     Required. [CLDR territory
  #     code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
  #     or the country the radius area applies to.
  # @!attribute [rw] lat_lng
  #   @return [::Google::Type::LatLng]
  #     Required. The center of the radius area. It represents a
  #     latitude/longitude pair in decimal degrees format.
  # @!attribute [rw] radius
  #   @return [::Float]
  #     Required. The radius distance of the area.
  # @!attribute [rw] radius_units
  #   @return [::Google::Shopping::Merchant::Accounts::V1::Region::RadiusArea::RadiusUnits]
  #     Optional. The unit of the radius.
  class RadiusArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The unit of measurement of the radius. Default is KILOMETERS.
    module RadiusUnits
      # Unused default value
      RADIUS_UNITS_UNSPECIFIED = 0

      # The distance is measured in miles.
      MILES = 1

      # The distance is measured in kilometers.
      KILOMETERS = 2
    end
  end
end

#postal_code_area::Google::Shopping::Merchant::Accounts::V1::Region::PostalCodeArea

Returns Optional. A list of postal codes that defines the region area.

Returns:



202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
# File 'proto_docs/google/shopping/merchant/accounts/v1/regions.rb', line 202

class Region
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A list of postal codes that defines the region area.
  # Note: All regions defined using postal codes are accessible through the
  # account's `ShippingSettings.postalCodeGroups` resource.
  # @!attribute [rw] region_code
  #   @return [::String]
  #     Required. [CLDR territory
  #     code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
  #     or the country the postal code group applies to.
  # @!attribute [rw] postal_codes
  #   @return [::Array<::Google::Shopping::Merchant::Accounts::V1::Region::PostalCodeArea::PostalCodeRange>]
  #     Required. A range of postal codes.
  class PostalCodeArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A range of postal codes that defines the region area.
    # @!attribute [rw] begin
    #   @return [::String]
    #     Required. A postal code or a pattern of the form prefix* denoting the
    #     inclusive lower bound of the range defining the area. Examples values:
    #     `94108`, `9410*`, `9*`.
    # @!attribute [rw] end
    #   @return [::String]
    #     Optional. A postal code or a pattern of the form `prefix*` denoting the
    #     inclusive upper bound of the range defining the area. It must have the
    #     same length as postalCodeRangeBegin: if postalCodeRangeBegin is a
    #     postal code then postalCodeRangeEnd must be a postal code too; if
    #     postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a
    #     pattern with the same prefix length. Optional: if not set, then the
    #     area is defined as being all the postal codes matching
    #     postalCodeRangeBegin.
    class PostalCodeRange
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # A list of geotargets that defines the region area.
  # @!attribute [rw] geotarget_criteria_ids
  #   @return [::Array<::Integer>]
  #     Required. A non-empty list of [location
  #     IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting).
  #     They must all be of the same location type (for example, state).
  class GeoTargetArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A radius area that defines the region area.
  # @!attribute [rw] region_code
  #   @return [::String]
  #     Required. [CLDR territory
  #     code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
  #     or the country the radius area applies to.
  # @!attribute [rw] lat_lng
  #   @return [::Google::Type::LatLng]
  #     Required. The center of the radius area. It represents a
  #     latitude/longitude pair in decimal degrees format.
  # @!attribute [rw] radius
  #   @return [::Float]
  #     Required. The radius distance of the area.
  # @!attribute [rw] radius_units
  #   @return [::Google::Shopping::Merchant::Accounts::V1::Region::RadiusArea::RadiusUnits]
  #     Optional. The unit of the radius.
  class RadiusArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The unit of measurement of the radius. Default is KILOMETERS.
    module RadiusUnits
      # Unused default value
      RADIUS_UNITS_UNSPECIFIED = 0

      # The distance is measured in miles.
      MILES = 1

      # The distance is measured in kilometers.
      KILOMETERS = 2
    end
  end
end

#radius_area::Google::Shopping::Merchant::Accounts::V1::Region::RadiusArea

Returns Optional. A radius area that defines the region area.

Returns:



202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
# File 'proto_docs/google/shopping/merchant/accounts/v1/regions.rb', line 202

class Region
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A list of postal codes that defines the region area.
  # Note: All regions defined using postal codes are accessible through the
  # account's `ShippingSettings.postalCodeGroups` resource.
  # @!attribute [rw] region_code
  #   @return [::String]
  #     Required. [CLDR territory
  #     code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
  #     or the country the postal code group applies to.
  # @!attribute [rw] postal_codes
  #   @return [::Array<::Google::Shopping::Merchant::Accounts::V1::Region::PostalCodeArea::PostalCodeRange>]
  #     Required. A range of postal codes.
  class PostalCodeArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A range of postal codes that defines the region area.
    # @!attribute [rw] begin
    #   @return [::String]
    #     Required. A postal code or a pattern of the form prefix* denoting the
    #     inclusive lower bound of the range defining the area. Examples values:
    #     `94108`, `9410*`, `9*`.
    # @!attribute [rw] end
    #   @return [::String]
    #     Optional. A postal code or a pattern of the form `prefix*` denoting the
    #     inclusive upper bound of the range defining the area. It must have the
    #     same length as postalCodeRangeBegin: if postalCodeRangeBegin is a
    #     postal code then postalCodeRangeEnd must be a postal code too; if
    #     postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a
    #     pattern with the same prefix length. Optional: if not set, then the
    #     area is defined as being all the postal codes matching
    #     postalCodeRangeBegin.
    class PostalCodeRange
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # A list of geotargets that defines the region area.
  # @!attribute [rw] geotarget_criteria_ids
  #   @return [::Array<::Integer>]
  #     Required. A non-empty list of [location
  #     IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting).
  #     They must all be of the same location type (for example, state).
  class GeoTargetArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A radius area that defines the region area.
  # @!attribute [rw] region_code
  #   @return [::String]
  #     Required. [CLDR territory
  #     code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
  #     or the country the radius area applies to.
  # @!attribute [rw] lat_lng
  #   @return [::Google::Type::LatLng]
  #     Required. The center of the radius area. It represents a
  #     latitude/longitude pair in decimal degrees format.
  # @!attribute [rw] radius
  #   @return [::Float]
  #     Required. The radius distance of the area.
  # @!attribute [rw] radius_units
  #   @return [::Google::Shopping::Merchant::Accounts::V1::Region::RadiusArea::RadiusUnits]
  #     Optional. The unit of the radius.
  class RadiusArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The unit of measurement of the radius. Default is KILOMETERS.
    module RadiusUnits
      # Unused default value
      RADIUS_UNITS_UNSPECIFIED = 0

      # The distance is measured in miles.
      MILES = 1

      # The distance is measured in kilometers.
      KILOMETERS = 2
    end
  end
end

#regional_inventory_eligible::Google::Protobuf::BoolValue (readonly)

Returns Output only. Indicates if the region is eligible for use in the Regional Inventory configuration.

Returns:



202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
# File 'proto_docs/google/shopping/merchant/accounts/v1/regions.rb', line 202

class Region
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A list of postal codes that defines the region area.
  # Note: All regions defined using postal codes are accessible through the
  # account's `ShippingSettings.postalCodeGroups` resource.
  # @!attribute [rw] region_code
  #   @return [::String]
  #     Required. [CLDR territory
  #     code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
  #     or the country the postal code group applies to.
  # @!attribute [rw] postal_codes
  #   @return [::Array<::Google::Shopping::Merchant::Accounts::V1::Region::PostalCodeArea::PostalCodeRange>]
  #     Required. A range of postal codes.
  class PostalCodeArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A range of postal codes that defines the region area.
    # @!attribute [rw] begin
    #   @return [::String]
    #     Required. A postal code or a pattern of the form prefix* denoting the
    #     inclusive lower bound of the range defining the area. Examples values:
    #     `94108`, `9410*`, `9*`.
    # @!attribute [rw] end
    #   @return [::String]
    #     Optional. A postal code or a pattern of the form `prefix*` denoting the
    #     inclusive upper bound of the range defining the area. It must have the
    #     same length as postalCodeRangeBegin: if postalCodeRangeBegin is a
    #     postal code then postalCodeRangeEnd must be a postal code too; if
    #     postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a
    #     pattern with the same prefix length. Optional: if not set, then the
    #     area is defined as being all the postal codes matching
    #     postalCodeRangeBegin.
    class PostalCodeRange
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # A list of geotargets that defines the region area.
  # @!attribute [rw] geotarget_criteria_ids
  #   @return [::Array<::Integer>]
  #     Required. A non-empty list of [location
  #     IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting).
  #     They must all be of the same location type (for example, state).
  class GeoTargetArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A radius area that defines the region area.
  # @!attribute [rw] region_code
  #   @return [::String]
  #     Required. [CLDR territory
  #     code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
  #     or the country the radius area applies to.
  # @!attribute [rw] lat_lng
  #   @return [::Google::Type::LatLng]
  #     Required. The center of the radius area. It represents a
  #     latitude/longitude pair in decimal degrees format.
  # @!attribute [rw] radius
  #   @return [::Float]
  #     Required. The radius distance of the area.
  # @!attribute [rw] radius_units
  #   @return [::Google::Shopping::Merchant::Accounts::V1::Region::RadiusArea::RadiusUnits]
  #     Optional. The unit of the radius.
  class RadiusArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The unit of measurement of the radius. Default is KILOMETERS.
    module RadiusUnits
      # Unused default value
      RADIUS_UNITS_UNSPECIFIED = 0

      # The distance is measured in miles.
      MILES = 1

      # The distance is measured in kilometers.
      KILOMETERS = 2
    end
  end
end

#shipping_eligible::Google::Protobuf::BoolValue (readonly)

Returns Output only. Indicates if the region is eligible for use in the Shipping Services configuration.

Returns:



202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
# File 'proto_docs/google/shopping/merchant/accounts/v1/regions.rb', line 202

class Region
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A list of postal codes that defines the region area.
  # Note: All regions defined using postal codes are accessible through the
  # account's `ShippingSettings.postalCodeGroups` resource.
  # @!attribute [rw] region_code
  #   @return [::String]
  #     Required. [CLDR territory
  #     code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
  #     or the country the postal code group applies to.
  # @!attribute [rw] postal_codes
  #   @return [::Array<::Google::Shopping::Merchant::Accounts::V1::Region::PostalCodeArea::PostalCodeRange>]
  #     Required. A range of postal codes.
  class PostalCodeArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # A range of postal codes that defines the region area.
    # @!attribute [rw] begin
    #   @return [::String]
    #     Required. A postal code or a pattern of the form prefix* denoting the
    #     inclusive lower bound of the range defining the area. Examples values:
    #     `94108`, `9410*`, `9*`.
    # @!attribute [rw] end
    #   @return [::String]
    #     Optional. A postal code or a pattern of the form `prefix*` denoting the
    #     inclusive upper bound of the range defining the area. It must have the
    #     same length as postalCodeRangeBegin: if postalCodeRangeBegin is a
    #     postal code then postalCodeRangeEnd must be a postal code too; if
    #     postalCodeRangeBegin is a pattern then postalCodeRangeEnd must be a
    #     pattern with the same prefix length. Optional: if not set, then the
    #     area is defined as being all the postal codes matching
    #     postalCodeRangeBegin.
    class PostalCodeRange
      include ::Google::Protobuf::MessageExts
      extend ::Google::Protobuf::MessageExts::ClassMethods
    end
  end

  # A list of geotargets that defines the region area.
  # @!attribute [rw] geotarget_criteria_ids
  #   @return [::Array<::Integer>]
  #     Required. A non-empty list of [location
  #     IDs](https://developers.google.com/adwords/api/docs/appendix/geotargeting).
  #     They must all be of the same location type (for example, state).
  class GeoTargetArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A radius area that defines the region area.
  # @!attribute [rw] region_code
  #   @return [::String]
  #     Required. [CLDR territory
  #     code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
  #     or the country the radius area applies to.
  # @!attribute [rw] lat_lng
  #   @return [::Google::Type::LatLng]
  #     Required. The center of the radius area. It represents a
  #     latitude/longitude pair in decimal degrees format.
  # @!attribute [rw] radius
  #   @return [::Float]
  #     Required. The radius distance of the area.
  # @!attribute [rw] radius_units
  #   @return [::Google::Shopping::Merchant::Accounts::V1::Region::RadiusArea::RadiusUnits]
  #     Optional. The unit of the radius.
  class RadiusArea
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods

    # The unit of measurement of the radius. Default is KILOMETERS.
    module RadiusUnits
      # Unused default value
      RADIUS_UNITS_UNSPECIFIED = 0

      # The distance is measured in miles.
      MILES = 1

      # The distance is measured in kilometers.
      KILOMETERS = 2
    end
  end
end