Class Table.Builder (1.11.0)

public static final class Table.Builder extends GeneratedMessage.Builder<Table.Builder> implements TableOrBuilder

A table defining the rate group, when single_value is not expressive enough.

Protobuf type google.shopping.merchant.accounts.v1.Table

Implements

TableOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllRows(Iterable<? extends Row> values)

public Table.Builder addAllRows(Iterable<? extends Row> values)

Required. The list of rows that constitute the table. Must have the same length as row_headers.

repeated .google.shopping.merchant.accounts.v1.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<? extends com.google.shopping.merchant.accounts.v1.Row>
Returns
Type Description
Table.Builder

addRows(Row value)

public Table.Builder addRows(Row value)

Required. The list of rows that constitute the table. Must have the same length as row_headers.

repeated .google.shopping.merchant.accounts.v1.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Row
Returns
Type Description
Table.Builder

addRows(Row.Builder builderForValue)

public Table.Builder addRows(Row.Builder builderForValue)

Required. The list of rows that constitute the table. Must have the same length as row_headers.

repeated .google.shopping.merchant.accounts.v1.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Row.Builder
Returns
Type Description
Table.Builder

addRows(int index, Row value)

public Table.Builder addRows(int index, Row value)

Required. The list of rows that constitute the table. Must have the same length as row_headers.

repeated .google.shopping.merchant.accounts.v1.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Row
Returns
Type Description
Table.Builder

addRows(int index, Row.Builder builderForValue)

public Table.Builder addRows(int index, Row.Builder builderForValue)

Required. The list of rows that constitute the table. Must have the same length as row_headers.

repeated .google.shopping.merchant.accounts.v1.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Row.Builder
Returns
Type Description
Table.Builder

addRowsBuilder()

public Row.Builder addRowsBuilder()

Required. The list of rows that constitute the table. Must have the same length as row_headers.

repeated .google.shopping.merchant.accounts.v1.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Row.Builder

addRowsBuilder(int index)

public Row.Builder addRowsBuilder(int index)

Required. The list of rows that constitute the table. Must have the same length as row_headers.

repeated .google.shopping.merchant.accounts.v1.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Row.Builder

build()

public Table build()
Returns
Type Description
Table

buildPartial()

public Table buildPartial()
Returns
Type Description
Table

clear()

public Table.Builder clear()
Returns
Type Description
Table.Builder
Overrides

clearColumnHeaders()

public Table.Builder clearColumnHeaders()

Headers of the table's columns. Optional: if not set then the table has only one dimension.

optional .google.shopping.merchant.accounts.v1.Headers column_headers = 3;

Returns
Type Description
Table.Builder

clearName()

public Table.Builder clearName()

Name of the table. Required for subtables, ignored for the main table.

optional string name = 1;

Returns
Type Description
Table.Builder

This builder for chaining.

clearRowHeaders()

public Table.Builder clearRowHeaders()

Required. Headers of the table's rows.

optional .google.shopping.merchant.accounts.v1.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Table.Builder

clearRows()

public Table.Builder clearRows()

Required. The list of rows that constitute the table. Must have the same length as row_headers.

repeated .google.shopping.merchant.accounts.v1.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Table.Builder

getColumnHeaders()

public Headers getColumnHeaders()

Headers of the table's columns. Optional: if not set then the table has only one dimension.

optional .google.shopping.merchant.accounts.v1.Headers column_headers = 3;

Returns
Type Description
Headers

The columnHeaders.

getColumnHeadersBuilder()

public Headers.Builder getColumnHeadersBuilder()

Headers of the table's columns. Optional: if not set then the table has only one dimension.

optional .google.shopping.merchant.accounts.v1.Headers column_headers = 3;

Returns
Type Description
Headers.Builder

getColumnHeadersOrBuilder()

public HeadersOrBuilder getColumnHeadersOrBuilder()

Headers of the table's columns. Optional: if not set then the table has only one dimension.

optional .google.shopping.merchant.accounts.v1.Headers column_headers = 3;

Returns
Type Description
HeadersOrBuilder

getDefaultInstanceForType()

public Table getDefaultInstanceForType()
Returns
Type Description
Table

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

Name of the table. Required for subtables, ignored for the main table.

optional string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the table. Required for subtables, ignored for the main table.

optional string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getRowHeaders()

public Headers getRowHeaders()

Required. Headers of the table's rows.

optional .google.shopping.merchant.accounts.v1.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Headers

The rowHeaders.

getRowHeadersBuilder()

public Headers.Builder getRowHeadersBuilder()

Required. Headers of the table's rows.

optional .google.shopping.merchant.accounts.v1.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Headers.Builder

getRowHeadersOrBuilder()

public HeadersOrBuilder getRowHeadersOrBuilder()

Required. Headers of the table's rows.

optional .google.shopping.merchant.accounts.v1.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
HeadersOrBuilder

getRows(int index)

public Row getRows(int index)

Required. The list of rows that constitute the table. Must have the same length as row_headers.

repeated .google.shopping.merchant.accounts.v1.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Row

