Class UrlCollection.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<UrlCollection.Builder>
com.google.ads.googleads.v18.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, 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 type google.ads.googleads.v18.common.UrlCollection
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<UrlCollection.Builder>
    • clear

      public UrlCollection.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<UrlCollection.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.GeneratedMessageV3.Builder<UrlCollection.Builder>
    • getDefaultInstanceForType

      public UrlCollection getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public UrlCollection build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public UrlCollection buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public UrlCollection.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<UrlCollection.Builder>
    • setField

      public UrlCollection.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<UrlCollection.Builder>
    • clearField

      public UrlCollection.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<UrlCollection.Builder>
    • clearOneof

      public UrlCollection.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<UrlCollection.Builder>
    • setRepeatedField

      public UrlCollection.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<UrlCollection.Builder>
    • addRepeatedField

      public UrlCollection.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<UrlCollection.Builder>
    • mergeFrom

      public UrlCollection.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<UrlCollection.Builder>
    • mergeFrom

      public UrlCollection.Builder mergeFrom(UrlCollection other)
    • isInitialized

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

      public UrlCollection.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<UrlCollection.Builder>
      Throws:
      IOException
    • hasUrlCollectionId

      public boolean hasUrlCollectionId()
       Unique identifier for this UrlCollection instance.
       
      optional string url_collection_id = 5;
      Specified by:
      hasUrlCollectionId in interface UrlCollectionOrBuilder
      Returns:
      Whether the urlCollectionId field is set.
    • getUrlCollectionId

      public String getUrlCollectionId()
       Unique identifier for this UrlCollection instance.
       
      optional string url_collection_id = 5;
      Specified by:
      getUrlCollectionId in interface UrlCollectionOrBuilder
      Returns:
      The urlCollectionId.
    • getUrlCollectionIdBytes

      public com.google.protobuf.ByteString getUrlCollectionIdBytes()
       Unique identifier for this UrlCollection instance.
       
      optional string url_collection_id = 5;
      Specified by:
      getUrlCollectionIdBytes in interface UrlCollectionOrBuilder
      Returns:
      The bytes for urlCollectionId.
    • setUrlCollectionId

      public UrlCollection.Builder setUrlCollectionId(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:
      getFinalUrlsList in interface UrlCollectionOrBuilder
      Returns:
      A list containing the finalUrls.
    • getFinalUrlsCount

      public int getFinalUrlsCount()
       A list of possible final URLs.
       
      repeated string final_urls = 6;
      Specified by:
      getFinalUrlsCount in interface UrlCollectionOrBuilder
      Returns:
      The count of finalUrls.
    • getFinalUrls

      public String getFinalUrls(int index)
       A list of possible final URLs.
       
      repeated string final_urls = 6;
      Specified by:
      getFinalUrls in interface UrlCollectionOrBuilder
      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:
      getFinalUrlsBytes in interface UrlCollectionOrBuilder
      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, 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(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(Iterable<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:
      getFinalMobileUrlsList in interface UrlCollectionOrBuilder
      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:
      getFinalMobileUrlsCount in interface UrlCollectionOrBuilder
      Returns:
      The count of finalMobileUrls.
    • getFinalMobileUrls

      public String getFinalMobileUrls(int index)
       A list of possible final mobile URLs.
       
      repeated string final_mobile_urls = 7;
      Specified by:
      getFinalMobileUrls in interface UrlCollectionOrBuilder
      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:
      getFinalMobileUrlsBytes in interface UrlCollectionOrBuilder
      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, 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(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(Iterable<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:
      hasTrackingUrlTemplate in interface UrlCollectionOrBuilder
      Returns:
      Whether the trackingUrlTemplate field is set.
    • getTrackingUrlTemplate

      public String getTrackingUrlTemplate()
       URL template for constructing a tracking URL.
       
      optional string tracking_url_template = 8;
      Specified by:
      getTrackingUrlTemplate in interface UrlCollectionOrBuilder
      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:
      getTrackingUrlTemplateBytes in interface UrlCollectionOrBuilder
      Returns:
      The bytes for trackingUrlTemplate.
    • setTrackingUrlTemplate

      public UrlCollection.Builder setTrackingUrlTemplate(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:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UrlCollection.Builder>
    • mergeUnknownFields

      public final UrlCollection.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<UrlCollection.Builder>