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

com.google.ads.googleads.v17.common.AffiliateLocationFeedItem Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v17/common/extensions.proto

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;

/**
 * 
 * Represents an affiliate location extension.
 * 
* * Protobuf type {@code google.ads.googleads.v17.common.AffiliateLocationFeedItem} */ public final class AffiliateLocationFeedItem extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.AffiliateLocationFeedItem) AffiliateLocationFeedItemOrBuilder { private static final long serialVersionUID = 0L; // Use AffiliateLocationFeedItem.newBuilder() to construct. private AffiliateLocationFeedItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AffiliateLocationFeedItem() { businessName_ = ""; addressLine1_ = ""; addressLine2_ = ""; city_ = ""; province_ = ""; postalCode_ = ""; countryCode_ = ""; phoneNumber_ = ""; chainName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AffiliateLocationFeedItem(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_AffiliateLocationFeedItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_AffiliateLocationFeedItem_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.AffiliateLocationFeedItem.class, com.google.ads.googleads.v17.common.AffiliateLocationFeedItem.Builder.class); } private int bitField0_; public static final int BUSINESS_NAME_FIELD_NUMBER = 11; @SuppressWarnings("serial") private volatile java.lang.Object businessName_ = ""; /** *
   * The name of the business.
   * 
* * optional string business_name = 11; * @return Whether the businessName field is set. */ @java.lang.Override public boolean hasBusinessName() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * The name of the business.
   * 
* * optional string business_name = 11; * @return The businessName. */ @java.lang.Override public java.lang.String getBusinessName() { java.lang.Object ref = businessName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); businessName_ = s; return s; } } /** *
   * The name of the business.
   * 
* * optional string business_name = 11; * @return The bytes for businessName. */ @java.lang.Override public com.google.protobuf.ByteString getBusinessNameBytes() { java.lang.Object ref = businessName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); businessName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ADDRESS_LINE_1_FIELD_NUMBER = 12; @SuppressWarnings("serial") private volatile java.lang.Object addressLine1_ = ""; /** *
   * Line 1 of the business address.
   * 
* * optional string address_line_1 = 12; * @return Whether the addressLine1 field is set. */ @java.lang.Override public boolean hasAddressLine1() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Line 1 of the business address.
   * 
* * optional string address_line_1 = 12; * @return The addressLine1. */ @java.lang.Override public java.lang.String getAddressLine1() { java.lang.Object ref = addressLine1_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); addressLine1_ = s; return s; } } /** *
   * Line 1 of the business address.
   * 
* * optional string address_line_1 = 12; * @return The bytes for addressLine1. */ @java.lang.Override public com.google.protobuf.ByteString getAddressLine1Bytes() { java.lang.Object ref = addressLine1_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); addressLine1_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ADDRESS_LINE_2_FIELD_NUMBER = 13; @SuppressWarnings("serial") private volatile java.lang.Object addressLine2_ = ""; /** *
   * Line 2 of the business address.
   * 
* * optional string address_line_2 = 13; * @return Whether the addressLine2 field is set. */ @java.lang.Override public boolean hasAddressLine2() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Line 2 of the business address.
   * 
* * optional string address_line_2 = 13; * @return The addressLine2. */ @java.lang.Override public java.lang.String getAddressLine2() { java.lang.Object ref = addressLine2_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); addressLine2_ = s; return s; } } /** *
   * Line 2 of the business address.
   * 
* * optional string address_line_2 = 13; * @return The bytes for addressLine2. */ @java.lang.Override public com.google.protobuf.ByteString getAddressLine2Bytes() { java.lang.Object ref = addressLine2_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); addressLine2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CITY_FIELD_NUMBER = 14; @SuppressWarnings("serial") private volatile java.lang.Object city_ = ""; /** *
   * City of the business address.
   * 
* * optional string city = 14; * @return Whether the city field is set. */ @java.lang.Override public boolean hasCity() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * City of the business address.
   * 
