Class Table.Builder (0.5.0)

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

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

Protobuf type google.shopping.merchant.accounts.v1beta.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.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Table.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Table.Builder
Overrides

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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.Headers column_headers = 3;

Returns
Type Description
Table.Builder

clearField(Descriptors.FieldDescriptor field)

public Table.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Table.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public Table.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Table.Builder
Overrides

clearRowHeaders()

public Table.Builder clearRowHeaders()

Required. Headers of the table's rows.

optional .google.shopping.merchant.accounts.v1beta.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.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Table.Builder

clone()

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

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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.shopping.merchant.accounts.v1beta.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.v1beta.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.v1beta.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the rowHeaders field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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.v1beta.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.v1beta.Headers row_headers = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Headers
Returns
Type Description
Table.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Table.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Table.Builder
Overrides

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.v1beta.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.v1beta.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.v1beta.Headers column_headers = 3;

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

setField(Descriptors.FieldDescriptor field, Object value)

public Table.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Table.Builder
Overrides

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Table.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Table.Builder
Overrides

setRowHeaders(Headers value)

public Table.Builder setRowHeaders(Headers value)

Required. Headers of the table's rows.

optional .google.shopping.merchant.accounts.v1beta.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.v1beta.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.v1beta.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.v1beta.Row rows = 4 [(.google.api.field_behavior) = REQUIRED];

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

setUnknownFields(UnknownFieldSet unknownFields)

public final Table.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Table.Builder
Overrides