Class 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 type google.ads.googleads.v10.common.DisplayCallToAction
    • Method Detail

      • 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<DisplayCallToAction.Builder>
      • clear

        public DisplayCallToAction.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<DisplayCallToAction.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<DisplayCallToAction.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

        public DisplayCallToAction.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<DisplayCallToAction.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        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<DisplayCallToAction.Builder>
        Throws:
        java.io.IOException
      • hasText

        public boolean hasText()
         Text for the display-call-to-action.
         
        optional string text = 5;
        Specified by:
        hasText in interface DisplayCallToActionOrBuilder
        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:
        getText in interface DisplayCallToActionOrBuilder
        Returns:
        The text.
      • getTextBytes

        public com.google.protobuf.ByteString getTextBytes()
         Text for the display-call-to-action.
         
        optional string text = 5;
        Specified by:
        getTextBytes in interface DisplayCallToActionOrBuilder
        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:
        hasTextColor in interface DisplayCallToActionOrBuilder
        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:
        getTextColor in interface DisplayCallToActionOrBuilder
        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:
        getTextColorBytes in interface DisplayCallToActionOrBuilder
        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:
        hasUrlCollectionId in interface DisplayCallToActionOrBuilder
        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:
        getUrlCollectionId in interface DisplayCallToActionOrBuilder
        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:
        getUrlCollectionIdBytes in interface DisplayCallToActionOrBuilder
        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:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DisplayCallToAction.Builder>
      • mergeUnknownFields

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