Class AffiliateLocationFeedItem.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<AffiliateLocationFeedItem.Builder>
com.google.ads.googleads.v18.common.AffiliateLocationFeedItem.Builder
All Implemented Interfaces:
AffiliateLocationFeedItemOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AffiliateLocationFeedItem

public static final class AffiliateLocationFeedItem.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AffiliateLocationFeedItem.Builder> implements AffiliateLocationFeedItemOrBuilder
 Represents an affiliate location extension.
 
Protobuf type google.ads.googleads.v18.common.AffiliateLocationFeedItem
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AffiliateLocationFeedItem.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<AffiliateLocationFeedItem.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AffiliateLocationFeedItem.Builder>
    • getDefaultInstanceForType

      public AffiliateLocationFeedItem getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AffiliateLocationFeedItem build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AffiliateLocationFeedItem buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<AffiliateLocationFeedItem.Builder>
    • setField

      public AffiliateLocationFeedItem.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<AffiliateLocationFeedItem.Builder>
    • clearField

      public AffiliateLocationFeedItem.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AffiliateLocationFeedItem.Builder>
    • clearOneof

      public AffiliateLocationFeedItem.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AffiliateLocationFeedItem.Builder>
    • setRepeatedField

      public AffiliateLocationFeedItem.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AffiliateLocationFeedItem.Builder>
    • addRepeatedField

      public AffiliateLocationFeedItem.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AffiliateLocationFeedItem.Builder>
    • mergeFrom

      public AffiliateLocationFeedItem.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AffiliateLocationFeedItem.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AffiliateLocationFeedItem.Builder>
    • mergeFrom

      public AffiliateLocationFeedItem.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AffiliateLocationFeedItem.Builder>
      Throws:
      IOException
    • hasBusinessName

      public boolean hasBusinessName()
       The name of the business.
       
      optional string business_name = 11;
      Specified by:
      hasBusinessName in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      Whether the businessName field is set.
    • getBusinessName

      public String getBusinessName()
       The name of the business.
       
      optional string business_name = 11;
      Specified by:
      getBusinessName in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      The businessName.
    • getBusinessNameBytes

      public com.google.protobuf.ByteString getBusinessNameBytes()
       The name of the business.
       
      optional string business_name = 11;
      Specified by:
      getBusinessNameBytes in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      The bytes for businessName.
    • setBusinessName

      public AffiliateLocationFeedItem.Builder setBusinessName(String value)
       The name of the business.
       
      optional string business_name = 11;
      Parameters:
      value - The businessName to set.
      Returns:
      This builder for chaining.
    • clearBusinessName

      public AffiliateLocationFeedItem.Builder clearBusinessName()
       The name of the business.
       
      optional string business_name = 11;
      Returns:
      This builder for chaining.
    • setBusinessNameBytes

      public AffiliateLocationFeedItem.Builder setBusinessNameBytes(com.google.protobuf.ByteString value)
       The name of the business.
       
      optional string business_name = 11;
      Parameters:
      value - The bytes for businessName to set.
      Returns:
      This builder for chaining.
    • hasAddressLine1

      public boolean hasAddressLine1()
       Line 1 of the business address.
       
      optional string address_line_1 = 12;
      Specified by:
      hasAddressLine1 in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      Whether the addressLine1 field is set.
    • getAddressLine1

      public String getAddressLine1()
       Line 1 of the business address.
       
      optional string address_line_1 = 12;
      Specified by:
      getAddressLine1 in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      The addressLine1.
    • getAddressLine1Bytes

      public com.google.protobuf.ByteString getAddressLine1Bytes()
       Line 1 of the business address.
       
      optional string address_line_1 = 12;
      Specified by:
      getAddressLine1Bytes in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      The bytes for addressLine1.
    • setAddressLine1

      public AffiliateLocationFeedItem.Builder setAddressLine1(String value)
       Line 1 of the business address.
       
      optional string address_line_1 = 12;
      Parameters:
      value - The addressLine1 to set.
      Returns:
      This builder for chaining.
    • clearAddressLine1

      public AffiliateLocationFeedItem.Builder clearAddressLine1()
       Line 1 of the business address.
       
      optional string address_line_1 = 12;
      Returns:
      This builder for chaining.
    • setAddressLine1Bytes

      public AffiliateLocationFeedItem.Builder setAddressLine1Bytes(com.google.protobuf.ByteString value)
       Line 1 of the business address.
       
      optional string address_line_1 = 12;
      Parameters:
      value - The bytes for addressLine1 to set.
      Returns:
      This builder for chaining.
    • hasAddressLine2

      public boolean hasAddressLine2()
       Line 2 of the business address.
       
      optional string address_line_2 = 13;
      Specified by:
      hasAddressLine2 in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      Whether the addressLine2 field is set.
    • getAddressLine2

      public String getAddressLine2()
       Line 2 of the business address.
       
      optional string address_line_2 = 13;
      Specified by:
      getAddressLine2 in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      The addressLine2.
    • getAddressLine2Bytes

      public com.google.protobuf.ByteString getAddressLine2Bytes()
       Line 2 of the business address.
       
      optional string address_line_2 = 13;
      Specified by:
      getAddressLine2Bytes in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      The bytes for addressLine2.
    • setAddressLine2

      public AffiliateLocationFeedItem.Builder setAddressLine2(String value)
       Line 2 of the business address.
       
      optional string address_line_2 = 13;
      Parameters:
      value - The addressLine2 to set.
      Returns:
      This builder for chaining.
    • clearAddressLine2

      public AffiliateLocationFeedItem.Builder clearAddressLine2()
       Line 2 of the business address.
       
      optional string address_line_2 = 13;
      Returns:
      This builder for chaining.
    • setAddressLine2Bytes

      public AffiliateLocationFeedItem.Builder setAddressLine2Bytes(com.google.protobuf.ByteString value)
       Line 2 of the business address.
       
      optional string address_line_2 = 13;
      Parameters:
      value - The bytes for addressLine2 to set.
      Returns:
      This builder for chaining.
    • hasCity

      public boolean hasCity()
       City of the business address.
       
      optional string city = 14;
      Specified by:
      hasCity in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      Whether the city field is set.
    • getCity

      public String getCity()
       City of the business address.
       
      optional string city = 14;
      Specified by:
      getCity in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      The city.
    • getCityBytes

      public com.google.protobuf.ByteString getCityBytes()
       City of the business address.
       
      optional string city = 14;
      Specified by:
      getCityBytes in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      The bytes for city.
    • setCity

      public AffiliateLocationFeedItem.Builder setCity(String value)
       City of the business address.
       
      optional string city = 14;
      Parameters:
      value - The city to set.
      Returns:
      This builder for chaining.
    • clearCity

       City of the business address.
       
      optional string city = 14;
      Returns:
      This builder for chaining.
    • setCityBytes

      public AffiliateLocationFeedItem.Builder setCityBytes(com.google.protobuf.ByteString value)
       City of the business address.
       
      optional string city = 14;
      Parameters:
      value - The bytes for city to set.
      Returns:
      This builder for chaining.
    • hasProvince

      public boolean hasProvince()
       Province of the business address.
       
      optional string province = 15;
      Specified by:
      hasProvince in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      Whether the province field is set.
    • getProvince

      public String getProvince()
       Province of the business address.
       
      optional string province = 15;
      Specified by:
      getProvince in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      The province.
    • getProvinceBytes

      public com.google.protobuf.ByteString getProvinceBytes()
       Province of the business address.
       
      optional string province = 15;
      Specified by:
      getProvinceBytes in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      The bytes for province.
    • setProvince

      public AffiliateLocationFeedItem.Builder setProvince(String value)
       Province of the business address.
       
      optional string province = 15;
      Parameters:
      value - The province to set.
      Returns:
      This builder for chaining.
    • clearProvince

      public AffiliateLocationFeedItem.Builder clearProvince()
       Province of the business address.
       
      optional string province = 15;
      Returns:
      This builder for chaining.
    • setProvinceBytes

      public AffiliateLocationFeedItem.Builder setProvinceBytes(com.google.protobuf.ByteString value)
       Province of the business address.
       
      optional string province = 15;
      Parameters:
      value - The bytes for province to set.
      Returns:
      This builder for chaining.
    • hasPostalCode

      public boolean hasPostalCode()
       Postal code of the business address.
       
      optional string postal_code = 16;
      Specified by:
      hasPostalCode in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      Whether the postalCode field is set.
    • getPostalCode

      public String getPostalCode()
       Postal code of the business address.
       
      optional string postal_code = 16;
      Specified by:
      getPostalCode in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      The postalCode.
    • getPostalCodeBytes

      public com.google.protobuf.ByteString getPostalCodeBytes()
       Postal code of the business address.
       
      optional string postal_code = 16;
      Specified by:
      getPostalCodeBytes in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      The bytes for postalCode.
    • setPostalCode

      public AffiliateLocationFeedItem.Builder setPostalCode(String value)
       Postal code of the business address.
       
      optional string postal_code = 16;
      Parameters:
      value - The postalCode to set.
      Returns:
      This builder for chaining.
    • clearPostalCode

      public AffiliateLocationFeedItem.Builder clearPostalCode()
       Postal code of the business address.
       
      optional string postal_code = 16;
      Returns:
      This builder for chaining.
    • setPostalCodeBytes

      public AffiliateLocationFeedItem.Builder setPostalCodeBytes(com.google.protobuf.ByteString value)
       Postal code of the business address.
       
      optional string postal_code = 16;
      Parameters:
      value - The bytes for postalCode to set.
      Returns:
      This builder for chaining.
    • hasCountryCode

      public boolean hasCountryCode()
       Country code of the business address.
       
      optional string country_code = 17;
      Specified by:
      hasCountryCode in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      Whether the countryCode field is set.
    • getCountryCode

      public String getCountryCode()
       Country code of the business address.
       
      optional string country_code = 17;
      Specified by:
      getCountryCode in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      The countryCode.
    • getCountryCodeBytes

      public com.google.protobuf.ByteString getCountryCodeBytes()
       Country code of the business address.
       
      optional string country_code = 17;
      Specified by:
      getCountryCodeBytes in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      The bytes for countryCode.
    • setCountryCode

      public AffiliateLocationFeedItem.Builder setCountryCode(String value)
       Country code of the business address.
       
      optional string country_code = 17;
      Parameters:
      value - The countryCode to set.
      Returns:
      This builder for chaining.
    • clearCountryCode

      public AffiliateLocationFeedItem.Builder clearCountryCode()
       Country code of the business address.
       
      optional string country_code = 17;
      Returns:
      This builder for chaining.
    • setCountryCodeBytes

      public AffiliateLocationFeedItem.Builder setCountryCodeBytes(com.google.protobuf.ByteString value)
       Country code of the business address.
       
      optional string country_code = 17;
      Parameters:
      value - The bytes for countryCode to set.
      Returns:
      This builder for chaining.
    • hasPhoneNumber

      public boolean hasPhoneNumber()
       Phone number of the business.
       
      optional string phone_number = 18;
      Specified by:
      hasPhoneNumber in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      Whether the phoneNumber field is set.
    • getPhoneNumber

      public String getPhoneNumber()
       Phone number of the business.
       
      optional string phone_number = 18;
      Specified by:
      getPhoneNumber in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      The phoneNumber.
    • getPhoneNumberBytes

      public com.google.protobuf.ByteString getPhoneNumberBytes()
       Phone number of the business.
       
      optional string phone_number = 18;
      Specified by:
      getPhoneNumberBytes in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      The bytes for phoneNumber.
    • setPhoneNumber

      public AffiliateLocationFeedItem.Builder setPhoneNumber(String value)
       Phone number of the business.
       
      optional string phone_number = 18;
      Parameters:
      value - The phoneNumber to set.
      Returns:
      This builder for chaining.
    • clearPhoneNumber

      public AffiliateLocationFeedItem.Builder clearPhoneNumber()
       Phone number of the business.
       
      optional string phone_number = 18;
      Returns:
      This builder for chaining.
    • setPhoneNumberBytes

      public AffiliateLocationFeedItem.Builder setPhoneNumberBytes(com.google.protobuf.ByteString value)
       Phone number of the business.
       
      optional string phone_number = 18;
      Parameters:
      value - The bytes for phoneNumber to set.
      Returns:
      This builder for chaining.
    • hasChainId

      public boolean hasChainId()
       Id of the retail chain that is advertised as a seller of your product.
       
      optional int64 chain_id = 19;
      Specified by:
      hasChainId in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      Whether the chainId field is set.
    • getChainId

      public long getChainId()
       Id of the retail chain that is advertised as a seller of your product.
       
      optional int64 chain_id = 19;
      Specified by:
      getChainId in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      The chainId.
    • setChainId

      public AffiliateLocationFeedItem.Builder setChainId(long value)
       Id of the retail chain that is advertised as a seller of your product.
       
      optional int64 chain_id = 19;
      Parameters:
      value - The chainId to set.
      Returns:
      This builder for chaining.
    • clearChainId

      public AffiliateLocationFeedItem.Builder clearChainId()
       Id of the retail chain that is advertised as a seller of your product.
       
      optional int64 chain_id = 19;
      Returns:
      This builder for chaining.
    • hasChainName

      public boolean hasChainName()
       Name of chain.
       
      optional string chain_name = 20;
      Specified by:
      hasChainName in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      Whether the chainName field is set.
    • getChainName

      public String getChainName()
       Name of chain.
       
      optional string chain_name = 20;
      Specified by:
      getChainName in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      The chainName.
    • getChainNameBytes

      public com.google.protobuf.ByteString getChainNameBytes()
       Name of chain.
       
      optional string chain_name = 20;
      Specified by:
      getChainNameBytes in interface AffiliateLocationFeedItemOrBuilder
      Returns:
      The bytes for chainName.
    • setChainName

      public AffiliateLocationFeedItem.Builder setChainName(String value)
       Name of chain.
       
      optional string chain_name = 20;
      Parameters:
      value - The chainName to set.
      Returns:
      This builder for chaining.
    • clearChainName

      public AffiliateLocationFeedItem.Builder clearChainName()
       Name of chain.
       
      optional string chain_name = 20;
      Returns:
      This builder for chaining.
    • setChainNameBytes

      public AffiliateLocationFeedItem.Builder setChainNameBytes(com.google.protobuf.ByteString value)
       Name of chain.
       
      optional string chain_name = 20;
      Parameters:
      value - The bytes for chainName to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final AffiliateLocationFeedItem.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AffiliateLocationFeedItem.Builder>
    • mergeUnknownFields

      public final AffiliateLocationFeedItem.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AffiliateLocationFeedItem.Builder>