Class PolicyTopicEvidence.WebsiteList.Builder

  • All Implemented Interfaces:
    PolicyTopicEvidence.WebsiteListOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    PolicyTopicEvidence.WebsiteList

    public static final class PolicyTopicEvidence.WebsiteList.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<PolicyTopicEvidence.WebsiteList.Builder>
    implements PolicyTopicEvidence.WebsiteListOrBuilder
     A list of websites that caused a policy finding. Used for
     ONE_WEBSITE_PER_AD_GROUP policy topic, for example. In case there are more
     than five websites, only the top five (those that appear in resources the
     most) will be listed here.
     
    Protobuf type google.ads.googleads.v14.common.PolicyTopicEvidence.WebsiteList
    • Method Detail

      • 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<PolicyTopicEvidence.WebsiteList.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<PolicyTopicEvidence.WebsiteList.Builder>
      • getDefaultInstanceForType

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

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

        public PolicyTopicEvidence.WebsiteList buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public PolicyTopicEvidence.WebsiteList.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                          throws java.io.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<PolicyTopicEvidence.WebsiteList.Builder>
        Throws:
        java.io.IOException
      • getWebsitesList

        public com.google.protobuf.ProtocolStringList getWebsitesList()
         Websites that caused the policy finding.
         
        repeated string websites = 2;
        Specified by:
        getWebsitesList in interface PolicyTopicEvidence.WebsiteListOrBuilder
        Returns:
        A list containing the websites.
      • getWebsites

        public java.lang.String getWebsites​(int index)
         Websites that caused the policy finding.
         
        repeated string websites = 2;
        Specified by:
        getWebsites in interface PolicyTopicEvidence.WebsiteListOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The websites at the given index.
      • getWebsitesBytes

        public com.google.protobuf.ByteString getWebsitesBytes​(int index)
         Websites that caused the policy finding.
         
        repeated string websites = 2;
        Specified by:
        getWebsitesBytes in interface PolicyTopicEvidence.WebsiteListOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the websites at the given index.
      • setWebsites

        public PolicyTopicEvidence.WebsiteList.Builder setWebsites​(int index,
                                                                   java.lang.String value)
         Websites that caused the policy finding.
         
        repeated string websites = 2;
        Parameters:
        index - The index to set the value at.
        value - The websites to set.
        Returns:
        This builder for chaining.
      • addWebsites

        public PolicyTopicEvidence.WebsiteList.Builder addWebsites​(java.lang.String value)
         Websites that caused the policy finding.
         
        repeated string websites = 2;
        Parameters:
        value - The websites to add.
        Returns:
        This builder for chaining.
      • addAllWebsites

        public PolicyTopicEvidence.WebsiteList.Builder addAllWebsites​(java.lang.Iterable<java.lang.String> values)
         Websites that caused the policy finding.
         
        repeated string websites = 2;
        Parameters:
        values - The websites to add.
        Returns:
        This builder for chaining.
      • addWebsitesBytes

        public PolicyTopicEvidence.WebsiteList.Builder addWebsitesBytes​(com.google.protobuf.ByteString value)
         Websites that caused the policy finding.
         
        repeated string websites = 2;
        Parameters:
        value - The bytes of the websites to add.
        Returns:
        This builder for chaining.