Class WebpageInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<WebpageInfo.Builder>
com.google.ads.googleads.v18.common.WebpageInfo.Builder
All Implemented Interfaces:
WebpageInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
WebpageInfo

public static final class WebpageInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WebpageInfo.Builder> implements WebpageInfoOrBuilder
 Represents a criterion for targeting webpages of an advertiser's website.
 
Protobuf type google.ads.googleads.v18.common.WebpageInfo
  • 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<WebpageInfo.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public WebpageInfo.Builder mergeFrom(WebpageInfo other)
    • isInitialized

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

      public WebpageInfo.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<WebpageInfo.Builder>
      Throws:
      IOException
    • hasCriterionName

      public boolean hasCriterionName()
       The name of the criterion that is defined by this parameter. The name value
       will be used for identifying, sorting and filtering criteria with this type
       of parameters.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      optional string criterion_name = 3;
      Specified by:
      hasCriterionName in interface WebpageInfoOrBuilder
      Returns:
      Whether the criterionName field is set.
    • getCriterionName

      public String getCriterionName()
       The name of the criterion that is defined by this parameter. The name value
       will be used for identifying, sorting and filtering criteria with this type
       of parameters.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      optional string criterion_name = 3;
      Specified by:
      getCriterionName in interface WebpageInfoOrBuilder
      Returns:
      The criterionName.
    • getCriterionNameBytes

      public com.google.protobuf.ByteString getCriterionNameBytes()
       The name of the criterion that is defined by this parameter. The name value
       will be used for identifying, sorting and filtering criteria with this type
       of parameters.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      optional string criterion_name = 3;
      Specified by:
      getCriterionNameBytes in interface WebpageInfoOrBuilder
      Returns:
      The bytes for criterionName.
    • setCriterionName

      public WebpageInfo.Builder setCriterionName(String value)
       The name of the criterion that is defined by this parameter. The name value
       will be used for identifying, sorting and filtering criteria with this type
       of parameters.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      optional string criterion_name = 3;
      Parameters:
      value - The criterionName to set.
      Returns:
      This builder for chaining.
    • clearCriterionName

      public WebpageInfo.Builder clearCriterionName()
       The name of the criterion that is defined by this parameter. The name value
       will be used for identifying, sorting and filtering criteria with this type
       of parameters.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      optional string criterion_name = 3;
      Returns:
      This builder for chaining.
    • setCriterionNameBytes

      public WebpageInfo.Builder setCriterionNameBytes(com.google.protobuf.ByteString value)
       The name of the criterion that is defined by this parameter. The name value
       will be used for identifying, sorting and filtering criteria with this type
       of parameters.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      optional string criterion_name = 3;
      Parameters:
      value - The bytes for criterionName to set.
      Returns:
      This builder for chaining.
    • getConditionsList

      public List<WebpageConditionInfo> getConditionsList()
       Conditions, or logical expressions, for webpage targeting. The list of
       webpage targeting conditions are and-ed together when evaluated
       for targeting. An empty list of conditions indicates all pages of the
       campaign's website are targeted.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      repeated .google.ads.googleads.v18.common.WebpageConditionInfo conditions = 2;
      Specified by:
      getConditionsList in interface WebpageInfoOrBuilder
    • getConditionsCount

      public int getConditionsCount()
       Conditions, or logical expressions, for webpage targeting. The list of
       webpage targeting conditions are and-ed together when evaluated
       for targeting. An empty list of conditions indicates all pages of the
       campaign's website are targeted.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      repeated .google.ads.googleads.v18.common.WebpageConditionInfo conditions = 2;
      Specified by:
      getConditionsCount in interface WebpageInfoOrBuilder
    • getConditions

      public WebpageConditionInfo getConditions(int index)
       Conditions, or logical expressions, for webpage targeting. The list of
       webpage targeting conditions are and-ed together when evaluated
       for targeting. An empty list of conditions indicates all pages of the
       campaign's website are targeted.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      repeated .google.ads.googleads.v18.common.WebpageConditionInfo conditions = 2;
      Specified by:
      getConditions in interface WebpageInfoOrBuilder
    • setConditions

      public WebpageInfo.Builder setConditions(int index, WebpageConditionInfo value)
       Conditions, or logical expressions, for webpage targeting. The list of
       webpage targeting conditions are and-ed together when evaluated
       for targeting. An empty list of conditions indicates all pages of the
       campaign's website are targeted.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      repeated .google.ads.googleads.v18.common.WebpageConditionInfo conditions = 2;
    • setConditions

      public WebpageInfo.Builder setConditions(int index, WebpageConditionInfo.Builder builderForValue)
       Conditions, or logical expressions, for webpage targeting. The list of
       webpage targeting conditions are and-ed together when evaluated
       for targeting. An empty list of conditions indicates all pages of the
       campaign's website are targeted.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      repeated .google.ads.googleads.v18.common.WebpageConditionInfo conditions = 2;
    • addConditions

      public WebpageInfo.Builder addConditions(WebpageConditionInfo value)
       Conditions, or logical expressions, for webpage targeting. The list of
       webpage targeting conditions are and-ed together when evaluated
       for targeting. An empty list of conditions indicates all pages of the
       campaign's website are targeted.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      repeated .google.ads.googleads.v18.common.WebpageConditionInfo conditions = 2;
    • addConditions

      public WebpageInfo.Builder addConditions(int index, WebpageConditionInfo value)
       Conditions, or logical expressions, for webpage targeting. The list of
       webpage targeting conditions are and-ed together when evaluated
       for targeting. An empty list of conditions indicates all pages of the
       campaign's website are targeted.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      repeated .google.ads.googleads.v18.common.WebpageConditionInfo conditions = 2;
    • addConditions

      public WebpageInfo.Builder addConditions(WebpageConditionInfo.Builder builderForValue)
       Conditions, or logical expressions, for webpage targeting. The list of
       webpage targeting conditions are and-ed together when evaluated
       for targeting. An empty list of conditions indicates all pages of the
       campaign's website are targeted.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      repeated .google.ads.googleads.v18.common.WebpageConditionInfo conditions = 2;
    • addConditions

      public WebpageInfo.Builder addConditions(int index, WebpageConditionInfo.Builder builderForValue)
       Conditions, or logical expressions, for webpage targeting. The list of
       webpage targeting conditions are and-ed together when evaluated
       for targeting. An empty list of conditions indicates all pages of the
       campaign's website are targeted.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      repeated .google.ads.googleads.v18.common.WebpageConditionInfo conditions = 2;
    • addAllConditions

      public WebpageInfo.Builder addAllConditions(Iterable<? extends WebpageConditionInfo> values)
       Conditions, or logical expressions, for webpage targeting. The list of
       webpage targeting conditions are and-ed together when evaluated
       for targeting. An empty list of conditions indicates all pages of the
       campaign's website are targeted.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      repeated .google.ads.googleads.v18.common.WebpageConditionInfo conditions = 2;
    • clearConditions

      public WebpageInfo.Builder clearConditions()
       Conditions, or logical expressions, for webpage targeting. The list of
       webpage targeting conditions are and-ed together when evaluated
       for targeting. An empty list of conditions indicates all pages of the
       campaign's website are targeted.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      repeated .google.ads.googleads.v18.common.WebpageConditionInfo conditions = 2;
    • removeConditions

      public WebpageInfo.Builder removeConditions(int index)
       Conditions, or logical expressions, for webpage targeting. The list of
       webpage targeting conditions are and-ed together when evaluated
       for targeting. An empty list of conditions indicates all pages of the
       campaign's website are targeted.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      repeated .google.ads.googleads.v18.common.WebpageConditionInfo conditions = 2;
    • getConditionsBuilder

      public WebpageConditionInfo.Builder getConditionsBuilder(int index)
       Conditions, or logical expressions, for webpage targeting. The list of
       webpage targeting conditions are and-ed together when evaluated
       for targeting. An empty list of conditions indicates all pages of the
       campaign's website are targeted.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      repeated .google.ads.googleads.v18.common.WebpageConditionInfo conditions = 2;
    • getConditionsOrBuilder

      public WebpageConditionInfoOrBuilder getConditionsOrBuilder(int index)
       Conditions, or logical expressions, for webpage targeting. The list of
       webpage targeting conditions are and-ed together when evaluated
       for targeting. An empty list of conditions indicates all pages of the
       campaign's website are targeted.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      repeated .google.ads.googleads.v18.common.WebpageConditionInfo conditions = 2;
      Specified by:
      getConditionsOrBuilder in interface WebpageInfoOrBuilder
    • getConditionsOrBuilderList

      public List<? extends WebpageConditionInfoOrBuilder> getConditionsOrBuilderList()
       Conditions, or logical expressions, for webpage targeting. The list of
       webpage targeting conditions are and-ed together when evaluated
       for targeting. An empty list of conditions indicates all pages of the
       campaign's website are targeted.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      repeated .google.ads.googleads.v18.common.WebpageConditionInfo conditions = 2;
      Specified by:
      getConditionsOrBuilderList in interface WebpageInfoOrBuilder
    • addConditionsBuilder

      public WebpageConditionInfo.Builder addConditionsBuilder()
       Conditions, or logical expressions, for webpage targeting. The list of
       webpage targeting conditions are and-ed together when evaluated
       for targeting. An empty list of conditions indicates all pages of the
       campaign's website are targeted.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      repeated .google.ads.googleads.v18.common.WebpageConditionInfo conditions = 2;
    • addConditionsBuilder

      public WebpageConditionInfo.Builder addConditionsBuilder(int index)
       Conditions, or logical expressions, for webpage targeting. The list of
       webpage targeting conditions are and-ed together when evaluated
       for targeting. An empty list of conditions indicates all pages of the
       campaign's website are targeted.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      repeated .google.ads.googleads.v18.common.WebpageConditionInfo conditions = 2;
    • getConditionsBuilderList

      public List<WebpageConditionInfo.Builder> getConditionsBuilderList()
       Conditions, or logical expressions, for webpage targeting. The list of
       webpage targeting conditions are and-ed together when evaluated
       for targeting. An empty list of conditions indicates all pages of the
       campaign's website are targeted.
      
       This field is required for CREATE operations and is prohibited on UPDATE
       operations.
       
      repeated .google.ads.googleads.v18.common.WebpageConditionInfo conditions = 2;
    • getCoveragePercentage

      public double getCoveragePercentage()
       Website criteria coverage percentage. This is the computed percentage
       of website coverage based on the website target, negative website target
       and negative keywords in the ad group and campaign. For instance, when
       coverage returns as 1, it indicates it has 100% coverage. This field is
       read-only.
       
      double coverage_percentage = 4;
      Specified by:
      getCoveragePercentage in interface WebpageInfoOrBuilder
      Returns:
      The coveragePercentage.
    • setCoveragePercentage

      public WebpageInfo.Builder setCoveragePercentage(double value)
       Website criteria coverage percentage. This is the computed percentage
       of website coverage based on the website target, negative website target
       and negative keywords in the ad group and campaign. For instance, when
       coverage returns as 1, it indicates it has 100% coverage. This field is
       read-only.
       
      double coverage_percentage = 4;
      Parameters:
      value - The coveragePercentage to set.
      Returns:
      This builder for chaining.
    • clearCoveragePercentage

      public WebpageInfo.Builder clearCoveragePercentage()
       Website criteria coverage percentage. This is the computed percentage
       of website coverage based on the website target, negative website target
       and negative keywords in the ad group and campaign. For instance, when
       coverage returns as 1, it indicates it has 100% coverage. This field is
       read-only.
       
      double coverage_percentage = 4;
      Returns:
      This builder for chaining.
    • hasSample

      public boolean hasSample()
       List of sample urls that match the website target. This field is read-only.
       
      .google.ads.googleads.v18.common.WebpageSampleInfo sample = 5;
      Specified by:
      hasSample in interface WebpageInfoOrBuilder
      Returns:
      Whether the sample field is set.
    • getSample

      public WebpageSampleInfo getSample()
       List of sample urls that match the website target. This field is read-only.
       
      .google.ads.googleads.v18.common.WebpageSampleInfo sample = 5;
      Specified by:
      getSample in interface WebpageInfoOrBuilder
      Returns:
      The sample.
    • setSample

      public WebpageInfo.Builder setSample(WebpageSampleInfo value)
       List of sample urls that match the website target. This field is read-only.
       
      .google.ads.googleads.v18.common.WebpageSampleInfo sample = 5;
    • setSample

      public WebpageInfo.Builder setSample(WebpageSampleInfo.Builder builderForValue)
       List of sample urls that match the website target. This field is read-only.
       
      .google.ads.googleads.v18.common.WebpageSampleInfo sample = 5;
    • mergeSample

      public WebpageInfo.Builder mergeSample(WebpageSampleInfo value)
       List of sample urls that match the website target. This field is read-only.
       
      .google.ads.googleads.v18.common.WebpageSampleInfo sample = 5;
    • clearSample

      public WebpageInfo.Builder clearSample()
       List of sample urls that match the website target. This field is read-only.
       
      .google.ads.googleads.v18.common.WebpageSampleInfo sample = 5;
    • getSampleBuilder

      public WebpageSampleInfo.Builder getSampleBuilder()
       List of sample urls that match the website target. This field is read-only.
       
      .google.ads.googleads.v18.common.WebpageSampleInfo sample = 5;
    • getSampleOrBuilder

      public WebpageSampleInfoOrBuilder getSampleOrBuilder()
       List of sample urls that match the website target. This field is read-only.
       
      .google.ads.googleads.v18.common.WebpageSampleInfo sample = 5;
      Specified by:
      getSampleOrBuilder in interface WebpageInfoOrBuilder
    • setUnknownFields

      public final WebpageInfo.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<WebpageInfo.Builder>
    • mergeUnknownFields

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