Class TagSnippet.Builder

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

    public static final class TagSnippet.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TagSnippet.Builder>
    implements TagSnippetOrBuilder
     The site tag and event snippet pair for a TrackingCodeType.
     
    Protobuf type google.ads.googleads.v10.common.TagSnippet
    • 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<TagSnippet.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

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

        public int getTypeValue()
         The type of the generated tag snippets for tracking conversions.
         
        .google.ads.googleads.v10.enums.TrackingCodeTypeEnum.TrackingCodeType type = 1;
        Specified by:
        getTypeValue in interface TagSnippetOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public TagSnippet.Builder setTypeValue​(int value)
         The type of the generated tag snippets for tracking conversions.
         
        .google.ads.googleads.v10.enums.TrackingCodeTypeEnum.TrackingCodeType type = 1;
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • setType

        public TagSnippet.Builder setType​(TrackingCodeTypeEnum.TrackingCodeType value)
         The type of the generated tag snippets for tracking conversions.
         
        .google.ads.googleads.v10.enums.TrackingCodeTypeEnum.TrackingCodeType type = 1;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public TagSnippet.Builder clearType()
         The type of the generated tag snippets for tracking conversions.
         
        .google.ads.googleads.v10.enums.TrackingCodeTypeEnum.TrackingCodeType type = 1;
        Returns:
        This builder for chaining.
      • getPageFormatValue

        public int getPageFormatValue()
         The format of the web page where the tracking tag and snippet will be
         installed, e.g. HTML.
         
        .google.ads.googleads.v10.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat page_format = 2;
        Specified by:
        getPageFormatValue in interface TagSnippetOrBuilder
        Returns:
        The enum numeric value on the wire for pageFormat.
      • setPageFormatValue

        public TagSnippet.Builder setPageFormatValue​(int value)
         The format of the web page where the tracking tag and snippet will be
         installed, e.g. HTML.
         
        .google.ads.googleads.v10.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat page_format = 2;
        Parameters:
        value - The enum numeric value on the wire for pageFormat to set.
        Returns:
        This builder for chaining.
      • setPageFormat

        public TagSnippet.Builder setPageFormat​(TrackingCodePageFormatEnum.TrackingCodePageFormat value)
         The format of the web page where the tracking tag and snippet will be
         installed, e.g. HTML.
         
        .google.ads.googleads.v10.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat page_format = 2;
        Parameters:
        value - The pageFormat to set.
        Returns:
        This builder for chaining.
      • clearPageFormat

        public TagSnippet.Builder clearPageFormat()
         The format of the web page where the tracking tag and snippet will be
         installed, e.g. HTML.
         
        .google.ads.googleads.v10.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat page_format = 2;
        Returns:
        This builder for chaining.
      • hasGlobalSiteTag

        public boolean hasGlobalSiteTag()
         The site tag that adds visitors to your basic remarketing lists and sets
         new cookies on your domain.
         
        optional string global_site_tag = 5;
        Specified by:
        hasGlobalSiteTag in interface TagSnippetOrBuilder
        Returns:
        Whether the globalSiteTag field is set.
      • getGlobalSiteTag

        public java.lang.String getGlobalSiteTag()
         The site tag that adds visitors to your basic remarketing lists and sets
         new cookies on your domain.
         
        optional string global_site_tag = 5;
        Specified by:
        getGlobalSiteTag in interface TagSnippetOrBuilder
        Returns:
        The globalSiteTag.
      • getGlobalSiteTagBytes

        public com.google.protobuf.ByteString getGlobalSiteTagBytes()
         The site tag that adds visitors to your basic remarketing lists and sets
         new cookies on your domain.
         
        optional string global_site_tag = 5;
        Specified by:
        getGlobalSiteTagBytes in interface TagSnippetOrBuilder
        Returns:
        The bytes for globalSiteTag.
      • setGlobalSiteTag

        public TagSnippet.Builder setGlobalSiteTag​(java.lang.String value)
         The site tag that adds visitors to your basic remarketing lists and sets
         new cookies on your domain.
         
        optional string global_site_tag = 5;
        Parameters:
        value - The globalSiteTag to set.
        Returns:
        This builder for chaining.
      • clearGlobalSiteTag

        public TagSnippet.Builder clearGlobalSiteTag()
         The site tag that adds visitors to your basic remarketing lists and sets
         new cookies on your domain.
         
        optional string global_site_tag = 5;
        Returns:
        This builder for chaining.
      • setGlobalSiteTagBytes

        public TagSnippet.Builder setGlobalSiteTagBytes​(com.google.protobuf.ByteString value)
         The site tag that adds visitors to your basic remarketing lists and sets
         new cookies on your domain.
         
        optional string global_site_tag = 5;
        Parameters:
        value - The bytes for globalSiteTag to set.
        Returns:
        This builder for chaining.
      • hasEventSnippet

        public boolean hasEventSnippet()
         The event snippet that works with the site tag to track actions that
         should be counted as conversions.
         
        optional string event_snippet = 6;
        Specified by:
        hasEventSnippet in interface TagSnippetOrBuilder
        Returns:
        Whether the eventSnippet field is set.
      • getEventSnippet

        public java.lang.String getEventSnippet()
         The event snippet that works with the site tag to track actions that
         should be counted as conversions.
         
        optional string event_snippet = 6;
        Specified by:
        getEventSnippet in interface TagSnippetOrBuilder
        Returns:
        The eventSnippet.
      • getEventSnippetBytes

        public com.google.protobuf.ByteString getEventSnippetBytes()
         The event snippet that works with the site tag to track actions that
         should be counted as conversions.
         
        optional string event_snippet = 6;
        Specified by:
        getEventSnippetBytes in interface TagSnippetOrBuilder
        Returns:
        The bytes for eventSnippet.
      • setEventSnippet

        public TagSnippet.Builder setEventSnippet​(java.lang.String value)
         The event snippet that works with the site tag to track actions that
         should be counted as conversions.
         
        optional string event_snippet = 6;
        Parameters:
        value - The eventSnippet to set.
        Returns:
        This builder for chaining.
      • clearEventSnippet

        public TagSnippet.Builder clearEventSnippet()
         The event snippet that works with the site tag to track actions that
         should be counted as conversions.
         
        optional string event_snippet = 6;
        Returns:
        This builder for chaining.
      • setEventSnippetBytes

        public TagSnippet.Builder setEventSnippetBytes​(com.google.protobuf.ByteString value)
         The event snippet that works with the site tag to track actions that
         should be counted as conversions.
         
        optional string event_snippet = 6;
        Parameters:
        value - The bytes for eventSnippet to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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