Class TagSnippet.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TagSnippet.Builder>
com.google.ads.googleads.v22.common.TagSnippet.Builder
All Implemented Interfaces:
TagSnippetOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TagSnippet

public static final class TagSnippet.Builder extends com.google.protobuf.GeneratedMessage.Builder<TagSnippet.Builder> implements TagSnippetOrBuilder
 The site tag and event snippet pair for a TrackingCodeType.
 
Protobuf type google.ads.googleads.v22.common.TagSnippet
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The event snippet that works with the site tag to track actions that should be counted as conversions.
    The site tag that adds visitors to your basic remarketing lists and sets new cookies on your domain.
    The format of the web page where the tracking tag and snippet will be installed, for example, HTML.
    The type of the generated tag snippets for tracking conversions.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The event snippet that works with the site tag to track actions that should be counted as conversions.
    com.google.protobuf.ByteString
    The event snippet that works with the site tag to track actions that should be counted as conversions.
    The site tag that adds visitors to your basic remarketing lists and sets new cookies on your domain.
    com.google.protobuf.ByteString
    The site tag that adds visitors to your basic remarketing lists and sets new cookies on your domain.
    The format of the web page where the tracking tag and snippet will be installed, for example, HTML.
    int
    The format of the web page where the tracking tag and snippet will be installed, for example, HTML.
    The type of the generated tag snippets for tracking conversions.
    int
    The type of the generated tag snippets for tracking conversions.
    boolean
    The event snippet that works with the site tag to track actions that should be counted as conversions.
    boolean
    The site tag that adds visitors to your basic remarketing lists and sets new cookies on your domain.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The event snippet that works with the site tag to track actions that should be counted as conversions.
    setEventSnippetBytes(com.google.protobuf.ByteString value)
    The event snippet that works with the site tag to track actions that should be counted as conversions.
    The site tag that adds visitors to your basic remarketing lists and sets new cookies on your domain.
    setGlobalSiteTagBytes(com.google.protobuf.ByteString value)
    The site tag that adds visitors to your basic remarketing lists and sets new cookies on your domain.
    The format of the web page where the tracking tag and snippet will be installed, for example, HTML.
    setPageFormatValue(int value)
    The format of the web page where the tracking tag and snippet will be installed, for example, HTML.
    The type of the generated tag snippets for tracking conversions.
    setTypeValue(int value)
    The type of the generated tag snippets for tracking conversions.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public TagSnippet.Builder mergeFrom(TagSnippet other)
    • isInitialized

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

      public TagSnippet.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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:
      IOException
    • getTypeValue

      public int getTypeValue()
       The type of the generated tag snippets for tracking conversions.
       
      .google.ads.googleads.v22.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.v22.enums.TrackingCodeTypeEnum.TrackingCodeType type = 1;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

       The type of the generated tag snippets for tracking conversions.
       
      .google.ads.googleads.v22.enums.TrackingCodeTypeEnum.TrackingCodeType type = 1;
      Specified by:
      getType in interface TagSnippetOrBuilder
      Returns:
      The type.
    • setType

       The type of the generated tag snippets for tracking conversions.
       
      .google.ads.googleads.v22.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.v22.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, for example, HTML.
       
      .google.ads.googleads.v22.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, for example, HTML.
       
      .google.ads.googleads.v22.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat page_format = 2;
      Parameters:
      value - The enum numeric value on the wire for pageFormat to set.
      Returns:
      This builder for chaining.
    • getPageFormat

       The format of the web page where the tracking tag and snippet will be
       installed, for example, HTML.
       
      .google.ads.googleads.v22.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat page_format = 2;
      Specified by:
      getPageFormat in interface TagSnippetOrBuilder
      Returns:
      The pageFormat.
    • setPageFormat

       The format of the web page where the tracking tag and snippet will be
       installed, for example, HTML.
       
      .google.ads.googleads.v22.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, for example, HTML.
       
      .google.ads.googleads.v22.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 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(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 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(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.