Class TagSnippet.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TagSnippet.Builder>
-
- com.google.ads.googleads.v10.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,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 typegoogle.ads.googleads.v10.common.TagSnippet
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TagSnippet.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)TagSnippetbuild()TagSnippetbuildPartial()TagSnippet.Builderclear()TagSnippet.BuilderclearEventSnippet()The event snippet that works with the site tag to track actions that should be counted as conversions.TagSnippet.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TagSnippet.BuilderclearGlobalSiteTag()The site tag that adds visitors to your basic remarketing lists and sets new cookies on your domain.TagSnippet.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TagSnippet.BuilderclearPageFormat()The format of the web page where the tracking tag and snippet will be installed, e.g.TagSnippet.BuilderclearType()The type of the generated tag snippets for tracking conversions.TagSnippet.Builderclone()TagSnippetgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetEventSnippet()The event snippet that works with the site tag to track actions that should be counted as conversions.com.google.protobuf.ByteStringgetEventSnippetBytes()The event snippet that works with the site tag to track actions that should be counted as conversions.java.lang.StringgetGlobalSiteTag()The site tag that adds visitors to your basic remarketing lists and sets new cookies on your domain.com.google.protobuf.ByteStringgetGlobalSiteTagBytes()The site tag that adds visitors to your basic remarketing lists and sets new cookies on your domain.TrackingCodePageFormatEnum.TrackingCodePageFormatgetPageFormat()The format of the web page where the tracking tag and snippet will be installed, e.g.intgetPageFormatValue()The format of the web page where the tracking tag and snippet will be installed, e.g.TrackingCodeTypeEnum.TrackingCodeTypegetType()The type of the generated tag snippets for tracking conversions.intgetTypeValue()The type of the generated tag snippets for tracking conversions.booleanhasEventSnippet()The event snippet that works with the site tag to track actions that should be counted as conversions.booleanhasGlobalSiteTag()The site tag that adds visitors to your basic remarketing lists and sets new cookies on your domain.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TagSnippet.BuildermergeFrom(TagSnippet other)TagSnippet.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TagSnippet.BuildermergeFrom(com.google.protobuf.Message other)TagSnippet.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TagSnippet.BuildersetEventSnippet(java.lang.String value)The event snippet that works with the site tag to track actions that should be counted as conversions.TagSnippet.BuildersetEventSnippetBytes(com.google.protobuf.ByteString value)The event snippet that works with the site tag to track actions that should be counted as conversions.TagSnippet.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)TagSnippet.BuildersetGlobalSiteTag(java.lang.String value)The site tag that adds visitors to your basic remarketing lists and sets new cookies on your domain.TagSnippet.BuildersetGlobalSiteTagBytes(com.google.protobuf.ByteString value)The site tag that adds visitors to your basic remarketing lists and sets new cookies on your domain.TagSnippet.BuildersetPageFormat(TrackingCodePageFormatEnum.TrackingCodePageFormat value)The format of the web page where the tracking tag and snippet will be installed, e.g.TagSnippet.BuildersetPageFormatValue(int value)The format of the web page where the tracking tag and snippet will be installed, e.g.TagSnippet.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)TagSnippet.BuildersetType(TrackingCodeTypeEnum.TrackingCodeType value)The type of the generated tag snippets for tracking conversions.TagSnippet.BuildersetTypeValue(int value)The type of the generated tag snippets for tracking conversions.TagSnippet.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TagSnippet.Builder>
-
clear
public TagSnippet.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<TagSnippet.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<TagSnippet.Builder>
-
getDefaultInstanceForType
public TagSnippet getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TagSnippet build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TagSnippet buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TagSnippet.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TagSnippet.Builder>
-
setField
public TagSnippet.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TagSnippet.Builder>
-
clearField
public TagSnippet.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TagSnippet.Builder>
-
clearOneof
public TagSnippet.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TagSnippet.Builder>
-
addRepeatedField
public TagSnippet.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TagSnippet.Builder>
-
mergeFrom
public TagSnippet.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TagSnippet.Builder>
-
mergeFrom
public TagSnippet.Builder mergeFrom(TagSnippet other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getTypeValuein interfaceTagSnippetOrBuilder- 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.
-
getType
public TrackingCodeTypeEnum.TrackingCodeType getType()
The type of the generated tag snippets for tracking conversions.
.google.ads.googleads.v10.enums.TrackingCodeTypeEnum.TrackingCodeType type = 1;- Specified by:
getTypein interfaceTagSnippetOrBuilder- Returns:
- The type.
-
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:
getPageFormatValuein interfaceTagSnippetOrBuilder- 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.
-
getPageFormat
public TrackingCodePageFormatEnum.TrackingCodePageFormat getPageFormat()
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:
getPageFormatin interfaceTagSnippetOrBuilder- Returns:
- The pageFormat.
-
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:
hasGlobalSiteTagin interfaceTagSnippetOrBuilder- 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:
getGlobalSiteTagin interfaceTagSnippetOrBuilder- 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:
getGlobalSiteTagBytesin interfaceTagSnippetOrBuilder- 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:
hasEventSnippetin interfaceTagSnippetOrBuilder- 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:
getEventSnippetin interfaceTagSnippetOrBuilder- 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:
getEventSnippetBytesin interfaceTagSnippetOrBuilder- 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TagSnippet.Builder>
-
mergeUnknownFields
public final TagSnippet.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TagSnippet.Builder>
-
-