Class WebpageInfo.Builder

  • All Implemented Interfaces:
    WebpageInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.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.v10.common.WebpageInfo
    • 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<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,
                                            java.lang.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,
                                                    java.lang.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,
                                                    java.lang.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>
      • 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 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<WebpageInfo.Builder>
        Throws:
        java.io.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 java.lang.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​(java.lang.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 java.util.List<WebpageConditionInfo> getConditionsList()
         Conditions, or logical expressions, for webpage targeting. The list of
         webpage targeting conditions are and-ed together when evaluated
         for targeting.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        repeated .google.ads.googleads.v10.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.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        repeated .google.ads.googleads.v10.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.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        repeated .google.ads.googleads.v10.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.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        repeated .google.ads.googleads.v10.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.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        repeated .google.ads.googleads.v10.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.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        repeated .google.ads.googleads.v10.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.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        repeated .google.ads.googleads.v10.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.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        repeated .google.ads.googleads.v10.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.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        repeated .google.ads.googleads.v10.common.WebpageConditionInfo conditions = 2;
      • addAllConditions

        public WebpageInfo.Builder addAllConditions​(java.lang.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.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        repeated .google.ads.googleads.v10.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.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        repeated .google.ads.googleads.v10.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.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        repeated .google.ads.googleads.v10.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.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        repeated .google.ads.googleads.v10.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.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        repeated .google.ads.googleads.v10.common.WebpageConditionInfo conditions = 2;
        Specified by:
        getConditionsOrBuilder in interface WebpageInfoOrBuilder
      • getConditionsOrBuilderList

        public java.util.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.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        repeated .google.ads.googleads.v10.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.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        repeated .google.ads.googleads.v10.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.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        repeated .google.ads.googleads.v10.common.WebpageConditionInfo conditions = 2;
      • getConditionsBuilderList

        public java.util.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.
         This field is required for CREATE operations and is prohibited on UPDATE
         operations.
         
        repeated .google.ads.googleads.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.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.v10.common.WebpageSampleInfo sample = 5;
      • 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>