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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
POSTAL_CODE_GROUP_NAMES_FIELD_NUMBER
public static final int POSTAL_CODE_GROUP_NAMES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int ROWS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int TRANSIT_TIME_LABELS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
public static TransitTable getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static TransitTable.Builder newBuilder()
public static TransitTable.Builder newBuilder(TransitTable prototype)
public static TransitTable parseDelimitedFrom(InputStream input)
public static TransitTable parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TransitTable parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
public static TransitTable parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TransitTable parseFrom(ByteString data)
public static TransitTable parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TransitTable parseFrom(CodedInputStream input)
public static TransitTable parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static TransitTable parseFrom(InputStream input)
public static TransitTable parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static TransitTable parseFrom(ByteBuffer data)
public static TransitTable parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<TransitTable> parser()
Methods
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
public TransitTable getDefaultInstanceForType()
public Parser<TransitTable> getParserForType()
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];
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
|
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 |
|
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];
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
|
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> |
|
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
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.
|
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.
|
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.
|
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 |
int |
|
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public TransitTable.Builder newBuilderForType()
protected TransitTable.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
public TransitTable.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides