Class ExpandedTextAdInfo.Builder

  • All Implemented Interfaces:
    ExpandedTextAdInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    ExpandedTextAdInfo

    public static final class ExpandedTextAdInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ExpandedTextAdInfo.Builder>
    implements ExpandedTextAdInfoOrBuilder
     An expanded text ad.
     
    Protobuf type google.ads.googleads.v10.common.ExpandedTextAdInfo
    • 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<ExpandedTextAdInfo.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public ExpandedTextAdInfo.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<ExpandedTextAdInfo.Builder>
        Throws:
        java.io.IOException
      • hasHeadlinePart1

        public boolean hasHeadlinePart1()
         The first part of the ad's headline.
         
        optional string headline_part1 = 8;
        Specified by:
        hasHeadlinePart1 in interface ExpandedTextAdInfoOrBuilder
        Returns:
        Whether the headlinePart1 field is set.
      • getHeadlinePart1

        public java.lang.String getHeadlinePart1()
         The first part of the ad's headline.
         
        optional string headline_part1 = 8;
        Specified by:
        getHeadlinePart1 in interface ExpandedTextAdInfoOrBuilder
        Returns:
        The headlinePart1.
      • getHeadlinePart1Bytes

        public com.google.protobuf.ByteString getHeadlinePart1Bytes()
         The first part of the ad's headline.
         
        optional string headline_part1 = 8;
        Specified by:
        getHeadlinePart1Bytes in interface ExpandedTextAdInfoOrBuilder
        Returns:
        The bytes for headlinePart1.
      • setHeadlinePart1

        public ExpandedTextAdInfo.Builder setHeadlinePart1​(java.lang.String value)
         The first part of the ad's headline.
         
        optional string headline_part1 = 8;
        Parameters:
        value - The headlinePart1 to set.
        Returns:
        This builder for chaining.
      • clearHeadlinePart1

        public ExpandedTextAdInfo.Builder clearHeadlinePart1()
         The first part of the ad's headline.
         
        optional string headline_part1 = 8;
        Returns:
        This builder for chaining.
      • setHeadlinePart1Bytes

        public ExpandedTextAdInfo.Builder setHeadlinePart1Bytes​(com.google.protobuf.ByteString value)
         The first part of the ad's headline.
         
        optional string headline_part1 = 8;
        Parameters:
        value - The bytes for headlinePart1 to set.
        Returns:
        This builder for chaining.
      • hasHeadlinePart2

        public boolean hasHeadlinePart2()
         The second part of the ad's headline.
         
        optional string headline_part2 = 9;
        Specified by:
        hasHeadlinePart2 in interface ExpandedTextAdInfoOrBuilder
        Returns:
        Whether the headlinePart2 field is set.
      • getHeadlinePart2

        public java.lang.String getHeadlinePart2()
         The second part of the ad's headline.
         
        optional string headline_part2 = 9;
        Specified by:
        getHeadlinePart2 in interface ExpandedTextAdInfoOrBuilder
        Returns:
        The headlinePart2.
      • getHeadlinePart2Bytes

        public com.google.protobuf.ByteString getHeadlinePart2Bytes()
         The second part of the ad's headline.
         
        optional string headline_part2 = 9;
        Specified by:
        getHeadlinePart2Bytes in interface ExpandedTextAdInfoOrBuilder
        Returns:
        The bytes for headlinePart2.
      • setHeadlinePart2

        public ExpandedTextAdInfo.Builder setHeadlinePart2​(java.lang.String value)
         The second part of the ad's headline.
         
        optional string headline_part2 = 9;
        Parameters:
        value - The headlinePart2 to set.
        Returns:
        This builder for chaining.
      • clearHeadlinePart2

        public ExpandedTextAdInfo.Builder clearHeadlinePart2()
         The second part of the ad's headline.
         
        optional string headline_part2 = 9;
        Returns:
        This builder for chaining.
      • setHeadlinePart2Bytes

        public ExpandedTextAdInfo.Builder setHeadlinePart2Bytes​(com.google.protobuf.ByteString value)
         The second part of the ad's headline.
         
        optional string headline_part2 = 9;
        Parameters:
        value - The bytes for headlinePart2 to set.
        Returns:
        This builder for chaining.
      • hasHeadlinePart3

        public boolean hasHeadlinePart3()
         The third part of the ad's headline.
         
        optional string headline_part3 = 10;
        Specified by:
        hasHeadlinePart3 in interface ExpandedTextAdInfoOrBuilder
        Returns:
        Whether the headlinePart3 field is set.
      • getHeadlinePart3

        public java.lang.String getHeadlinePart3()
         The third part of the ad's headline.
         
        optional string headline_part3 = 10;
        Specified by:
        getHeadlinePart3 in interface ExpandedTextAdInfoOrBuilder
        Returns:
        The headlinePart3.
      • getHeadlinePart3Bytes

        public com.google.protobuf.ByteString getHeadlinePart3Bytes()
         The third part of the ad's headline.
         
        optional string headline_part3 = 10;
        Specified by:
        getHeadlinePart3Bytes in interface ExpandedTextAdInfoOrBuilder
        Returns:
        The bytes for headlinePart3.
      • setHeadlinePart3

        public ExpandedTextAdInfo.Builder setHeadlinePart3​(java.lang.String value)
         The third part of the ad's headline.
         
        optional string headline_part3 = 10;
        Parameters:
        value - The headlinePart3 to set.
        Returns:
        This builder for chaining.
      • clearHeadlinePart3

        public ExpandedTextAdInfo.Builder clearHeadlinePart3()
         The third part of the ad's headline.
         
        optional string headline_part3 = 10;
        Returns:
        This builder for chaining.
      • setHeadlinePart3Bytes

        public ExpandedTextAdInfo.Builder setHeadlinePart3Bytes​(com.google.protobuf.ByteString value)
         The third part of the ad's headline.
         
        optional string headline_part3 = 10;
        Parameters:
        value - The bytes for headlinePart3 to set.
        Returns:
        This builder for chaining.
      • hasDescription

        public boolean hasDescription()
         The description of the ad.
         
        optional string description = 11;
        Specified by:
        hasDescription in interface ExpandedTextAdInfoOrBuilder
        Returns:
        Whether the description field is set.
      • getDescription

        public java.lang.String getDescription()
         The description of the ad.
         
        optional string description = 11;
        Specified by:
        getDescription in interface ExpandedTextAdInfoOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         The description of the ad.
         
        optional string description = 11;
        Specified by:
        getDescriptionBytes in interface ExpandedTextAdInfoOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public ExpandedTextAdInfo.Builder setDescription​(java.lang.String value)
         The description of the ad.
         
        optional string description = 11;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public ExpandedTextAdInfo.Builder clearDescription()
         The description of the ad.
         
        optional string description = 11;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public ExpandedTextAdInfo.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         The description of the ad.
         
        optional string description = 11;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasDescription2

        public boolean hasDescription2()
         The second description of the ad.
         
        optional string description2 = 12;
        Specified by:
        hasDescription2 in interface ExpandedTextAdInfoOrBuilder
        Returns:
        Whether the description2 field is set.
      • getDescription2

        public java.lang.String getDescription2()
         The second description of the ad.
         
        optional string description2 = 12;
        Specified by:
        getDescription2 in interface ExpandedTextAdInfoOrBuilder
        Returns:
        The description2.
      • getDescription2Bytes

        public com.google.protobuf.ByteString getDescription2Bytes()
         The second description of the ad.
         
        optional string description2 = 12;
        Specified by:
        getDescription2Bytes in interface ExpandedTextAdInfoOrBuilder
        Returns:
        The bytes for description2.
      • setDescription2

        public ExpandedTextAdInfo.Builder setDescription2​(java.lang.String value)
         The second description of the ad.
         
        optional string description2 = 12;
        Parameters:
        value - The description2 to set.
        Returns:
        This builder for chaining.
      • clearDescription2

        public ExpandedTextAdInfo.Builder clearDescription2()
         The second description of the ad.
         
        optional string description2 = 12;
        Returns:
        This builder for chaining.
      • setDescription2Bytes

        public ExpandedTextAdInfo.Builder setDescription2Bytes​(com.google.protobuf.ByteString value)
         The second description of the ad.
         
        optional string description2 = 12;
        Parameters:
        value - The bytes for description2 to set.
        Returns:
        This builder for chaining.
      • hasPath1

        public boolean hasPath1()
         The text that can appear alongside the ad's displayed URL.
         
        optional string path1 = 13;
        Specified by:
        hasPath1 in interface ExpandedTextAdInfoOrBuilder
        Returns:
        Whether the path1 field is set.
      • getPath1

        public java.lang.String getPath1()
         The text that can appear alongside the ad's displayed URL.
         
        optional string path1 = 13;
        Specified by:
        getPath1 in interface ExpandedTextAdInfoOrBuilder
        Returns:
        The path1.
      • getPath1Bytes

        public com.google.protobuf.ByteString getPath1Bytes()
         The text that can appear alongside the ad's displayed URL.
         
        optional string path1 = 13;
        Specified by:
        getPath1Bytes in interface ExpandedTextAdInfoOrBuilder
        Returns:
        The bytes for path1.
      • setPath1

        public ExpandedTextAdInfo.Builder setPath1​(java.lang.String value)
         The text that can appear alongside the ad's displayed URL.
         
        optional string path1 = 13;
        Parameters:
        value - The path1 to set.
        Returns:
        This builder for chaining.
      • clearPath1

        public ExpandedTextAdInfo.Builder clearPath1()
         The text that can appear alongside the ad's displayed URL.
         
        optional string path1 = 13;
        Returns:
        This builder for chaining.
      • setPath1Bytes

        public ExpandedTextAdInfo.Builder setPath1Bytes​(com.google.protobuf.ByteString value)
         The text that can appear alongside the ad's displayed URL.
         
        optional string path1 = 13;
        Parameters:
        value - The bytes for path1 to set.
        Returns:
        This builder for chaining.
      • hasPath2

        public boolean hasPath2()
         Additional text that can appear alongside the ad's displayed URL.
         
        optional string path2 = 14;
        Specified by:
        hasPath2 in interface ExpandedTextAdInfoOrBuilder
        Returns:
        Whether the path2 field is set.
      • getPath2

        public java.lang.String getPath2()
         Additional text that can appear alongside the ad's displayed URL.
         
        optional string path2 = 14;
        Specified by:
        getPath2 in interface ExpandedTextAdInfoOrBuilder
        Returns:
        The path2.
      • getPath2Bytes

        public com.google.protobuf.ByteString getPath2Bytes()
         Additional text that can appear alongside the ad's displayed URL.
         
        optional string path2 = 14;
        Specified by:
        getPath2Bytes in interface ExpandedTextAdInfoOrBuilder
        Returns:
        The bytes for path2.
      • setPath2

        public ExpandedTextAdInfo.Builder setPath2​(java.lang.String value)
         Additional text that can appear alongside the ad's displayed URL.
         
        optional string path2 = 14;
        Parameters:
        value - The path2 to set.
        Returns:
        This builder for chaining.
      • clearPath2

        public ExpandedTextAdInfo.Builder clearPath2()
         Additional text that can appear alongside the ad's displayed URL.
         
        optional string path2 = 14;
        Returns:
        This builder for chaining.
      • setPath2Bytes

        public ExpandedTextAdInfo.Builder setPath2Bytes​(com.google.protobuf.ByteString value)
         Additional text that can appear alongside the ad's displayed URL.
         
        optional string path2 = 14;
        Parameters:
        value - The bytes for path2 to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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