Class TagSnippet.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<TagSnippet.Builder>
com.google.ads.googleads.v18.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.GeneratedMessageV3.Builder<TagSnippet.Builder>
implements TagSnippetOrBuilder
The site tag and event snippet pair for a TrackingCodeType.Protobuf type
google.ads.googleads.v18.common.TagSnippet-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()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.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe event snippet that works with the site tag to track actions that should be counted as conversions.com.google.protobuf.ByteStringThe 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.ByteStringThe 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.intThe format of the web page where the tracking tag and snippet will be installed, for example, HTML.getType()The type of the generated tag snippets for tracking conversions.intThe type of the generated tag snippets for tracking conversions.booleanThe event snippet that works with the site tag to track actions that should be counted as conversions.booleanThe site tag that adds visitors to your basic remarketing lists and sets new cookies on your domain.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(TagSnippet other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final TagSnippet.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setEventSnippet(String value) 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.setGlobalSiteTag(String 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.final 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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TagSnippet.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TagSnippet.Builder>
-
clearOneof
- 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, 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, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TagSnippet.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TagSnippet.Builder>
-
mergeFrom
-
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 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:
IOException
-
getTypeValue
public int getTypeValue()The type of the generated tag snippets for tracking conversions.
.google.ads.googleads.v18.enums.TrackingCodeTypeEnum.TrackingCodeType type = 1;- Specified by:
getTypeValuein interfaceTagSnippetOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
The type of the generated tag snippets for tracking conversions.
.google.ads.googleads.v18.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.v18.enums.TrackingCodeTypeEnum.TrackingCodeType type = 1;- Specified by:
getTypein interfaceTagSnippetOrBuilder- Returns:
- The type.
-
setType
The type of the generated tag snippets for tracking conversions.
.google.ads.googleads.v18.enums.TrackingCodeTypeEnum.TrackingCodeType type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
The type of the generated tag snippets for tracking conversions.
.google.ads.googleads.v18.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.v18.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat page_format = 2;- Specified by:
getPageFormatValuein interfaceTagSnippetOrBuilder- Returns:
- The enum numeric value on the wire for pageFormat.
-
setPageFormatValue
The format of the web page where the tracking tag and snippet will be installed, for example, HTML.
.google.ads.googleads.v18.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.v18.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat page_format = 2;- Specified by:
getPageFormatin interfaceTagSnippetOrBuilder- 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.v18.enums.TrackingCodePageFormatEnum.TrackingCodePageFormat page_format = 2;- Parameters:
value- The pageFormat to set.- Returns:
- This builder for chaining.
-
clearPageFormat
The format of the web page where the tracking tag and snippet will be installed, for example, HTML.
.google.ads.googleads.v18.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
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
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
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
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
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
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
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
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
- 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>
-