Class MatchingFunction
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.ads.googleads.v18.common.MatchingFunction
- All Implemented Interfaces:
MatchingFunctionOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,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 type
google.ads.googleads.v18.common.MatchingFunction- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMatching 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<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic MatchingFunctionstatic final com.google.protobuf.Descriptors.DescriptorString representation of the Function.com.google.protobuf.ByteStringString representation of the Function.getLeftOperands(int index) The operands on the left hand side of the equation.intThe operands on the left hand side of the equation.The operands on the left hand side of the equation.getLeftOperandsOrBuilder(int index) The operands on the left hand side of the equation.List<? extends OperandOrBuilder>The operands on the left hand side of the equation.Operator for a function.intOperator for a function.com.google.protobuf.Parser<MatchingFunction>getRightOperands(int index) The operands on the right hand side of the equation.intThe operands on the right hand side of the equation.The operands on the right hand side of the equation.getRightOperandsOrBuilder(int index) The operands on the right hand side of the equation.List<? extends OperandOrBuilder>The operands on the right hand side of the equation.intbooleanString representation of the Function.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic MatchingFunction.Builderstatic MatchingFunction.BuildernewBuilder(MatchingFunction prototype) protected MatchingFunction.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static MatchingFunctionparseDelimitedFrom(InputStream input) static MatchingFunctionparseDelimitedFrom(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(InputStream input) static MatchingFunctionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MatchingFunctionparseFrom(ByteBuffer data) static MatchingFunctionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<MatchingFunction>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
FUNCTION_STRING_FIELD_NUMBER
public static final int FUNCTION_STRING_FIELD_NUMBER- See Also:
-
OPERATOR_FIELD_NUMBER
public static final int OPERATOR_FIELD_NUMBER- See Also:
-
LEFT_OPERANDS_FIELD_NUMBER
public static final int LEFT_OPERANDS_FIELD_NUMBER- See Also:
-
RIGHT_OPERANDS_FIELD_NUMBER
public static final int RIGHT_OPERANDS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein 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/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:
hasFunctionStringin interfaceMatchingFunctionOrBuilder- Returns:
- Whether the functionString field is set.
-
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:
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/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:
getFunctionStringBytesin interfaceMatchingFunctionOrBuilder- Returns:
- The bytes for functionString.
-
getOperatorValue
public int getOperatorValue()Operator for a function.
.google.ads.googleads.v18.enums.MatchingFunctionOperatorEnum.MatchingFunctionOperator operator = 4;- Specified by:
getOperatorValuein interfaceMatchingFunctionOrBuilder- Returns:
- The enum numeric value on the wire for operator.
-
getOperator
Operator for a function.
.google.ads.googleads.v18.enums.MatchingFunctionOperatorEnum.MatchingFunctionOperator operator = 4;- Specified by:
getOperatorin interfaceMatchingFunctionOrBuilder- Returns:
- The operator.
-
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:
getLeftOperandsListin interfaceMatchingFunctionOrBuilder
-
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:
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.v18.common.Operand left_operands = 2;- Specified by:
getLeftOperandsCountin interfaceMatchingFunctionOrBuilder
-
getLeftOperands
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:
getLeftOperandsin interfaceMatchingFunctionOrBuilder
-
getLeftOperandsOrBuilder
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:
getLeftOperandsOrBuilderin interfaceMatchingFunctionOrBuilder
-
getRightOperandsList
The operands on the right hand side of the equation.
repeated .google.ads.googleads.v18.common.Operand right_operands = 3;- Specified by:
getRightOperandsListin interfaceMatchingFunctionOrBuilder
-
getRightOperandsOrBuilderList
The operands on the right hand side of the equation.
repeated .google.ads.googleads.v18.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.v18.common.Operand right_operands = 3;- Specified by:
getRightOperandsCountin interfaceMatchingFunctionOrBuilder
-
getRightOperands
The operands on the right hand side of the equation.
repeated .google.ads.googleads.v18.common.Operand right_operands = 3;- Specified by:
getRightOperandsin interfaceMatchingFunctionOrBuilder
-
getRightOperandsOrBuilder
The operands on the right hand side of the equation.
repeated .google.ads.googleads.v18.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
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- 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(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MatchingFunction parseFrom(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
- Throws:
IOException
-
parseFrom
public static MatchingFunction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static MatchingFunction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static MatchingFunction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static MatchingFunction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
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
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-