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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The business name to prepend to the message text.Uppercase two-letter country code of the advertiser's phone number.The message extension_text populated in the messaging app.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The advertiser's phone number the message will be sent to.The text to show in the ad.clone()The business name to prepend to the message text.com.google.protobuf.ByteStringThe business name to prepend to the message text.Uppercase two-letter country code of the advertiser's phone number.com.google.protobuf.ByteStringUppercase two-letter country code of the advertiser's phone number.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe message extension_text populated in the messaging app.com.google.protobuf.ByteStringThe message extension_text populated in the messaging app.The advertiser's phone number the message will be sent to.com.google.protobuf.ByteStringThe advertiser's phone number the message will be sent to.getText()The text to show in the ad.com.google.protobuf.ByteStringThe text to show in the ad.booleanThe business name to prepend to the message text.booleanUppercase two-letter country code of the advertiser's phone number.booleanThe message extension_text populated in the messaging app.booleanThe advertiser's phone number the message will be sent to.booleanhasText()The text to show in the ad.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(TextMessageFeedItem other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setBusinessName(String value) The business name to prepend to the message text.setBusinessNameBytes(com.google.protobuf.ByteString value) The business name to prepend to the message text.setCountryCode(String value) Uppercase two-letter country code of the advertiser's phone number.setCountryCodeBytes(com.google.protobuf.ByteString value) Uppercase two-letter country code of the advertiser's phone number.setExtensionText(String value) The message extension_text populated in the messaging app.setExtensionTextBytes(com.google.protobuf.ByteString value) The message extension_text populated in the messaging app.setPhoneNumber(String value) The advertiser's phone number the message will be sent to.setPhoneNumberBytes(com.google.protobuf.ByteString value) The advertiser's phone number the message will be sent to.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) The text to show in the ad.setTextBytes(com.google.protobuf.ByteString value) The text to show in the ad.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TextMessageFeedItem.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TextMessageFeedItem.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TextMessageFeedItem.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TextMessageFeedItem.Builder>
-
setField
public TextMessageFeedItem.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TextMessageFeedItem.Builder>
-
clearField
public TextMessageFeedItem.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TextMessageFeedItem.Builder>
-
clearOneof
public TextMessageFeedItem.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TextMessageFeedItem.Builder>
-
setRepeatedField
public TextMessageFeedItem.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TextMessageFeedItem.Builder>
-
addRepeatedField
public TextMessageFeedItem.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TextMessageFeedItem.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TextMessageFeedItem.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasBusinessNamein interfaceTextMessageFeedItemOrBuilder- Returns:
- Whether the businessName field is set.
-
getBusinessName
The business name to prepend to the message text. This field is required.
optional string business_name = 6;- Specified by:
getBusinessNamein interfaceTextMessageFeedItemOrBuilder- 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:
getBusinessNameBytesin interfaceTextMessageFeedItemOrBuilder- Returns:
- The bytes for businessName.
-
setBusinessName
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
The business name to prepend to the message text. This field is required.
optional string business_name = 6;- Returns:
- This builder for chaining.
-
setBusinessNameBytes
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:
hasCountryCodein interfaceTextMessageFeedItemOrBuilder- Returns:
- Whether the countryCode field is set.
-
getCountryCode
Uppercase two-letter country code of the advertiser's phone number. This field is required.
optional string country_code = 7;- Specified by:
getCountryCodein interfaceTextMessageFeedItemOrBuilder- 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:
getCountryCodeBytesin interfaceTextMessageFeedItemOrBuilder- Returns:
- The bytes for countryCode.
-
setCountryCode
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
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
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:
hasPhoneNumberin interfaceTextMessageFeedItemOrBuilder- Returns:
- Whether the phoneNumber field is set.
-
getPhoneNumber
The advertiser's phone number the message will be sent to. Required.
optional string phone_number = 8;- Specified by:
getPhoneNumberin interfaceTextMessageFeedItemOrBuilder- 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:
getPhoneNumberBytesin interfaceTextMessageFeedItemOrBuilder- Returns:
- The bytes for phoneNumber.
-
setPhoneNumber
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
The advertiser's phone number the message will be sent to. Required.
optional string phone_number = 8;- Returns:
- This builder for chaining.
-
setPhoneNumberBytes
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:
hasTextin interfaceTextMessageFeedItemOrBuilder- Returns:
- Whether the text field is set.
-
getText
The text to show in the ad. This field is required.
optional string text = 9;- Specified by:
getTextin interfaceTextMessageFeedItemOrBuilder- 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:
getTextBytesin interfaceTextMessageFeedItemOrBuilder- Returns:
- The bytes for text.
-
setText
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
The text to show in the ad. This field is required.
optional string text = 9;- Returns:
- This builder for chaining.
-
setTextBytes
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:
hasExtensionTextin interfaceTextMessageFeedItemOrBuilder- Returns:
- Whether the extensionText field is set.
-
getExtensionText
The message extension_text populated in the messaging app.
optional string extension_text = 10;- Specified by:
getExtensionTextin interfaceTextMessageFeedItemOrBuilder- 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:
getExtensionTextBytesin interfaceTextMessageFeedItemOrBuilder- Returns:
- The bytes for extensionText.
-
setExtensionText
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
The message extension_text populated in the messaging app.
optional string extension_text = 10;- Returns:
- This builder for chaining.
-
setExtensionTextBytes
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TextMessageFeedItem.Builder>
-
mergeUnknownFields
public final TextMessageFeedItem.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TextMessageFeedItem.Builder>
-