Class TransitTable (0.5.0)

public final class TransitTable extends GeneratedMessageV3 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 Fields

POSTAL_CODE_GROUP_NAMES_FIELD_NUMBER

public static final int POSTAL_CODE_GROUP_NAMES_FIELD_NUMBER
Field Value
Type Description
int

ROWS_FIELD_NUMBER

public static final int ROWS_FIELD_NUMBER
Field Value
Type Description
int

TRANSIT_TIME_LABELS_FIELD_NUMBER

public static final int TRANSIT_TIME_LABELS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static TransitTable getDefaultInstance()
Returns
Type Description
TransitTable

getDescriptor()

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

newBuilder()

public static TransitTable.Builder newBuilder()
Returns
Type Description
TransitTable.Builder

newBuilder(TransitTable prototype)

public static TransitTable.Builder newBuilder(TransitTable prototype)
Parameter
Name Description
prototype TransitTable
Returns
Type Description
TransitTable.Builder

parseDelimitedFrom(InputStream input)

public static TransitTable parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TransitTable
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TransitTable parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransitTable
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static TransitTable parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
TransitTable
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TransitTable parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransitTable
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TransitTable parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
TransitTable
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TransitTable parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransitTable
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TransitTable parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
TransitTable
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TransitTable parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransitTable
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static TransitTable parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
TransitTable
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TransitTable parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransitTable
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static TransitTable parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
TransitTable
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TransitTable parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TransitTable
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<TransitTable> parser()
Returns
Type Description
Parser<TransitTable>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public TransitTable getDefaultInstanceForType()
Returns
Type Description
TransitTable

getParserForType()

public Parser<TransitTable> getParserForType()
Returns
Type Description
Parser<TransitTable>
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

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>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public TransitTable.Builder newBuilderForType()
Returns
Type Description
TransitTable.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TransitTable.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
TransitTable.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public TransitTable.Builder toBuilder()
Returns
Type Description
TransitTable.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException