Class UserListRuleItemInfo.Builder

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

    public static final class UserListRuleItemInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<UserListRuleItemInfo.Builder>
    implements UserListRuleItemInfoOrBuilder
     An atomic rule item.
     
    Protobuf type google.ads.googleads.v13.common.UserListRuleItemInfo
    • 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<UserListRuleItemInfo.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public boolean hasName()
         Rule variable name. It should match the corresponding key name fired
         by the pixel.
         A name must begin with US-ascii letters or underscore or UTF8 code that is
         greater than 127 and consist of US-ascii letters or digits or underscore or
         UTF8 code that is greater than 127.
         For websites, there are two built-in variable URL (name = 'url__') and
         referrer URL (name = 'ref_url__').
         This field must be populated when creating a new rule item.
         
        optional string name = 5;
        Specified by:
        hasName in interface UserListRuleItemInfoOrBuilder
        Returns:
        Whether the name field is set.
      • getName

        public java.lang.String getName()
         Rule variable name. It should match the corresponding key name fired
         by the pixel.
         A name must begin with US-ascii letters or underscore or UTF8 code that is
         greater than 127 and consist of US-ascii letters or digits or underscore or
         UTF8 code that is greater than 127.
         For websites, there are two built-in variable URL (name = 'url__') and
         referrer URL (name = 'ref_url__').
         This field must be populated when creating a new rule item.
         
        optional string name = 5;
        Specified by:
        getName in interface UserListRuleItemInfoOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Rule variable name. It should match the corresponding key name fired
         by the pixel.
         A name must begin with US-ascii letters or underscore or UTF8 code that is
         greater than 127 and consist of US-ascii letters or digits or underscore or
         UTF8 code that is greater than 127.
         For websites, there are two built-in variable URL (name = 'url__') and
         referrer URL (name = 'ref_url__').
         This field must be populated when creating a new rule item.
         
        optional string name = 5;
        Specified by:
        getNameBytes in interface UserListRuleItemInfoOrBuilder
        Returns:
        The bytes for name.
      • setName

        public UserListRuleItemInfo.Builder setName​(java.lang.String value)
         Rule variable name. It should match the corresponding key name fired
         by the pixel.
         A name must begin with US-ascii letters or underscore or UTF8 code that is
         greater than 127 and consist of US-ascii letters or digits or underscore or
         UTF8 code that is greater than 127.
         For websites, there are two built-in variable URL (name = 'url__') and
         referrer URL (name = 'ref_url__').
         This field must be populated when creating a new rule item.
         
        optional string name = 5;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public UserListRuleItemInfo.Builder clearName()
         Rule variable name. It should match the corresponding key name fired
         by the pixel.
         A name must begin with US-ascii letters or underscore or UTF8 code that is
         greater than 127 and consist of US-ascii letters or digits or underscore or
         UTF8 code that is greater than 127.
         For websites, there are two built-in variable URL (name = 'url__') and
         referrer URL (name = 'ref_url__').
         This field must be populated when creating a new rule item.
         
        optional string name = 5;
        Returns:
        This builder for chaining.
      • setNameBytes

        public UserListRuleItemInfo.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Rule variable name. It should match the corresponding key name fired
         by the pixel.
         A name must begin with US-ascii letters or underscore or UTF8 code that is
         greater than 127 and consist of US-ascii letters or digits or underscore or
         UTF8 code that is greater than 127.
         For websites, there are two built-in variable URL (name = 'url__') and
         referrer URL (name = 'ref_url__').
         This field must be populated when creating a new rule item.
         
        optional string name = 5;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • hasNumberRuleItem

        public boolean hasNumberRuleItem()
         An atomic rule item composed of a number operation.
         
        .google.ads.googleads.v13.common.UserListNumberRuleItemInfo number_rule_item = 2;
        Specified by:
        hasNumberRuleItem in interface UserListRuleItemInfoOrBuilder
        Returns:
        Whether the numberRuleItem field is set.
      • clearNumberRuleItem

        public UserListRuleItemInfo.Builder clearNumberRuleItem()
         An atomic rule item composed of a number operation.
         
        .google.ads.googleads.v13.common.UserListNumberRuleItemInfo number_rule_item = 2;
      • getNumberRuleItemBuilder

        public UserListNumberRuleItemInfo.Builder getNumberRuleItemBuilder()
         An atomic rule item composed of a number operation.
         
        .google.ads.googleads.v13.common.UserListNumberRuleItemInfo number_rule_item = 2;
      • hasStringRuleItem

        public boolean hasStringRuleItem()
         An atomic rule item composed of a string operation.
         
        .google.ads.googleads.v13.common.UserListStringRuleItemInfo string_rule_item = 3;
        Specified by:
        hasStringRuleItem in interface UserListRuleItemInfoOrBuilder
        Returns:
        Whether the stringRuleItem field is set.
      • clearStringRuleItem

        public UserListRuleItemInfo.Builder clearStringRuleItem()
         An atomic rule item composed of a string operation.
         
        .google.ads.googleads.v13.common.UserListStringRuleItemInfo string_rule_item = 3;
      • getStringRuleItemBuilder

        public UserListStringRuleItemInfo.Builder getStringRuleItemBuilder()
         An atomic rule item composed of a string operation.
         
        .google.ads.googleads.v13.common.UserListStringRuleItemInfo string_rule_item = 3;
      • hasDateRuleItem

        public boolean hasDateRuleItem()
         An atomic rule item composed of a date operation.
         
        .google.ads.googleads.v13.common.UserListDateRuleItemInfo date_rule_item = 4;
        Specified by:
        hasDateRuleItem in interface UserListRuleItemInfoOrBuilder
        Returns:
        Whether the dateRuleItem field is set.
      • clearDateRuleItem

        public UserListRuleItemInfo.Builder clearDateRuleItem()
         An atomic rule item composed of a date operation.
         
        .google.ads.googleads.v13.common.UserListDateRuleItemInfo date_rule_item = 4;
      • getDateRuleItemBuilder

        public UserListDateRuleItemInfo.Builder getDateRuleItemBuilder()
         An atomic rule item composed of a date operation.
         
        .google.ads.googleads.v13.common.UserListDateRuleItemInfo date_rule_item = 4;
      • setUnknownFields

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

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