Class DisplayCallToAction.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DisplayCallToAction.Builder>
-
- com.google.ads.googleads.v10.common.DisplayCallToAction.Builder
-
- All Implemented Interfaces:
DisplayCallToActionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- DisplayCallToAction
public static final class DisplayCallToAction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DisplayCallToAction.Builder> implements DisplayCallToActionOrBuilder
Data for display call to action. The call to action is a piece of the ad that prompts the user to do something. Like clicking a link or making a phone call.
Protobuf typegoogle.ads.googleads.v10.common.DisplayCallToAction
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DisplayCallToAction.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)DisplayCallToActionbuild()DisplayCallToActionbuildPartial()DisplayCallToAction.Builderclear()DisplayCallToAction.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DisplayCallToAction.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DisplayCallToAction.BuilderclearText()Text for the display-call-to-action.DisplayCallToAction.BuilderclearTextColor()Text color for the display-call-to-action in hexadecimal, e.g.DisplayCallToAction.BuilderclearUrlCollectionId()Identifies the URL collection in the `ad.url_collections` field.DisplayCallToAction.Builderclone()DisplayCallToActiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetText()Text for the display-call-to-action.com.google.protobuf.ByteStringgetTextBytes()Text for the display-call-to-action.java.lang.StringgetTextColor()Text color for the display-call-to-action in hexadecimal, e.g.com.google.protobuf.ByteStringgetTextColorBytes()Text color for the display-call-to-action in hexadecimal, e.g.java.lang.StringgetUrlCollectionId()Identifies the URL collection in the `ad.url_collections` field.com.google.protobuf.ByteStringgetUrlCollectionIdBytes()Identifies the URL collection in the `ad.url_collections` field.booleanhasText()Text for the display-call-to-action.booleanhasTextColor()Text color for the display-call-to-action in hexadecimal, e.g.booleanhasUrlCollectionId()Identifies the URL collection in the `ad.url_collections` field.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DisplayCallToAction.BuildermergeFrom(DisplayCallToAction other)DisplayCallToAction.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DisplayCallToAction.BuildermergeFrom(com.google.protobuf.Message other)DisplayCallToAction.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DisplayCallToAction.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)DisplayCallToAction.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)DisplayCallToAction.BuildersetText(java.lang.String value)Text for the display-call-to-action.DisplayCallToAction.BuildersetTextBytes(com.google.protobuf.ByteString value)Text for the display-call-to-action.DisplayCallToAction.BuildersetTextColor(java.lang.String value)Text color for the display-call-to-action in hexadecimal, e.g.DisplayCallToAction.BuildersetTextColorBytes(com.google.protobuf.ByteString value)Text color for the display-call-to-action in hexadecimal, e.g.DisplayCallToAction.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DisplayCallToAction.BuildersetUrlCollectionId(java.lang.String value)Identifies the URL collection in the `ad.url_collections` field.DisplayCallToAction.BuildersetUrlCollectionIdBytes(com.google.protobuf.ByteString value)Identifies the URL collection in the `ad.url_collections` field.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
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<DisplayCallToAction.Builder>
-
clear
public DisplayCallToAction.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<DisplayCallToAction.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<DisplayCallToAction.Builder>
-
getDefaultInstanceForType
public DisplayCallToAction getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DisplayCallToAction build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DisplayCallToAction buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DisplayCallToAction.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<DisplayCallToAction.Builder>
-
setField
public DisplayCallToAction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DisplayCallToAction.Builder>
-
clearField
public DisplayCallToAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DisplayCallToAction.Builder>
-
clearOneof
public DisplayCallToAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DisplayCallToAction.Builder>
-
setRepeatedField
public DisplayCallToAction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DisplayCallToAction.Builder>
-
addRepeatedField
public DisplayCallToAction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DisplayCallToAction.Builder>
-
mergeFrom
public DisplayCallToAction.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DisplayCallToAction.Builder>
-
mergeFrom
public DisplayCallToAction.Builder mergeFrom(DisplayCallToAction other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<DisplayCallToAction.Builder>
-
mergeFrom
public DisplayCallToAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DisplayCallToAction.Builder>- Throws:
java.io.IOException
-
hasText
public boolean hasText()
Text for the display-call-to-action.
optional string text = 5;- Specified by:
hasTextin interfaceDisplayCallToActionOrBuilder- Returns:
- Whether the text field is set.
-
getText
public java.lang.String getText()
Text for the display-call-to-action.
optional string text = 5;- Specified by:
getTextin interfaceDisplayCallToActionOrBuilder- Returns:
- The text.
-
getTextBytes
public com.google.protobuf.ByteString getTextBytes()
Text for the display-call-to-action.
optional string text = 5;- Specified by:
getTextBytesin interfaceDisplayCallToActionOrBuilder- Returns:
- The bytes for text.
-
setText
public DisplayCallToAction.Builder setText(java.lang.String value)
Text for the display-call-to-action.
optional string text = 5;- Parameters:
value- The text to set.- Returns:
- This builder for chaining.
-
clearText
public DisplayCallToAction.Builder clearText()
Text for the display-call-to-action.
optional string text = 5;- Returns:
- This builder for chaining.
-
setTextBytes
public DisplayCallToAction.Builder setTextBytes(com.google.protobuf.ByteString value)
Text for the display-call-to-action.
optional string text = 5;- Parameters:
value- The bytes for text to set.- Returns:
- This builder for chaining.
-
hasTextColor
public boolean hasTextColor()
Text color for the display-call-to-action in hexadecimal, e.g. #ffffff for white.
optional string text_color = 6;- Specified by:
hasTextColorin interfaceDisplayCallToActionOrBuilder- Returns:
- Whether the textColor field is set.
-
getTextColor
public java.lang.String getTextColor()
Text color for the display-call-to-action in hexadecimal, e.g. #ffffff for white.
optional string text_color = 6;- Specified by:
getTextColorin interfaceDisplayCallToActionOrBuilder- Returns:
- The textColor.
-
getTextColorBytes
public com.google.protobuf.ByteString getTextColorBytes()
Text color for the display-call-to-action in hexadecimal, e.g. #ffffff for white.
optional string text_color = 6;- Specified by:
getTextColorBytesin interfaceDisplayCallToActionOrBuilder- Returns:
- The bytes for textColor.
-
setTextColor
public DisplayCallToAction.Builder setTextColor(java.lang.String value)
Text color for the display-call-to-action in hexadecimal, e.g. #ffffff for white.
optional string text_color = 6;- Parameters:
value- The textColor to set.- Returns:
- This builder for chaining.
-
clearTextColor
public DisplayCallToAction.Builder clearTextColor()
Text color for the display-call-to-action in hexadecimal, e.g. #ffffff for white.
optional string text_color = 6;- Returns:
- This builder for chaining.
-
setTextColorBytes
public DisplayCallToAction.Builder setTextColorBytes(com.google.protobuf.ByteString value)
Text color for the display-call-to-action in hexadecimal, e.g. #ffffff for white.
optional string text_color = 6;- Parameters:
value- The bytes for textColor to set.- Returns:
- This builder for chaining.
-
hasUrlCollectionId
public boolean hasUrlCollectionId()
Identifies the URL collection in the `ad.url_collections` field. If not set, the URL defaults to `final_url`.
optional string url_collection_id = 7;- Specified by:
hasUrlCollectionIdin interfaceDisplayCallToActionOrBuilder- Returns:
- Whether the urlCollectionId field is set.
-
getUrlCollectionId
public java.lang.String getUrlCollectionId()
Identifies the URL collection in the `ad.url_collections` field. If not set, the URL defaults to `final_url`.
optional string url_collection_id = 7;- Specified by:
getUrlCollectionIdin interfaceDisplayCallToActionOrBuilder- Returns:
- The urlCollectionId.
-
getUrlCollectionIdBytes
public com.google.protobuf.ByteString getUrlCollectionIdBytes()
Identifies the URL collection in the `ad.url_collections` field. If not set, the URL defaults to `final_url`.
optional string url_collection_id = 7;- Specified by:
getUrlCollectionIdBytesin interfaceDisplayCallToActionOrBuilder- Returns:
- The bytes for urlCollectionId.
-
setUrlCollectionId
public DisplayCallToAction.Builder setUrlCollectionId(java.lang.String value)
Identifies the URL collection in the `ad.url_collections` field. If not set, the URL defaults to `final_url`.
optional string url_collection_id = 7;- Parameters:
value- The urlCollectionId to set.- Returns:
- This builder for chaining.
-
clearUrlCollectionId
public DisplayCallToAction.Builder clearUrlCollectionId()
Identifies the URL collection in the `ad.url_collections` field. If not set, the URL defaults to `final_url`.
optional string url_collection_id = 7;- Returns:
- This builder for chaining.
-
setUrlCollectionIdBytes
public DisplayCallToAction.Builder setUrlCollectionIdBytes(com.google.protobuf.ByteString value)
Identifies the URL collection in the `ad.url_collections` field. If not set, the URL defaults to `final_url`.
optional string url_collection_id = 7;- Parameters:
value- The bytes for urlCollectionId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final DisplayCallToAction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DisplayCallToAction.Builder>
-
mergeUnknownFields
public final DisplayCallToAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DisplayCallToAction.Builder>
-
-