* * optional string city = 14; * @return The city. */ @java.lang.Override public java.lang.String getCity() { java.lang.Object ref = city_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); city_ = s; return s; } } /** *
   * City of the business address.
   * 
* * optional string city = 14; * @return The bytes for city. */ @java.lang.Override public com.google.protobuf.ByteString getCityBytes() { java.lang.Object ref = city_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); city_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROVINCE_FIELD_NUMBER = 15; @SuppressWarnings("serial") private volatile java.lang.Object province_ = ""; /** *
   * Province of the business address.
   * 
* * optional string province = 15; * @return Whether the province field is set. */ @java.lang.Override public boolean hasProvince() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * Province of the business address.
   * 
* * optional string province = 15; * @return The province. */ @java.lang.Override public java.lang.String getProvince() { java.lang.Object ref = province_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); province_ = s; return s; } } /** *
   * Province of the business address.
   * 
* * optional string province = 15; * @return The bytes for province. */ @java.lang.Override public com.google.protobuf.ByteString getProvinceBytes() { java.lang.Object ref = province_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); province_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int POSTAL_CODE_FIELD_NUMBER = 16; @SuppressWarnings("serial") private volatile java.lang.Object postalCode_ = ""; /** *
   * Postal code of the business address.
   * 
* * optional string postal_code = 16; * @return Whether the postalCode field is set. */ @java.lang.Override public boolean hasPostalCode() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * Postal code of the business address.
   * 
