Class UrlCollection.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<UrlCollection.Builder>
-
- com.google.ads.googleads.v10.common.UrlCollection.Builder
-
- All Implemented Interfaces:
UrlCollectionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- UrlCollection
public static final class UrlCollection.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UrlCollection.Builder> implements UrlCollectionOrBuilder
Collection of urls that is tagged with a unique identifier.
Protobuf typegoogle.ads.googleads.v10.common.UrlCollection
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description UrlCollection.BuilderaddAllFinalMobileUrls(java.lang.Iterable<java.lang.String> values)A list of possible final mobile URLs.UrlCollection.BuilderaddAllFinalUrls(java.lang.Iterable<java.lang.String> values)A list of possible final URLs.UrlCollection.BuilderaddFinalMobileUrls(java.lang.String value)A list of possible final mobile URLs.UrlCollection.BuilderaddFinalMobileUrlsBytes(com.google.protobuf.ByteString value)A list of possible final mobile URLs.UrlCollection.BuilderaddFinalUrls(java.lang.String value)A list of possible final URLs.UrlCollection.BuilderaddFinalUrlsBytes(com.google.protobuf.ByteString value)A list of possible final URLs.UrlCollection.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)UrlCollectionbuild()UrlCollectionbuildPartial()UrlCollection.Builderclear()UrlCollection.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)UrlCollection.BuilderclearFinalMobileUrls()A list of possible final mobile URLs.UrlCollection.BuilderclearFinalUrls()A list of possible final URLs.UrlCollection.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)UrlCollection.BuilderclearTrackingUrlTemplate()URL template for constructing a tracking URL.UrlCollection.BuilderclearUrlCollectionId()Unique identifier for this UrlCollection instance.UrlCollection.Builderclone()UrlCollectiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetFinalMobileUrls(int index)A list of possible final mobile URLs.com.google.protobuf.ByteStringgetFinalMobileUrlsBytes(int index)A list of possible final mobile URLs.intgetFinalMobileUrlsCount()A list of possible final mobile URLs.com.google.protobuf.ProtocolStringListgetFinalMobileUrlsList()A list of possible final mobile URLs.java.lang.StringgetFinalUrls(int index)A list of possible final URLs.com.google.protobuf.ByteStringgetFinalUrlsBytes(int index)A list of possible final URLs.intgetFinalUrlsCount()A list of possible final URLs.com.google.protobuf.ProtocolStringListgetFinalUrlsList()A list of possible final URLs.java.lang.StringgetTrackingUrlTemplate()URL template for constructing a tracking URL.com.google.protobuf.ByteStringgetTrackingUrlTemplateBytes()URL template for constructing a tracking URL.java.lang.StringgetUrlCollectionId()Unique identifier for this UrlCollection instance.com.google.protobuf.ByteStringgetUrlCollectionIdBytes()Unique identifier for this UrlCollection instance.booleanhasTrackingUrlTemplate()URL template for constructing a tracking URL.booleanhasUrlCollectionId()Unique identifier for this UrlCollection instance.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()UrlCollection.BuildermergeFrom(UrlCollection other)UrlCollection.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)UrlCollection.BuildermergeFrom(com.google.protobuf.Message other)UrlCollection.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)UrlCollection.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)UrlCollection.BuildersetFinalMobileUrls(int index, java.lang.String value)A list of possible final mobile URLs.UrlCollection.BuildersetFinalUrls(int index, java.lang.String value)A list of possible final URLs.UrlCollection.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)UrlCollection.BuildersetTrackingUrlTemplate(java.lang.String value)URL template for constructing a tracking URL.UrlCollection.BuildersetTrackingUrlTemplateBytes(com.google.protobuf.ByteString value)URL template for constructing a tracking URL.UrlCollection.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)UrlCollection.BuildersetUrlCollectionId(java.lang.String value)Unique identifier for this UrlCollection instance.UrlCollection.BuildersetUrlCollectionIdBytes(com.google.protobuf.ByteString value)Unique identifier for this UrlCollection instance.-
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<UrlCollection.Builder>
-
clear
public UrlCollection.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<UrlCollection.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<UrlCollection.Builder>
-
getDefaultInstanceForType
public UrlCollection getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public UrlCollection build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public UrlCollection buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public UrlCollection.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<UrlCollection.Builder>
-
setField
public UrlCollection.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<UrlCollection.Builder>
-
clearField
public UrlCollection.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<UrlCollection.Builder>
-
clearOneof
public UrlCollection.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<UrlCollection.Builder>
-
setRepeatedField
public UrlCollection.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<UrlCollection.Builder>
-
addRepeatedField
public UrlCollection.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<UrlCollection.Builder>
-
mergeFrom
public UrlCollection.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<UrlCollection.Builder>
-
mergeFrom
public UrlCollection.Builder mergeFrom(UrlCollection other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<UrlCollection.Builder>
-
mergeFrom
public UrlCollection.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<UrlCollection.Builder>- Throws:
java.io.IOException
-
hasUrlCollectionId
public boolean hasUrlCollectionId()
Unique identifier for this UrlCollection instance.
optional string url_collection_id = 5;- Specified by:
hasUrlCollectionIdin interfaceUrlCollectionOrBuilder- Returns:
- Whether the urlCollectionId field is set.
-
getUrlCollectionId
public java.lang.String getUrlCollectionId()
Unique identifier for this UrlCollection instance.
optional string url_collection_id = 5;- Specified by:
getUrlCollectionIdin interfaceUrlCollectionOrBuilder- Returns:
- The urlCollectionId.
-
getUrlCollectionIdBytes
public com.google.protobuf.ByteString getUrlCollectionIdBytes()
Unique identifier for this UrlCollection instance.
optional string url_collection_id = 5;- Specified by:
getUrlCollectionIdBytesin interfaceUrlCollectionOrBuilder- Returns:
- The bytes for urlCollectionId.
-
setUrlCollectionId
public UrlCollection.Builder setUrlCollectionId(java.lang.String value)
Unique identifier for this UrlCollection instance.
optional string url_collection_id = 5;- Parameters:
value- The urlCollectionId to set.- Returns:
- This builder for chaining.
-
clearUrlCollectionId
public UrlCollection.Builder clearUrlCollectionId()
Unique identifier for this UrlCollection instance.
optional string url_collection_id = 5;- Returns:
- This builder for chaining.
-
setUrlCollectionIdBytes
public UrlCollection.Builder setUrlCollectionIdBytes(com.google.protobuf.ByteString value)
Unique identifier for this UrlCollection instance.
optional string url_collection_id = 5;- Parameters:
value- The bytes for urlCollectionId to set.- Returns:
- This builder for chaining.
-
getFinalUrlsList
public com.google.protobuf.ProtocolStringList getFinalUrlsList()
A list of possible final URLs.
repeated string final_urls = 6;- Specified by:
getFinalUrlsListin interfaceUrlCollectionOrBuilder- Returns:
- A list containing the finalUrls.
-
getFinalUrlsCount
public int getFinalUrlsCount()
A list of possible final URLs.
repeated string final_urls = 6;- Specified by:
getFinalUrlsCountin interfaceUrlCollectionOrBuilder- Returns:
- The count of finalUrls.
-
getFinalUrls
public java.lang.String getFinalUrls(int index)
A list of possible final URLs.
repeated string final_urls = 6;- Specified by:
getFinalUrlsin interfaceUrlCollectionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The finalUrls at the given index.
-
getFinalUrlsBytes
public com.google.protobuf.ByteString getFinalUrlsBytes(int index)
A list of possible final URLs.
repeated string final_urls = 6;- Specified by:
getFinalUrlsBytesin interfaceUrlCollectionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the finalUrls at the given index.
-
setFinalUrls
public UrlCollection.Builder setFinalUrls(int index, java.lang.String value)
A list of possible final URLs.
repeated string final_urls = 6;- Parameters:
index- The index to set the value at.value- The finalUrls to set.- Returns:
- This builder for chaining.
-
addFinalUrls
public UrlCollection.Builder addFinalUrls(java.lang.String value)
A list of possible final URLs.
repeated string final_urls = 6;- Parameters:
value- The finalUrls to add.- Returns:
- This builder for chaining.
-
addAllFinalUrls
public UrlCollection.Builder addAllFinalUrls(java.lang.Iterable<java.lang.String> values)
A list of possible final URLs.
repeated string final_urls = 6;- Parameters:
values- The finalUrls to add.- Returns:
- This builder for chaining.
-
clearFinalUrls
public UrlCollection.Builder clearFinalUrls()
A list of possible final URLs.
repeated string final_urls = 6;- Returns:
- This builder for chaining.
-
addFinalUrlsBytes
public UrlCollection.Builder addFinalUrlsBytes(com.google.protobuf.ByteString value)
A list of possible final URLs.
repeated string final_urls = 6;- Parameters:
value- The bytes of the finalUrls to add.- Returns:
- This builder for chaining.
-
getFinalMobileUrlsList
public com.google.protobuf.ProtocolStringList getFinalMobileUrlsList()
A list of possible final mobile URLs.
repeated string final_mobile_urls = 7;- Specified by:
getFinalMobileUrlsListin interfaceUrlCollectionOrBuilder- Returns:
- A list containing the finalMobileUrls.
-
getFinalMobileUrlsCount
public int getFinalMobileUrlsCount()
A list of possible final mobile URLs.
repeated string final_mobile_urls = 7;- Specified by:
getFinalMobileUrlsCountin interfaceUrlCollectionOrBuilder- Returns:
- The count of finalMobileUrls.
-
getFinalMobileUrls
public java.lang.String getFinalMobileUrls(int index)
A list of possible final mobile URLs.
repeated string final_mobile_urls = 7;- Specified by:
getFinalMobileUrlsin interfaceUrlCollectionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The finalMobileUrls at the given index.
-
getFinalMobileUrlsBytes
public com.google.protobuf.ByteString getFinalMobileUrlsBytes(int index)
A list of possible final mobile URLs.
repeated string final_mobile_urls = 7;- Specified by:
getFinalMobileUrlsBytesin interfaceUrlCollectionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the finalMobileUrls at the given index.
-
setFinalMobileUrls
public UrlCollection.Builder setFinalMobileUrls(int index, java.lang.String value)
A list of possible final mobile URLs.
repeated string final_mobile_urls = 7;- Parameters:
index- The index to set the value at.value- The finalMobileUrls to set.- Returns:
- This builder for chaining.
-
addFinalMobileUrls
public UrlCollection.Builder addFinalMobileUrls(java.lang.String value)
A list of possible final mobile URLs.
repeated string final_mobile_urls = 7;- Parameters:
value- The finalMobileUrls to add.- Returns:
- This builder for chaining.
-
addAllFinalMobileUrls
public UrlCollection.Builder addAllFinalMobileUrls(java.lang.Iterable<java.lang.String> values)
A list of possible final mobile URLs.
repeated string final_mobile_urls = 7;- Parameters:
values- The finalMobileUrls to add.- Returns:
- This builder for chaining.
-
clearFinalMobileUrls
public UrlCollection.Builder clearFinalMobileUrls()
A list of possible final mobile URLs.
repeated string final_mobile_urls = 7;- Returns:
- This builder for chaining.
-
addFinalMobileUrlsBytes
public UrlCollection.Builder addFinalMobileUrlsBytes(com.google.protobuf.ByteString value)
A list of possible final mobile URLs.
repeated string final_mobile_urls = 7;- Parameters:
value- The bytes of the finalMobileUrls to add.- Returns:
- This builder for chaining.
-
hasTrackingUrlTemplate
public boolean hasTrackingUrlTemplate()
URL template for constructing a tracking URL.
optional string tracking_url_template = 8;- Specified by:
hasTrackingUrlTemplatein interfaceUrlCollectionOrBuilder- Returns:
- Whether the trackingUrlTemplate field is set.
-
getTrackingUrlTemplate
public java.lang.String getTrackingUrlTemplate()
URL template for constructing a tracking URL.
optional string tracking_url_template = 8;- Specified by:
getTrackingUrlTemplatein interfaceUrlCollectionOrBuilder- Returns:
- The trackingUrlTemplate.
-
getTrackingUrlTemplateBytes
public com.google.protobuf.ByteString getTrackingUrlTemplateBytes()
URL template for constructing a tracking URL.
optional string tracking_url_template = 8;- Specified by:
getTrackingUrlTemplateBytesin interfaceUrlCollectionOrBuilder- Returns:
- The bytes for trackingUrlTemplate.
-
setTrackingUrlTemplate
public UrlCollection.Builder setTrackingUrlTemplate(java.lang.String value)
URL template for constructing a tracking URL.
optional string tracking_url_template = 8;- Parameters:
value- The trackingUrlTemplate to set.- Returns:
- This builder for chaining.
-
clearTrackingUrlTemplate
public UrlCollection.Builder clearTrackingUrlTemplate()
URL template for constructing a tracking URL.
optional string tracking_url_template = 8;- Returns:
- This builder for chaining.
-
setTrackingUrlTemplateBytes
public UrlCollection.Builder setTrackingUrlTemplateBytes(com.google.protobuf.ByteString value)
URL template for constructing a tracking URL.
optional string tracking_url_template = 8;- Parameters:
value- The bytes for trackingUrlTemplate to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final UrlCollection.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UrlCollection.Builder>
-
mergeUnknownFields
public final UrlCollection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<UrlCollection.Builder>
-
-