getRowsBuilder(int index)

public Row.Builder getRowsBuilder(int index)

Required. The list of rows that constitute the table. Must have the same length as row_headers.

repeated .google.shopping.merchant.accounts.v1.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Row.Builder

getRowsBuilderList()

public List<Row.Builder> getRowsBuilderList()

Required. The list of rows that constitute the table. Must have the same length as row_headers.

repeated .google.shopping.merchant.accounts.v1.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getRowsCount()

public int getRowsCount()

Required. The list of rows that constitute the table. Must have the same length as row_headers.

repeated .google.shopping.merchant.accounts.v1.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getRowsList()

public List<Row> getRowsList()

Required. The list of rows that constitute the table. Must have the same length as row_headers.

repeated .google.shopping.merchant.accounts.v1.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Row>

getRowsOrBuilder(int index)

public RowOrBuilder getRowsOrBuilder(int index)

Required. The list of rows that constitute the table. Must have the same length as row_headers.

repeated .google.shopping.merchant.accounts.v1.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
RowOrBuilder

getRowsOrBuilderList()

public List<? extends RowOrBuilder> getRowsOrBuilderList()

Required. The list of rows that constitute the table. Must have the same length as row_headers.

repeated .google.shopping.merchant.accounts.v1.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.shopping.merchant.accounts.v1.RowOrBuilder>

hasColumnHeaders()

public boolean hasColumnHeaders()

Headers of the table's columns. Optional: if not set then the table has only one dimension.

optional .google.shopping.merchant.accounts.v1.Headers column_headers = 3;

Returns
Type Description
boolean

Whether the columnHeaders field is set.

hasName()

public boolean hasName()

Name of the table. Required for subtables, ignored for the main table.

optional string name = 1;

Returns
Type Description
boolean

Whether the name field is set.

hasRowHeaders()

public boolean hasRowHeaders()

Required. Headers of the table's rows.

optional .google.shopping.merchant.accounts.v1.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the rowHeaders field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeColumnHeaders(Headers value)

public Table.Builder mergeColumnHeaders(Headers value)

Headers of the table's columns. Optional: if not set then the table has only one dimension.

optional .google.shopping.merchant.accounts.v1.Headers column_headers = 3;

Parameter
Name Description
value Headers
Returns
Type Description
Table.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Table.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Table.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Table.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Table.Builder
Overrides

mergeFrom(Table other)

public Table.Builder mergeFrom(Table other)
Parameter
Name Description
other Table
Returns
Type Description
Table.Builder

mergeRowHeaders(Headers value)

public Table.Builder mergeRowHeaders(Headers value)

Required. Headers of the table's rows.

optional .google.shopping.merchant.accounts.v1.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Headers
Returns
Type Description
Table.Builder

removeRows(int index)

public Table.Builder removeRows(int index)

Required. The list of rows that constitute the table. Must have the same length as row_headers.

repeated .google.shopping.merchant.accounts.v1.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
Table.Builder

setColumnHeaders(Headers value)

public Table.Builder setColumnHeaders(Headers value)

Headers of the table's columns. Optional: if not set then the table has only one dimension.

optional .google.shopping.merchant.accounts.v1.Headers column_headers = 3;

Parameter
Name Description
value Headers
Returns
Type Description
Table.Builder

setColumnHeaders(Headers.Builder builderForValue)

public Table.Builder setColumnHeaders(Headers.Builder builderForValue)

Headers of the table's columns. Optional: if not set then the table has only one dimension.

optional .google.shopping.merchant.accounts.v1.Headers column_headers = 3;

Parameter
Name Description
builderForValue Headers.Builder
Returns
Type Description
Table.Builder

setName(String value)

public Table.Builder setName(String value)

Name of the table. Required for subtables, ignored for the main table.

optional string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Table.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Table.Builder setNameBytes(ByteString value)

Name of the table. Required for subtables, ignored for the main table.

optional string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Table.Builder

This builder for chaining.

setRowHeaders(Headers value)

public Table.Builder setRowHeaders(Headers value)

Required. Headers of the table's rows.

optional .google.shopping.merchant.accounts.v1.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Headers
Returns
Type Description
Table.Builder

setRowHeaders(Headers.Builder builderForValue)

public Table.Builder setRowHeaders(Headers.Builder builderForValue)

Required. Headers of the table's rows.

optional .google.shopping.merchant.accounts.v1.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Headers.Builder
Returns
Type Description
Table.Builder

setRows(int index, Row value)

public Table.Builder setRows(int index, Row value)

Required. The list of rows that constitute the table. Must have the same length as row_headers.

repeated .google.shopping.merchant.accounts.v1.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value Row
Returns
Type Description
Table.Builder

setRows(int index, Row.Builder builderForValue)

public Table.Builder setRows(int index, Row.Builder builderForValue)

Required. The list of rows that constitute the table. Must have the same length as row_headers.

repeated .google.shopping.merchant.accounts.v1.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue Row.Builder
Returns
Type Description
Table.Builder