* * optional string postal_code = 16; * @return The postalCode. */ @java.lang.Override public java.lang.String getPostalCode() { java.lang.Object ref = postalCode_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; } } /** *
   * Postal code of the business address.
   * 
* * optional string postal_code = 16; * @return The bytes for postalCode. */ @java.lang.Override public com.google.protobuf.ByteString getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); postalCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int COUNTRY_CODE_FIELD_NUMBER = 17; @SuppressWarnings("serial") private volatile java.lang.Object countryCode_ = ""; /** *
   * Country code of the business address.
   * 
* * optional string country_code = 17; * @return Whether the countryCode field is set. */ @java.lang.Override public boolean hasCountryCode() { return ((bitField0_ & 0x00000040) != 0); } /** *
   * Country code of the business address.
   * 
* * optional string country_code = 17; * @return The countryCode. */ @java.lang.Override public java.lang.String getCountryCode() { java.lang.Object ref = countryCode_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); countryCode_ = s; return s; } } /** *
   * Country code of the business address.
   * 
* * optional string country_code = 17; * @return The bytes for countryCode. */ @java.lang.Override public com.google.protobuf.ByteString getCountryCodeBytes() { java.lang.Object ref = countryCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); countryCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PHONE_NUMBER_FIELD_NUMBER = 18; @SuppressWarnings("serial") private volatile java.lang.Object phoneNumber_ = ""; /** *
   * Phone number of the business.
   * 
* * optional string phone_number = 18; * @return Whether the phoneNumber field is set. */ @java.lang.Override public boolean hasPhoneNumber() { return ((bitField0_ & 0x00000080) != 0); } /** *
   * Phone number of the business.
   * 
* * optional string phone_number = 18; * @return The phoneNumber. */ @java.lang.Override public java.lang.String getPhoneNumber() { java.lang.Object ref = phoneNumber_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phoneNumber_ = s; return s; } } /** *
   * Phone number of the business.
   * 
* * optional string phone_number = 18; * @return The bytes for phoneNumber. */ @java.lang.Override public com.google.protobuf.ByteString getPhoneNumberBytes() { java.lang.Object ref = phoneNumber_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phoneNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int CHAIN_ID_FIELD_NUMBER = 19; private long chainId_ = 0L; /** *
   * Id of the retail chain that is advertised as a seller of your product.
   * 
* * optional int64 chain_id = 19; * @return Whether the chainId field is set. */ @java.lang.Override public boolean hasChainId() { return ((bitField0_ & 0x00000100) != 0); } /** *
   * Id of the retail chain that is advertised as a seller of your product.
   * 
* * optional int64 chain_id = 19; * @return The chainId. */ @java.lang.Override public long getChainId() { return chainId_; } public static final int CHAIN_NAME_FIELD_NUMBER = 20; @SuppressWarnings("serial") private volatile java.lang.Object chainName_ = ""; /** *
   * Name of chain.
   * 
* * optional string chain_name = 20; * @return Whether the chainName field is set. */ @java.lang.Override public boolean hasChainName() { return ((bitField0_ & 0x00000200) != 0); } /** *
   * Name of chain.
   * 
* * optional string chain_name = 20; * @return The chainName. */ @java.lang.Override public java.lang.String getChainName() { java.lang.Object ref = chainName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); chainName_ = s; return s; } } /** *
   * Name of chain.
   * 
* * optional string chain_name = 20; * @return The bytes for chainName. */ @java.lang.Override public com.google.protobuf.ByteString getChainNameBytes() { java.lang.Object ref = chainName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); chainName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, businessName_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, addressLine1_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, addressLine2_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, city_); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, province_); } if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, postalCode_); } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, countryCode_); } if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 18, phoneNumber_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeInt64(19, chainId_); } if (((bitField0_ & 0x00000200) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 20, chainName_); } 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.GeneratedMessageV3.computeStringSize(11, businessName_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, addressLine1_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, addressLine2_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, city_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, province_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, postalCode_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, countryCode_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, phoneNumber_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(19, chainId_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, chainName_); } 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.ads.googleads.v17.common.AffiliateLocationFeedItem)) { return super.equals(obj); } com.google.ads.googleads.v17.common.AffiliateLocationFeedItem other = (com.google.ads.googleads.v17.common.AffiliateLocationFeedItem) obj; if (hasBusinessName() != other.hasBusinessName()) return false; if (hasBusinessName()) { if (!getBusinessName() .equals(other.getBusinessName())) return false; } if (hasAddressLine1() != other.hasAddressLine1()) return false; if (hasAddressLine1()) { if (!getAddressLine1() .equals(other.getAddressLine1())) return false; } if (hasAddressLine2() != other.hasAddressLine2()) return false; if (hasAddressLine2()) { if (!getAddressLine2() .equals(other.getAddressLine2())) return false; } if (hasCity() != other.hasCity()) return false; if (hasCity()) { if (!getCity() .equals(other.getCity())) return false; } if (hasProvince() != other.hasProvince()) return false; if (hasProvince()) { if (!getProvince() .equals(other.getProvince())) return false; } if (hasPostalCode() != other.hasPostalCode()) return false; if (hasPostalCode()) { if (!getPostalCode() .equals(other.getPostalCode())) return false; } if (hasCountryCode() != other.hasCountryCode()) return false; if (hasCountryCode()) { if (!getCountryCode() .equals(other.getCountryCode())) return false; } if (hasPhoneNumber() != other.hasPhoneNumber()) return false; if (hasPhoneNumber()) { if (!getPhoneNumber() .equals(other.getPhoneNumber())) return false; } if (hasChainId() != other.hasChainId()) return false; if (hasChainId()) { if (getChainId() != other.getChainId()) return false; } if (hasChainName() != other.hasChainName()) return false; if (hasChainName()) { if (!getChainName() .equals(other.getChainName())) 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 (hasBusinessName()) { hash = (37 * hash) + BUSINESS_NAME_FIELD_NUMBER; hash = (53 * hash) + getBusinessName().hashCode(); } if (hasAddressLine1()) { hash = (37 * hash) + ADDRESS_LINE_1_FIELD_NUMBER; hash = (53 * hash) + getAddressLine1().hashCode(); } if (hasAddressLine2()) { hash = (37 * hash) + ADDRESS_LINE_2_FIELD_NUMBER; hash = (53 * hash) + getAddressLine2().hashCode(); } if (hasCity()) { hash = (37 * hash) + CITY_FIELD_NUMBER; hash = (53 * hash) + getCity().hashCode(); } if (hasProvince()) { hash = (37 * hash) + PROVINCE_FIELD_NUMBER; hash = (53 * hash) + getProvince().hashCode(); } if (hasPostalCode()) { hash = (37 * hash) + POSTAL_CODE_FIELD_NUMBER; hash = (53 * hash) + getPostalCode().hashCode(); } if (hasCountryCode()) { hash = (37 * hash) + COUNTRY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCountryCode().hashCode(); } if (hasPhoneNumber()) { hash = (37 * hash) + PHONE_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getPhoneNumber().hashCode(); } if (hasChainId()) { hash = (37 * hash) + CHAIN_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getChainId()); } if (hasChainName()) { hash = (37 * hash) + CHAIN_NAME_FIELD_NUMBER; hash = (53 * hash) + getChainName().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.common.AffiliateLocationFeedItem parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.AffiliateLocationFeedItem parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.common.AffiliateLocationFeedItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.AffiliateLocationFeedItem 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.ads.googleads.v17.common.AffiliateLocationFeedItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.AffiliateLocationFeedItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.common.AffiliateLocationFeedItem parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.common.AffiliateLocationFeedItem 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.ads.googleads.v17.common.AffiliateLocationFeedItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.common.AffiliateLocationFeedItem 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.ads.googleads.v17.common.AffiliateLocationFeedItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.common.AffiliateLocationFeedItem 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.ads.googleads.v17.common.AffiliateLocationFeedItem 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; } /** *
   * Represents an affiliate location extension.
   * 
* * Protobuf type {@code google.ads.googleads.v17.common.AffiliateLocationFeedItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.AffiliateLocationFeedItem) com.google.ads.googleads.v17.common.AffiliateLocationFeedItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_AffiliateLocationFeedItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_AffiliateLocationFeedItem_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.AffiliateLocationFeedItem.class, com.google.ads.googleads.v17.common.AffiliateLocationFeedItem.Builder.class); } // Construct using com.google.ads.googleads.v17.common.AffiliateLocationFeedItem.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; businessName_ = ""; addressLine1_ = ""; addressLine2_ = ""; city_ = ""; province_ = ""; postalCode_ = ""; countryCode_ = ""; phoneNumber_ = ""; chainId_ = 0L; chainName_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.common.ExtensionsProto.internal_static_google_ads_googleads_v17_common_AffiliateLocationFeedItem_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.common.AffiliateLocationFeedItem getDefaultInstanceForType() { return com.google.ads.googleads.v17.common.AffiliateLocationFeedItem.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.common.AffiliateLocationFeedItem build() { com.google.ads.googleads.v17.common.AffiliateLocationFeedItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.common.AffiliateLocationFeedItem buildPartial() { com.google.ads.googleads.v17.common.AffiliateLocationFeedItem result = new com.google.ads.googleads.v17.common.AffiliateLocationFeedItem(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.common.AffiliateLocationFeedItem result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.businessName_ = businessName_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.addressLine1_ = addressLine1_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.addressLine2_ = addressLine2_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.city_ = city_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.province_ = province_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.postalCode_ = postalCode_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.countryCode_ = countryCode_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { result.phoneNumber_ = phoneNumber_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { result.chainId_ = chainId_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { result.chainName_ = chainName_; to_bitField0_ |= 0x00000200; } 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.ads.googleads.v17.common.AffiliateLocationFeedItem) { return mergeFrom((com.google.ads.googleads.v17.common.AffiliateLocationFeedItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.common.AffiliateLocationFeedItem other) { if (other == com.google.ads.googleads.v17.common.AffiliateLocationFeedItem.getDefaultInstance()) return this; if (other.hasBusinessName()) { businessName_ = other.businessName_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasAddressLine1()) { addressLine1_ = other.addressLine1_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasAddressLine2()) { addressLine2_ = other.addressLine2_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasCity()) { city_ = other.city_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasProvince()) { province_ = other.province_; bitField0_ |= 0x00000010; onChanged(); } if (other.hasPostalCode()) { postalCode_ = other.postalCode_; bitField0_ |= 0x00000020; onChanged(); } if (other.hasCountryCode()) { countryCode_ = other.countryCode_; bitField0_ |= 0x00000040; onChanged(); } if (other.hasPhoneNumber()) { phoneNumber_ = other.phoneNumber_; bitField0_ |= 0x00000080; onChanged(); } if (other.hasChainId()) { setChainId(other.getChainId()); } if (other.hasChainName()) { chainName_ = other.chainName_; bitField0_ |= 0x00000200; onChanged(); } 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 90: { businessName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 90 case 98: { addressLine1_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 98 case 106: { addressLine2_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 106 case 114: { city_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 114 case 122: { province_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 122 case 130: { postalCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 130 case 138: { countryCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 138 case 146: { phoneNumber_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000080; break; } // case 146 case 152: { chainId_ = input.readInt64(); bitField0_ |= 0x00000100; break; } // case 152 case 162: { chainName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000200; break; } // case 162 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.lang.Object businessName_ = ""; /** *
     * The name of the business.
     * 
* * optional string business_name = 11; * @return Whether the businessName field is set. */ public boolean hasBusinessName() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * The name of the business.
     * 
