# Google Shopping Merchant Accounts V1beta Client - Class TransitTable (1.4.1)

1.4.1 (latest) 1.4.0 1.3.1 1.2.2 1.1.0 1.0.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.3 0.2.0 0.1.0

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

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` | `string[]` Required. A list of region names [Region.name](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.Region#_Google_Shopping_Merchant_Accounts_V1beta_Region__getName__) . 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` | `string[]` Required. A list of transit time labels. The last value can be `"all other labels"`. Example: `["food", "electronics", "all other labels"]`. |
| `↳ rows` | `array<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.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](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.Region#_Google_Shopping_Merchant_Accounts_V1beta_Region__getName__) . 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** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setPostalCodeGroupNames

Required. A list of region names
[Region.name](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.Region#_Google_Shopping_Merchant_Accounts_V1beta_Region__getName__) . 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** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### 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** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.TransitTable.TransitTimeRow>` |   |

### 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<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-accounts/latest/V1beta.TransitTable.TransitTimeRow>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |