All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.shopping.merchant.accounts.v1beta.TransitTable Maven / Gradle / Ivy

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/shopping/merchant/accounts/v1beta/shippingsettings.proto

// Protobuf Java Version: 3.25.5
package com.google.shopping.merchant.accounts.v1beta;

/**
 *
 *
 * 
 * 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 {@code google.shopping.merchant.accounts.v1beta.TransitTable} */ public final class TransitTable extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.TransitTable) TransitTableOrBuilder { private static final long serialVersionUID = 0L; // Use TransitTable.newBuilder() to construct. private TransitTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransitTable() { postalCodeGroupNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); transitTimeLabels_ = com.google.protobuf.LazyStringArrayList.emptyList(); rows_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TransitTable(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_TransitTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_TransitTable_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.accounts.v1beta.TransitTable.class, com.google.shopping.merchant.accounts.v1beta.TransitTable.Builder.class); } public interface TransitTimeRowOrBuilder extends // @@protoc_insertion_point(interface_extends:google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow) com.google.protobuf.MessageOrBuilder { /** * * *
     * Required. Transit time range (min-max) in business days.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ java.util.List< com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue> getValuesList(); /** * * *
     * Required. Transit time range (min-max) in business days.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue getValues(int index); /** * * *
     * Required. Transit time range (min-max) in business days.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ int getValuesCount(); /** * * *
     * Required. Transit time range (min-max) in business days.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ java.util.List< ? extends com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValueOrBuilder> getValuesOrBuilderList(); /** * * *
     * Required. Transit time range (min-max) in business days.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValueOrBuilder getValuesOrBuilder(int index); } /** * * *
   * 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`.
   * 
* * Protobuf type {@code google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow} */ public static final class TransitTimeRow extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow) TransitTimeRowOrBuilder { private static final long serialVersionUID = 0L; // Use TransitTimeRow.newBuilder() to construct. private TransitTimeRow(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransitTimeRow() { values_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TransitTimeRow(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_TransitTable_TransitTimeRow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_TransitTable_TransitTimeRow_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.class, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.Builder .class); } public interface TransitTimeValueOrBuilder extends // @@protoc_insertion_point(interface_extends:google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue) com.google.protobuf.MessageOrBuilder { /** * * *
       * Minimum transit time range in business days. 0 means same
       * day delivery, 1 means next day delivery.
       * 
* * optional int32 min_transit_days = 1; * * @return Whether the minTransitDays field is set. */ boolean hasMinTransitDays(); /** * * *
       * Minimum transit time range in business days. 0 means same
       * day delivery, 1 means next day delivery.
       * 
* * optional int32 min_transit_days = 1; * * @return The minTransitDays. */ int getMinTransitDays(); /** * * *
       * Must be greater than or equal to `min_transit_days`.
       * 
* * optional int32 max_transit_days = 2; * * @return Whether the maxTransitDays field is set. */ boolean hasMaxTransitDays(); /** * * *
       * Must be greater than or equal to `min_transit_days`.
       * 
* * optional int32 max_transit_days = 2; * * @return The maxTransitDays. */ int getMaxTransitDays(); } /** * * *
     * Transit time range (min-max) in business days.
     * 
* * Protobuf type {@code * google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue} */ public static final class TransitTimeValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue) TransitTimeValueOrBuilder { private static final long serialVersionUID = 0L; // Use TransitTimeValue.newBuilder() to construct. private TransitTimeValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TransitTimeValue() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TransitTimeValue(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_TransitTable_TransitTimeRow_TransitTimeValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_TransitTable_TransitTimeRow_TransitTimeValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue.class, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue.Builder.class); } private int bitField0_; public static final int MIN_TRANSIT_DAYS_FIELD_NUMBER = 1; private int minTransitDays_ = 0; /** * * *
       * Minimum transit time range in business days. 0 means same
       * day delivery, 1 means next day delivery.
       * 
* * optional int32 min_transit_days = 1; * * @return Whether the minTransitDays field is set. */ @java.lang.Override public boolean hasMinTransitDays() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
       * Minimum transit time range in business days. 0 means same
       * day delivery, 1 means next day delivery.
       * 
* * optional int32 min_transit_days = 1; * * @return The minTransitDays. */ @java.lang.Override public int getMinTransitDays() { return minTransitDays_; } public static final int MAX_TRANSIT_DAYS_FIELD_NUMBER = 2; private int maxTransitDays_ = 0; /** * * *
       * Must be greater than or equal to `min_transit_days`.
       * 
* * optional int32 max_transit_days = 2; * * @return Whether the maxTransitDays field is set. */ @java.lang.Override public boolean hasMaxTransitDays() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
       * Must be greater than or equal to `min_transit_days`.
       * 
* * optional int32 max_transit_days = 2; * * @return The maxTransitDays. */ @java.lang.Override public int getMaxTransitDays() { return maxTransitDays_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, minTransitDays_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, maxTransitDays_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, minTransitDays_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxTransitDays_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue)) { return super.equals(obj); } com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue other = (com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue) obj; if (hasMinTransitDays() != other.hasMinTransitDays()) return false; if (hasMinTransitDays()) { if (getMinTransitDays() != other.getMinTransitDays()) return false; } if (hasMaxTransitDays() != other.hasMaxTransitDays()) return false; if (hasMaxTransitDays()) { if (getMaxTransitDays() != other.getMaxTransitDays()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasMinTransitDays()) { hash = (37 * hash) + MIN_TRANSIT_DAYS_FIELD_NUMBER; hash = (53 * hash) + getMinTransitDays(); } if (hasMaxTransitDays()) { hash = (37 * hash) + MAX_TRANSIT_DAYS_FIELD_NUMBER; hash = (53 * hash) + getMaxTransitDays(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
       * Transit time range (min-max) in business days.
       * 
* * Protobuf type {@code * google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue) com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_TransitTable_TransitTimeRow_TransitTimeValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_TransitTable_TransitTimeRow_TransitTimeValue_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue.class, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue.Builder.class); } // Construct using // com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; minTransitDays_ = 0; maxTransitDays_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_TransitTable_TransitTimeRow_TransitTimeValue_descriptor; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue getDefaultInstanceForType() { return com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue.getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue build() { com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue buildPartial() { com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue result = new com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.minTransitDays_ = minTransitDays_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.maxTransitDays_ = maxTransitDays_; to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue) { return mergeFrom( (com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue other) { if (other == com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue.getDefaultInstance()) return this; if (other.hasMinTransitDays()) { setMinTransitDays(other.getMinTransitDays()); } if (other.hasMaxTransitDays()) { setMaxTransitDays(other.getMaxTransitDays()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { minTransitDays_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { maxTransitDays_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int minTransitDays_; /** * * *
         * Minimum transit time range in business days. 0 means same
         * day delivery, 1 means next day delivery.
         * 
* * optional int32 min_transit_days = 1; * * @return Whether the minTransitDays field is set. */ @java.lang.Override public boolean hasMinTransitDays() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
         * Minimum transit time range in business days. 0 means same
         * day delivery, 1 means next day delivery.
         * 
* * optional int32 min_transit_days = 1; * * @return The minTransitDays. */ @java.lang.Override public int getMinTransitDays() { return minTransitDays_; } /** * * *
         * Minimum transit time range in business days. 0 means same
         * day delivery, 1 means next day delivery.
         * 
* * optional int32 min_transit_days = 1; * * @param value The minTransitDays to set. * @return This builder for chaining. */ public Builder setMinTransitDays(int value) { minTransitDays_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
         * Minimum transit time range in business days. 0 means same
         * day delivery, 1 means next day delivery.
         * 
* * optional int32 min_transit_days = 1; * * @return This builder for chaining. */ public Builder clearMinTransitDays() { bitField0_ = (bitField0_ & ~0x00000001); minTransitDays_ = 0; onChanged(); return this; } private int maxTransitDays_; /** * * *
         * Must be greater than or equal to `min_transit_days`.
         * 
* * optional int32 max_transit_days = 2; * * @return Whether the maxTransitDays field is set. */ @java.lang.Override public boolean hasMaxTransitDays() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
         * Must be greater than or equal to `min_transit_days`.
         * 
* * optional int32 max_transit_days = 2; * * @return The maxTransitDays. */ @java.lang.Override public int getMaxTransitDays() { return maxTransitDays_; } /** * * *
         * Must be greater than or equal to `min_transit_days`.
         * 
* * optional int32 max_transit_days = 2; * * @param value The maxTransitDays to set. * @return This builder for chaining. */ public Builder setMaxTransitDays(int value) { maxTransitDays_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
         * Must be greater than or equal to `min_transit_days`.
         * 
* * optional int32 max_transit_days = 2; * * @return This builder for chaining. */ public Builder clearMaxTransitDays() { bitField0_ = (bitField0_ & ~0x00000002); maxTransitDays_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue) private static final com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue(); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransitTimeValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int VALUES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List< com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue> values_; /** * * *
     * Required. Transit time range (min-max) in business days.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public java.util.List< com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue> getValuesList() { return values_; } /** * * *
     * Required. Transit time range (min-max) in business days.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public java.util.List< ? extends com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValueOrBuilder> getValuesOrBuilderList() { return values_; } /** * * *
     * Required. Transit time range (min-max) in business days.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public int getValuesCount() { return values_.size(); } /** * * *
     * Required. Transit time range (min-max) in business days.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue getValues(int index) { return values_.get(index); } /** * * *
     * Required. Transit time range (min-max) in business days.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValueOrBuilder getValuesOrBuilder(int index) { return values_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < values_.size(); i++) { output.writeMessage(1, values_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < values_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, values_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow)) { return super.equals(obj); } com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow other = (com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow) obj; if (!getValuesList().equals(other.getValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getValuesCount() > 0) { hash = (37 * hash) + VALUES_FIELD_NUMBER; hash = (53 * hash) + getValuesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
     * 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`.
     * 
* * Protobuf type {@code google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow) com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRowOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_TransitTable_TransitTimeRow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_TransitTable_TransitTimeRow_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.class, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.Builder .class); } // Construct using // com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); } else { values_ = null; valuesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_TransitTable_TransitTimeRow_descriptor; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow getDefaultInstanceForType() { return com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow build() { com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow buildPartial() { com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow result = new com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow result) { if (valuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { values_ = java.util.Collections.unmodifiableList(values_); bitField0_ = (bitField0_ & ~0x00000001); } result.values_ = values_; } else { result.values_ = valuesBuilder_.build(); } } private void buildPartial0( com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow result) { int from_bitField0_ = bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow) { return mergeFrom( (com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow other) { if (other == com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .getDefaultInstance()) return this; if (valuesBuilder_ == null) { if (!other.values_.isEmpty()) { if (values_.isEmpty()) { values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureValuesIsMutable(); values_.addAll(other.values_); } onChanged(); } } else { if (!other.values_.isEmpty()) { if (valuesBuilder_.isEmpty()) { valuesBuilder_.dispose(); valuesBuilder_ = null; values_ = other.values_; bitField0_ = (bitField0_ & ~0x00000001); valuesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValuesFieldBuilder() : null; } else { valuesBuilder_.addAllMessages(other.values_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue m = input.readMessage( com.google.shopping.merchant.accounts.v1beta.TransitTable .TransitTimeRow.TransitTimeValue.parser(), extensionRegistry); if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(m); } else { valuesBuilder_.addMessage(m); } break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List< com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue> values_ = java.util.Collections.emptyList(); private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new java.util.ArrayList< com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue>(values_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue.Builder, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValueOrBuilder> valuesBuilder_; /** * * *
       * Required. Transit time range (min-max) in business days.
       * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List< com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue> getValuesList() { if (valuesBuilder_ == null) { return java.util.Collections.unmodifiableList(values_); } else { return valuesBuilder_.getMessageList(); } } /** * * *
       * Required. Transit time range (min-max) in business days.
       * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public int getValuesCount() { if (valuesBuilder_ == null) { return values_.size(); } else { return valuesBuilder_.getCount(); } } /** * * *
       * Required. Transit time range (min-max) in business days.
       * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue getValues(int index) { if (valuesBuilder_ == null) { return values_.get(index); } else { return valuesBuilder_.getMessage(index); } } /** * * *
       * Required. Transit time range (min-max) in business days.
       * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setValues( int index, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.set(index, value); onChanged(); } else { valuesBuilder_.setMessage(index, value); } return this; } /** * * *
       * Required. Transit time range (min-max) in business days.
       * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setValues( int index, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue .Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.set(index, builderForValue.build()); onChanged(); } else { valuesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
       * Required. Transit time range (min-max) in business days.
       * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addValues( com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(value); onChanged(); } else { valuesBuilder_.addMessage(value); } return this; } /** * * *
       * Required. Transit time range (min-max) in business days.
       * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addValues( int index, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue value) { if (valuesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValuesIsMutable(); values_.add(index, value); onChanged(); } else { valuesBuilder_.addMessage(index, value); } return this; } /** * * *
       * Required. Transit time range (min-max) in business days.
       * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addValues( com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue .Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(builderForValue.build()); onChanged(); } else { valuesBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
       * Required. Transit time range (min-max) in business days.
       * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addValues( int index, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue .Builder builderForValue) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.add(index, builderForValue.build()); onChanged(); } else { valuesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
       * Required. Transit time range (min-max) in business days.
       * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addAllValues( java.lang.Iterable< ? extends com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue> values) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); onChanged(); } else { valuesBuilder_.addAllMessages(values); } return this; } /** * * *
       * Required. Transit time range (min-max) in business days.
       * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearValues() { if (valuesBuilder_ == null) { values_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { valuesBuilder_.clear(); } return this; } /** * * *
       * Required. Transit time range (min-max) in business days.
       * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder removeValues(int index) { if (valuesBuilder_ == null) { ensureValuesIsMutable(); values_.remove(index); onChanged(); } else { valuesBuilder_.remove(index); } return this; } /** * * *
       * Required. Transit time range (min-max) in business days.
       * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue.Builder getValuesBuilder(int index) { return getValuesFieldBuilder().getBuilder(index); } /** * * *
       * Required. Transit time range (min-max) in business days.
       * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValueOrBuilder getValuesOrBuilder(int index) { if (valuesBuilder_ == null) { return values_.get(index); } else { return valuesBuilder_.getMessageOrBuilder(index); } } /** * * *
       * Required. Transit time range (min-max) in business days.
       * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List< ? extends com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValueOrBuilder> getValuesOrBuilderList() { if (valuesBuilder_ != null) { return valuesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(values_); } } /** * * *
       * Required. Transit time range (min-max) in business days.
       * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue.Builder addValuesBuilder() { return getValuesFieldBuilder() .addBuilder( com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue.getDefaultInstance()); } /** * * *
       * Required. Transit time range (min-max) in business days.
       * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue.Builder addValuesBuilder(int index) { return getValuesFieldBuilder() .addBuilder( index, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue.getDefaultInstance()); } /** * * *
       * Required. Transit time range (min-max) in business days.
       * 
* * * repeated .google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.TransitTimeValue values = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List< com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue.Builder> getValuesBuilderList() { return getValuesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue.Builder, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValueOrBuilder> getValuesFieldBuilder() { if (valuesBuilder_ == null) { valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValue.Builder, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .TransitTimeValueOrBuilder>( values_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); values_ = null; } return valuesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow) private static final com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow(); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransitTimeRow parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException() .setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int POSTAL_CODE_GROUP_NAMES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList postalCodeGroupNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
   * Required. A list of region names
   * [Region.name][google.shopping.merchant.accounts.v1beta.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]; * * * @return A list containing the postalCodeGroupNames. */ public com.google.protobuf.ProtocolStringList getPostalCodeGroupNamesList() { return postalCodeGroupNames_; } /** * * *
   * Required. A list of region names
   * [Region.name][google.shopping.merchant.accounts.v1beta.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]; * * * @return The count of postalCodeGroupNames. */ public int getPostalCodeGroupNamesCount() { return postalCodeGroupNames_.size(); } /** * * *
   * Required. A list of region names
   * [Region.name][google.shopping.merchant.accounts.v1beta.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]; * * * @param index The index of the element to return. * @return The postalCodeGroupNames at the given index. */ public java.lang.String getPostalCodeGroupNames(int index) { return postalCodeGroupNames_.get(index); } /** * * *
   * Required. A list of region names
   * [Region.name][google.shopping.merchant.accounts.v1beta.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]; * * * @param index The index of the value to return. * @return The bytes of the postalCodeGroupNames at the given index. */ public com.google.protobuf.ByteString getPostalCodeGroupNamesBytes(int index) { return postalCodeGroupNames_.getByteString(index); } public static final int TRANSIT_TIME_LABELS_FIELD_NUMBER = 2; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList transitTimeLabels_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
   * 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]; * * @return A list containing the transitTimeLabels. */ public com.google.protobuf.ProtocolStringList getTransitTimeLabelsList() { return transitTimeLabels_; } /** * * *
   * 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]; * * @return The count of transitTimeLabels. */ public int getTransitTimeLabelsCount() { return transitTimeLabels_.size(); } /** * * *
   * 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]; * * @param index The index of the element to return. * @return The transitTimeLabels at the given index. */ public java.lang.String getTransitTimeLabels(int index) { return transitTimeLabels_.get(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]; * * @param index The index of the value to return. * @return The bytes of the transitTimeLabels at the given index. */ public com.google.protobuf.ByteString getTransitTimeLabelsBytes(int index) { return transitTimeLabels_.getByteString(index); } public static final int ROWS_FIELD_NUMBER = 3; @SuppressWarnings("serial") private java.util.List rows_; /** * * *
   * 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]; * */ @java.lang.Override public java.util.List getRowsList() { return rows_; } /** * * *
   * 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]; * */ @java.lang.Override public java.util.List< ? extends com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRowOrBuilder> getRowsOrBuilderList() { return rows_; } /** * * *
   * 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]; * */ @java.lang.Override public int getRowsCount() { return rows_.size(); } /** * * *
   * 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]; * */ @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow getRows( int index) { return rows_.get(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]; * */ @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRowOrBuilder getRowsOrBuilder(int index) { return rows_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < postalCodeGroupNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 1, postalCodeGroupNames_.getRaw(i)); } for (int i = 0; i < transitTimeLabels_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, transitTimeLabels_.getRaw(i)); } for (int i = 0; i < rows_.size(); i++) { output.writeMessage(3, rows_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < postalCodeGroupNames_.size(); i++) { dataSize += computeStringSizeNoTag(postalCodeGroupNames_.getRaw(i)); } size += dataSize; size += 1 * getPostalCodeGroupNamesList().size(); } { int dataSize = 0; for (int i = 0; i < transitTimeLabels_.size(); i++) { dataSize += computeStringSizeNoTag(transitTimeLabels_.getRaw(i)); } size += dataSize; size += 1 * getTransitTimeLabelsList().size(); } for (int i = 0; i < rows_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rows_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.shopping.merchant.accounts.v1beta.TransitTable)) { return super.equals(obj); } com.google.shopping.merchant.accounts.v1beta.TransitTable other = (com.google.shopping.merchant.accounts.v1beta.TransitTable) obj; if (!getPostalCodeGroupNamesList().equals(other.getPostalCodeGroupNamesList())) return false; if (!getTransitTimeLabelsList().equals(other.getTransitTimeLabelsList())) return false; if (!getRowsList().equals(other.getRowsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getPostalCodeGroupNamesCount() > 0) { hash = (37 * hash) + POSTAL_CODE_GROUP_NAMES_FIELD_NUMBER; hash = (53 * hash) + getPostalCodeGroupNamesList().hashCode(); } if (getTransitTimeLabelsCount() > 0) { hash = (37 * hash) + TRANSIT_TIME_LABELS_FIELD_NUMBER; hash = (53 * hash) + getTransitTimeLabelsList().hashCode(); } if (getRowsCount() > 0) { hash = (37 * hash) + ROWS_FIELD_NUMBER; hash = (53 * hash) + getRowsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.shopping.merchant.accounts.v1beta.TransitTable parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.shopping.merchant.accounts.v1beta.TransitTable prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * 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 {@code google.shopping.merchant.accounts.v1beta.TransitTable} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.TransitTable) com.google.shopping.merchant.accounts.v1beta.TransitTableOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_TransitTable_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_TransitTable_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.accounts.v1beta.TransitTable.class, com.google.shopping.merchant.accounts.v1beta.TransitTable.Builder.class); } // Construct using com.google.shopping.merchant.accounts.v1beta.TransitTable.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; postalCodeGroupNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); transitTimeLabels_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (rowsBuilder_ == null) { rows_ = java.util.Collections.emptyList(); } else { rows_ = null; rowsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_TransitTable_descriptor; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.TransitTable getDefaultInstanceForType() { return com.google.shopping.merchant.accounts.v1beta.TransitTable.getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.TransitTable build() { com.google.shopping.merchant.accounts.v1beta.TransitTable result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.TransitTable buildPartial() { com.google.shopping.merchant.accounts.v1beta.TransitTable result = new com.google.shopping.merchant.accounts.v1beta.TransitTable(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.shopping.merchant.accounts.v1beta.TransitTable result) { if (rowsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { rows_ = java.util.Collections.unmodifiableList(rows_); bitField0_ = (bitField0_ & ~0x00000004); } result.rows_ = rows_; } else { result.rows_ = rowsBuilder_.build(); } } private void buildPartial0(com.google.shopping.merchant.accounts.v1beta.TransitTable result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { postalCodeGroupNames_.makeImmutable(); result.postalCodeGroupNames_ = postalCodeGroupNames_; } if (((from_bitField0_ & 0x00000002) != 0)) { transitTimeLabels_.makeImmutable(); result.transitTimeLabels_ = transitTimeLabels_; } } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.shopping.merchant.accounts.v1beta.TransitTable) { return mergeFrom((com.google.shopping.merchant.accounts.v1beta.TransitTable) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.shopping.merchant.accounts.v1beta.TransitTable other) { if (other == com.google.shopping.merchant.accounts.v1beta.TransitTable.getDefaultInstance()) return this; if (!other.postalCodeGroupNames_.isEmpty()) { if (postalCodeGroupNames_.isEmpty()) { postalCodeGroupNames_ = other.postalCodeGroupNames_; bitField0_ |= 0x00000001; } else { ensurePostalCodeGroupNamesIsMutable(); postalCodeGroupNames_.addAll(other.postalCodeGroupNames_); } onChanged(); } if (!other.transitTimeLabels_.isEmpty()) { if (transitTimeLabels_.isEmpty()) { transitTimeLabels_ = other.transitTimeLabels_; bitField0_ |= 0x00000002; } else { ensureTransitTimeLabelsIsMutable(); transitTimeLabels_.addAll(other.transitTimeLabels_); } onChanged(); } if (rowsBuilder_ == null) { if (!other.rows_.isEmpty()) { if (rows_.isEmpty()) { rows_ = other.rows_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureRowsIsMutable(); rows_.addAll(other.rows_); } onChanged(); } } else { if (!other.rows_.isEmpty()) { if (rowsBuilder_.isEmpty()) { rowsBuilder_.dispose(); rowsBuilder_ = null; rows_ = other.rows_; bitField0_ = (bitField0_ & ~0x00000004); rowsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRowsFieldBuilder() : null; } else { rowsBuilder_.addAllMessages(other.rows_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); ensurePostalCodeGroupNamesIsMutable(); postalCodeGroupNames_.add(s); break; } // case 10 case 18: { java.lang.String s = input.readStringRequireUtf8(); ensureTransitTimeLabelsIsMutable(); transitTimeLabels_.add(s); break; } // case 18 case 26: { com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow m = input.readMessage( com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .parser(), extensionRegistry); if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(m); } else { rowsBuilder_.addMessage(m); } break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.LazyStringArrayList postalCodeGroupNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensurePostalCodeGroupNamesIsMutable() { if (!postalCodeGroupNames_.isModifiable()) { postalCodeGroupNames_ = new com.google.protobuf.LazyStringArrayList(postalCodeGroupNames_); } bitField0_ |= 0x00000001; } /** * * *
     * Required. A list of region names
     * [Region.name][google.shopping.merchant.accounts.v1beta.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]; * * * @return A list containing the postalCodeGroupNames. */ public com.google.protobuf.ProtocolStringList getPostalCodeGroupNamesList() { postalCodeGroupNames_.makeImmutable(); return postalCodeGroupNames_; } /** * * *
     * Required. A list of region names
     * [Region.name][google.shopping.merchant.accounts.v1beta.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]; * * * @return The count of postalCodeGroupNames. */ public int getPostalCodeGroupNamesCount() { return postalCodeGroupNames_.size(); } /** * * *
     * Required. A list of region names
     * [Region.name][google.shopping.merchant.accounts.v1beta.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]; * * * @param index The index of the element to return. * @return The postalCodeGroupNames at the given index. */ public java.lang.String getPostalCodeGroupNames(int index) { return postalCodeGroupNames_.get(index); } /** * * *
     * Required. A list of region names
     * [Region.name][google.shopping.merchant.accounts.v1beta.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]; * * * @param index The index of the value to return. * @return The bytes of the postalCodeGroupNames at the given index. */ public com.google.protobuf.ByteString getPostalCodeGroupNamesBytes(int index) { return postalCodeGroupNames_.getByteString(index); } /** * * *
     * Required. A list of region names
     * [Region.name][google.shopping.merchant.accounts.v1beta.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]; * * * @param index The index to set the value at. * @param value The postalCodeGroupNames to set. * @return This builder for chaining. */ public Builder setPostalCodeGroupNames(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePostalCodeGroupNamesIsMutable(); postalCodeGroupNames_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Required. A list of region names
     * [Region.name][google.shopping.merchant.accounts.v1beta.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]; * * * @param value The postalCodeGroupNames to add. * @return This builder for chaining. */ public Builder addPostalCodeGroupNames(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePostalCodeGroupNamesIsMutable(); postalCodeGroupNames_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Required. A list of region names
     * [Region.name][google.shopping.merchant.accounts.v1beta.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]; * * * @param values The postalCodeGroupNames to add. * @return This builder for chaining. */ public Builder addAllPostalCodeGroupNames(java.lang.Iterable values) { ensurePostalCodeGroupNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, postalCodeGroupNames_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Required. A list of region names
     * [Region.name][google.shopping.merchant.accounts.v1beta.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]; * * * @return This builder for chaining. */ public Builder clearPostalCodeGroupNames() { postalCodeGroupNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); ; onChanged(); return this; } /** * * *
     * Required. A list of region names
     * [Region.name][google.shopping.merchant.accounts.v1beta.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]; * * * @param value The bytes of the postalCodeGroupNames to add. * @return This builder for chaining. */ public Builder addPostalCodeGroupNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensurePostalCodeGroupNamesIsMutable(); postalCodeGroupNames_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList transitTimeLabels_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureTransitTimeLabelsIsMutable() { if (!transitTimeLabels_.isModifiable()) { transitTimeLabels_ = new com.google.protobuf.LazyStringArrayList(transitTimeLabels_); } bitField0_ |= 0x00000002; } /** * * *
     * 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]; * * * @return A list containing the transitTimeLabels. */ public com.google.protobuf.ProtocolStringList getTransitTimeLabelsList() { transitTimeLabels_.makeImmutable(); return transitTimeLabels_; } /** * * *
     * 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]; * * * @return The count of transitTimeLabels. */ public int getTransitTimeLabelsCount() { return transitTimeLabels_.size(); } /** * * *
     * 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]; * * * @param index The index of the element to return. * @return The transitTimeLabels at the given index. */ public java.lang.String getTransitTimeLabels(int index) { return transitTimeLabels_.get(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]; * * * @param index The index of the value to return. * @return The bytes of the transitTimeLabels at the given index. */ public com.google.protobuf.ByteString getTransitTimeLabelsBytes(int index) { return transitTimeLabels_.getByteString(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]; * * * @param index The index to set the value at. * @param value The transitTimeLabels to set. * @return This builder for chaining. */ public Builder setTransitTimeLabels(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTransitTimeLabelsIsMutable(); transitTimeLabels_.set(index, value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * 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]; * * * @param value The transitTimeLabels to add. * @return This builder for chaining. */ public Builder addTransitTimeLabels(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTransitTimeLabelsIsMutable(); transitTimeLabels_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * 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]; * * * @param values The transitTimeLabels to add. * @return This builder for chaining. */ public Builder addAllTransitTimeLabels(java.lang.Iterable values) { ensureTransitTimeLabelsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, transitTimeLabels_); bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * 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]; * * * @return This builder for chaining. */ public Builder clearTransitTimeLabels() { transitTimeLabels_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); ; onChanged(); return this; } /** * * *
     * 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]; * * * @param value The bytes of the transitTimeLabels to add. * @return This builder for chaining. */ public Builder addTransitTimeLabelsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureTransitTimeLabelsIsMutable(); transitTimeLabels_.add(value); bitField0_ |= 0x00000002; onChanged(); return this; } private java.util.List rows_ = java.util.Collections.emptyList(); private void ensureRowsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { rows_ = new java.util.ArrayList< com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow>(rows_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.Builder, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRowOrBuilder> rowsBuilder_; /** * * *
     * 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 java.util.List getRowsList() { if (rowsBuilder_ == null) { return java.util.Collections.unmodifiableList(rows_); } else { return rowsBuilder_.getMessageList(); } } /** * * *
     * 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 int getRowsCount() { if (rowsBuilder_ == null) { return rows_.size(); } else { return rowsBuilder_.getCount(); } } /** * * *
     * 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 com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow getRows( int index) { if (rowsBuilder_ == null) { return rows_.get(index); } else { return rowsBuilder_.getMessage(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]; * */ public Builder setRows( int index, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRowsIsMutable(); rows_.set(index, value); onChanged(); } else { rowsBuilder_.setMessage(index, value); } return this; } /** * * *
     * 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 Builder setRows( int index, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.set(index, builderForValue.build()); onChanged(); } else { rowsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * 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 Builder addRows( com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRowsIsMutable(); rows_.add(value); onChanged(); } else { rowsBuilder_.addMessage(value); } return this; } /** * * *
     * 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 Builder addRows( int index, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow value) { if (rowsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRowsIsMutable(); rows_.add(index, value); onChanged(); } else { rowsBuilder_.addMessage(index, value); } return this; } /** * * *
     * 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 Builder addRows( com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(builderForValue.build()); onChanged(); } else { rowsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * 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 Builder addRows( int index, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.Builder builderForValue) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.add(index, builderForValue.build()); onChanged(); } else { rowsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * 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 Builder addAllRows( java.lang.Iterable< ? extends com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow> values) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_); onChanged(); } else { rowsBuilder_.addAllMessages(values); } return this; } /** * * *
     * 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 Builder clearRows() { if (rowsBuilder_ == null) { rows_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { rowsBuilder_.clear(); } return this; } /** * * *
     * 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 Builder removeRows(int index) { if (rowsBuilder_ == null) { ensureRowsIsMutable(); rows_.remove(index); onChanged(); } else { rowsBuilder_.remove(index); } return this; } /** * * *
     * 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 com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.Builder getRowsBuilder(int index) { return getRowsFieldBuilder().getBuilder(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]; * */ public com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRowOrBuilder getRowsOrBuilder(int index) { if (rowsBuilder_ == null) { return rows_.get(index); } else { return rowsBuilder_.getMessageOrBuilder(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]; * */ public java.util.List< ? extends com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRowOrBuilder> getRowsOrBuilderList() { if (rowsBuilder_ != null) { return rowsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rows_); } } /** * * *
     * 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 com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.Builder addRowsBuilder() { return getRowsFieldBuilder() .addBuilder( com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .getDefaultInstance()); } /** * * *
     * 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 com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.Builder addRowsBuilder(int index) { return getRowsFieldBuilder() .addBuilder( index, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow .getDefaultInstance()); } /** * * *
     * 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 java.util.List< com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.Builder> getRowsBuilderList() { return getRowsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.Builder, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRowOrBuilder> getRowsFieldBuilder() { if (rowsBuilder_ == null) { rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRow.Builder, com.google.shopping.merchant.accounts.v1beta.TransitTable.TransitTimeRowOrBuilder>( rows_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); rows_ = null; } return rowsBuilder_; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.shopping.merchant.accounts.v1beta.TransitTable) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.TransitTable) private static final com.google.shopping.merchant.accounts.v1beta.TransitTable DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1beta.TransitTable(); } public static com.google.shopping.merchant.accounts.v1beta.TransitTable getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TransitTable parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.TransitTable getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy