Class TransitTable.Builder (0.5.0)

public static final class TransitTable.Builder extends GeneratedMessageV3.Builder<TransitTable.Builder> implements TransitTableOrBuilder

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.

Protobuf type google.shopping.merchant.accounts.v1beta.TransitTable

Static Methods

getDescriptor()

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

Methods

addAllPostalCodeGroupNames(Iterable<String> values)

public TransitTable.Builder addAllPostalCodeGroupNames(Iterable<String> values)

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.

repeated string postal_code_group_names = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The postalCodeGroupNames to add.

Returns
Type Description
TransitTable.Builder

This builder for chaining.

addAllRows(Iterable<? extends TransitTable.TransitTimeRow> values)

public TransitTable.Builder addAllRows(Iterable<? extends TransitTable.TransitTimeRow> values)

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.

repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow rows = 3 [(.google.api.field_behavior) = REQUIRED];

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

addAllTransitTimeLabels(Iterable<String> values)

public TransitTable.Builder addAllTransitTimeLabels(Iterable<String> values)

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

repeated string transit_time_labels = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The transitTimeLabels to add.

Returns
Type Description
TransitTable.Builder

This builder for chaining.

addPostalCodeGroupNames(String value)

public TransitTable.Builder addPostalCodeGroupNames(String value)

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.

repeated string postal_code_group_names = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The postalCodeGroupNames to add.

Returns
Type Description
TransitTable.Builder

This builder for chaining.

addPostalCodeGroupNamesBytes(ByteString value)

public TransitTable.Builder addPostalCodeGroupNamesBytes(ByteString value)

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.

repeated string postal_code_group_names = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the postalCodeGroupNames to add.

Returns
Type Description
TransitTable.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRows(TransitTable.TransitTimeRow value)

public TransitTable.Builder addRows(TransitTable.TransitTimeRow value)

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.

repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow rows = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value TransitTable.TransitTimeRow
Returns
Type Description
TransitTable.Builder

addRows(TransitTable.TransitTimeRow.Builder builderForValue)

public TransitTable.Builder addRows(TransitTable.TransitTimeRow.Builder builderForValue)

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.

repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow rows = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue TransitTable.TransitTimeRow.Builder
Returns
Type Description
TransitTable.Builder

addRows(int index, TransitTable.TransitTimeRow value)

public TransitTable.Builder addRows(int index, TransitTable.TransitTimeRow value)

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.

repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow rows = 3 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value TransitTable.TransitTimeRow
Returns
Type Description
TransitTable.Builder

addRows(int index, TransitTable.TransitTimeRow.Builder builderForValue)

public TransitTable.Builder addRows(int index, TransitTable.TransitTimeRow.Builder builderForValue)

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.

repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow rows = 3 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue TransitTable.TransitTimeRow.Builder
Returns
Type Description
TransitTable.Builder

addRowsBuilder()

public TransitTable.TransitTimeRow.Builder addRowsBuilder()

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.

repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow rows = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TransitTable.TransitTimeRow.Builder

addRowsBuilder(int index)

public TransitTable.TransitTimeRow.Builder addRowsBuilder(int index)

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.

repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow rows = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
TransitTable.TransitTimeRow.Builder

addTransitTimeLabels(String value)

public TransitTable.Builder addTransitTimeLabels(String value)

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

repeated string transit_time_labels = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The transitTimeLabels to add.

Returns
Type Description
TransitTable.Builder

This builder for chaining.

addTransitTimeLabelsBytes(ByteString value)

public TransitTable.Builder addTransitTimeLabelsBytes(ByteString value)

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

repeated string transit_time_labels = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the transitTimeLabels to add.

Returns
Type Description
TransitTable.Builder

This builder for chaining.

build()

public TransitTable build()
Returns
Type Description
TransitTable

buildPartial()

public TransitTable buildPartial()
Returns
Type Description
TransitTable

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPostalCodeGroupNames()

public TransitTable.Builder clearPostalCodeGroupNames()

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.

repeated string postal_code_group_names = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TransitTable.Builder

This builder for chaining.

clearRows()