* * optional string business_name = 11; * @return The businessName. */ public java.lang.String getBusinessName() { java.lang.Object ref = businessName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); businessName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The name of the business.
     * 
* * optional string business_name = 11; * @return The bytes for businessName. */ public com.google.protobuf.ByteString getBusinessNameBytes() { java.lang.Object ref = businessName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); businessName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The name of the business.
     * 
* * optional string business_name = 11; * @param value The businessName to set. * @return This builder for chaining. */ public Builder setBusinessName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } businessName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * The name of the business.
     * 
* * optional string business_name = 11; * @return This builder for chaining. */ public Builder clearBusinessName() { businessName_ = getDefaultInstance().getBusinessName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * The name of the business.
     * 
* * optional string business_name = 11; * @param value The bytes for businessName to set. * @return This builder for chaining. */ public Builder setBusinessNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); businessName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object addressLine1_ = ""; /** *
     * Line 1 of the business address.
     * 
* * optional string address_line_1 = 12; * @return Whether the addressLine1 field is set. */ public boolean hasAddressLine1() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Line 1 of the business address.
     * 
* * optional string address_line_1 = 12; * @return The addressLine1. */ public java.lang.String getAddressLine1() { java.lang.Object ref = addressLine1_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); addressLine1_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Line 1 of the business address.
     * 
