Class MatchingFunction.Builder

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

public static final class MatchingFunction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MatchingFunction.Builder> implements MatchingFunctionOrBuilder
 Matching function associated with a
 CustomerFeed, CampaignFeed, or AdGroupFeed. The matching function is used
 to filter the set of feed items selected.
 
Protobuf type google.ads.googleads.v18.common.MatchingFunction
  • 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<MatchingFunction.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public MatchingFunction.Builder mergeFrom(MatchingFunction other)
    • isInitialized

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

      public MatchingFunction.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<MatchingFunction.Builder>
      Throws:
      IOException
    • hasFunctionString

      public boolean hasFunctionString()
       String representation of the Function.
      
       Examples:
      
       1. IDENTITY(true) or IDENTITY(false). All or no feed items served.
       2. EQUALS(CONTEXT.DEVICE,"Mobile")
       3. IN(FEED_ITEM_ID,{1000001,1000002,1000003})
       4. CONTAINS_ANY(FeedAttribute[12345678,0],{"Mars cruise","Venus cruise"})
       5. AND(IN(FEED_ITEM_ID,{10001,10002}),EQUALS(CONTEXT.DEVICE,"Mobile"))
      
       For more details, visit
       https://developers.google.com/google-ads/api/docs/extensions/feeds/matching-functions
      
       Note that because multiple strings may represent the same underlying
       function (whitespace and single versus double quotation marks, for
       example), the value returned may not be identical to the string sent in a
       mutate request.
       
      optional string function_string = 5;
      Specified by:
      hasFunctionString in interface MatchingFunctionOrBuilder
      Returns:
      Whether the functionString field is set.
    • getFunctionString

      public String getFunctionString()
       String representation of the Function.
      
       Examples:
      
       1. IDENTITY(true) or IDENTITY(false). All or no feed items served.
       2. EQUALS(CONTEXT.DEVICE,"Mobile")
       3. IN(FEED_ITEM_ID,{1000001,1000002,1000003})
       4. CONTAINS_ANY(FeedAttribute[12345678,0],{"Mars cruise","Venus cruise"})
       5. AND(IN(FEED_ITEM_ID,{10001,10002}),EQUALS(CONTEXT.DEVICE,"Mobile"))
      
       For more details, visit
       https://developers.google.com/google-ads/api/docs/extensions/feeds/matching-functions
      
       Note that because multiple strings may represent the same underlying
       function (whitespace and single versus double quotation marks, for
       example), the value returned may not be identical to the string sent in a
       mutate request.
       
      optional string function_string = 5;
      Specified by:
      getFunctionString in interface MatchingFunctionOrBuilder
      Returns:
      The functionString.
    • getFunctionStringBytes

      public com.google.protobuf.ByteString getFunctionStringBytes()
       String representation of the Function.
      
       Examples:
      
       1. IDENTITY(true) or IDENTITY(false). All or no feed items served.
       2. EQUALS(CONTEXT.DEVICE,"Mobile")
       3. IN(FEED_ITEM_ID,{1000001,1000002,1000003})
       4. CONTAINS_ANY(FeedAttribute[12345678,0],{"Mars cruise","Venus cruise"})
       5. AND(IN(FEED_ITEM_ID,{10001,10002}),EQUALS(CONTEXT.DEVICE,"Mobile"))
      
       For more details, visit
       https://developers.google.com/google-ads/api/docs/extensions/feeds/matching-functions
      
       Note that because multiple strings may represent the same underlying
       function (whitespace and single versus double quotation marks, for
       example), the value returned may not be identical to the string sent in a
       mutate request.
       
      optional string function_string = 5;
      Specified by:
      getFunctionStringBytes in interface MatchingFunctionOrBuilder
      Returns:
      The bytes for functionString.
    • setFunctionString

      public MatchingFunction.Builder setFunctionString(String value)
       String representation of the Function.
      
       Examples:
      
       1. IDENTITY(true) or IDENTITY(false). All or no feed items served.
       2. EQUALS(CONTEXT.DEVICE,"Mobile")
       3. IN(FEED_ITEM_ID,{1000001,1000002,1000003})
       4. CONTAINS_ANY(FeedAttribute[12345678,0],{"Mars cruise","Venus cruise"})
       5. AND(IN(FEED_ITEM_ID,{10001,10002}),EQUALS(CONTEXT.DEVICE,"Mobile"))
      
       For more details, visit
       https://developers.google.com/google-ads/api/docs/extensions/feeds/matching-functions
      
       Note that because multiple strings may represent the same underlying
       function (whitespace and single versus double quotation marks, for
       example), the value returned may not be identical to the string sent in a
       mutate request.
       
      optional string function_string = 5;
      Parameters:
      value - The functionString to set.
      Returns:
      This builder for chaining.
    • clearFunctionString

      public MatchingFunction.Builder clearFunctionString()
       String representation of the Function.
      
       Examples:
      
       1. IDENTITY(true) or IDENTITY(false). All or no feed items served.
       2. EQUALS(CONTEXT.DEVICE,"Mobile")
       3. IN(FEED_ITEM_ID,{1000001,1000002,1000003})
       4. CONTAINS_ANY(FeedAttribute[12345678,0],{"Mars cruise","Venus cruise"})
       5. AND(IN(FEED_ITEM_ID,{10001,10002}),EQUALS(CONTEXT.DEVICE,"Mobile"))
      
       For more details, visit
       https://developers.google.com/google-ads/api/docs/extensions/feeds/matching-functions
      
       Note that because multiple strings may represent the same underlying
       function (whitespace and single versus double quotation marks, for
       example), the value returned may not be identical to the string sent in a
       mutate request.
       
      optional string function_string = 5;
      Returns:
      This builder for chaining.
    • setFunctionStringBytes

      public MatchingFunction.Builder setFunctionStringBytes(com.google.protobuf.ByteString value)
       String representation of the Function.
      
       Examples:
      
       1. IDENTITY(true) or IDENTITY(false). All or no feed items served.
       2. EQUALS(CONTEXT.DEVICE,"Mobile")
       3. IN(FEED_ITEM_ID,{1000001,1000002,1000003})
       4. CONTAINS_ANY(FeedAttribute[12345678,0],{"Mars cruise","Venus cruise"})
       5. AND(IN(FEED_ITEM_ID,{10001,10002}),EQUALS(CONTEXT.DEVICE,"Mobile"))
      
       For more details, visit
       https://developers.google.com/google-ads/api/docs/extensions/feeds/matching-functions
      
       Note that because multiple strings may represent the same underlying
       function (whitespace and single versus double quotation marks, for
       example), the value returned may not be identical to the string sent in a
       mutate request.
       
      optional string function_string = 5;
      Parameters:
      value - The bytes for functionString to set.
      Returns:
      This builder for chaining.
    • getOperatorValue

      public int getOperatorValue()
       Operator for a function.
       
      .google.ads.googleads.v18.enums.MatchingFunctionOperatorEnum.MatchingFunctionOperator operator = 4;
      Specified by:
      getOperatorValue in interface MatchingFunctionOrBuilder
      Returns:
      The enum numeric value on the wire for operator.
    • setOperatorValue

      public MatchingFunction.Builder setOperatorValue(int value)
       Operator for a function.
       
      .google.ads.googleads.v18.enums.MatchingFunctionOperatorEnum.MatchingFunctionOperator operator = 4;
      Parameters:
      value - The enum numeric value on the wire for operator to set.
      Returns:
      This builder for chaining.
    • getOperator

       Operator for a function.
       
      .google.ads.googleads.v18.enums.MatchingFunctionOperatorEnum.MatchingFunctionOperator operator = 4;
      Specified by:
      getOperator in interface MatchingFunctionOrBuilder
      Returns:
      The operator.
    • setOperator

       Operator for a function.
       
      .google.ads.googleads.v18.enums.MatchingFunctionOperatorEnum.MatchingFunctionOperator operator = 4;
      Parameters:
      value - The operator to set.
      Returns:
      This builder for chaining.
    • clearOperator

      public MatchingFunction.Builder clearOperator()
       Operator for a function.
       
      .google.ads.googleads.v18.enums.MatchingFunctionOperatorEnum.MatchingFunctionOperator operator = 4;
      Returns:
      This builder for chaining.
    • getLeftOperandsList

      public List<Operand> getLeftOperandsList()
       The operands on the left hand side of the equation. This is also the
       operand to be used for single operand expressions such as NOT.
       
      repeated .google.ads.googleads.v18.common.Operand left_operands = 2;
      Specified by:
      getLeftOperandsList in interface MatchingFunctionOrBuilder
    • getLeftOperandsCount

      public int getLeftOperandsCount()
       The operands on the left hand side of the equation. This is also the
       operand to be used for single operand expressions such as NOT.
       
      repeated .google.ads.googleads.v18.common.Operand left_operands = 2;
      Specified by:
      getLeftOperandsCount in interface MatchingFunctionOrBuilder
    • getLeftOperands

      public Operand getLeftOperands(int index)
       The operands on the left hand side of the equation. This is also the
       operand to be used for single operand expressions such as NOT.
       
      repeated .google.ads.googleads.v18.common.Operand left_operands = 2;
      Specified by:
      getLeftOperands in interface MatchingFunctionOrBuilder
    • setLeftOperands

      public MatchingFunction.Builder setLeftOperands(int index, Operand value)
       The operands on the left hand side of the equation. This is also the
       operand to be used for single operand expressions such as NOT.
       
      repeated .google.ads.googleads.v18.common.Operand left_operands = 2;
    • setLeftOperands

      public MatchingFunction.Builder setLeftOperands(int index, Operand.Builder builderForValue)
       The operands on the left hand side of the equation. This is also the
       operand to be used for single operand expressions such as NOT.
       
      repeated .google.ads.googleads.v18.common.Operand left_operands = 2;
    • addLeftOperands

      public MatchingFunction.Builder addLeftOperands(Operand value)
       The operands on the left hand side of the equation. This is also the
       operand to be used for single operand expressions such as NOT.
       
      repeated .google.ads.googleads.v18.common.Operand left_operands = 2;
    • addLeftOperands

      public MatchingFunction.Builder addLeftOperands(int index, Operand value)
       The operands on the left hand side of the equation. This is also the
       operand to be used for single operand expressions such as NOT.
       
      repeated .google.ads.googleads.v18.common.Operand left_operands = 2;
    • addLeftOperands

      public MatchingFunction.Builder addLeftOperands(Operand.Builder builderForValue)
       The operands on the left hand side of the equation. This is also the
       operand to be used for single operand expressions such as NOT.
       
      repeated .google.ads.googleads.v18.common.Operand left_operands = 2;
    • addLeftOperands

      public MatchingFunction.Builder addLeftOperands(int index, Operand.Builder builderForValue)
       The operands on the left hand side of the equation. This is also the
       operand to be used for single operand expressions such as NOT.
       
      repeated .google.ads.googleads.v18.common.Operand left_operands = 2;
    • addAllLeftOperands

      public MatchingFunction.Builder addAllLeftOperands(Iterable<? extends Operand> values)
       The operands on the left hand side of the equation. This is also the
       operand to be used for single operand expressions such as NOT.
       
      repeated .google.ads.googleads.v18.common.Operand left_operands = 2;
    • clearLeftOperands

      public MatchingFunction.Builder clearLeftOperands()
       The operands on the left hand side of the equation. This is also the
       operand to be used for single operand expressions such as NOT.
       
      repeated .google.ads.googleads.v18.common.Operand left_operands = 2;
    • removeLeftOperands

      public MatchingFunction.Builder removeLeftOperands(int index)
       The operands on the left hand side of the equation. This is also the
       operand to be used for single operand expressions such as NOT.
       
      repeated .google.ads.googleads.v18.common.Operand left_operands = 2;
    • getLeftOperandsBuilder

      public Operand.Builder getLeftOperandsBuilder(int index)
       The operands on the left hand side of the equation. This is also the
       operand to be used for single operand expressions such as NOT.
       
      repeated .google.ads.googleads.v18.common.Operand left_operands = 2;
    • getLeftOperandsOrBuilder

      public OperandOrBuilder getLeftOperandsOrBuilder(int index)
       The operands on the left hand side of the equation. This is also the
       operand to be used for single operand expressions such as NOT.
       
      repeated .google.ads.googleads.v18.common.Operand left_operands = 2;
      Specified by:
      getLeftOperandsOrBuilder in interface MatchingFunctionOrBuilder
    • getLeftOperandsOrBuilderList

      public List<? extends OperandOrBuilder> getLeftOperandsOrBuilderList()
       The operands on the left hand side of the equation. This is also the
       operand to be used for single operand expressions such as NOT.
       
      repeated .google.ads.googleads.v18.common.Operand left_operands = 2;
      Specified by:
      getLeftOperandsOrBuilderList in interface MatchingFunctionOrBuilder
    • addLeftOperandsBuilder

      public Operand.Builder addLeftOperandsBuilder()
       The operands on the left hand side of the equation. This is also the
       operand to be used for single operand expressions such as NOT.
       
      repeated .google.ads.googleads.v18.common.Operand left_operands = 2;
    • addLeftOperandsBuilder

      public Operand.Builder addLeftOperandsBuilder(int index)
       The operands on the left hand side of the equation. This is also the
       operand to be used for single operand expressions such as NOT.
       
      repeated .google.ads.googleads.v18.common.Operand left_operands = 2;
    • getLeftOperandsBuilderList

      public List<Operand.Builder> getLeftOperandsBuilderList()
       The operands on the left hand side of the equation. This is also the
       operand to be used for single operand expressions such as NOT.
       
      repeated .google.ads.googleads.v18.common.Operand left_operands = 2;
    • getRightOperandsList

      public List<Operand> getRightOperandsList()
       The operands on the right hand side of the equation.
       
      repeated .google.ads.googleads.v18.common.Operand right_operands = 3;
      Specified by:
      getRightOperandsList in interface MatchingFunctionOrBuilder
    • getRightOperandsCount

      public int getRightOperandsCount()
       The operands on the right hand side of the equation.
       
      repeated .google.ads.googleads.v18.common.Operand right_operands = 3;
      Specified by:
      getRightOperandsCount in interface MatchingFunctionOrBuilder
    • getRightOperands

      public Operand getRightOperands(int index)
       The operands on the right hand side of the equation.
       
      repeated .google.ads.googleads.v18.common.Operand right_operands = 3;
      Specified by:
      getRightOperands in interface MatchingFunctionOrBuilder
    • setRightOperands

      public MatchingFunction.Builder setRightOperands(int index, Operand value)
       The operands on the right hand side of the equation.
       
      repeated .google.ads.googleads.v18.common.Operand right_operands = 3;
    • setRightOperands

      public MatchingFunction.Builder setRightOperands(int index, Operand.Builder builderForValue)
       The operands on the right hand side of the equation.
       
      repeated .google.ads.googleads.v18.common.Operand right_operands = 3;
    • addRightOperands

      public MatchingFunction.Builder addRightOperands(Operand value)
       The operands on the right hand side of the equation.
       
      repeated .google.ads.googleads.v18.common.Operand right_operands = 3;
    • addRightOperands

      public MatchingFunction.Builder addRightOperands(int index, Operand value)
       The operands on the right hand side of the equation.
       
      repeated .google.ads.googleads.v18.common.Operand right_operands = 3;
    • addRightOperands

      public MatchingFunction.Builder addRightOperands(Operand.Builder builderForValue)
       The operands on the right hand side of the equation.
       
      repeated .google.ads.googleads.v18.common.Operand right_operands = 3;
    • addRightOperands

      public MatchingFunction.Builder addRightOperands(int index, Operand.Builder builderForValue)
       The operands on the right hand side of the equation.
       
      repeated .google.ads.googleads.v18.common.Operand right_operands = 3;
    • addAllRightOperands

      public MatchingFunction.Builder addAllRightOperands(Iterable<? extends Operand> values)
       The operands on the right hand side of the equation.
       
      repeated .google.ads.googleads.v18.common.Operand right_operands = 3;
    • clearRightOperands

      public MatchingFunction.Builder clearRightOperands()
       The operands on the right hand side of the equation.
       
      repeated .google.ads.googleads.v18.common.Operand right_operands = 3;
    • removeRightOperands

      public MatchingFunction.Builder removeRightOperands(int index)
       The operands on the right hand side of the equation.
       
      repeated .google.ads.googleads.v18.common.Operand right_operands = 3;
    • getRightOperandsBuilder

      public Operand.Builder getRightOperandsBuilder(int index)
       The operands on the right hand side of the equation.
       
      repeated .google.ads.googleads.v18.common.Operand right_operands = 3;
    • getRightOperandsOrBuilder

      public OperandOrBuilder getRightOperandsOrBuilder(int index)
       The operands on the right hand side of the equation.
       
      repeated .google.ads.googleads.v18.common.Operand right_operands = 3;
      Specified by:
      getRightOperandsOrBuilder in interface MatchingFunctionOrBuilder
    • getRightOperandsOrBuilderList

      public List<? extends OperandOrBuilder> getRightOperandsOrBuilderList()
       The operands on the right hand side of the equation.
       
      repeated .google.ads.googleads.v18.common.Operand right_operands = 3;
      Specified by:
      getRightOperandsOrBuilderList in interface MatchingFunctionOrBuilder
    • addRightOperandsBuilder

      public Operand.Builder addRightOperandsBuilder()
       The operands on the right hand side of the equation.
       
      repeated .google.ads.googleads.v18.common.Operand right_operands = 3;
    • addRightOperandsBuilder

      public Operand.Builder addRightOperandsBuilder(int index)
       The operands on the right hand side of the equation.
       
      repeated .google.ads.googleads.v18.common.Operand right_operands = 3;
    • getRightOperandsBuilderList

      public List<Operand.Builder> getRightOperandsBuilderList()
       The operands on the right hand side of the equation.
       
      repeated .google.ads.googleads.v18.common.Operand right_operands = 3;
    • setUnknownFields

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

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