Reference documentation and code samples for the Google Shopping Merchant Accounts V1 Client class Table.
A table defining the rate group, when single_value is not
expressive enough.
Generated from protobuf message google.shopping.merchant.accounts.v1.Table
Namespace
Google \ Shopping \ Merchant \ Accounts \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
Name of the table. Required for subtables, ignored for the main table. |
↳ row_headers |
Headers
Required. Headers of the table's rows. |
↳ column_headers |
Headers
Headers of the table's columns. Optional: if not set then the table has only one dimension. |
↳ rows |
array<Row>
Required. The list of rows that constitute the table. Must have the same length as |
getName
Name of the table. Required for subtables, ignored for the main table.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasName
clearName
setName
Name of the table. Required for subtables, ignored for the main table.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRowHeaders
Required. Headers of the table's rows.
| Returns | |
|---|---|
| Type | Description |
Headers|null |
|
hasRowHeaders
clearRowHeaders
setRowHeaders
Required. Headers of the table's rows.
| Parameter | |
|---|---|
| Name | Description |
var |
Headers
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getColumnHeaders
Headers of the table's columns. Optional: if not set then the table has only one dimension.
| Returns | |
|---|---|
| Type | Description |
Headers|null |
|
hasColumnHeaders
clearColumnHeaders
setColumnHeaders
Headers of the table's columns. Optional: if not set then the table has only one dimension.
| Parameter | |
|---|---|
| Name | Description |
var |
Headers
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRows
Required. The list of rows that constitute the table. Must have the same
length as row_headers.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setRows
Required. The list of rows that constitute the table. Must have the same
length as row_headers.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Row>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|