public TransitTable.Builder clearRows()

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.

repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow rows = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TransitTable.Builder

clearTransitTimeLabels()

public TransitTable.Builder clearTransitTimeLabels()

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

repeated string transit_time_labels = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TransitTable.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public TransitTable getDefaultInstanceForType()
Returns
Type Description
TransitTable

getDescriptorForType()

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

getPostalCodeGroupNames(int index)

public String getPostalCodeGroupNames(int index)

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.

repeated string postal_code_group_names = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The postalCodeGroupNames at the given index.

getPostalCodeGroupNamesBytes(int index)

public ByteString getPostalCodeGroupNamesBytes(int index)

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.

repeated string postal_code_group_names = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the postalCodeGroupNames at the given index.

getPostalCodeGroupNamesCount()

public int getPostalCodeGroupNamesCount()

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.

repeated string postal_code_group_names = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of postalCodeGroupNames.

getPostalCodeGroupNamesList()

public ProtocolStringList getPostalCodeGroupNamesList()

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.

repeated string postal_code_group_names = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the postalCodeGroupNames.

getRows(int index)

public TransitTable.TransitTimeRow getRows(int index)

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.

repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow rows = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
TransitTable.TransitTimeRow

getRowsBuilder(int index)

public TransitTable.TransitTimeRow.Builder getRowsBuilder(int index)

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.

repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow rows = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
TransitTable.TransitTimeRow.Builder

getRowsBuilderList()

public List<TransitTable.TransitTimeRow.Builder> getRowsBuilderList()

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.

repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow rows = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<Builder>

getRowsCount()

public int getRowsCount()

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.

repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow rows = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getRowsList()

public List<TransitTable.TransitTimeRow> getRowsList()

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.

repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow rows = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<TransitTimeRow>

getRowsOrBuilder(int index)

public TransitTable.TransitTimeRowOrBuilder getRowsOrBuilder(int index)

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.

repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow rows = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
TransitTable.TransitTimeRowOrBuilder

getRowsOrBuilderList()

public List<? extends TransitTable.TransitTimeRowOrBuilder> getRowsOrBuilderList()

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.

repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow rows = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRowOrBuilder>

getTransitTimeLabels(int index)

public String getTransitTimeLabels(int index)

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

repeated string transit_time_labels = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The transitTimeLabels at the given index.

getTransitTimeLabelsBytes(int index)

public ByteString getTransitTimeLabelsBytes(int index)

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

repeated string transit_time_labels = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the transitTimeLabels at the given index.

getTransitTimeLabelsCount()

public int getTransitTimeLabelsCount()

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

repeated string transit_time_labels = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of transitTimeLabels.

getTransitTimeLabelsList()

public ProtocolStringList getTransitTimeLabelsList()

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

repeated string transit_time_labels = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the transitTimeLabels.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(TransitTable other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRows(int index)

public TransitTable.Builder removeRows(int index)

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.

repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow rows = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
TransitTable.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPostalCodeGroupNames(int index, String value)

public TransitTable.Builder setPostalCodeGroupNames(int index, String value)

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.

repeated string postal_code_group_names = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The postalCodeGroupNames to set.

Returns
Type Description
TransitTable.Builder

This builder for chaining.

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

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

setRows(int index, TransitTable.TransitTimeRow value)

public TransitTable.Builder setRows(int index, TransitTable.TransitTimeRow value)

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.

repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow rows = 3 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
value TransitTable.TransitTimeRow
Returns
Type Description
TransitTable.Builder

setRows(int index, TransitTable.TransitTimeRow.Builder builderForValue)

public TransitTable.Builder setRows(int index, TransitTable.TransitTimeRow.Builder builderForValue)

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.

repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow rows = 3 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int
builderForValue TransitTable.TransitTimeRow.Builder
Returns
Type Description
TransitTable.Builder

setTransitTimeLabels(int index, String value)

public TransitTable.Builder setTransitTimeLabels(int index, String value)

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

repeated string transit_time_labels = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The transitTimeLabels to set.

Returns
Type Description
TransitTable.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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