* * optional string address_line_1 = 12; * @return The bytes for addressLine1. */ public com.google.protobuf.ByteString getAddressLine1Bytes() { java.lang.Object ref = addressLine1_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); addressLine1_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Line 1 of the business address.
     * 
* * optional string address_line_1 = 12; * @param value The addressLine1 to set. * @return This builder for chaining. */ public Builder setAddressLine1( java.lang.String value) { if (value == null) { throw new NullPointerException(); } addressLine1_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Line 1 of the business address.
     * 
* * optional string address_line_1 = 12; * @return This builder for chaining. */ public Builder clearAddressLine1() { addressLine1_ = getDefaultInstance().getAddressLine1(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * Line 1 of the business address.
     * 
* * optional string address_line_1 = 12; * @param value The bytes for addressLine1 to set. * @return This builder for chaining. */ public Builder setAddressLine1Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); addressLine1_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object addressLine2_ = ""; /** *
     * Line 2 of the business address.
     * 
* * optional string address_line_2 = 13; * @return Whether the addressLine2 field is set. */ public boolean hasAddressLine2() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Line 2 of the business address.
     * 
* * optional string address_line_2 = 13; * @return The addressLine2. */ public java.lang.String getAddressLine2() { java.lang.Object ref = addressLine2_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); addressLine2_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Line 2 of the business address.
     * 
* * optional string address_line_2 = 13; * @return The bytes for addressLine2. */ public com.google.protobuf.ByteString getAddressLine2Bytes() { java.lang.Object ref = addressLine2_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); addressLine2_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Line 2 of the business address.
     * 
* * optional string address_line_2 = 13; * @param value The addressLine2 to set. * @return This builder for chaining. */ public Builder setAddressLine2( java.lang.String value) { if (value == null) { throw new NullPointerException(); } addressLine2_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Line 2 of the business address.
     * 
* * optional string address_line_2 = 13; * @return This builder for chaining. */ public Builder clearAddressLine2() { addressLine2_ = getDefaultInstance().getAddressLine2(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * Line 2 of the business address.
     * 
* * optional string address_line_2 = 13; * @param value The bytes for addressLine2 to set. * @return This builder for chaining. */ public Builder setAddressLine2Bytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); addressLine2_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object city_ = ""; /** *
     * City of the business address.
     * 
* * optional string city = 14; * @return Whether the city field is set. */ public boolean hasCity() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * City of the business address.
     * 
* * optional string city = 14; * @return The city. */ public java.lang.String getCity() { java.lang.Object ref = city_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); city_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * City of the business address.
     * 
* * optional string city = 14; * @return The bytes for city. */ public com.google.protobuf.ByteString getCityBytes() { java.lang.Object ref = city_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); city_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * City of the business address.
     * 
* * optional string city = 14; * @param value The city to set. * @return This builder for chaining. */ public Builder setCity( java.lang.String value) { if (value == null) { throw new NullPointerException(); } city_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** *
     * City of the business address.
     * 
* * optional string city = 14; * @return This builder for chaining. */ public Builder clearCity() { city_ = getDefaultInstance().getCity(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** *
     * City of the business address.
     * 
* * optional string city = 14; * @param value The bytes for city to set. * @return This builder for chaining. */ public Builder setCityBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); city_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object province_ = ""; /** *
     * Province of the business address.
     * 
* * optional string province = 15; * @return Whether the province field is set. */ public boolean hasProvince() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Province of the business address.
     * 
* * optional string province = 15; * @return The province. */ public java.lang.String getProvince() { java.lang.Object ref = province_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); province_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Province of the business address.
     * 
* * optional string province = 15; * @return The bytes for province. */ public com.google.protobuf.ByteString getProvinceBytes() { java.lang.Object ref = province_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); province_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Province of the business address.
     * 
* * optional string province = 15; * @param value The province to set. * @return This builder for chaining. */ public Builder setProvince( java.lang.String value) { if (value == null) { throw new NullPointerException(); } province_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * Province of the business address.
     * 
* * optional string province = 15; * @return This builder for chaining. */ public Builder clearProvince() { province_ = getDefaultInstance().getProvince(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** *
     * Province of the business address.
     * 
* * optional string province = 15; * @param value The bytes for province to set. * @return This builder for chaining. */ public Builder setProvinceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); province_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object postalCode_ = ""; /** *
     * Postal code of the business address.
     * 
* * optional string postal_code = 16; * @return Whether the postalCode field is set. */ public boolean hasPostalCode() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Postal code of the business address.
     * 
* * optional string postal_code = 16; * @return The postalCode. */ public java.lang.String getPostalCode() { java.lang.Object ref = postalCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); postalCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Postal code of the business address.
     * 
* * optional string postal_code = 16; * @return The bytes for postalCode. */ public com.google.protobuf.ByteString getPostalCodeBytes() { java.lang.Object ref = postalCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); postalCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Postal code of the business address.
     * 
* * optional string postal_code = 16; * @param value The postalCode to set. * @return This builder for chaining. */ public Builder setPostalCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } postalCode_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * Postal code of the business address.
     * 
* * optional string postal_code = 16; * @return This builder for chaining. */ public Builder clearPostalCode() { postalCode_ = getDefaultInstance().getPostalCode(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** *
     * Postal code of the business address.
     * 
* * optional string postal_code = 16; * @param value The bytes for postalCode to set. * @return This builder for chaining. */ public Builder setPostalCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); postalCode_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private java.lang.Object countryCode_ = ""; /** *
     * Country code of the business address.
     * 
* * optional string country_code = 17; * @return Whether the countryCode field is set. */ public boolean hasCountryCode() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Country code of the business address.
     * 
* * optional string country_code = 17; * @return The countryCode. */ public java.lang.String getCountryCode() { java.lang.Object ref = countryCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); countryCode_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Country code of the business address.
     * 
* * optional string country_code = 17; * @return The bytes for countryCode. */ public com.google.protobuf.ByteString getCountryCodeBytes() { java.lang.Object ref = countryCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); countryCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Country code of the business address.
     * 
* * optional string country_code = 17; * @param value The countryCode to set. * @return This builder for chaining. */ public Builder setCountryCode( java.lang.String value) { if (value == null) { throw new NullPointerException(); } countryCode_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * Country code of the business address.
     * 
* * optional string country_code = 17; * @return This builder for chaining. */ public Builder clearCountryCode() { countryCode_ = getDefaultInstance().getCountryCode(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
     * Country code of the business address.
     * 
* * optional string country_code = 17; * @param value The bytes for countryCode to set. * @return This builder for chaining. */ public Builder setCountryCodeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); countryCode_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } private java.lang.Object phoneNumber_ = ""; /** *
     * Phone number of the business.
     * 
* * optional string phone_number = 18; * @return Whether the phoneNumber field is set. */ public boolean hasPhoneNumber() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * Phone number of the business.
     * 
* * optional string phone_number = 18; * @return The phoneNumber. */ public java.lang.String getPhoneNumber() { java.lang.Object ref = phoneNumber_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phoneNumber_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Phone number of the business.
     * 
* * optional string phone_number = 18; * @return The bytes for phoneNumber. */ public com.google.protobuf.ByteString getPhoneNumberBytes() { java.lang.Object ref = phoneNumber_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); phoneNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Phone number of the business.
     * 
* * optional string phone_number = 18; * @param value The phoneNumber to set. * @return This builder for chaining. */ public Builder setPhoneNumber( java.lang.String value) { if (value == null) { throw new NullPointerException(); } phoneNumber_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** *
     * Phone number of the business.
     * 
* * optional string phone_number = 18; * @return This builder for chaining. */ public Builder clearPhoneNumber() { phoneNumber_ = getDefaultInstance().getPhoneNumber(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } /** *
     * Phone number of the business.
     * 
* * optional string phone_number = 18; * @param value The bytes for phoneNumber to set. * @return This builder for chaining. */ public Builder setPhoneNumberBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); phoneNumber_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } private long chainId_ ; /** *
     * Id of the retail chain that is advertised as a seller of your product.
     * 
* * optional int64 chain_id = 19; * @return Whether the chainId field is set. */ @java.lang.Override public boolean hasChainId() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * Id of the retail chain that is advertised as a seller of your product.
     * 
* * optional int64 chain_id = 19; * @return The chainId. */ @java.lang.Override public long getChainId() { return chainId_; } /** *
     * Id of the retail chain that is advertised as a seller of your product.
     * 
* * optional int64 chain_id = 19; * @param value The chainId to set. * @return This builder for chaining. */ public Builder setChainId(long value) { chainId_ = value; bitField0_ |= 0x00000100; onChanged(); return this; } /** *
     * Id of the retail chain that is advertised as a seller of your product.
     * 
* * optional int64 chain_id = 19; * @return This builder for chaining. */ public Builder clearChainId() { bitField0_ = (bitField0_ & ~0x00000100); chainId_ = 0L; onChanged(); return this; } private java.lang.Object chainName_ = ""; /** *
     * Name of chain.
     * 
* * optional string chain_name = 20; * @return Whether the chainName field is set. */ public boolean hasChainName() { return ((bitField0_ & 0x00000200) != 0); } /** *
     * Name of chain.
     * 
* * optional string chain_name = 20; * @return The chainName. */ public java.lang.String getChainName() { java.lang.Object ref = chainName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); chainName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Name of chain.
     * 
* * optional string chain_name = 20; * @return The bytes for chainName. */ public com.google.protobuf.ByteString getChainNameBytes() { java.lang.Object ref = chainName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); chainName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Name of chain.
     * 
* * optional string chain_name = 20; * @param value The chainName to set. * @return This builder for chaining. */ public Builder setChainName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } chainName_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** *
     * Name of chain.
     * 
* * optional string chain_name = 20; * @return This builder for chaining. */ public Builder clearChainName() { chainName_ = getDefaultInstance().getChainName(); bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } /** *
     * Name of chain.
     * 
* * optional string chain_name = 20; * @param value The bytes for chainName to set. * @return This builder for chaining. */ public Builder setChainNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); chainName_ = value; bitField0_ |= 0x00000200; 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.ads.googleads.v17.common.AffiliateLocationFeedItem) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.AffiliateLocationFeedItem) private static final com.google.ads.googleads.v17.common.AffiliateLocationFeedItem DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.AffiliateLocationFeedItem(); } public static com.google.ads.googleads.v17.common.AffiliateLocationFeedItem getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AffiliateLocationFeedItem 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.ads.googleads.v17.common.AffiliateLocationFeedItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy