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

com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable 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;

/**
 *
 *
 * 
 * Table of per store minimum order values for the pickup fulfillment type.
 * 
* * Protobuf type {@code google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable} */ public final class MinimumOrderValueTable extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable) MinimumOrderValueTableOrBuilder { private static final long serialVersionUID = 0L; // Use MinimumOrderValueTable.newBuilder() to construct. private MinimumOrderValueTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MinimumOrderValueTable() { storeCodeSetWithMovs_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new MinimumOrderValueTable(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_MinimumOrderValueTable_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_MinimumOrderValueTable_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.class, com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.Builder.class); } public interface StoreCodeSetWithMovOrBuilder extends // @@protoc_insertion_point(interface_extends:google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov) com.google.protobuf.MessageOrBuilder { /** * * *
     * Optional. A list of unique store codes or empty for the catch all.
     * 
* * repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the storeCodes. */ java.util.List getStoreCodesList(); /** * * *
     * Optional. A list of unique store codes or empty for the catch all.
     * 
* * repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of storeCodes. */ int getStoreCodesCount(); /** * * *
     * Optional. A list of unique store codes or empty for the catch all.
     * 
* * repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The storeCodes at the given index. */ java.lang.String getStoreCodes(int index); /** * * *
     * Optional. A list of unique store codes or empty for the catch all.
     * 
* * repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the storeCodes at the given index. */ com.google.protobuf.ByteString getStoreCodesBytes(int index); /** * * *
     * The minimum order value for the given stores.
     * 
* * optional .google.shopping.type.Price value = 2; * * @return Whether the value field is set. */ boolean hasValue(); /** * * *
     * The minimum order value for the given stores.
     * 
* * optional .google.shopping.type.Price value = 2; * * @return The value. */ com.google.shopping.type.Price getValue(); /** * * *
     * The minimum order value for the given stores.
     * 
* * optional .google.shopping.type.Price value = 2; */ com.google.shopping.type.PriceOrBuilder getValueOrBuilder(); } /** * * *
   * A list of store code sets sharing the same minimum order value. At least
   * two sets are required and the last one must be empty, which signifies
   * 'MOV for all other stores'.
   * Each store code can only appear once across all the sets.
   * All prices within a service must have the same currency.
   * 
* * Protobuf type {@code * google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov} */ public static final class StoreCodeSetWithMov extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov) StoreCodeSetWithMovOrBuilder { private static final long serialVersionUID = 0L; // Use StoreCodeSetWithMov.newBuilder() to construct. private StoreCodeSetWithMov(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StoreCodeSetWithMov() { storeCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StoreCodeSetWithMov(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_MinimumOrderValueTable_StoreCodeSetWithMov_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_MinimumOrderValueTable_StoreCodeSetWithMov_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov.class, com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov.Builder.class); } private int bitField0_; public static final int STORE_CODES_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList storeCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
     * Optional. A list of unique store codes or empty for the catch all.
     * 
* * repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the storeCodes. */ public com.google.protobuf.ProtocolStringList getStoreCodesList() { return storeCodes_; } /** * * *
     * Optional. A list of unique store codes or empty for the catch all.
     * 
* * repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of storeCodes. */ public int getStoreCodesCount() { return storeCodes_.size(); } /** * * *
     * Optional. A list of unique store codes or empty for the catch all.
     * 
* * repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The storeCodes at the given index. */ public java.lang.String getStoreCodes(int index) { return storeCodes_.get(index); } /** * * *
     * Optional. A list of unique store codes or empty for the catch all.
     * 
* * repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the storeCodes at the given index. */ public com.google.protobuf.ByteString getStoreCodesBytes(int index) { return storeCodes_.getByteString(index); } public static final int VALUE_FIELD_NUMBER = 2; private com.google.shopping.type.Price value_; /** * * *
     * The minimum order value for the given stores.
     * 
* * optional .google.shopping.type.Price value = 2; * * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
     * The minimum order value for the given stores.
     * 
* * optional .google.shopping.type.Price value = 2; * * @return The value. */ @java.lang.Override public com.google.shopping.type.Price getValue() { return value_ == null ? com.google.shopping.type.Price.getDefaultInstance() : value_; } /** * * *
     * The minimum order value for the given stores.
     * 
* * optional .google.shopping.type.Price value = 2; */ @java.lang.Override public com.google.shopping.type.PriceOrBuilder getValueOrBuilder() { return value_ == null ? com.google.shopping.type.Price.getDefaultInstance() : value_; } 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 < storeCodes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, storeCodes_.getRaw(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getValue()); } 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 < storeCodes_.size(); i++) { dataSize += computeStringSizeNoTag(storeCodes_.getRaw(i)); } size += dataSize; size += 1 * getStoreCodesList().size(); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); } 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.MinimumOrderValueTable .StoreCodeSetWithMov)) { return super.equals(obj); } com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov other = (com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov) obj; if (!getStoreCodesList().equals(other.getStoreCodesList())) return false; if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (!getValue().equals(other.getValue())) 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 (getStoreCodesCount() > 0) { hash = (37 * hash) + STORE_CODES_FIELD_NUMBER; hash = (53 * hash) + getStoreCodesList().hashCode(); } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov 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.MinimumOrderValueTable .StoreCodeSetWithMov parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov 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.MinimumOrderValueTable .StoreCodeSetWithMov parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov 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.MinimumOrderValueTable .StoreCodeSetWithMov 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.MinimumOrderValueTable .StoreCodeSetWithMov 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.MinimumOrderValueTable .StoreCodeSetWithMov 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.MinimumOrderValueTable .StoreCodeSetWithMov 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.MinimumOrderValueTable .StoreCodeSetWithMov 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.MinimumOrderValueTable .StoreCodeSetWithMov 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.MinimumOrderValueTable.StoreCodeSetWithMov 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; } /** * * *
     * A list of store code sets sharing the same minimum order value. At least
     * two sets are required and the last one must be empty, which signifies
     * 'MOV for all other stores'.
     * Each store code can only appear once across all the sets.
     * All prices within a service must have the same currency.
     * 
* * Protobuf type {@code * google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov) com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMovOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_MinimumOrderValueTable_StoreCodeSetWithMov_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_MinimumOrderValueTable_StoreCodeSetWithMov_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov.class, com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov.Builder.class); } // Construct using // com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getValueFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; storeCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } 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_MinimumOrderValueTable_StoreCodeSetWithMov_descriptor; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov getDefaultInstanceForType() { return com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov.getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov build() { com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov buildPartial() { com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov result = new com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0( com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { storeCodes_.makeImmutable(); result.storeCodes_ = storeCodes_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); to_bitField0_ |= 0x00000001; } 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.MinimumOrderValueTable .StoreCodeSetWithMov) { return mergeFrom( (com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov other) { if (other == com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov.getDefaultInstance()) return this; if (!other.storeCodes_.isEmpty()) { if (storeCodes_.isEmpty()) { storeCodes_ = other.storeCodes_; bitField0_ |= 0x00000001; } else { ensureStoreCodesIsMutable(); storeCodes_.addAll(other.storeCodes_); } onChanged(); } if (other.hasValue()) { mergeValue(other.getValue()); } 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(); ensureStoreCodesIsMutable(); storeCodes_.add(s); break; } // case 10 case 18: { input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 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 storeCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureStoreCodesIsMutable() { if (!storeCodes_.isModifiable()) { storeCodes_ = new com.google.protobuf.LazyStringArrayList(storeCodes_); } bitField0_ |= 0x00000001; } /** * * *
       * Optional. A list of unique store codes or empty for the catch all.
       * 
* * repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the storeCodes. */ public com.google.protobuf.ProtocolStringList getStoreCodesList() { storeCodes_.makeImmutable(); return storeCodes_; } /** * * *
       * Optional. A list of unique store codes or empty for the catch all.
       * 
* * repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of storeCodes. */ public int getStoreCodesCount() { return storeCodes_.size(); } /** * * *
       * Optional. A list of unique store codes or empty for the catch all.
       * 
* * repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The storeCodes at the given index. */ public java.lang.String getStoreCodes(int index) { return storeCodes_.get(index); } /** * * *
       * Optional. A list of unique store codes or empty for the catch all.
       * 
* * repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the storeCodes at the given index. */ public com.google.protobuf.ByteString getStoreCodesBytes(int index) { return storeCodes_.getByteString(index); } /** * * *
       * Optional. A list of unique store codes or empty for the catch all.
       * 
* * repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index to set the value at. * @param value The storeCodes to set. * @return This builder for chaining. */ public Builder setStoreCodes(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStoreCodesIsMutable(); storeCodes_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Optional. A list of unique store codes or empty for the catch all.
       * 
* * repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The storeCodes to add. * @return This builder for chaining. */ public Builder addStoreCodes(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureStoreCodesIsMutable(); storeCodes_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Optional. A list of unique store codes or empty for the catch all.
       * 
* * repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param values The storeCodes to add. * @return This builder for chaining. */ public Builder addAllStoreCodes(java.lang.Iterable values) { ensureStoreCodesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, storeCodes_); bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
       * Optional. A list of unique store codes or empty for the catch all.
       * 
* * repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearStoreCodes() { storeCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); ; onChanged(); return this; } /** * * *
       * Optional. A list of unique store codes or empty for the catch all.
       * 
* * repeated string store_codes = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes of the storeCodes to add. * @return This builder for chaining. */ public Builder addStoreCodesBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureStoreCodesIsMutable(); storeCodes_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.shopping.type.Price value_; private com.google.protobuf.SingleFieldBuilderV3< com.google.shopping.type.Price, com.google.shopping.type.Price.Builder, com.google.shopping.type.PriceOrBuilder> valueBuilder_; /** * * *
       * The minimum order value for the given stores.
       * 
* * optional .google.shopping.type.Price value = 2; * * @return Whether the value field is set. */ public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
       * The minimum order value for the given stores.
       * 
* * optional .google.shopping.type.Price value = 2; * * @return The value. */ public com.google.shopping.type.Price getValue() { if (valueBuilder_ == null) { return value_ == null ? com.google.shopping.type.Price.getDefaultInstance() : value_; } else { return valueBuilder_.getMessage(); } } /** * * *
       * The minimum order value for the given stores.
       * 
* * optional .google.shopping.type.Price value = 2; */ public Builder setValue(com.google.shopping.type.Price value) { if (valueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } value_ = value; } else { valueBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The minimum order value for the given stores.
       * 
* * optional .google.shopping.type.Price value = 2; */ public Builder setValue(com.google.shopping.type.Price.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); } else { valueBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
       * The minimum order value for the given stores.
       * 
* * optional .google.shopping.type.Price value = 2; */ public Builder mergeValue(com.google.shopping.type.Price value) { if (valueBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && value_ != null && value_ != com.google.shopping.type.Price.getDefaultInstance()) { getValueBuilder().mergeFrom(value); } else { value_ = value; } } else { valueBuilder_.mergeFrom(value); } if (value_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
       * The minimum order value for the given stores.
       * 
* * optional .google.shopping.type.Price value = 2; */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = null; if (valueBuilder_ != null) { valueBuilder_.dispose(); valueBuilder_ = null; } onChanged(); return this; } /** * * *
       * The minimum order value for the given stores.
       * 
* * optional .google.shopping.type.Price value = 2; */ public com.google.shopping.type.Price.Builder getValueBuilder() { bitField0_ |= 0x00000002; onChanged(); return getValueFieldBuilder().getBuilder(); } /** * * *
       * The minimum order value for the given stores.
       * 
* * optional .google.shopping.type.Price value = 2; */ public com.google.shopping.type.PriceOrBuilder getValueOrBuilder() { if (valueBuilder_ != null) { return valueBuilder_.getMessageOrBuilder(); } else { return value_ == null ? com.google.shopping.type.Price.getDefaultInstance() : value_; } } /** * * *
       * The minimum order value for the given stores.
       * 
* * optional .google.shopping.type.Price value = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.shopping.type.Price, com.google.shopping.type.Price.Builder, com.google.shopping.type.PriceOrBuilder> getValueFieldBuilder() { if (valueBuilder_ == null) { valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.shopping.type.Price, com.google.shopping.type.Price.Builder, com.google.shopping.type.PriceOrBuilder>( getValue(), getParentForChildren(), isClean()); value_ = null; } return valueBuilder_; } @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.MinimumOrderValueTable.StoreCodeSetWithMov) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov) private static final com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov(); } public static com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StoreCodeSetWithMov 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.MinimumOrderValueTable.StoreCodeSetWithMov getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int STORE_CODE_SET_WITH_MOVS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List< com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov> storeCodeSetWithMovs_; /** * * *
   * Required. A list of store code sets sharing the same minimum order value
   * (MOV). At least two sets are required and the last one must be empty, which
   * signifies 'MOV for all other stores'. Each store code can only appear once
   * across all the sets. All prices within a service must have the same
   * currency.
   * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public java.util.List< com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov> getStoreCodeSetWithMovsList() { return storeCodeSetWithMovs_; } /** * * *
   * Required. A list of store code sets sharing the same minimum order value
   * (MOV). At least two sets are required and the last one must be empty, which
   * signifies 'MOV for all other stores'. Each store code can only appear once
   * across all the sets. All prices within a service must have the same
   * currency.
   * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public java.util.List< ? extends com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMovOrBuilder> getStoreCodeSetWithMovsOrBuilderList() { return storeCodeSetWithMovs_; } /** * * *
   * Required. A list of store code sets sharing the same minimum order value
   * (MOV). At least two sets are required and the last one must be empty, which
   * signifies 'MOV for all other stores'. Each store code can only appear once
   * across all the sets. All prices within a service must have the same
   * currency.
   * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public int getStoreCodeSetWithMovsCount() { return storeCodeSetWithMovs_.size(); } /** * * *
   * Required. A list of store code sets sharing the same minimum order value
   * (MOV). At least two sets are required and the last one must be empty, which
   * signifies 'MOV for all other stores'. Each store code can only appear once
   * across all the sets. All prices within a service must have the same
   * currency.
   * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov getStoreCodeSetWithMovs(int index) { return storeCodeSetWithMovs_.get(index); } /** * * *
   * Required. A list of store code sets sharing the same minimum order value
   * (MOV). At least two sets are required and the last one must be empty, which
   * signifies 'MOV for all other stores'. Each store code can only appear once
   * across all the sets. All prices within a service must have the same
   * currency.
   * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMovOrBuilder getStoreCodeSetWithMovsOrBuilder(int index) { return storeCodeSetWithMovs_.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 < storeCodeSetWithMovs_.size(); i++) { output.writeMessage(1, storeCodeSetWithMovs_.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 < storeCodeSetWithMovs_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, storeCodeSetWithMovs_.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.MinimumOrderValueTable)) { return super.equals(obj); } com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable other = (com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable) obj; if (!getStoreCodeSetWithMovsList().equals(other.getStoreCodeSetWithMovsList())) 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 (getStoreCodeSetWithMovsCount() > 0) { hash = (37 * hash) + STORE_CODE_SET_WITH_MOVS_FIELD_NUMBER; hash = (53 * hash) + getStoreCodeSetWithMovsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable 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.MinimumOrderValueTable parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable 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.MinimumOrderValueTable parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable 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.MinimumOrderValueTable 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.MinimumOrderValueTable 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.MinimumOrderValueTable 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.MinimumOrderValueTable 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.MinimumOrderValueTable 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.MinimumOrderValueTable 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.MinimumOrderValueTable 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; } /** * * *
   * Table of per store minimum order values for the pickup fulfillment type.
   * 
* * Protobuf type {@code google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable) com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTableOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.accounts.v1beta.ShippingSettingsProto .internal_static_google_shopping_merchant_accounts_v1beta_MinimumOrderValueTable_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_MinimumOrderValueTable_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.class, com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.Builder.class); } // Construct using // com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (storeCodeSetWithMovsBuilder_ == null) { storeCodeSetWithMovs_ = java.util.Collections.emptyList(); } else { storeCodeSetWithMovs_ = null; storeCodeSetWithMovsBuilder_.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_MinimumOrderValueTable_descriptor; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable getDefaultInstanceForType() { return com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable build() { com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable buildPartial() { com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable result = new com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields( com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable result) { if (storeCodeSetWithMovsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { storeCodeSetWithMovs_ = java.util.Collections.unmodifiableList(storeCodeSetWithMovs_); bitField0_ = (bitField0_ & ~0x00000001); } result.storeCodeSetWithMovs_ = storeCodeSetWithMovs_; } else { result.storeCodeSetWithMovs_ = storeCodeSetWithMovsBuilder_.build(); } } private void buildPartial0( com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable 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.MinimumOrderValueTable) { return mergeFrom( (com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable other) { if (other == com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .getDefaultInstance()) return this; if (storeCodeSetWithMovsBuilder_ == null) { if (!other.storeCodeSetWithMovs_.isEmpty()) { if (storeCodeSetWithMovs_.isEmpty()) { storeCodeSetWithMovs_ = other.storeCodeSetWithMovs_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureStoreCodeSetWithMovsIsMutable(); storeCodeSetWithMovs_.addAll(other.storeCodeSetWithMovs_); } onChanged(); } } else { if (!other.storeCodeSetWithMovs_.isEmpty()) { if (storeCodeSetWithMovsBuilder_.isEmpty()) { storeCodeSetWithMovsBuilder_.dispose(); storeCodeSetWithMovsBuilder_ = null; storeCodeSetWithMovs_ = other.storeCodeSetWithMovs_; bitField0_ = (bitField0_ & ~0x00000001); storeCodeSetWithMovsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStoreCodeSetWithMovsFieldBuilder() : null; } else { storeCodeSetWithMovsBuilder_.addAllMessages(other.storeCodeSetWithMovs_); } } } 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.MinimumOrderValueTable .StoreCodeSetWithMov m = input.readMessage( com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov.parser(), extensionRegistry); if (storeCodeSetWithMovsBuilder_ == null) { ensureStoreCodeSetWithMovsIsMutable(); storeCodeSetWithMovs_.add(m); } else { storeCodeSetWithMovsBuilder_.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.MinimumOrderValueTable.StoreCodeSetWithMov> storeCodeSetWithMovs_ = java.util.Collections.emptyList(); private void ensureStoreCodeSetWithMovsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { storeCodeSetWithMovs_ = new java.util.ArrayList< com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov>(storeCodeSetWithMovs_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov, com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov .Builder, com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMovOrBuilder> storeCodeSetWithMovsBuilder_; /** * * *
     * Required. A list of store code sets sharing the same minimum order value
     * (MOV). At least two sets are required and the last one must be empty, which
     * signifies 'MOV for all other stores'. Each store code can only appear once
     * across all the sets. All prices within a service must have the same
     * currency.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List< com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov> getStoreCodeSetWithMovsList() { if (storeCodeSetWithMovsBuilder_ == null) { return java.util.Collections.unmodifiableList(storeCodeSetWithMovs_); } else { return storeCodeSetWithMovsBuilder_.getMessageList(); } } /** * * *
     * Required. A list of store code sets sharing the same minimum order value
     * (MOV). At least two sets are required and the last one must be empty, which
     * signifies 'MOV for all other stores'. Each store code can only appear once
     * across all the sets. All prices within a service must have the same
     * currency.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public int getStoreCodeSetWithMovsCount() { if (storeCodeSetWithMovsBuilder_ == null) { return storeCodeSetWithMovs_.size(); } else { return storeCodeSetWithMovsBuilder_.getCount(); } } /** * * *
     * Required. A list of store code sets sharing the same minimum order value
     * (MOV). At least two sets are required and the last one must be empty, which
     * signifies 'MOV for all other stores'. Each store code can only appear once
     * across all the sets. All prices within a service must have the same
     * currency.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov getStoreCodeSetWithMovs(int index) { if (storeCodeSetWithMovsBuilder_ == null) { return storeCodeSetWithMovs_.get(index); } else { return storeCodeSetWithMovsBuilder_.getMessage(index); } } /** * * *
     * Required. A list of store code sets sharing the same minimum order value
     * (MOV). At least two sets are required and the last one must be empty, which
     * signifies 'MOV for all other stores'. Each store code can only appear once
     * across all the sets. All prices within a service must have the same
     * currency.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setStoreCodeSetWithMovs( int index, com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov value) { if (storeCodeSetWithMovsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStoreCodeSetWithMovsIsMutable(); storeCodeSetWithMovs_.set(index, value); onChanged(); } else { storeCodeSetWithMovsBuilder_.setMessage(index, value); } return this; } /** * * *
     * Required. A list of store code sets sharing the same minimum order value
     * (MOV). At least two sets are required and the last one must be empty, which
     * signifies 'MOV for all other stores'. Each store code can only appear once
     * across all the sets. All prices within a service must have the same
     * currency.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder setStoreCodeSetWithMovs( int index, com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov .Builder builderForValue) { if (storeCodeSetWithMovsBuilder_ == null) { ensureStoreCodeSetWithMovsIsMutable(); storeCodeSetWithMovs_.set(index, builderForValue.build()); onChanged(); } else { storeCodeSetWithMovsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * * *
     * Required. A list of store code sets sharing the same minimum order value
     * (MOV). At least two sets are required and the last one must be empty, which
     * signifies 'MOV for all other stores'. Each store code can only appear once
     * across all the sets. All prices within a service must have the same
     * currency.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addStoreCodeSetWithMovs( com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov value) { if (storeCodeSetWithMovsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStoreCodeSetWithMovsIsMutable(); storeCodeSetWithMovs_.add(value); onChanged(); } else { storeCodeSetWithMovsBuilder_.addMessage(value); } return this; } /** * * *
     * Required. A list of store code sets sharing the same minimum order value
     * (MOV). At least two sets are required and the last one must be empty, which
     * signifies 'MOV for all other stores'. Each store code can only appear once
     * across all the sets. All prices within a service must have the same
     * currency.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addStoreCodeSetWithMovs( int index, com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov value) { if (storeCodeSetWithMovsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStoreCodeSetWithMovsIsMutable(); storeCodeSetWithMovs_.add(index, value); onChanged(); } else { storeCodeSetWithMovsBuilder_.addMessage(index, value); } return this; } /** * * *
     * Required. A list of store code sets sharing the same minimum order value
     * (MOV). At least two sets are required and the last one must be empty, which
     * signifies 'MOV for all other stores'. Each store code can only appear once
     * across all the sets. All prices within a service must have the same
     * currency.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addStoreCodeSetWithMovs( com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov .Builder builderForValue) { if (storeCodeSetWithMovsBuilder_ == null) { ensureStoreCodeSetWithMovsIsMutable(); storeCodeSetWithMovs_.add(builderForValue.build()); onChanged(); } else { storeCodeSetWithMovsBuilder_.addMessage(builderForValue.build()); } return this; } /** * * *
     * Required. A list of store code sets sharing the same minimum order value
     * (MOV). At least two sets are required and the last one must be empty, which
     * signifies 'MOV for all other stores'. Each store code can only appear once
     * across all the sets. All prices within a service must have the same
     * currency.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addStoreCodeSetWithMovs( int index, com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov .Builder builderForValue) { if (storeCodeSetWithMovsBuilder_ == null) { ensureStoreCodeSetWithMovsIsMutable(); storeCodeSetWithMovs_.add(index, builderForValue.build()); onChanged(); } else { storeCodeSetWithMovsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * * *
     * Required. A list of store code sets sharing the same minimum order value
     * (MOV). At least two sets are required and the last one must be empty, which
     * signifies 'MOV for all other stores'. Each store code can only appear once
     * across all the sets. All prices within a service must have the same
     * currency.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder addAllStoreCodeSetWithMovs( java.lang.Iterable< ? extends com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov> values) { if (storeCodeSetWithMovsBuilder_ == null) { ensureStoreCodeSetWithMovsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, storeCodeSetWithMovs_); onChanged(); } else { storeCodeSetWithMovsBuilder_.addAllMessages(values); } return this; } /** * * *
     * Required. A list of store code sets sharing the same minimum order value
     * (MOV). At least two sets are required and the last one must be empty, which
     * signifies 'MOV for all other stores'. Each store code can only appear once
     * across all the sets. All prices within a service must have the same
     * currency.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearStoreCodeSetWithMovs() { if (storeCodeSetWithMovsBuilder_ == null) { storeCodeSetWithMovs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { storeCodeSetWithMovsBuilder_.clear(); } return this; } /** * * *
     * Required. A list of store code sets sharing the same minimum order value
     * (MOV). At least two sets are required and the last one must be empty, which
     * signifies 'MOV for all other stores'. Each store code can only appear once
     * across all the sets. All prices within a service must have the same
     * currency.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder removeStoreCodeSetWithMovs(int index) { if (storeCodeSetWithMovsBuilder_ == null) { ensureStoreCodeSetWithMovsIsMutable(); storeCodeSetWithMovs_.remove(index); onChanged(); } else { storeCodeSetWithMovsBuilder_.remove(index); } return this; } /** * * *
     * Required. A list of store code sets sharing the same minimum order value
     * (MOV). At least two sets are required and the last one must be empty, which
     * signifies 'MOV for all other stores'. Each store code can only appear once
     * across all the sets. All prices within a service must have the same
     * currency.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov .Builder getStoreCodeSetWithMovsBuilder(int index) { return getStoreCodeSetWithMovsFieldBuilder().getBuilder(index); } /** * * *
     * Required. A list of store code sets sharing the same minimum order value
     * (MOV). At least two sets are required and the last one must be empty, which
     * signifies 'MOV for all other stores'. Each store code can only appear once
     * across all the sets. All prices within a service must have the same
     * currency.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMovOrBuilder getStoreCodeSetWithMovsOrBuilder(int index) { if (storeCodeSetWithMovsBuilder_ == null) { return storeCodeSetWithMovs_.get(index); } else { return storeCodeSetWithMovsBuilder_.getMessageOrBuilder(index); } } /** * * *
     * Required. A list of store code sets sharing the same minimum order value
     * (MOV). At least two sets are required and the last one must be empty, which
     * signifies 'MOV for all other stores'. Each store code can only appear once
     * across all the sets. All prices within a service must have the same
     * currency.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List< ? extends com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMovOrBuilder> getStoreCodeSetWithMovsOrBuilderList() { if (storeCodeSetWithMovsBuilder_ != null) { return storeCodeSetWithMovsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(storeCodeSetWithMovs_); } } /** * * *
     * Required. A list of store code sets sharing the same minimum order value
     * (MOV). At least two sets are required and the last one must be empty, which
     * signifies 'MOV for all other stores'. Each store code can only appear once
     * across all the sets. All prices within a service must have the same
     * currency.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov .Builder addStoreCodeSetWithMovsBuilder() { return getStoreCodeSetWithMovsFieldBuilder() .addBuilder( com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov.getDefaultInstance()); } /** * * *
     * Required. A list of store code sets sharing the same minimum order value
     * (MOV). At least two sets are required and the last one must be empty, which
     * signifies 'MOV for all other stores'. Each store code can only appear once
     * across all the sets. All prices within a service must have the same
     * currency.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov .Builder addStoreCodeSetWithMovsBuilder(int index) { return getStoreCodeSetWithMovsFieldBuilder() .addBuilder( index, com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov.getDefaultInstance()); } /** * * *
     * Required. A list of store code sets sharing the same minimum order value
     * (MOV). At least two sets are required and the last one must be empty, which
     * signifies 'MOV for all other stores'. Each store code can only appear once
     * across all the sets. All prices within a service must have the same
     * currency.
     * 
* * * repeated .google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov store_code_set_with_movs = 1 [(.google.api.field_behavior) = REQUIRED]; * */ public java.util.List< com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov .Builder> getStoreCodeSetWithMovsBuilderList() { return getStoreCodeSetWithMovsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov, com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable.StoreCodeSetWithMov .Builder, com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMovOrBuilder> getStoreCodeSetWithMovsFieldBuilder() { if (storeCodeSetWithMovsBuilder_ == null) { storeCodeSetWithMovsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov, com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMov.Builder, com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable .StoreCodeSetWithMovOrBuilder>( storeCodeSetWithMovs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); storeCodeSetWithMovs_ = null; } return storeCodeSetWithMovsBuilder_; } @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.MinimumOrderValueTable) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable) private static final com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable(); } public static com.google.shopping.merchant.accounts.v1beta.MinimumOrderValueTable getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MinimumOrderValueTable 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.MinimumOrderValueTable getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy