Class AdGroupCriterionCustomizer.Builder

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

    public static final class AdGroupCriterionCustomizer.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AdGroupCriterionCustomizer.Builder>
    implements AdGroupCriterionCustomizerOrBuilder
     A customizer value for the associated CustomizerAttribute at the
     AdGroupCriterion level.
     
    Protobuf type google.ads.googleads.v10.resources.AdGroupCriterionCustomizer
    • 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<AdGroupCriterionCustomizer.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<AdGroupCriterionCustomizer.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public AdGroupCriterionCustomizer.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<AdGroupCriterionCustomizer.Builder>
      • isInitialized

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

        public AdGroupCriterionCustomizer.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<AdGroupCriterionCustomizer.Builder>
        Throws:
        java.io.IOException
      • getResourceName

        public java.lang.String getResourceName()
         Immutable. The resource name of the ad group criterion customizer.
         Ad group criterion customizer resource names have the form:
         `customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceName in interface AdGroupCriterionCustomizerOrBuilder
        Returns:
        The resourceName.
      • getResourceNameBytes

        public com.google.protobuf.ByteString getResourceNameBytes()
         Immutable. The resource name of the ad group criterion customizer.
         Ad group criterion customizer resource names have the form:
         `customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getResourceNameBytes in interface AdGroupCriterionCustomizerOrBuilder
        Returns:
        The bytes for resourceName.
      • setResourceName

        public AdGroupCriterionCustomizer.Builder setResourceName​(java.lang.String value)
         Immutable. The resource name of the ad group criterion customizer.
         Ad group criterion customizer resource names have the form:
         `customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The resourceName to set.
        Returns:
        This builder for chaining.
      • clearResourceName

        public AdGroupCriterionCustomizer.Builder clearResourceName()
         Immutable. The resource name of the ad group criterion customizer.
         Ad group criterion customizer resource names have the form:
         `customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setResourceNameBytes

        public AdGroupCriterionCustomizer.Builder setResourceNameBytes​(com.google.protobuf.ByteString value)
         Immutable. The resource name of the ad group criterion customizer.
         Ad group criterion customizer resource names have the form:
         `customers/{customer_id}/adGroupCriterionCustomizers/{ad_group_id}~{criterion_id}~{customizer_attribute_id}`
         
        string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for resourceName to set.
        Returns:
        This builder for chaining.
      • hasAdGroupCriterion

        public boolean hasAdGroupCriterion()
         Immutable. The ad group criterion to which the customizer attribute is linked.
         It must be a keyword criterion.
         
        optional string ad_group_criterion = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        hasAdGroupCriterion in interface AdGroupCriterionCustomizerOrBuilder
        Returns:
        Whether the adGroupCriterion field is set.
      • getAdGroupCriterion

        public java.lang.String getAdGroupCriterion()
         Immutable. The ad group criterion to which the customizer attribute is linked.
         It must be a keyword criterion.
         
        optional string ad_group_criterion = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getAdGroupCriterion in interface AdGroupCriterionCustomizerOrBuilder
        Returns:
        The adGroupCriterion.
      • getAdGroupCriterionBytes

        public com.google.protobuf.ByteString getAdGroupCriterionBytes()
         Immutable. The ad group criterion to which the customizer attribute is linked.
         It must be a keyword criterion.
         
        optional string ad_group_criterion = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getAdGroupCriterionBytes in interface AdGroupCriterionCustomizerOrBuilder
        Returns:
        The bytes for adGroupCriterion.
      • setAdGroupCriterion

        public AdGroupCriterionCustomizer.Builder setAdGroupCriterion​(java.lang.String value)
         Immutable. The ad group criterion to which the customizer attribute is linked.
         It must be a keyword criterion.
         
        optional string ad_group_criterion = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The adGroupCriterion to set.
        Returns:
        This builder for chaining.
      • clearAdGroupCriterion

        public AdGroupCriterionCustomizer.Builder clearAdGroupCriterion()
         Immutable. The ad group criterion to which the customizer attribute is linked.
         It must be a keyword criterion.
         
        optional string ad_group_criterion = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setAdGroupCriterionBytes

        public AdGroupCriterionCustomizer.Builder setAdGroupCriterionBytes​(com.google.protobuf.ByteString value)
         Immutable. The ad group criterion to which the customizer attribute is linked.
         It must be a keyword criterion.
         
        optional string ad_group_criterion = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for adGroupCriterion to set.
        Returns:
        This builder for chaining.
      • getCustomizerAttribute

        public java.lang.String getCustomizerAttribute()
         Required. Immutable. The customizer attribute which is linked to the ad group criterion.
         
        string customizer_attribute = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getCustomizerAttribute in interface AdGroupCriterionCustomizerOrBuilder
        Returns:
        The customizerAttribute.
      • getCustomizerAttributeBytes

        public com.google.protobuf.ByteString getCustomizerAttributeBytes()
         Required. Immutable. The customizer attribute which is linked to the ad group criterion.
         
        string customizer_attribute = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Specified by:
        getCustomizerAttributeBytes in interface AdGroupCriterionCustomizerOrBuilder
        Returns:
        The bytes for customizerAttribute.
      • setCustomizerAttribute

        public AdGroupCriterionCustomizer.Builder setCustomizerAttribute​(java.lang.String value)
         Required. Immutable. The customizer attribute which is linked to the ad group criterion.
         
        string customizer_attribute = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The customizerAttribute to set.
        Returns:
        This builder for chaining.
      • clearCustomizerAttribute

        public AdGroupCriterionCustomizer.Builder clearCustomizerAttribute()
         Required. Immutable. The customizer attribute which is linked to the ad group criterion.
         
        string customizer_attribute = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setCustomizerAttributeBytes

        public AdGroupCriterionCustomizer.Builder setCustomizerAttributeBytes​(com.google.protobuf.ByteString value)
         Required. Immutable. The customizer attribute which is linked to the ad group criterion.
         
        string customizer_attribute = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for customizerAttribute to set.
        Returns:
        This builder for chaining.
      • getStatusValue

        public int getStatusValue()
         Output only. The status of the ad group criterion customizer.
         
        .google.ads.googleads.v10.enums.CustomizerValueStatusEnum.CustomizerValueStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatusValue in interface AdGroupCriterionCustomizerOrBuilder
        Returns:
        The enum numeric value on the wire for status.
      • setStatusValue

        public AdGroupCriterionCustomizer.Builder setStatusValue​(int value)
         Output only. The status of the ad group criterion customizer.
         
        .google.ads.googleads.v10.enums.CustomizerValueStatusEnum.CustomizerValueStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public AdGroupCriterionCustomizer.Builder clearStatus()
         Output only. The status of the ad group criterion customizer.
         
        .google.ads.googleads.v10.enums.CustomizerValueStatusEnum.CustomizerValueStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasValue

        public boolean hasValue()
         Required. The value to associate with the customizer attribute at this level. The
         value must be of the type specified for the CustomizerAttribute.
         
        .google.ads.googleads.v10.common.CustomizerValue value = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasValue in interface AdGroupCriterionCustomizerOrBuilder
        Returns:
        Whether the value field is set.
      • getValue

        public CustomizerValue getValue()
         Required. The value to associate with the customizer attribute at this level. The
         value must be of the type specified for the CustomizerAttribute.
         
        .google.ads.googleads.v10.common.CustomizerValue value = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getValue in interface AdGroupCriterionCustomizerOrBuilder
        Returns:
        The value.
      • setValue

        public AdGroupCriterionCustomizer.Builder setValue​(CustomizerValue value)
         Required. The value to associate with the customizer attribute at this level. The
         value must be of the type specified for the CustomizerAttribute.
         
        .google.ads.googleads.v10.common.CustomizerValue value = 5 [(.google.api.field_behavior) = REQUIRED];
      • setValue

        public AdGroupCriterionCustomizer.Builder setValue​(CustomizerValue.Builder builderForValue)
         Required. The value to associate with the customizer attribute at this level. The
         value must be of the type specified for the CustomizerAttribute.
         
        .google.ads.googleads.v10.common.CustomizerValue value = 5 [(.google.api.field_behavior) = REQUIRED];
      • mergeValue

        public AdGroupCriterionCustomizer.Builder mergeValue​(CustomizerValue value)
         Required. The value to associate with the customizer attribute at this level. The
         value must be of the type specified for the CustomizerAttribute.
         
        .google.ads.googleads.v10.common.CustomizerValue value = 5 [(.google.api.field_behavior) = REQUIRED];
      • clearValue

        public AdGroupCriterionCustomizer.Builder clearValue()
         Required. The value to associate with the customizer attribute at this level. The
         value must be of the type specified for the CustomizerAttribute.
         
        .google.ads.googleads.v10.common.CustomizerValue value = 5 [(.google.api.field_behavior) = REQUIRED];
      • getValueBuilder

        public CustomizerValue.Builder getValueBuilder()
         Required. The value to associate with the customizer attribute at this level. The
         value must be of the type specified for the CustomizerAttribute.
         
        .google.ads.googleads.v10.common.CustomizerValue value = 5 [(.google.api.field_behavior) = REQUIRED];
      • getValueOrBuilder

        public CustomizerValueOrBuilder getValueOrBuilder()
         Required. The value to associate with the customizer attribute at this level. The
         value must be of the type specified for the CustomizerAttribute.
         
        .google.ads.googleads.v10.common.CustomizerValue value = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getValueOrBuilder in interface AdGroupCriterionCustomizerOrBuilder
      • setUnknownFields

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

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