Google Shopping Merchant Accounts V1beta Client - Class TransitTable (0.3.1)

Reference documentation and code samples for the Google Shopping Merchant Accounts V1beta Client class TransitTable.

Transit time table, number of business days spent in transit based on row and column dimensions. Either min_transit_days, max_transit_days or transit_time_table can be set, but not both.

Generated from protobuf message google.shopping.merchant.accounts.v1beta.TransitTable

Namespace

Google \ Shopping \ Merchant \ Accounts \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ postal_code_group_names array

Required. A list of region names Region.name . The last value can be "all other locations". Example: ["zone 1", "zone 2", "all other locations"]. The referred postal code groups must match the delivery country of the service.

↳ transit_time_labels array

Required. A list of transit time labels. The last value can be "all other labels". Example: ["food", "electronics", "all other labels"].

↳ rows array<TransitTable\TransitTimeRow>

Required. If there's only one dimension set of postal_code_group_names or transit_time_labels, there are multiple rows each with one value for that dimension. If there are two dimensions, each row corresponds to a postal_code_group_names, and columns (values) to a transit_time_labels.

getPostalCodeGroupNames

Required. A list of region names Region.name . The last value can be "all other locations". Example: ["zone 1", "zone 2", "all other locations"]. The referred postal code groups must match the delivery country of the service.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setPostalCodeGroupNames

Required. A list of region names Region.name . The last value can be "all other locations". Example: ["zone 1", "zone 2", "all other locations"]. The referred postal code groups must match the delivery country of the service.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getTransitTimeLabels

Required. A list of transit time labels. The last value can be "all other labels". Example: ["food", "electronics", "all other labels"].

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setTransitTimeLabels

Required. A list of transit time labels. The last value can be "all other labels". Example: ["food", "electronics", "all other labels"].

Parameter
Name Description
var string[]
Returns
Type Description
$this

getRows

Required. If there's only one dimension set of postal_code_group_names or transit_time_labels, there are multiple rows each with one value for that dimension. If there are two dimensions, each row corresponds to a postal_code_group_names, and columns (values) to a transit_time_labels.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setRows

Required. If there's only one dimension set of postal_code_group_names or transit_time_labels, there are multiple rows each with one value for that dimension. If there are two dimensions, each row corresponds to a postal_code_group_names, and columns (values) to a transit_time_labels.

Parameter
Name Description
var array<TransitTable\TransitTimeRow>
Returns
Type Description
$this