public class SelectorBuilder extends Object implements SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>
Selector objects.
This builder is not thread safe.| Constructor and Description |
|---|
SelectorBuilder() |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.ads.adwords.jaxws.v201708.cm.Selector |
build()
Builds a new Selector.
|
SelectorBuilder |
contains(EntityField field,
String propertyValue)
Adds the predicate contains to the selector for the given field and value.
|
SelectorBuilder |
contains(String field,
String propertyValue)
Adds the predicate contains to the selector for the given field and value.
|
SelectorBuilder |
containsAll(EntityField field,
String... values)
Adds the predicate contains all to the selector for the given field and value.
|
SelectorBuilder |
containsAll(String field,
String... values)
Adds the predicate contains all to the selector for the given field and value.
|
SelectorBuilder |
containsAny(EntityField field,
String... values)
Adds the predicate contains any to the selector for the given field and value.
|
SelectorBuilder |
containsAny(String field,
String... values)
Adds the predicate contains any to the selector for the given field and value.
|
SelectorBuilder |
containsIgnoreCase(EntityField field,
String propertyValue)
Adds the predicate contains ignore case to the selector for the given field and value.
|
SelectorBuilder |
containsIgnoreCase(String field,
String propertyValue)
Adds the predicate contains ignore case to the selector for the given field and value.
|
SelectorBuilder |
containsNone(EntityField field,
String... values)
Adds the predicate contains none to the selector for the given field and value.
|
SelectorBuilder |
containsNone(String field,
String... values)
Adds the predicate contains none to the selector for the given field and value.
|
SelectorBuilder |
doesNotContain(EntityField field,
String propertyValue)
Adds the predicate does not contain to the selector for the given field and value.
|
SelectorBuilder |
doesNotContain(String field,
String propertyValue)
Adds the predicate does not contain to the selector for the given field and value.
|
SelectorBuilder |
doesNotContainIgnoreCase(EntityField field,
String propertyValue)
Adds the predicate does not contain ignore case to the selector for the given field and
value.
|
SelectorBuilder |
doesNotContainIgnoreCase(String field,
String propertyValue)
Adds the predicate does not contain ignore case to the selector for the given field and
value.
|
SelectorBuilder |
equals(EntityField field,
String propertyValue)
Adds the predicate equals to the selector for the given field and value.
|
SelectorBuilder |
equals(String field,
String propertyValue)
Adds the predicate equals to the selector for the given field and value.
|
SelectorBuilder |
equalsId(Long id)
Adds the predicate equals to the selector for the entity Id and the given id value.
|
SelectorBuilder |
fields(EntityField... fields)
Chooses the set of fields that will be selected via the API.
|
SelectorBuilder |
fields(String... fields)
Chooses the set of fields that will be selected via the API.
|
SelectorBuilder |
forDateRange(org.joda.time.DateTime start,
org.joda.time.DateTime end)
Restricts the Selector by the date range.
|
SelectorBuilder |
greaterThan(EntityField field,
long propertyValue)
Adds the predicate greater than to the selector for the given field and value.
|
SelectorBuilder |
greaterThan(String field,
long propertyValue)
Adds the predicate greater than to the selector for the given field and value.
|
SelectorBuilder |
greaterThanEquals(EntityField field,
long propertyValue)
Adds the predicate greater than equals to the selector for the given field and value.
|
SelectorBuilder |
greaterThanEquals(String field,
long propertyValue)
Adds the predicate greater than equals to the selector for the given field and value.
|
SelectorBuilder |
in(EntityField field,
String... values)
Adds the predicate in to the selector for the given field and set of values.
|
SelectorBuilder |
in(String field,
String... values)
Adds the predicate in to the selector for the given field and set of values.
|
SelectorBuilder |
increaseOffsetBy(int additionalOffset)
Adds the given amount to the current offset.
|
SelectorBuilder |
lessThan(EntityField field,
long propertyValue)
Adds the predicate less than to the selector for the given field and value.
|
SelectorBuilder |
lessThan(String field,
long propertyValue)
Adds the predicate less than to the selector for the given field and value.
|
SelectorBuilder |
lessThanEquals(EntityField field,
long propertyValue)
Adds the predicate less than equals to the selector for the given field and value.
|
SelectorBuilder |
lessThanEquals(String field,
long propertyValue)
Adds the predicate less than equals to the selector for the given field and value.
|
SelectorBuilder |
limit(int limit)
Sets the limit amount of results that will be brought back.
|
SelectorBuilder |
notEquals(EntityField field,
String propertyValue)
Adds the predicate not equals to the selector for the given field and value.
|
SelectorBuilder |
notEquals(String field,
String propertyValue)
Adds the predicate not equals to the selector for the given field and value.
|
SelectorBuilder |
notIn(EntityField field,
String... values)
Adds the predicate not in to the selector for the given field and set of values.
|
SelectorBuilder |
notIn(String field,
String... values)
Adds the predicate not in to the selector for the given field and set of values.
|
SelectorBuilder |
offset(int offset)
Sets the offset for the start point of the query.
|
SelectorBuilder |
orderAscBy(EntityField field)
Adds the order by the given field, on ASCENDING sort.
|
SelectorBuilder |
orderAscBy(String field)
Adds the order by the given field, on ASCENDING sort.
|
SelectorBuilder |
orderDescBy(EntityField field)
Adds the order by the given field, on DESCENDING sort.
|
SelectorBuilder |
orderDescBy(String field)
Adds the order by the given field, on DESCENDING sort.
|
SelectorBuilder |
removeLimitAndOffset()
Removes the offset and limit information from the selector.
|
SelectorBuilder |
removeOrderBy(EntityField field)
Removes the order that is associated with the given field.
|
SelectorBuilder |
removeOrderBy(String field)
Removes the order that is associated with the given field.
|
public com.google.api.ads.adwords.jaxws.v201708.cm.Selector build()
SelectorBuilderInterfaceWhen a Selector is built by this method, the state of the builder doesn't change. If you need to clean the builder, the best way to do it, is by creating a new instance.
build in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>public SelectorBuilder fields(String... fields)
SelectorBuilderInterfaceCalling this method multiple times will overwrite the previous fields that were set.
fields in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>fields - the set of fields of the given entity.public SelectorBuilder fields(EntityField... fields)
SelectorBuilderInterfaceCalling this method multiple times will overwrite the previous fields that were set.
fields in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>fields - the set of fields of the given entity as Java Enums.public SelectorBuilder increaseOffsetBy(int additionalOffset)
SelectorBuilderInterfaceincreaseOffsetBy in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>additionalOffset - the amount that will be added to the offsetpublic SelectorBuilder limit(int limit)
SelectorBuilderInterfacelimit in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>public SelectorBuilder offset(int offset)
SelectorBuilderInterfaceoffset in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>offset - the offsetpublic SelectorBuilder removeLimitAndOffset()
SelectorBuilderInterfaceremoveLimitAndOffset in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>public SelectorBuilder orderAscBy(String field)
SelectorBuilderInterfaceorderAscBy in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>public SelectorBuilder orderAscBy(EntityField field)
SelectorBuilderInterfaceorderAscBy in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>public SelectorBuilder orderDescBy(String field)
SelectorBuilderInterfaceorderDescBy in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>public SelectorBuilder orderDescBy(EntityField field)
SelectorBuilderInterfaceorderDescBy in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>public SelectorBuilder removeOrderBy(String field)
SelectorBuilderInterfaceremoveOrderBy in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>public SelectorBuilder removeOrderBy(EntityField field)
SelectorBuilderInterfaceremoveOrderBy in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>public SelectorBuilder forDateRange(org.joda.time.DateTime start, org.joda.time.DateTime end)
SelectorBuilderInterfaceforDateRange in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>public SelectorBuilder equals(String field, String propertyValue)
SelectorBuilderInterfaceequals in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder equals(EntityField field, String propertyValue)
SelectorBuilderInterfaceequals in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder notEquals(String field, String propertyValue)
SelectorBuilderInterfacenotEquals in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder notEquals(EntityField field, String propertyValue)
SelectorBuilderInterfacenotEquals in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder contains(String field, String propertyValue)
SelectorBuilderInterfacecontains in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder contains(EntityField field, String propertyValue)
SelectorBuilderInterfacecontains in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder containsIgnoreCase(String field, String propertyValue)
SelectorBuilderInterfacecontainsIgnoreCase in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder containsIgnoreCase(EntityField field, String propertyValue)
SelectorBuilderInterfacecontainsIgnoreCase in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder doesNotContain(String field, String propertyValue)
SelectorBuilderInterfacedoesNotContain in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder doesNotContain(EntityField field, String propertyValue)
SelectorBuilderInterfacedoesNotContain in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder doesNotContainIgnoreCase(String field, String propertyValue)
SelectorBuilderInterfacedoesNotContainIgnoreCase in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder doesNotContainIgnoreCase(EntityField field, String propertyValue)
SelectorBuilderInterfacedoesNotContainIgnoreCase in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder greaterThan(String field, long propertyValue)
SelectorBuilderInterfacegreaterThan in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder greaterThan(EntityField field, long propertyValue)
SelectorBuilderInterfacegreaterThan in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder greaterThanEquals(String field, long propertyValue)
SelectorBuilderInterfacegreaterThanEquals in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder greaterThanEquals(EntityField field, long propertyValue)
SelectorBuilderInterfacegreaterThanEquals in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder lessThan(String field, long propertyValue)
SelectorBuilderInterfacelessThan in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder lessThan(EntityField field, long propertyValue)
SelectorBuilderInterfacelessThan in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder lessThanEquals(String field, long propertyValue)
SelectorBuilderInterfacelessThanEquals in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder lessThanEquals(EntityField field, long propertyValue)
SelectorBuilderInterfacelessThanEquals in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>propertyValue - the property value as a String independently of the field type. The caller
should take care of the formatting if it is necessarypublic SelectorBuilder equalsId(Long id)
SelectorBuilderInterfaceequalsId in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>id - the ID of the current entity. This field represents different values for different
entity typespublic SelectorBuilder in(String field, String... values)
SelectorBuilderInterfacein in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>public SelectorBuilder in(EntityField field, String... values)
SelectorBuilderInterfacein in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>public SelectorBuilder notIn(String field, String... values)
SelectorBuilderInterfacenotIn in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>public SelectorBuilder notIn(EntityField field, String... values)
SelectorBuilderInterfacenotIn in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>public SelectorBuilder containsAny(String field, String... values)
SelectorBuilderInterfacecontainsAny in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>public SelectorBuilder containsAny(EntityField field, String... values)
SelectorBuilderInterfacecontainsAny in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>public SelectorBuilder containsAll(String field, String... values)
SelectorBuilderInterfacecontainsAll in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>public SelectorBuilder containsAll(EntityField field, String... values)
SelectorBuilderInterfacecontainsAll in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>public SelectorBuilder containsNone(String field, String... values)
SelectorBuilderInterfacecontainsNone in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>public SelectorBuilder containsNone(EntityField field, String... values)
SelectorBuilderInterfacecontainsNone in interface SelectorBuilderInterface<com.google.api.ads.adwords.jaxws.v201708.cm.Selector>Copyright © 2018. All Rights Reserved.