Class TextMessageFeedItem.Builder

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

public static final class TextMessageFeedItem.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TextMessageFeedItem.Builder> implements TextMessageFeedItemOrBuilder
 An extension that users can click on to send a text message to the
 advertiser.
 
Protobuf type google.ads.googleads.v18.common.TextMessageFeedItem
  • 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<TextMessageFeedItem.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<TextMessageFeedItem.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<TextMessageFeedItem.Builder>
    • getDefaultInstanceForType

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

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

      public TextMessageFeedItem 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<TextMessageFeedItem.Builder>
    • setField

      public TextMessageFeedItem.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<TextMessageFeedItem.Builder>
    • clearField

      public TextMessageFeedItem.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<TextMessageFeedItem.Builder>
    • clearOneof

      public TextMessageFeedItem.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<TextMessageFeedItem.Builder>
    • setRepeatedField

      public TextMessageFeedItem.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<TextMessageFeedItem.Builder>
    • addRepeatedField

      public TextMessageFeedItem.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<TextMessageFeedItem.Builder>
    • mergeFrom

      public TextMessageFeedItem.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<TextMessageFeedItem.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<TextMessageFeedItem.Builder>
    • mergeFrom

      public TextMessageFeedItem.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<TextMessageFeedItem.Builder>
      Throws:
      IOException
    • hasBusinessName

      public boolean hasBusinessName()
       The business name to prepend to the message text.
       This field is required.
       
      optional string business_name = 6;
      Specified by:
      hasBusinessName in interface TextMessageFeedItemOrBuilder
      Returns:
      Whether the businessName field is set.
    • getBusinessName

      public String getBusinessName()
       The business name to prepend to the message text.
       This field is required.
       
      optional string business_name = 6;
      Specified by:
      getBusinessName in interface TextMessageFeedItemOrBuilder
      Returns:
      The businessName.
    • getBusinessNameBytes

      public com.google.protobuf.ByteString getBusinessNameBytes()
       The business name to prepend to the message text.
       This field is required.
       
      optional string business_name = 6;
      Specified by:
      getBusinessNameBytes in interface TextMessageFeedItemOrBuilder
      Returns:
      The bytes for businessName.
    • setBusinessName

      public TextMessageFeedItem.Builder setBusinessName(String value)
       The business name to prepend to the message text.
       This field is required.
       
      optional string business_name = 6;
      Parameters:
      value - The businessName to set.
      Returns:
      This builder for chaining.
    • clearBusinessName

      public TextMessageFeedItem.Builder clearBusinessName()
       The business name to prepend to the message text.
       This field is required.
       
      optional string business_name = 6;
      Returns:
      This builder for chaining.
    • setBusinessNameBytes

      public TextMessageFeedItem.Builder setBusinessNameBytes(com.google.protobuf.ByteString value)
       The business name to prepend to the message text.
       This field is required.
       
      optional string business_name = 6;
      Parameters:
      value - The bytes for businessName to set.
      Returns:
      This builder for chaining.
    • hasCountryCode

      public boolean hasCountryCode()
       Uppercase two-letter country code of the advertiser's phone number.
       This field is required.
       
      optional string country_code = 7;
      Specified by:
      hasCountryCode in interface TextMessageFeedItemOrBuilder
      Returns:
      Whether the countryCode field is set.
    • getCountryCode

      public String getCountryCode()
       Uppercase two-letter country code of the advertiser's phone number.
       This field is required.
       
      optional string country_code = 7;
      Specified by:
      getCountryCode in interface TextMessageFeedItemOrBuilder
      Returns:
      The countryCode.
    • getCountryCodeBytes

      public com.google.protobuf.ByteString getCountryCodeBytes()
       Uppercase two-letter country code of the advertiser's phone number.
       This field is required.
       
      optional string country_code = 7;
      Specified by:
      getCountryCodeBytes in interface TextMessageFeedItemOrBuilder
      Returns:
      The bytes for countryCode.
    • setCountryCode

      public TextMessageFeedItem.Builder setCountryCode(String value)
       Uppercase two-letter country code of the advertiser's phone number.
       This field is required.
       
      optional string country_code = 7;
      Parameters:
      value - The countryCode to set.
      Returns:
      This builder for chaining.
    • clearCountryCode

      public TextMessageFeedItem.Builder clearCountryCode()
       Uppercase two-letter country code of the advertiser's phone number.
       This field is required.
       
      optional string country_code = 7;
      Returns:
      This builder for chaining.
    • setCountryCodeBytes

      public TextMessageFeedItem.Builder setCountryCodeBytes(com.google.protobuf.ByteString value)
       Uppercase two-letter country code of the advertiser's phone number.
       This field is required.
       
      optional string country_code = 7;
      Parameters:
      value - The bytes for countryCode to set.
      Returns:
      This builder for chaining.
    • hasPhoneNumber

      public boolean hasPhoneNumber()
       The advertiser's phone number the message will be sent to. Required.
       
      optional string phone_number = 8;
      Specified by:
      hasPhoneNumber in interface TextMessageFeedItemOrBuilder
      Returns:
      Whether the phoneNumber field is set.
    • getPhoneNumber

      public String getPhoneNumber()
       The advertiser's phone number the message will be sent to. Required.
       
      optional string phone_number = 8;
      Specified by:
      getPhoneNumber in interface TextMessageFeedItemOrBuilder
      Returns:
      The phoneNumber.
    • getPhoneNumberBytes

      public com.google.protobuf.ByteString getPhoneNumberBytes()
       The advertiser's phone number the message will be sent to. Required.
       
      optional string phone_number = 8;
      Specified by:
      getPhoneNumberBytes in interface TextMessageFeedItemOrBuilder
      Returns:
      The bytes for phoneNumber.
    • setPhoneNumber

      public TextMessageFeedItem.Builder setPhoneNumber(String value)
       The advertiser's phone number the message will be sent to. Required.
       
      optional string phone_number = 8;
      Parameters:
      value - The phoneNumber to set.
      Returns:
      This builder for chaining.
    • clearPhoneNumber

      public TextMessageFeedItem.Builder clearPhoneNumber()
       The advertiser's phone number the message will be sent to. Required.
       
      optional string phone_number = 8;
      Returns:
      This builder for chaining.
    • setPhoneNumberBytes

      public TextMessageFeedItem.Builder setPhoneNumberBytes(com.google.protobuf.ByteString value)
       The advertiser's phone number the message will be sent to. Required.
       
      optional string phone_number = 8;
      Parameters:
      value - The bytes for phoneNumber to set.
      Returns:
      This builder for chaining.
    • hasText

      public boolean hasText()
       The text to show in the ad.
       This field is required.
       
      optional string text = 9;
      Specified by:
      hasText in interface TextMessageFeedItemOrBuilder
      Returns:
      Whether the text field is set.
    • getText

      public String getText()
       The text to show in the ad.
       This field is required.
       
      optional string text = 9;
      Specified by:
      getText in interface TextMessageFeedItemOrBuilder
      Returns:
      The text.
    • getTextBytes

      public com.google.protobuf.ByteString getTextBytes()
       The text to show in the ad.
       This field is required.
       
      optional string text = 9;
      Specified by:
      getTextBytes in interface TextMessageFeedItemOrBuilder
      Returns:
      The bytes for text.
    • setText

      public TextMessageFeedItem.Builder setText(String value)
       The text to show in the ad.
       This field is required.
       
      optional string text = 9;
      Parameters:
      value - The text to set.
      Returns:
      This builder for chaining.
    • clearText

      public TextMessageFeedItem.Builder clearText()
       The text to show in the ad.
       This field is required.
       
      optional string text = 9;
      Returns:
      This builder for chaining.
    • setTextBytes

      public TextMessageFeedItem.Builder setTextBytes(com.google.protobuf.ByteString value)
       The text to show in the ad.
       This field is required.
       
      optional string text = 9;
      Parameters:
      value - The bytes for text to set.
      Returns:
      This builder for chaining.
    • hasExtensionText

      public boolean hasExtensionText()
       The message extension_text populated in the messaging app.
       
      optional string extension_text = 10;
      Specified by:
      hasExtensionText in interface TextMessageFeedItemOrBuilder
      Returns:
      Whether the extensionText field is set.
    • getExtensionText

      public String getExtensionText()
       The message extension_text populated in the messaging app.
       
      optional string extension_text = 10;
      Specified by:
      getExtensionText in interface TextMessageFeedItemOrBuilder
      Returns:
      The extensionText.
    • getExtensionTextBytes

      public com.google.protobuf.ByteString getExtensionTextBytes()
       The message extension_text populated in the messaging app.
       
      optional string extension_text = 10;
      Specified by:
      getExtensionTextBytes in interface TextMessageFeedItemOrBuilder
      Returns:
      The bytes for extensionText.
    • setExtensionText

      public TextMessageFeedItem.Builder setExtensionText(String value)
       The message extension_text populated in the messaging app.
       
      optional string extension_text = 10;
      Parameters:
      value - The extensionText to set.
      Returns:
      This builder for chaining.
    • clearExtensionText

      public TextMessageFeedItem.Builder clearExtensionText()
       The message extension_text populated in the messaging app.
       
      optional string extension_text = 10;
      Returns:
      This builder for chaining.
    • setExtensionTextBytes

      public TextMessageFeedItem.Builder setExtensionTextBytes(com.google.protobuf.ByteString value)
       The message extension_text populated in the messaging app.
       
      optional string extension_text = 10;
      Parameters:
      value - The bytes for extensionText to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final TextMessageFeedItem.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<TextMessageFeedItem.Builder>
    • mergeUnknownFields

      public final TextMessageFeedItem.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<TextMessageFeedItem.Builder>