com.google.api.ads.adwords.v201109.cm
Class Predicate

java.lang.Object
  extended by com.google.api.ads.adwords.v201109.cm.Predicate
All Implemented Interfaces:
Serializable

public class Predicate
extends Object
implements Serializable

Specifies how an entity (eg. adgroup, campaign, criterion, ad) should be filtered.

See Also:
Serialized Form

Constructor Summary
Predicate()
           
Predicate(String field, PredicateOperator operator, String[] values)
           
 
Method Summary
 boolean equals(Object obj)
           
static org.apache.axis.encoding.Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Deserializer
 String getField()
          Gets the field value for this Predicate.
 PredicateOperator getOperator()
          Gets the operator value for this Predicate.
static org.apache.axis.encoding.Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
          Get Custom Serializer
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object
 String[] getValues()
          Gets the values value for this Predicate.
 String getValues(int i)
           
 int hashCode()
           
 void setField(String field)
          Sets the field value for this Predicate.
 void setOperator(PredicateOperator operator)
          Sets the operator value for this Predicate.
 void setValues(int i, String _value)
           
 void setValues(String[] values)
          Sets the values value for this Predicate.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Predicate

public Predicate()

Predicate

public Predicate(String field,
                 PredicateOperator operator,
                 String[] values)
Method Detail

getField

public String getField()
Gets the field value for this Predicate.

Returns:
field * The field by which to filter the returned data. Possible values are marked Filterable on the entity's reference page. For example, for predicates for the CampaignService selector, refer to the filterable fields from the Campaign reference page. This field is required and should not be null.

setField

public void setField(String field)
Sets the field value for this Predicate.

Parameters:
field - * The field by which to filter the returned data. Possible values are marked Filterable on the entity's reference page. For example, for predicates for the CampaignService selector, refer to the filterable fields from the Campaign reference page. This field is required and should not be null.

getOperator

public PredicateOperator getOperator()
Gets the operator value for this Predicate.

Returns:
operator * The operator to use for filtering the data returned. This field is required and should not be null.

setOperator

public void setOperator(PredicateOperator operator)
Sets the operator value for this Predicate.

Parameters:
operator - * The operator to use for filtering the data returned. This field is required and should not be null.

getValues

public String[] getValues()
Gets the values value for this Predicate.

Returns:
values * The values by which to filter the field. The Operator#IN and Operator#NOT_IN take multiple values. All others take a single value. This field must not contain null elements. This field is required and should not be null.

setValues

public void setValues(String[] values)
Sets the values value for this Predicate.

Parameters:
values - * The values by which to filter the field. The Operator#IN and Operator#NOT_IN take multiple values. All others take a single value. This field must not contain null elements. This field is required and should not be null.

getValues

public String getValues(int i)

setValues

public void setValues(int i,
                      String _value)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()
Return type metadata object


getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(String mechType,
                                                                Class _javaType,
                                                                QName _xmlType)
Get Custom Serializer


getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(String mechType,
                                                                    Class _javaType,
                                                                    QName _xmlType)
Get Custom Deserializer



Copyright © 2011. All Rights Reserved.