Class CombinedRuleUserListInfo.Builder

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

    public static final class CombinedRuleUserListInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CombinedRuleUserListInfo.Builder>
    implements CombinedRuleUserListInfoOrBuilder
     User lists defined by combining two rules, left operand and right operand.
     There are two operators: AND where left operand and right operand have to be
     true; AND_NOT where left operand is true but right operand is false.
     
    Protobuf type google.ads.googleads.v10.common.CombinedRuleUserListInfo
    • 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<CombinedRuleUserListInfo.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<CombinedRuleUserListInfo.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

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

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

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

        public boolean hasLeftOperand()
         Left operand of the combined rule.
         This field is required and must be populated when creating new combined
         rule based user list.
         
        .google.ads.googleads.v10.common.UserListRuleInfo left_operand = 1;
        Specified by:
        hasLeftOperand in interface CombinedRuleUserListInfoOrBuilder
        Returns:
        Whether the leftOperand field is set.
      • getLeftOperand

        public UserListRuleInfo getLeftOperand()
         Left operand of the combined rule.
         This field is required and must be populated when creating new combined
         rule based user list.
         
        .google.ads.googleads.v10.common.UserListRuleInfo left_operand = 1;
        Specified by:
        getLeftOperand in interface CombinedRuleUserListInfoOrBuilder
        Returns:
        The leftOperand.
      • setLeftOperand

        public CombinedRuleUserListInfo.Builder setLeftOperand​(UserListRuleInfo value)
         Left operand of the combined rule.
         This field is required and must be populated when creating new combined
         rule based user list.
         
        .google.ads.googleads.v10.common.UserListRuleInfo left_operand = 1;
      • setLeftOperand

        public CombinedRuleUserListInfo.Builder setLeftOperand​(UserListRuleInfo.Builder builderForValue)
         Left operand of the combined rule.
         This field is required and must be populated when creating new combined
         rule based user list.
         
        .google.ads.googleads.v10.common.UserListRuleInfo left_operand = 1;
      • mergeLeftOperand

        public CombinedRuleUserListInfo.Builder mergeLeftOperand​(UserListRuleInfo value)
         Left operand of the combined rule.
         This field is required and must be populated when creating new combined
         rule based user list.
         
        .google.ads.googleads.v10.common.UserListRuleInfo left_operand = 1;
      • clearLeftOperand

        public CombinedRuleUserListInfo.Builder clearLeftOperand()
         Left operand of the combined rule.
         This field is required and must be populated when creating new combined
         rule based user list.
         
        .google.ads.googleads.v10.common.UserListRuleInfo left_operand = 1;
      • getLeftOperandBuilder

        public UserListRuleInfo.Builder getLeftOperandBuilder()
         Left operand of the combined rule.
         This field is required and must be populated when creating new combined
         rule based user list.
         
        .google.ads.googleads.v10.common.UserListRuleInfo left_operand = 1;
      • hasRightOperand

        public boolean hasRightOperand()
         Right operand of the combined rule.
         This field is required and must be populated when creating new combined
         rule based user list.
         
        .google.ads.googleads.v10.common.UserListRuleInfo right_operand = 2;
        Specified by:
        hasRightOperand in interface CombinedRuleUserListInfoOrBuilder
        Returns:
        Whether the rightOperand field is set.
      • getRightOperand

        public UserListRuleInfo getRightOperand()
         Right operand of the combined rule.
         This field is required and must be populated when creating new combined
         rule based user list.
         
        .google.ads.googleads.v10.common.UserListRuleInfo right_operand = 2;
        Specified by:
        getRightOperand in interface CombinedRuleUserListInfoOrBuilder
        Returns:
        The rightOperand.
      • setRightOperand

        public CombinedRuleUserListInfo.Builder setRightOperand​(UserListRuleInfo value)
         Right operand of the combined rule.
         This field is required and must be populated when creating new combined
         rule based user list.
         
        .google.ads.googleads.v10.common.UserListRuleInfo right_operand = 2;
      • setRightOperand

        public CombinedRuleUserListInfo.Builder setRightOperand​(UserListRuleInfo.Builder builderForValue)
         Right operand of the combined rule.
         This field is required and must be populated when creating new combined
         rule based user list.
         
        .google.ads.googleads.v10.common.UserListRuleInfo right_operand = 2;
      • mergeRightOperand

        public CombinedRuleUserListInfo.Builder mergeRightOperand​(UserListRuleInfo value)
         Right operand of the combined rule.
         This field is required and must be populated when creating new combined
         rule based user list.
         
        .google.ads.googleads.v10.common.UserListRuleInfo right_operand = 2;
      • clearRightOperand

        public CombinedRuleUserListInfo.Builder clearRightOperand()
         Right operand of the combined rule.
         This field is required and must be populated when creating new combined
         rule based user list.
         
        .google.ads.googleads.v10.common.UserListRuleInfo right_operand = 2;
      • getRightOperandBuilder

        public UserListRuleInfo.Builder getRightOperandBuilder()
         Right operand of the combined rule.
         This field is required and must be populated when creating new combined
         rule based user list.
         
        .google.ads.googleads.v10.common.UserListRuleInfo right_operand = 2;
      • getRuleOperatorValue

        public int getRuleOperatorValue()
         Operator to connect the two operands.
         Required for creating a combined rule user list.
         
        .google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3;
        Specified by:
        getRuleOperatorValue in interface CombinedRuleUserListInfoOrBuilder
        Returns:
        The enum numeric value on the wire for ruleOperator.
      • setRuleOperatorValue

        public CombinedRuleUserListInfo.Builder setRuleOperatorValue​(int value)
         Operator to connect the two operands.
         Required for creating a combined rule user list.
         
        .google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3;
        Parameters:
        value - The enum numeric value on the wire for ruleOperator to set.
        Returns:
        This builder for chaining.
      • clearRuleOperator

        public CombinedRuleUserListInfo.Builder clearRuleOperator()
         Operator to connect the two operands.
         Required for creating a combined rule user list.
         
        .google.ads.googleads.v10.enums.UserListCombinedRuleOperatorEnum.UserListCombinedRuleOperator rule_operator = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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