Class MatchingFunction
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.ads.googleads.v10.common.MatchingFunction
-
- All Implemented Interfaces:
MatchingFunctionOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
public final class MatchingFunction extends com.google.protobuf.GeneratedMessageV3 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 typegoogle.ads.googleads.v10.common.MatchingFunction- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMatchingFunction.BuilderMatching function associated with a CustomerFeed, CampaignFeed, or AdGroupFeed.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intFUNCTION_STRING_FIELD_NUMBERstatic intLEFT_OPERANDS_FIELD_NUMBERstatic intOPERATOR_FIELD_NUMBERstatic intRIGHT_OPERANDS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static MatchingFunctiongetDefaultInstance()MatchingFunctiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetFunctionString()String representation of the Function.com.google.protobuf.ByteStringgetFunctionStringBytes()String representation of the Function.OperandgetLeftOperands(int index)The operands on the left hand side of the equation.intgetLeftOperandsCount()The operands on the left hand side of the equation.java.util.List<Operand>getLeftOperandsList()The operands on the left hand side of the equation.OperandOrBuildergetLeftOperandsOrBuilder(int index)The operands on the left hand side of the equation.java.util.List<? extends OperandOrBuilder>getLeftOperandsOrBuilderList()The operands on the left hand side of the equation.MatchingFunctionOperatorEnum.MatchingFunctionOperatorgetOperator()Operator for a function.intgetOperatorValue()Operator for a function.com.google.protobuf.Parser<MatchingFunction>getParserForType()OperandgetRightOperands(int index)The operands on the right hand side of the equation.intgetRightOperandsCount()The operands on the right hand side of the equation.java.util.List<Operand>getRightOperandsList()The operands on the right hand side of the equation.OperandOrBuildergetRightOperandsOrBuilder(int index)The operands on the right hand side of the equation.java.util.List<? extends OperandOrBuilder>getRightOperandsOrBuilderList()The operands on the right hand side of the equation.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasFunctionString()String representation of the Function.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static MatchingFunction.BuildernewBuilder()static MatchingFunction.BuildernewBuilder(MatchingFunction prototype)MatchingFunction.BuildernewBuilderForType()protected MatchingFunction.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static MatchingFunctionparseDelimitedFrom(java.io.InputStream input)static MatchingFunctionparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MatchingFunctionparseFrom(byte[] data)static MatchingFunctionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MatchingFunctionparseFrom(com.google.protobuf.ByteString data)static MatchingFunctionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MatchingFunctionparseFrom(com.google.protobuf.CodedInputStream input)static MatchingFunctionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MatchingFunctionparseFrom(java.io.InputStream input)static MatchingFunctionparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MatchingFunctionparseFrom(java.nio.ByteBuffer data)static MatchingFunctionparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<MatchingFunction>parser()MatchingFunction.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
FUNCTION_STRING_FIELD_NUMBER
public static final int FUNCTION_STRING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPERATOR_FIELD_NUMBER
public static final int OPERATOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LEFT_OPERANDS_FIELD_NUMBER
public static final int LEFT_OPERANDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RIGHT_OPERANDS_FIELD_NUMBER
public static final int RIGHT_OPERANDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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/adwords/api/docs/guides/feed-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:
hasFunctionStringin interfaceMatchingFunctionOrBuilder- Returns:
- Whether the functionString field is set.
-
getFunctionString
public java.lang.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/adwords/api/docs/guides/feed-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:
getFunctionStringin interfaceMatchingFunctionOrBuilder- 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/adwords/api/docs/guides/feed-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:
getFunctionStringBytesin interfaceMatchingFunctionOrBuilder- Returns:
- The bytes for functionString.
-
getOperatorValue
public int getOperatorValue()
Operator for a function.
.google.ads.googleads.v10.enums.MatchingFunctionOperatorEnum.MatchingFunctionOperator operator = 4;- Specified by:
getOperatorValuein interfaceMatchingFunctionOrBuilder- Returns:
- The enum numeric value on the wire for operator.
-
getOperator
public MatchingFunctionOperatorEnum.MatchingFunctionOperator getOperator()
Operator for a function.
.google.ads.googleads.v10.enums.MatchingFunctionOperatorEnum.MatchingFunctionOperator operator = 4;- Specified by:
getOperatorin interfaceMatchingFunctionOrBuilder- Returns:
- The operator.
-
getLeftOperandsList
public java.util.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.v10.common.Operand left_operands = 2;- Specified by:
getLeftOperandsListin interfaceMatchingFunctionOrBuilder
-
getLeftOperandsOrBuilderList
public java.util.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.v10.common.Operand left_operands = 2;- Specified by:
getLeftOperandsOrBuilderListin interfaceMatchingFunctionOrBuilder
-
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.v10.common.Operand left_operands = 2;- Specified by:
getLeftOperandsCountin interfaceMatchingFunctionOrBuilder
-
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.v10.common.Operand left_operands = 2;- Specified by:
getLeftOperandsin interfaceMatchingFunctionOrBuilder
-
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.v10.common.Operand left_operands = 2;- Specified by:
getLeftOperandsOrBuilderin interfaceMatchingFunctionOrBuilder
-
getRightOperandsList
public java.util.List<Operand> getRightOperandsList()
The operands on the right hand side of the equation.
repeated .google.ads.googleads.v10.common.Operand right_operands = 3;- Specified by:
getRightOperandsListin interfaceMatchingFunctionOrBuilder
-
getRightOperandsOrBuilderList
public java.util.List<? extends OperandOrBuilder> getRightOperandsOrBuilderList()
The operands on the right hand side of the equation.
repeated .google.ads.googleads.v10.common.Operand right_operands = 3;- Specified by:
getRightOperandsOrBuilderListin interfaceMatchingFunctionOrBuilder
-
getRightOperandsCount
public int getRightOperandsCount()
The operands on the right hand side of the equation.
repeated .google.ads.googleads.v10.common.Operand right_operands = 3;- Specified by:
getRightOperandsCountin interfaceMatchingFunctionOrBuilder
-
getRightOperands
public Operand getRightOperands(int index)
The operands on the right hand side of the equation.
repeated .google.ads.googleads.v10.common.Operand right_operands = 3;- Specified by:
getRightOperandsin interfaceMatchingFunctionOrBuilder
-
getRightOperandsOrBuilder
public OperandOrBuilder getRightOperandsOrBuilder(int index)
The operands on the right hand side of the equation.
repeated .google.ads.googleads.v10.common.Operand right_operands = 3;- Specified by:
getRightOperandsOrBuilderin interfaceMatchingFunctionOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static MatchingFunction parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MatchingFunction parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MatchingFunction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MatchingFunction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MatchingFunction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MatchingFunction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MatchingFunction parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static MatchingFunction parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static MatchingFunction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static MatchingFunction parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static MatchingFunction parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static MatchingFunction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public MatchingFunction.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static MatchingFunction.Builder newBuilder()
-
newBuilder
public static MatchingFunction.Builder newBuilder(MatchingFunction prototype)
-
toBuilder
public MatchingFunction.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected MatchingFunction.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static MatchingFunction getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<MatchingFunction> parser()
-
getParserForType
public com.google.protobuf.Parser<MatchingFunction> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public MatchingFunction getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-