Class TagSnippet.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TagSnippet.Builder>
com.google.ads.googleads.v21.common.TagSnippet.Builder
All Implemented Interfaces:
TagSnippetOrBuilder, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, 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.GeneratedMessageV3.Builder<TagSnippet.Builder> implements TagSnippetOrBuilder
 The site tag and event snippet pair for a TrackingCodeType.
 
Protobuf type google.ads.googleads.v21.common.TagSnippet
  • Method Summary

    Modifier and Type
    Method
    Description
    addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
     
     
     
    The event snippet that works with the site tag to track actions that should be counted as conversions.
    clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
     
    The site tag that adds visitors to your basic remarketing lists and sets new cookies on your domain.
    clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
     
    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.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     
    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.
    setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
     
    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.
    setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
     
    The type of the generated tag snippets for tracking conversions.
    setTypeValue(int value)
    The type of the generated tag snippets for tracking conversions.
    setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
     

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

    getParentForChildren

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

    addExtension, addExtension, clearExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension, setExtension, setExtension

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

    getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, 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.GeneratedMessage.ExtendableMessageOrBuilder

    getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, hasExtension, hasExtension

    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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Overrides:
      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.GeneratedMessage.Builder<TagSnippet.Builder>
    • getDefaultInstanceForType

      public TagSnippet getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      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, 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, 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, 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>
    • 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.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,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.v21.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.v21.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.v21.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.v21.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.v21.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.v21.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.v21.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.v21.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.v21.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.v21.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.
    • 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>