
com.vendasta.accountgroup.v1.internal.LookupRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of accountgroup.v1 Show documentation
Show all versions of accountgroup.v1 Show documentation
Java SDK for service account-group
The newest version!
package com.vendasta.accountgroup.v1.internal;
import java.util.List;
import java.util.ArrayList;
import java.util.Date;
import java.util.Map;
import java.util.HashMap;
import java.util.Collections;
import java.util.Arrays;
import java.time.Duration;
import org.apache.commons.lang3.StringUtils;
import com.vendasta.accountgroup.v1.generated.ApiProto;
/**
*
**/
public final class LookupRequest {
/**
*
**/
public enum AccountStatus {
Enabled(0),
Disabled(1),
Trial(2);
private static final Map protoTypeMap;
static {
Map aMap;
aMap = new HashMap();
aMap.put(ApiProto.LookupRequest.AccountStatus.Enabled, LookupRequest.AccountStatus.Enabled);
aMap.put(ApiProto.LookupRequest.AccountStatus.Disabled, LookupRequest.AccountStatus.Disabled);
aMap.put(ApiProto.LookupRequest.AccountStatus.Trial, LookupRequest.AccountStatus.Trial);
protoTypeMap = Collections.unmodifiableMap(aMap);
}
private static final Map javaTypeMap;
static {
Map aMap;
aMap = new HashMap();
aMap.put(LookupRequest.AccountStatus.Enabled, ApiProto.LookupRequest.AccountStatus.Enabled);
aMap.put(LookupRequest.AccountStatus.Disabled, ApiProto.LookupRequest.AccountStatus.Disabled);
aMap.put(LookupRequest.AccountStatus.Trial, ApiProto.LookupRequest.AccountStatus.Trial);
javaTypeMap = Collections.unmodifiableMap(aMap);
}
private int value;
private AccountStatus(int i) {
value = i;
}
public int getValue() {
return value;
}
public static AccountStatus fromProto(ApiProto.LookupRequest.AccountStatus proto) {
return protoTypeMap.get(proto);
}
public static List fromProtos(List protos) {
List result = new ArrayList();
for(ApiProto.LookupRequest.AccountStatus proto : protos) {
result.add(AccountStatus.fromProto(proto));
}
return result;
}
public ApiProto.LookupRequest.AccountStatus toProto() {
return javaTypeMap.get(this);
}
public static List toProtos(List objects) {
List result = new ArrayList();
for(AccountStatus obj : objects) {
result.add(obj.toProto());
}
return result;
}
}
/**
*
**/
public enum Presence {
Any(0),
Present(1),
Absent(2);
private static final Map protoTypeMap;
static {
Map aMap;
aMap = new HashMap();
aMap.put(ApiProto.LookupRequest.Presence.Any, LookupRequest.Presence.Any);
aMap.put(ApiProto.LookupRequest.Presence.Present, LookupRequest.Presence.Present);
aMap.put(ApiProto.LookupRequest.Presence.Absent, LookupRequest.Presence.Absent);
protoTypeMap = Collections.unmodifiableMap(aMap);
}
private static final Map javaTypeMap;
static {
Map aMap;
aMap = new HashMap();
aMap.put(LookupRequest.Presence.Any, ApiProto.LookupRequest.Presence.Any);
aMap.put(LookupRequest.Presence.Present, ApiProto.LookupRequest.Presence.Present);
aMap.put(LookupRequest.Presence.Absent, ApiProto.LookupRequest.Presence.Absent);
javaTypeMap = Collections.unmodifiableMap(aMap);
}
private int value;
private Presence(int i) {
value = i;
}
public int getValue() {
return value;
}
public static Presence fromProto(ApiProto.LookupRequest.Presence proto) {
return protoTypeMap.get(proto);
}
public static List fromProtos(List protos) {
List result = new ArrayList();
for(ApiProto.LookupRequest.Presence proto : protos) {
result.add(Presence.fromProto(proto));
}
return result;
}
public ApiProto.LookupRequest.Presence toProto() {
return javaTypeMap.get(this);
}
public static List toProtos(List objects) {
List result = new ArrayList();
for(Presence obj : objects) {
result.add(obj.toProto());
}
return result;
}
}
/**
*
**/
public static final class AccountFilter {
private final String marketplaceAppId;
private final LookupRequest.AccountStatus accountStatus;
private AccountFilter (
final String marketplaceAppId,
final LookupRequest.AccountStatus accountStatus)
{
this.marketplaceAppId = marketplaceAppId;
this.accountStatus = accountStatus;
}
/**
*
* @return The final value of marketplaceAppId on the object
**/
public String getMarketplaceAppId() {
return this.marketplaceAppId;
}
/**
*
* @return The final value of accountStatus on the object
**/
public LookupRequest.AccountStatus getAccountStatus() {
return this.accountStatus;
}
public static class Builder {
private String marketplaceAppId;
private LookupRequest.AccountStatus accountStatus;
public Builder() {
this.marketplaceAppId = "";
this.accountStatus = null;
}
/**
* Adds a value to the builder for marketplaceAppId
* @param marketplaceAppId Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setMarketplaceAppId(String marketplaceAppId) {
this.marketplaceAppId = marketplaceAppId;
return this;
}
/**
* Adds a value to the builder for accountStatus
* @param accountStatus Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setAccountStatus(LookupRequest.AccountStatus accountStatus) {
this.accountStatus = accountStatus;
return this;
}
/**
* Takes the configuration in the mutable Builder and uses it to instantiate a final instance
* of the AccountFilter class
* @return The instantiated final AccountFilter
**/
public AccountFilter build() {
return new AccountFilter(
this.marketplaceAppId,
this.accountStatus);
}
}
/**
* Returns a Builder for AccountFilter, which is a mutable representation of the object. Once the
* client has built up an object they can then create an immutable AccountFilter object using the
* build function.
* @return A fresh Builder instance with no values set
**/
public static Builder newBuilder() {
return new Builder();
}
/**
* Provides a human-readable representation of this object. Useful for debugging.
* @return A string representation of the AccountFilter instance
**/
public String toString() {
String result = "AccountFilter\n";
result += "-> marketplaceAppId: (String)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.marketplaceAppId).split("\n"))) + "\n";
result += "-> accountStatus: (LookupRequest.AccountStatus)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.accountStatus).split("\n"))) + "\n";
return result;
}
/**
* Allows for simple conversion between the low-level generated protobuf object to
* AccountFilter, which is much more usable.
* @return An instance of AccountFilter representing the input proto object
**/
public static AccountFilter fromProto(ApiProto.LookupRequest.AccountFilter proto) {
AccountFilter out = null;
if (proto != null) {
AccountFilter.Builder outBuilder = AccountFilter.newBuilder()
.setMarketplaceAppId(proto.getMarketplaceAppId())
.setAccountStatus(LookupRequest.AccountStatus.fromProto(proto.getAccountStatus()));
out = outBuilder.build();
}
return out;
}
/**
* Convenience method for handling lists of proto objects. It calls .fromProto on each one
* and returns a list of the converted results.
* @return A list of AccountFilter instances representing the input proto objects
**/
public static List fromProtos(List protos) {
List out = new ArrayList();
for(ApiProto.LookupRequest.AccountFilter proto : protos) {
out.add(AccountFilter.fromProto(proto));
}
return out;
}
/**
* Allows for simple conversion of an object to the low-level generated protobuf object.
* @return An instance of ApiProto.LookupRequest.AccountFilter which is a proto object ready for wire transmission
**/
public ApiProto.LookupRequest.AccountFilter toProto() {
AccountFilter obj = this;
ApiProto.LookupRequest.AccountFilter.Builder outBuilder = ApiProto.LookupRequest.AccountFilter.newBuilder();
outBuilder.setMarketplaceAppId(obj.getMarketplaceAppId());
outBuilder.setAccountStatus(obj.getAccountStatus() != null?obj.getAccountStatus().toProto():null);
return outBuilder.build();
}
/**
* Convenience method for handling lists of objects. It calls .toProto on each one and
* returns a list of the converted results.
* @return A list of ApiProto.LookupRequest.AccountFilter instances representing the input objects.
*/
public static List toProtos(List objects) {
List out = new ArrayList();
if(objects != null) {
for (AccountFilter obj : objects) {
out.add(obj!=null?obj.toProto():null);
}
}
return out;
}
}
/**
*
**/
public static final class ListingDistributionFilter {
/**
* ActivationStatus is a status that Listing Distribution can be in.
**/
public enum ActivationStatus {
ACTIVATION_STATUS_UNSPECIFIED(0),
ACTIVATION_STATUS_ACTIVE(1),
ACTIVATION_STATUS_INACTIVE(2),
ACTIVATION_STATUS_EXPIRED(3);
private static final Map protoTypeMap;
static {
Map aMap;
aMap = new HashMap();
aMap.put(ApiProto.LookupRequest.ListingDistributionFilter.ActivationStatus.ACTIVATION_STATUS_UNSPECIFIED, LookupRequest.ListingDistributionFilter.ActivationStatus.ACTIVATION_STATUS_UNSPECIFIED);
aMap.put(ApiProto.LookupRequest.ListingDistributionFilter.ActivationStatus.ACTIVATION_STATUS_ACTIVE, LookupRequest.ListingDistributionFilter.ActivationStatus.ACTIVATION_STATUS_ACTIVE);
aMap.put(ApiProto.LookupRequest.ListingDistributionFilter.ActivationStatus.ACTIVATION_STATUS_INACTIVE, LookupRequest.ListingDistributionFilter.ActivationStatus.ACTIVATION_STATUS_INACTIVE);
aMap.put(ApiProto.LookupRequest.ListingDistributionFilter.ActivationStatus.ACTIVATION_STATUS_EXPIRED, LookupRequest.ListingDistributionFilter.ActivationStatus.ACTIVATION_STATUS_EXPIRED);
protoTypeMap = Collections.unmodifiableMap(aMap);
}
private static final Map javaTypeMap;
static {
Map aMap;
aMap = new HashMap();
aMap.put(LookupRequest.ListingDistributionFilter.ActivationStatus.ACTIVATION_STATUS_UNSPECIFIED, ApiProto.LookupRequest.ListingDistributionFilter.ActivationStatus.ACTIVATION_STATUS_UNSPECIFIED);
aMap.put(LookupRequest.ListingDistributionFilter.ActivationStatus.ACTIVATION_STATUS_ACTIVE, ApiProto.LookupRequest.ListingDistributionFilter.ActivationStatus.ACTIVATION_STATUS_ACTIVE);
aMap.put(LookupRequest.ListingDistributionFilter.ActivationStatus.ACTIVATION_STATUS_INACTIVE, ApiProto.LookupRequest.ListingDistributionFilter.ActivationStatus.ACTIVATION_STATUS_INACTIVE);
aMap.put(LookupRequest.ListingDistributionFilter.ActivationStatus.ACTIVATION_STATUS_EXPIRED, ApiProto.LookupRequest.ListingDistributionFilter.ActivationStatus.ACTIVATION_STATUS_EXPIRED);
javaTypeMap = Collections.unmodifiableMap(aMap);
}
private int value;
private ActivationStatus(int i) {
value = i;
}
public int getValue() {
return value;
}
public static ActivationStatus fromProto(ApiProto.LookupRequest.ListingDistributionFilter.ActivationStatus proto) {
return protoTypeMap.get(proto);
}
public static List fromProtos(List protos) {
List result = new ArrayList();
for(ApiProto.LookupRequest.ListingDistributionFilter.ActivationStatus proto : protos) {
result.add(ActivationStatus.fromProto(proto));
}
return result;
}
public ApiProto.LookupRequest.ListingDistributionFilter.ActivationStatus toProto() {
return javaTypeMap.get(this);
}
public static List toProtos(List objects) {
List result = new ArrayList();
for(ActivationStatus obj : objects) {
result.add(obj.toProto());
}
return result;
}
}
/**
* AutoRenew are the different values that the auto renew flag for LIsting Distrubution can have.
**/
public enum AutoRenew {
AUTO_RENEW_UNSPECIFIED(0),
AUTO_RENEW_ENABLED(1),
AUTO_RENEW_DISABLED(2);
private static final Map protoTypeMap;
static {
Map aMap;
aMap = new HashMap();
aMap.put(ApiProto.LookupRequest.ListingDistributionFilter.AutoRenew.AUTO_RENEW_UNSPECIFIED, LookupRequest.ListingDistributionFilter.AutoRenew.AUTO_RENEW_UNSPECIFIED);
aMap.put(ApiProto.LookupRequest.ListingDistributionFilter.AutoRenew.AUTO_RENEW_ENABLED, LookupRequest.ListingDistributionFilter.AutoRenew.AUTO_RENEW_ENABLED);
aMap.put(ApiProto.LookupRequest.ListingDistributionFilter.AutoRenew.AUTO_RENEW_DISABLED, LookupRequest.ListingDistributionFilter.AutoRenew.AUTO_RENEW_DISABLED);
protoTypeMap = Collections.unmodifiableMap(aMap);
}
private static final Map javaTypeMap;
static {
Map aMap;
aMap = new HashMap();
aMap.put(LookupRequest.ListingDistributionFilter.AutoRenew.AUTO_RENEW_UNSPECIFIED, ApiProto.LookupRequest.ListingDistributionFilter.AutoRenew.AUTO_RENEW_UNSPECIFIED);
aMap.put(LookupRequest.ListingDistributionFilter.AutoRenew.AUTO_RENEW_ENABLED, ApiProto.LookupRequest.ListingDistributionFilter.AutoRenew.AUTO_RENEW_ENABLED);
aMap.put(LookupRequest.ListingDistributionFilter.AutoRenew.AUTO_RENEW_DISABLED, ApiProto.LookupRequest.ListingDistributionFilter.AutoRenew.AUTO_RENEW_DISABLED);
javaTypeMap = Collections.unmodifiableMap(aMap);
}
private int value;
private AutoRenew(int i) {
value = i;
}
public int getValue() {
return value;
}
public static AutoRenew fromProto(ApiProto.LookupRequest.ListingDistributionFilter.AutoRenew proto) {
return protoTypeMap.get(proto);
}
public static List fromProtos(List protos) {
List result = new ArrayList();
for(ApiProto.LookupRequest.ListingDistributionFilter.AutoRenew proto : protos) {
result.add(AutoRenew.fromProto(proto));
}
return result;
}
public ApiProto.LookupRequest.ListingDistributionFilter.AutoRenew toProto() {
return javaTypeMap.get(this);
}
public static List toProtos(List objects) {
List result = new ArrayList();
for(AutoRenew obj : objects) {
result.add(obj.toProto());
}
return result;
}
}
private final boolean active;
private final boolean inactive;
private final long expiresInDays;
private final long expiredInDays;
private final long renewsInDays;
private final LookupRequest.ListingDistributionFilter.AutoRenew autoRenew;
private final LookupRequest.ListingDistributionFilter.ActivationStatus activationStatus;
private ListingDistributionFilter (
final boolean active,
final boolean inactive,
final long expiresInDays,
final long expiredInDays,
final long renewsInDays,
final LookupRequest.ListingDistributionFilter.AutoRenew autoRenew,
final LookupRequest.ListingDistributionFilter.ActivationStatus activationStatus)
{
this.active = active;
this.inactive = inactive;
this.expiresInDays = expiresInDays;
this.expiredInDays = expiredInDays;
this.renewsInDays = renewsInDays;
this.autoRenew = autoRenew;
this.activationStatus = activationStatus;
}
/**
* Deprecated, use activation_status instead.
* @return The final value of active on the object
**/
public boolean getActive() {
return this.active;
}
/**
* Deprecated, use activation_status instead.
* @return The final value of inactive on the object
**/
public boolean getInactive() {
return this.inactive;
}
/**
* Indicates the result set should include accounts with active LD expiring in the next N days.
* @return The final value of expiresInDays on the object
**/
public long getExpiresInDays() {
return this.expiresInDays;
}
/**
* Indicates the result set should include accounts with LD that has expired in the last N days.
* @return The final value of expiredInDays on the object
**/
public long getExpiredInDays() {
return this.expiredInDays;
}
/**
* Indicates the result set should include accounts with active LD that will automatically renew in the next N days.
* @return The final value of renewsInDays on the object
**/
public long getRenewsInDays() {
return this.renewsInDays;
}
/**
* Indicates if the result set should include accounts with LD set to auto renew
* @return The final value of autoRenew on the object
**/
public LookupRequest.ListingDistributionFilter.AutoRenew getAutoRenew() {
return this.autoRenew;
}
/**
* Indicates which activation status accounts have to be included in the result set.
* @return The final value of activationStatus on the object
**/
public LookupRequest.ListingDistributionFilter.ActivationStatus getActivationStatus() {
return this.activationStatus;
}
public static class Builder {
private boolean active;
private boolean inactive;
private long expiresInDays;
private long expiredInDays;
private long renewsInDays;
private LookupRequest.ListingDistributionFilter.AutoRenew autoRenew;
private LookupRequest.ListingDistributionFilter.ActivationStatus activationStatus;
public Builder() {
this.active = false;
this.inactive = false;
this.expiresInDays = 0;
this.expiredInDays = 0;
this.renewsInDays = 0;
this.autoRenew = null;
this.activationStatus = null;
}
/**
* Adds a value to the builder for active
* @param active Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setActive(boolean active) {
this.active = active;
return this;
}
/**
* Adds a value to the builder for inactive
* @param inactive Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setInactive(boolean inactive) {
this.inactive = inactive;
return this;
}
/**
* Adds a value to the builder for expiresInDays
* @param expiresInDays Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setExpiresInDays(long expiresInDays) {
this.expiresInDays = expiresInDays;
return this;
}
/**
* Adds a value to the builder for expiredInDays
* @param expiredInDays Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setExpiredInDays(long expiredInDays) {
this.expiredInDays = expiredInDays;
return this;
}
/**
* Adds a value to the builder for renewsInDays
* @param renewsInDays Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setRenewsInDays(long renewsInDays) {
this.renewsInDays = renewsInDays;
return this;
}
/**
* Adds a value to the builder for autoRenew
* @param autoRenew Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setAutoRenew(LookupRequest.ListingDistributionFilter.AutoRenew autoRenew) {
this.autoRenew = autoRenew;
return this;
}
/**
* Adds a value to the builder for activationStatus
* @param activationStatus Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setActivationStatus(LookupRequest.ListingDistributionFilter.ActivationStatus activationStatus) {
this.activationStatus = activationStatus;
return this;
}
/**
* Takes the configuration in the mutable Builder and uses it to instantiate a final instance
* of the ListingDistributionFilter class
* @return The instantiated final ListingDistributionFilter
**/
public ListingDistributionFilter build() {
return new ListingDistributionFilter(
this.active,
this.inactive,
this.expiresInDays,
this.expiredInDays,
this.renewsInDays,
this.autoRenew,
this.activationStatus);
}
}
/**
* Returns a Builder for ListingDistributionFilter, which is a mutable representation of the object. Once the
* client has built up an object they can then create an immutable ListingDistributionFilter object using the
* build function.
* @return A fresh Builder instance with no values set
**/
public static Builder newBuilder() {
return new Builder();
}
/**
* Provides a human-readable representation of this object. Useful for debugging.
* @return A string representation of the ListingDistributionFilter instance
**/
public String toString() {
String result = "ListingDistributionFilter\n";
result += "-> active: (boolean)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.active).split("\n"))) + "\n";
result += "-> inactive: (boolean)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.inactive).split("\n"))) + "\n";
result += "-> expiresInDays: (long)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.expiresInDays).split("\n"))) + "\n";
result += "-> expiredInDays: (long)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.expiredInDays).split("\n"))) + "\n";
result += "-> renewsInDays: (long)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.renewsInDays).split("\n"))) + "\n";
result += "-> autoRenew: (LookupRequest.ListingDistributionFilter.AutoRenew)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.autoRenew).split("\n"))) + "\n";
result += "-> activationStatus: (LookupRequest.ListingDistributionFilter.ActivationStatus)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.activationStatus).split("\n"))) + "\n";
return result;
}
/**
* Allows for simple conversion between the low-level generated protobuf object to
* ListingDistributionFilter, which is much more usable.
* @return An instance of ListingDistributionFilter representing the input proto object
**/
public static ListingDistributionFilter fromProto(ApiProto.LookupRequest.ListingDistributionFilter proto) {
ListingDistributionFilter out = null;
if (proto != null) {
ListingDistributionFilter.Builder outBuilder = ListingDistributionFilter.newBuilder()
.setActive(proto.getActive())
.setInactive(proto.getInactive())
.setExpiresInDays(proto.getExpiresInDays())
.setExpiredInDays(proto.getExpiredInDays())
.setRenewsInDays(proto.getRenewsInDays())
.setAutoRenew(LookupRequest.ListingDistributionFilter.AutoRenew.fromProto(proto.getAutoRenew()))
.setActivationStatus(LookupRequest.ListingDistributionFilter.ActivationStatus.fromProto(proto.getActivationStatus()));
out = outBuilder.build();
}
return out;
}
/**
* Convenience method for handling lists of proto objects. It calls .fromProto on each one
* and returns a list of the converted results.
* @return A list of ListingDistributionFilter instances representing the input proto objects
**/
public static List fromProtos(List protos) {
List out = new ArrayList();
for(ApiProto.LookupRequest.ListingDistributionFilter proto : protos) {
out.add(ListingDistributionFilter.fromProto(proto));
}
return out;
}
/**
* Allows for simple conversion of an object to the low-level generated protobuf object.
* @return An instance of ApiProto.LookupRequest.ListingDistributionFilter which is a proto object ready for wire transmission
**/
public ApiProto.LookupRequest.ListingDistributionFilter toProto() {
ListingDistributionFilter obj = this;
ApiProto.LookupRequest.ListingDistributionFilter.Builder outBuilder = ApiProto.LookupRequest.ListingDistributionFilter.newBuilder();
outBuilder.setActive(obj.getActive());
outBuilder.setInactive(obj.getInactive());
outBuilder.setExpiresInDays(obj.getExpiresInDays());
outBuilder.setExpiredInDays(obj.getExpiredInDays());
outBuilder.setRenewsInDays(obj.getRenewsInDays());
outBuilder.setAutoRenew(obj.getAutoRenew() != null?obj.getAutoRenew().toProto():null);
outBuilder.setActivationStatus(obj.getActivationStatus() != null?obj.getActivationStatus().toProto():null);
return outBuilder.build();
}
/**
* Convenience method for handling lists of objects. It calls .toProto on each one and
* returns a list of the converted results.
* @return A list of ApiProto.LookupRequest.ListingDistributionFilter instances representing the input objects.
*/
public static List toProtos(List objects) {
List out = new ArrayList();
if(objects != null) {
for (ListingDistributionFilter obj : objects) {
out.add(obj!=null?obj.toProto():null);
}
}
return out;
}
}
/**
*
**/
public static final class ListingSyncProFilter {
private final boolean active;
private final boolean autoRenew;
private final boolean autoRenewDisabled;
private final boolean inactive;
private final boolean expired;
private final long expiresInDays;
private final long expiredInDays;
private ListingSyncProFilter (
final boolean active,
final boolean autoRenew,
final boolean autoRenewDisabled,
final boolean inactive,
final boolean expired,
final long expiresInDays,
final long expiredInDays)
{
this.active = active;
this.autoRenew = autoRenew;
this.autoRenewDisabled = autoRenewDisabled;
this.inactive = inactive;
this.expired = expired;
this.expiresInDays = expiresInDays;
this.expiredInDays = expiredInDays;
}
/**
*
* @return The final value of active on the object
**/
public boolean getActive() {
return this.active;
}
/**
*
* @return The final value of autoRenew on the object
**/
public boolean getAutoRenew() {
return this.autoRenew;
}
/**
*
* @return The final value of autoRenewDisabled on the object
**/
public boolean getAutoRenewDisabled() {
return this.autoRenewDisabled;
}
/**
*
* @return The final value of inactive on the object
**/
public boolean getInactive() {
return this.inactive;
}
/**
*
* @return The final value of expired on the object
**/
public boolean getExpired() {
return this.expired;
}
/**
* Indicates the result set should include accounts with active LSP expiring in the next N days.
* @return The final value of expiresInDays on the object
**/
public long getExpiresInDays() {
return this.expiresInDays;
}
/**
* Indicates the result set should include accounts with LSP that has expired in the past N days.
* @return The final value of expiredInDays on the object
**/
public long getExpiredInDays() {
return this.expiredInDays;
}
public static class Builder {
private boolean active;
private boolean autoRenew;
private boolean autoRenewDisabled;
private boolean inactive;
private boolean expired;
private long expiresInDays;
private long expiredInDays;
public Builder() {
this.active = false;
this.autoRenew = false;
this.autoRenewDisabled = false;
this.inactive = false;
this.expired = false;
this.expiresInDays = 0;
this.expiredInDays = 0;
}
/**
* Adds a value to the builder for active
* @param active Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setActive(boolean active) {
this.active = active;
return this;
}
/**
* Adds a value to the builder for autoRenew
* @param autoRenew Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setAutoRenew(boolean autoRenew) {
this.autoRenew = autoRenew;
return this;
}
/**
* Adds a value to the builder for autoRenewDisabled
* @param autoRenewDisabled Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setAutoRenewDisabled(boolean autoRenewDisabled) {
this.autoRenewDisabled = autoRenewDisabled;
return this;
}
/**
* Adds a value to the builder for inactive
* @param inactive Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setInactive(boolean inactive) {
this.inactive = inactive;
return this;
}
/**
* Adds a value to the builder for expired
* @param expired Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setExpired(boolean expired) {
this.expired = expired;
return this;
}
/**
* Adds a value to the builder for expiresInDays
* @param expiresInDays Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setExpiresInDays(long expiresInDays) {
this.expiresInDays = expiresInDays;
return this;
}
/**
* Adds a value to the builder for expiredInDays
* @param expiredInDays Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setExpiredInDays(long expiredInDays) {
this.expiredInDays = expiredInDays;
return this;
}
/**
* Takes the configuration in the mutable Builder and uses it to instantiate a final instance
* of the ListingSyncProFilter class
* @return The instantiated final ListingSyncProFilter
**/
public ListingSyncProFilter build() {
return new ListingSyncProFilter(
this.active,
this.autoRenew,
this.autoRenewDisabled,
this.inactive,
this.expired,
this.expiresInDays,
this.expiredInDays);
}
}
/**
* Returns a Builder for ListingSyncProFilter, which is a mutable representation of the object. Once the
* client has built up an object they can then create an immutable ListingSyncProFilter object using the
* build function.
* @return A fresh Builder instance with no values set
**/
public static Builder newBuilder() {
return new Builder();
}
/**
* Provides a human-readable representation of this object. Useful for debugging.
* @return A string representation of the ListingSyncProFilter instance
**/
public String toString() {
String result = "ListingSyncProFilter\n";
result += "-> active: (boolean)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.active).split("\n"))) + "\n";
result += "-> autoRenew: (boolean)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.autoRenew).split("\n"))) + "\n";
result += "-> autoRenewDisabled: (boolean)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.autoRenewDisabled).split("\n"))) + "\n";
result += "-> inactive: (boolean)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.inactive).split("\n"))) + "\n";
result += "-> expired: (boolean)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.expired).split("\n"))) + "\n";
result += "-> expiresInDays: (long)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.expiresInDays).split("\n"))) + "\n";
result += "-> expiredInDays: (long)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.expiredInDays).split("\n"))) + "\n";
return result;
}
/**
* Allows for simple conversion between the low-level generated protobuf object to
* ListingSyncProFilter, which is much more usable.
* @return An instance of ListingSyncProFilter representing the input proto object
**/
public static ListingSyncProFilter fromProto(ApiProto.LookupRequest.ListingSyncProFilter proto) {
ListingSyncProFilter out = null;
if (proto != null) {
ListingSyncProFilter.Builder outBuilder = ListingSyncProFilter.newBuilder()
.setActive(proto.getActive())
.setAutoRenew(proto.getAutoRenew())
.setAutoRenewDisabled(proto.getAutoRenewDisabled())
.setInactive(proto.getInactive())
.setExpired(proto.getExpired())
.setExpiresInDays(proto.getExpiresInDays())
.setExpiredInDays(proto.getExpiredInDays());
out = outBuilder.build();
}
return out;
}
/**
* Convenience method for handling lists of proto objects. It calls .fromProto on each one
* and returns a list of the converted results.
* @return A list of ListingSyncProFilter instances representing the input proto objects
**/
public static List fromProtos(List protos) {
List out = new ArrayList();
for(ApiProto.LookupRequest.ListingSyncProFilter proto : protos) {
out.add(ListingSyncProFilter.fromProto(proto));
}
return out;
}
/**
* Allows for simple conversion of an object to the low-level generated protobuf object.
* @return An instance of ApiProto.LookupRequest.ListingSyncProFilter which is a proto object ready for wire transmission
**/
public ApiProto.LookupRequest.ListingSyncProFilter toProto() {
ListingSyncProFilter obj = this;
ApiProto.LookupRequest.ListingSyncProFilter.Builder outBuilder = ApiProto.LookupRequest.ListingSyncProFilter.newBuilder();
outBuilder.setActive(obj.getActive());
outBuilder.setAutoRenew(obj.getAutoRenew());
outBuilder.setAutoRenewDisabled(obj.getAutoRenewDisabled());
outBuilder.setInactive(obj.getInactive());
outBuilder.setExpired(obj.getExpired());
outBuilder.setExpiresInDays(obj.getExpiresInDays());
outBuilder.setExpiredInDays(obj.getExpiredInDays());
return outBuilder.build();
}
/**
* Convenience method for handling lists of objects. It calls .toProto on each one and
* returns a list of the converted results.
* @return A list of ApiProto.LookupRequest.ListingSyncProFilter instances representing the input objects.
*/
public static List toProtos(List objects) {
List out = new ArrayList();
if(objects != null) {
for (ListingSyncProFilter obj : objects) {
out.add(obj!=null?obj.toProto():null);
}
}
return out;
}
}
/**
*
**/
public static final class CreatedDateFilter {
private final Date beginRange;
private final Date endRange;
private CreatedDateFilter (
final Date beginRange,
final Date endRange)
{
this.beginRange = beginRange;
this.endRange = endRange;
}
/**
*
* @return The final value of beginRange on the object
**/
public Date getBeginRange() {
return this.beginRange;
}
/**
*
* @return The final value of endRange on the object
**/
public Date getEndRange() {
return this.endRange;
}
public static class Builder {
private Date beginRange;
private Date endRange;
public Builder() {
this.beginRange = null;
this.endRange = null;
}
/**
* Adds a value to the builder for beginRange
* @param beginRange Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setBeginRange(Date beginRange) {
this.beginRange = beginRange;
return this;
}
/**
* Adds a value to the builder for endRange
* @param endRange Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setEndRange(Date endRange) {
this.endRange = endRange;
return this;
}
/**
* Takes the configuration in the mutable Builder and uses it to instantiate a final instance
* of the CreatedDateFilter class
* @return The instantiated final CreatedDateFilter
**/
public CreatedDateFilter build() {
return new CreatedDateFilter(
this.beginRange,
this.endRange);
}
}
/**
* Returns a Builder for CreatedDateFilter, which is a mutable representation of the object. Once the
* client has built up an object they can then create an immutable CreatedDateFilter object using the
* build function.
* @return A fresh Builder instance with no values set
**/
public static Builder newBuilder() {
return new Builder();
}
/**
* Provides a human-readable representation of this object. Useful for debugging.
* @return A string representation of the CreatedDateFilter instance
**/
public String toString() {
String result = "CreatedDateFilter\n";
result += "-> beginRange: (Date)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.beginRange).split("\n"))) + "\n";
result += "-> endRange: (Date)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.endRange).split("\n"))) + "\n";
return result;
}
/**
* Allows for simple conversion between the low-level generated protobuf object to
* CreatedDateFilter, which is much more usable.
* @return An instance of CreatedDateFilter representing the input proto object
**/
public static CreatedDateFilter fromProto(ApiProto.LookupRequest.CreatedDateFilter proto) {
CreatedDateFilter out = null;
if (proto != null) {
CreatedDateFilter.Builder outBuilder = CreatedDateFilter.newBuilder()
.setBeginRange(proto.hasBeginRange()?new Date(proto.getBeginRange().getSeconds() * 1000):null)
.setEndRange(proto.hasEndRange()?new Date(proto.getEndRange().getSeconds() * 1000):null);
out = outBuilder.build();
}
return out;
}
/**
* Convenience method for handling lists of proto objects. It calls .fromProto on each one
* and returns a list of the converted results.
* @return A list of CreatedDateFilter instances representing the input proto objects
**/
public static List fromProtos(List protos) {
List out = new ArrayList();
for(ApiProto.LookupRequest.CreatedDateFilter proto : protos) {
out.add(CreatedDateFilter.fromProto(proto));
}
return out;
}
/**
* Allows for simple conversion of an object to the low-level generated protobuf object.
* @return An instance of ApiProto.LookupRequest.CreatedDateFilter which is a proto object ready for wire transmission
**/
public ApiProto.LookupRequest.CreatedDateFilter toProto() {
CreatedDateFilter obj = this;
ApiProto.LookupRequest.CreatedDateFilter.Builder outBuilder = ApiProto.LookupRequest.CreatedDateFilter.newBuilder();
if(obj.getBeginRange()!=null){outBuilder.setBeginRange(com.google.protobuf.Timestamp.newBuilder().setSeconds(obj.getBeginRange().getTime() / 1000).build());}
if(obj.getEndRange()!=null){outBuilder.setEndRange(com.google.protobuf.Timestamp.newBuilder().setSeconds(obj.getEndRange().getTime() / 1000).build());}
return outBuilder.build();
}
/**
* Convenience method for handling lists of objects. It calls .toProto on each one and
* returns a list of the converted results.
* @return A list of ApiProto.LookupRequest.CreatedDateFilter instances representing the input objects.
*/
public static List toProtos(List objects) {
List out = new ArrayList();
if(objects != null) {
for (CreatedDateFilter obj : objects) {
out.add(obj!=null?obj.toProto():null);
}
}
return out;
}
}
/**
*
**/
public static final class TrialFilter {
private final boolean isSuspended;
private TrialFilter (
final boolean isSuspended)
{
this.isSuspended = isSuspended;
}
/**
*
* @return The final value of isSuspended on the object
**/
public boolean getIsSuspended() {
return this.isSuspended;
}
public static class Builder {
private boolean isSuspended;
public Builder() {
this.isSuspended = false;
}
/**
* Adds a value to the builder for isSuspended
* @param isSuspended Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setIsSuspended(boolean isSuspended) {
this.isSuspended = isSuspended;
return this;
}
/**
* Takes the configuration in the mutable Builder and uses it to instantiate a final instance
* of the TrialFilter class
* @return The instantiated final TrialFilter
**/
public TrialFilter build() {
return new TrialFilter(
this.isSuspended);
}
}
/**
* Returns a Builder for TrialFilter, which is a mutable representation of the object. Once the
* client has built up an object they can then create an immutable TrialFilter object using the
* build function.
* @return A fresh Builder instance with no values set
**/
public static Builder newBuilder() {
return new Builder();
}
/**
* Provides a human-readable representation of this object. Useful for debugging.
* @return A string representation of the TrialFilter instance
**/
public String toString() {
String result = "TrialFilter\n";
result += "-> isSuspended: (boolean)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.isSuspended).split("\n"))) + "\n";
return result;
}
/**
* Allows for simple conversion between the low-level generated protobuf object to
* TrialFilter, which is much more usable.
* @return An instance of TrialFilter representing the input proto object
**/
public static TrialFilter fromProto(ApiProto.LookupRequest.TrialFilter proto) {
TrialFilter out = null;
if (proto != null) {
TrialFilter.Builder outBuilder = TrialFilter.newBuilder()
.setIsSuspended(proto.getIsSuspended());
out = outBuilder.build();
}
return out;
}
/**
* Convenience method for handling lists of proto objects. It calls .fromProto on each one
* and returns a list of the converted results.
* @return A list of TrialFilter instances representing the input proto objects
**/
public static List fromProtos(List protos) {
List out = new ArrayList();
for(ApiProto.LookupRequest.TrialFilter proto : protos) {
out.add(TrialFilter.fromProto(proto));
}
return out;
}
/**
* Allows for simple conversion of an object to the low-level generated protobuf object.
* @return An instance of ApiProto.LookupRequest.TrialFilter which is a proto object ready for wire transmission
**/
public ApiProto.LookupRequest.TrialFilter toProto() {
TrialFilter obj = this;
ApiProto.LookupRequest.TrialFilter.Builder outBuilder = ApiProto.LookupRequest.TrialFilter.newBuilder();
outBuilder.setIsSuspended(obj.getIsSuspended());
return outBuilder.build();
}
/**
* Convenience method for handling lists of objects. It calls .toProto on each one and
* returns a list of the converted results.
* @return A list of ApiProto.LookupRequest.TrialFilter instances representing the input objects.
*/
public static List toProtos(List objects) {
List out = new ArrayList();
if(objects != null) {
for (TrialFilter obj : objects) {
out.add(obj!=null?obj.toProto():null);
}
}
return out;
}
}
/**
*
**/
public static final class PresenceFilter {
private final LookupRequest.Presence facebook;
private final LookupRequest.Presence foursquare;
private final LookupRequest.Presence googleplus;
private final LookupRequest.Presence linkedin;
private final LookupRequest.Presence twitter;
private final LookupRequest.Presence pinterest;
private final LookupRequest.Presence instagram;
private final LookupRequest.Presence youtube;
private final LookupRequest.Presence website;
private PresenceFilter (
final LookupRequest.Presence facebook,
final LookupRequest.Presence foursquare,
final LookupRequest.Presence googleplus,
final LookupRequest.Presence linkedin,
final LookupRequest.Presence twitter,
final LookupRequest.Presence pinterest,
final LookupRequest.Presence instagram,
final LookupRequest.Presence youtube,
final LookupRequest.Presence website)
{
this.facebook = facebook;
this.foursquare = foursquare;
this.googleplus = googleplus;
this.linkedin = linkedin;
this.twitter = twitter;
this.pinterest = pinterest;
this.instagram = instagram;
this.youtube = youtube;
this.website = website;
}
/**
*
* @return The final value of facebook on the object
**/
public LookupRequest.Presence getFacebook() {
return this.facebook;
}
/**
*
* @return The final value of foursquare on the object
**/
public LookupRequest.Presence getFoursquare() {
return this.foursquare;
}
/**
*
* @return The final value of googleplus on the object
**/
public LookupRequest.Presence getGoogleplus() {
return this.googleplus;
}
/**
*
* @return The final value of linkedin on the object
**/
public LookupRequest.Presence getLinkedin() {
return this.linkedin;
}
/**
*
* @return The final value of twitter on the object
**/
public LookupRequest.Presence getTwitter() {
return this.twitter;
}
/**
*
* @return The final value of pinterest on the object
**/
public LookupRequest.Presence getPinterest() {
return this.pinterest;
}
/**
*
* @return The final value of instagram on the object
**/
public LookupRequest.Presence getInstagram() {
return this.instagram;
}
/**
*
* @return The final value of youtube on the object
**/
public LookupRequest.Presence getYoutube() {
return this.youtube;
}
/**
*
* @return The final value of website on the object
**/
public LookupRequest.Presence getWebsite() {
return this.website;
}
public static class Builder {
private LookupRequest.Presence facebook;
private LookupRequest.Presence foursquare;
private LookupRequest.Presence googleplus;
private LookupRequest.Presence linkedin;
private LookupRequest.Presence twitter;
private LookupRequest.Presence pinterest;
private LookupRequest.Presence instagram;
private LookupRequest.Presence youtube;
private LookupRequest.Presence website;
public Builder() {
this.facebook = null;
this.foursquare = null;
this.googleplus = null;
this.linkedin = null;
this.twitter = null;
this.pinterest = null;
this.instagram = null;
this.youtube = null;
this.website = null;
}
/**
* Adds a value to the builder for facebook
* @param facebook Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setFacebook(LookupRequest.Presence facebook) {
this.facebook = facebook;
return this;
}
/**
* Adds a value to the builder for foursquare
* @param foursquare Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setFoursquare(LookupRequest.Presence foursquare) {
this.foursquare = foursquare;
return this;
}
/**
* Adds a value to the builder for googleplus
* @param googleplus Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setGoogleplus(LookupRequest.Presence googleplus) {
this.googleplus = googleplus;
return this;
}
/**
* Adds a value to the builder for linkedin
* @param linkedin Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setLinkedin(LookupRequest.Presence linkedin) {
this.linkedin = linkedin;
return this;
}
/**
* Adds a value to the builder for twitter
* @param twitter Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setTwitter(LookupRequest.Presence twitter) {
this.twitter = twitter;
return this;
}
/**
* Adds a value to the builder for pinterest
* @param pinterest Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setPinterest(LookupRequest.Presence pinterest) {
this.pinterest = pinterest;
return this;
}
/**
* Adds a value to the builder for instagram
* @param instagram Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setInstagram(LookupRequest.Presence instagram) {
this.instagram = instagram;
return this;
}
/**
* Adds a value to the builder for youtube
* @param youtube Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setYoutube(LookupRequest.Presence youtube) {
this.youtube = youtube;
return this;
}
/**
* Adds a value to the builder for website
* @param website Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setWebsite(LookupRequest.Presence website) {
this.website = website;
return this;
}
/**
* Takes the configuration in the mutable Builder and uses it to instantiate a final instance
* of the PresenceFilter class
* @return The instantiated final PresenceFilter
**/
public PresenceFilter build() {
return new PresenceFilter(
this.facebook,
this.foursquare,
this.googleplus,
this.linkedin,
this.twitter,
this.pinterest,
this.instagram,
this.youtube,
this.website);
}
}
/**
* Returns a Builder for PresenceFilter, which is a mutable representation of the object. Once the
* client has built up an object they can then create an immutable PresenceFilter object using the
* build function.
* @return A fresh Builder instance with no values set
**/
public static Builder newBuilder() {
return new Builder();
}
/**
* Provides a human-readable representation of this object. Useful for debugging.
* @return A string representation of the PresenceFilter instance
**/
public String toString() {
String result = "PresenceFilter\n";
result += "-> facebook: (LookupRequest.Presence)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.facebook).split("\n"))) + "\n";
result += "-> foursquare: (LookupRequest.Presence)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.foursquare).split("\n"))) + "\n";
result += "-> googleplus: (LookupRequest.Presence)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.googleplus).split("\n"))) + "\n";
result += "-> linkedin: (LookupRequest.Presence)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.linkedin).split("\n"))) + "\n";
result += "-> twitter: (LookupRequest.Presence)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.twitter).split("\n"))) + "\n";
result += "-> pinterest: (LookupRequest.Presence)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.pinterest).split("\n"))) + "\n";
result += "-> instagram: (LookupRequest.Presence)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.instagram).split("\n"))) + "\n";
result += "-> youtube: (LookupRequest.Presence)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.youtube).split("\n"))) + "\n";
result += "-> website: (LookupRequest.Presence)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.website).split("\n"))) + "\n";
return result;
}
/**
* Allows for simple conversion between the low-level generated protobuf object to
* PresenceFilter, which is much more usable.
* @return An instance of PresenceFilter representing the input proto object
**/
public static PresenceFilter fromProto(ApiProto.LookupRequest.PresenceFilter proto) {
PresenceFilter out = null;
if (proto != null) {
PresenceFilter.Builder outBuilder = PresenceFilter.newBuilder()
.setFacebook(LookupRequest.Presence.fromProto(proto.getFacebook()))
.setFoursquare(LookupRequest.Presence.fromProto(proto.getFoursquare()))
.setGoogleplus(LookupRequest.Presence.fromProto(proto.getGoogleplus()))
.setLinkedin(LookupRequest.Presence.fromProto(proto.getLinkedin()))
.setTwitter(LookupRequest.Presence.fromProto(proto.getTwitter()))
.setPinterest(LookupRequest.Presence.fromProto(proto.getPinterest()))
.setInstagram(LookupRequest.Presence.fromProto(proto.getInstagram()))
.setYoutube(LookupRequest.Presence.fromProto(proto.getYoutube()))
.setWebsite(LookupRequest.Presence.fromProto(proto.getWebsite()));
out = outBuilder.build();
}
return out;
}
/**
* Convenience method for handling lists of proto objects. It calls .fromProto on each one
* and returns a list of the converted results.
* @return A list of PresenceFilter instances representing the input proto objects
**/
public static List fromProtos(List protos) {
List out = new ArrayList();
for(ApiProto.LookupRequest.PresenceFilter proto : protos) {
out.add(PresenceFilter.fromProto(proto));
}
return out;
}
/**
* Allows for simple conversion of an object to the low-level generated protobuf object.
* @return An instance of ApiProto.LookupRequest.PresenceFilter which is a proto object ready for wire transmission
**/
public ApiProto.LookupRequest.PresenceFilter toProto() {
PresenceFilter obj = this;
ApiProto.LookupRequest.PresenceFilter.Builder outBuilder = ApiProto.LookupRequest.PresenceFilter.newBuilder();
outBuilder.setFacebook(obj.getFacebook() != null?obj.getFacebook().toProto():null);
outBuilder.setFoursquare(obj.getFoursquare() != null?obj.getFoursquare().toProto():null);
outBuilder.setGoogleplus(obj.getGoogleplus() != null?obj.getGoogleplus().toProto():null);
outBuilder.setLinkedin(obj.getLinkedin() != null?obj.getLinkedin().toProto():null);
outBuilder.setTwitter(obj.getTwitter() != null?obj.getTwitter().toProto():null);
outBuilder.setPinterest(obj.getPinterest() != null?obj.getPinterest().toProto():null);
outBuilder.setInstagram(obj.getInstagram() != null?obj.getInstagram().toProto():null);
outBuilder.setYoutube(obj.getYoutube() != null?obj.getYoutube().toProto():null);
outBuilder.setWebsite(obj.getWebsite() != null?obj.getWebsite().toProto():null);
return outBuilder.build();
}
/**
* Convenience method for handling lists of objects. It calls .toProto on each one and
* returns a list of the converted results.
* @return A list of ApiProto.LookupRequest.PresenceFilter instances representing the input objects.
*/
public static List toProtos(List objects) {
List out = new ArrayList();
if(objects != null) {
for (PresenceFilter obj : objects) {
out.add(obj!=null?obj.toProto():null);
}
}
return out;
}
}
/**
*
**/
public static final class LocationFilter {
private final String country;
private final String state;
private LocationFilter (
final String country,
final String state)
{
this.country = country;
this.state = state;
}
/**
*
* @return The final value of country on the object
**/
public String getCountry() {
return this.country;
}
/**
*
* @return The final value of state on the object
**/
public String getState() {
return this.state;
}
public static class Builder {
private String country;
private String state;
public Builder() {
this.country = "";
this.state = "";
}
/**
* Adds a value to the builder for country
* @param country Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setCountry(String country) {
this.country = country;
return this;
}
/**
* Adds a value to the builder for state
* @param state Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setState(String state) {
this.state = state;
return this;
}
/**
* Takes the configuration in the mutable Builder and uses it to instantiate a final instance
* of the LocationFilter class
* @return The instantiated final LocationFilter
**/
public LocationFilter build() {
return new LocationFilter(
this.country,
this.state);
}
}
/**
* Returns a Builder for LocationFilter, which is a mutable representation of the object. Once the
* client has built up an object they can then create an immutable LocationFilter object using the
* build function.
* @return A fresh Builder instance with no values set
**/
public static Builder newBuilder() {
return new Builder();
}
/**
* Provides a human-readable representation of this object. Useful for debugging.
* @return A string representation of the LocationFilter instance
**/
public String toString() {
String result = "LocationFilter\n";
result += "-> country: (String)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.country).split("\n"))) + "\n";
result += "-> state: (String)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.state).split("\n"))) + "\n";
return result;
}
/**
* Allows for simple conversion between the low-level generated protobuf object to
* LocationFilter, which is much more usable.
* @return An instance of LocationFilter representing the input proto object
**/
public static LocationFilter fromProto(ApiProto.LookupRequest.LocationFilter proto) {
LocationFilter out = null;
if (proto != null) {
LocationFilter.Builder outBuilder = LocationFilter.newBuilder()
.setCountry(proto.getCountry())
.setState(proto.getState());
out = outBuilder.build();
}
return out;
}
/**
* Convenience method for handling lists of proto objects. It calls .fromProto on each one
* and returns a list of the converted results.
* @return A list of LocationFilter instances representing the input proto objects
**/
public static List fromProtos(List protos) {
List out = new ArrayList();
for(ApiProto.LookupRequest.LocationFilter proto : protos) {
out.add(LocationFilter.fromProto(proto));
}
return out;
}
/**
* Allows for simple conversion of an object to the low-level generated protobuf object.
* @return An instance of ApiProto.LookupRequest.LocationFilter which is a proto object ready for wire transmission
**/
public ApiProto.LookupRequest.LocationFilter toProto() {
LocationFilter obj = this;
ApiProto.LookupRequest.LocationFilter.Builder outBuilder = ApiProto.LookupRequest.LocationFilter.newBuilder();
outBuilder.setCountry(obj.getCountry());
outBuilder.setState(obj.getState());
return outBuilder.build();
}
/**
* Convenience method for handling lists of objects. It calls .toProto on each one and
* returns a list of the converted results.
* @return A list of ApiProto.LookupRequest.LocationFilter instances representing the input objects.
*/
public static List toProtos(List objects) {
List out = new ArrayList();
if(objects != null) {
for (LocationFilter obj : objects) {
out.add(obj!=null?obj.toProto():null);
}
}
return out;
}
}
/**
*
**/
public static final class SnapshotFilter {
private final boolean active;
private final boolean expired;
private final boolean noSnapshotsCreated;
private SnapshotFilter (
final boolean active,
final boolean expired,
final boolean noSnapshotsCreated)
{
this.active = active;
this.expired = expired;
this.noSnapshotsCreated = noSnapshotsCreated;
}
/**
* Indicates if the result set should include accounts with an active Snapshot Report
* @return The final value of active on the object
**/
public boolean getActive() {
return this.active;
}
/**
* Indicates if the result set should include accounts for which the most recent Snapshot Report is expired
* @return The final value of expired on the object
**/
public boolean getExpired() {
return this.expired;
}
/**
* Indicates if the result set should include accounts without a Snapshot Report
* @return The final value of noSnapshotsCreated on the object
**/
public boolean getNoSnapshotsCreated() {
return this.noSnapshotsCreated;
}
public static class Builder {
private boolean active;
private boolean expired;
private boolean noSnapshotsCreated;
public Builder() {
this.active = false;
this.expired = false;
this.noSnapshotsCreated = false;
}
/**
* Adds a value to the builder for active
* @param active Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setActive(boolean active) {
this.active = active;
return this;
}
/**
* Adds a value to the builder for expired
* @param expired Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setExpired(boolean expired) {
this.expired = expired;
return this;
}
/**
* Adds a value to the builder for noSnapshotsCreated
* @param noSnapshotsCreated Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setNoSnapshotsCreated(boolean noSnapshotsCreated) {
this.noSnapshotsCreated = noSnapshotsCreated;
return this;
}
/**
* Takes the configuration in the mutable Builder and uses it to instantiate a final instance
* of the SnapshotFilter class
* @return The instantiated final SnapshotFilter
**/
public SnapshotFilter build() {
return new SnapshotFilter(
this.active,
this.expired,
this.noSnapshotsCreated);
}
}
/**
* Returns a Builder for SnapshotFilter, which is a mutable representation of the object. Once the
* client has built up an object they can then create an immutable SnapshotFilter object using the
* build function.
* @return A fresh Builder instance with no values set
**/
public static Builder newBuilder() {
return new Builder();
}
/**
* Provides a human-readable representation of this object. Useful for debugging.
* @return A string representation of the SnapshotFilter instance
**/
public String toString() {
String result = "SnapshotFilter\n";
result += "-> active: (boolean)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.active).split("\n"))) + "\n";
result += "-> expired: (boolean)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.expired).split("\n"))) + "\n";
result += "-> noSnapshotsCreated: (boolean)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.noSnapshotsCreated).split("\n"))) + "\n";
return result;
}
/**
* Allows for simple conversion between the low-level generated protobuf object to
* SnapshotFilter, which is much more usable.
* @return An instance of SnapshotFilter representing the input proto object
**/
public static SnapshotFilter fromProto(ApiProto.LookupRequest.SnapshotFilter proto) {
SnapshotFilter out = null;
if (proto != null) {
SnapshotFilter.Builder outBuilder = SnapshotFilter.newBuilder()
.setActive(proto.getActive())
.setExpired(proto.getExpired())
.setNoSnapshotsCreated(proto.getNoSnapshotsCreated());
out = outBuilder.build();
}
return out;
}
/**
* Convenience method for handling lists of proto objects. It calls .fromProto on each one
* and returns a list of the converted results.
* @return A list of SnapshotFilter instances representing the input proto objects
**/
public static List fromProtos(List protos) {
List out = new ArrayList();
for(ApiProto.LookupRequest.SnapshotFilter proto : protos) {
out.add(SnapshotFilter.fromProto(proto));
}
return out;
}
/**
* Allows for simple conversion of an object to the low-level generated protobuf object.
* @return An instance of ApiProto.LookupRequest.SnapshotFilter which is a proto object ready for wire transmission
**/
public ApiProto.LookupRequest.SnapshotFilter toProto() {
SnapshotFilter obj = this;
ApiProto.LookupRequest.SnapshotFilter.Builder outBuilder = ApiProto.LookupRequest.SnapshotFilter.newBuilder();
outBuilder.setActive(obj.getActive());
outBuilder.setExpired(obj.getExpired());
outBuilder.setNoSnapshotsCreated(obj.getNoSnapshotsCreated());
return outBuilder.build();
}
/**
* Convenience method for handling lists of objects. It calls .toProto on each one and
* returns a list of the converted results.
* @return A list of ApiProto.LookupRequest.SnapshotFilter instances representing the input objects.
*/
public static List toProtos(List objects) {
List out = new ArrayList();
if(objects != null) {
for (SnapshotFilter obj : objects) {
out.add(obj!=null?obj.toProto():null);
}
}
return out;
}
}
/**
*
**/
public static final class StatusFilter {
private final boolean hasAlert;
private StatusFilter (
final boolean hasAlert)
{
this.hasAlert = hasAlert;
}
/**
* Indicates if we should only return accounts that have active alerts
* @return The final value of hasAlert on the object
**/
public boolean getHasAlert() {
return this.hasAlert;
}
public static class Builder {
private boolean hasAlert;
public Builder() {
this.hasAlert = false;
}
/**
* Adds a value to the builder for hasAlert
* @param hasAlert Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setHasAlert(boolean hasAlert) {
this.hasAlert = hasAlert;
return this;
}
/**
* Takes the configuration in the mutable Builder and uses it to instantiate a final instance
* of the StatusFilter class
* @return The instantiated final StatusFilter
**/
public StatusFilter build() {
return new StatusFilter(
this.hasAlert);
}
}
/**
* Returns a Builder for StatusFilter, which is a mutable representation of the object. Once the
* client has built up an object they can then create an immutable StatusFilter object using the
* build function.
* @return A fresh Builder instance with no values set
**/
public static Builder newBuilder() {
return new Builder();
}
/**
* Provides a human-readable representation of this object. Useful for debugging.
* @return A string representation of the StatusFilter instance
**/
public String toString() {
String result = "StatusFilter\n";
result += "-> hasAlert: (boolean)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.hasAlert).split("\n"))) + "\n";
return result;
}
/**
* Allows for simple conversion between the low-level generated protobuf object to
* StatusFilter, which is much more usable.
* @return An instance of StatusFilter representing the input proto object
**/
public static StatusFilter fromProto(ApiProto.LookupRequest.StatusFilter proto) {
StatusFilter out = null;
if (proto != null) {
StatusFilter.Builder outBuilder = StatusFilter.newBuilder()
.setHasAlert(proto.getHasAlert());
out = outBuilder.build();
}
return out;
}
/**
* Convenience method for handling lists of proto objects. It calls .fromProto on each one
* and returns a list of the converted results.
* @return A list of StatusFilter instances representing the input proto objects
**/
public static List fromProtos(List protos) {
List out = new ArrayList();
for(ApiProto.LookupRequest.StatusFilter proto : protos) {
out.add(StatusFilter.fromProto(proto));
}
return out;
}
/**
* Allows for simple conversion of an object to the low-level generated protobuf object.
* @return An instance of ApiProto.LookupRequest.StatusFilter which is a proto object ready for wire transmission
**/
public ApiProto.LookupRequest.StatusFilter toProto() {
StatusFilter obj = this;
ApiProto.LookupRequest.StatusFilter.Builder outBuilder = ApiProto.LookupRequest.StatusFilter.newBuilder();
outBuilder.setHasAlert(obj.getHasAlert());
return outBuilder.build();
}
/**
* Convenience method for handling lists of objects. It calls .toProto on each one and
* returns a list of the converted results.
* @return A list of ApiProto.LookupRequest.StatusFilter instances representing the input objects.
*/
public static List toProtos(List objects) {
List out = new ArrayList();
if(objects != null) {
for (StatusFilter obj : objects) {
out.add(obj!=null?obj.toProto():null);
}
}
return out;
}
}
/**
*
**/
public static final class Filters {
private final String partnerId;
private final List marketIds;
private final String salesPersonId;
private final String customerId;
private final List tags;
private final List accountFilters;
private final LookupRequest.ListingDistributionFilter listingDistributionFilter;
private final LookupRequest.CreatedDateFilter createdDateFilter;
private final LookupRequest.ListingSyncProFilter listingSyncProFilter;
private final LookupRequest.TrialFilter trialFilter;
private final List taxonomyIds;
private final LookupRequest.PresenceFilter presenceFilter;
private final LookupRequest.LocationFilter locationFilter;
private final String salesforceId;
private final LookupRequest.SnapshotFilter snapshotFilter;
private final LookupRequest.StatusFilter statusFilter;
private final List accountGroupIds;
private final boolean includeDeleted;
private final List customFields;
private Filters (
final String partnerId,
final List marketIds,
final String salesPersonId,
final String customerId,
final List tags,
final List accountFilters,
final LookupRequest.ListingDistributionFilter listingDistributionFilter,
final LookupRequest.CreatedDateFilter createdDateFilter,
final LookupRequest.ListingSyncProFilter listingSyncProFilter,
final LookupRequest.TrialFilter trialFilter,
final List taxonomyIds,
final LookupRequest.PresenceFilter presenceFilter,
final LookupRequest.LocationFilter locationFilter,
final String salesforceId,
final LookupRequest.SnapshotFilter snapshotFilter,
final LookupRequest.StatusFilter statusFilter,
final List accountGroupIds,
final boolean includeDeleted,
final List customFields)
{
this.partnerId = partnerId;
this.marketIds = marketIds;
this.salesPersonId = salesPersonId;
this.customerId = customerId;
this.tags = tags;
this.accountFilters = accountFilters;
this.listingDistributionFilter = listingDistributionFilter;
this.createdDateFilter = createdDateFilter;
this.listingSyncProFilter = listingSyncProFilter;
this.trialFilter = trialFilter;
this.taxonomyIds = taxonomyIds;
this.presenceFilter = presenceFilter;
this.locationFilter = locationFilter;
this.salesforceId = salesforceId;
this.snapshotFilter = snapshotFilter;
this.statusFilter = statusFilter;
this.accountGroupIds = accountGroupIds;
this.includeDeleted = includeDeleted;
this.customFields = customFields;
}
/**
*
* @return The final value of partnerId on the object
**/
public String getPartnerId() {
return this.partnerId;
}
/**
*
* @return The final value of marketIds on the object
**/
public List getMarketIds() {
return this.marketIds;
}
/**
*
* @return The final value of salesPersonId on the object
**/
public String getSalesPersonId() {
return this.salesPersonId;
}
/**
*
* @return The final value of customerId on the object
**/
public String getCustomerId() {
return this.customerId;
}
/**
*
* @return The final value of tags on the object
**/
public List getTags() {
return this.tags;
}
/**
*
* @return The final value of accountFilters on the object
**/
public List getAccountFilters() {
return this.accountFilters;
}
/**
*
* @return The final value of listingDistributionFilter on the object
**/
public LookupRequest.ListingDistributionFilter getListingDistributionFilter() {
return this.listingDistributionFilter;
}
/**
*
* @return The final value of createdDateFilter on the object
**/
public LookupRequest.CreatedDateFilter getCreatedDateFilter() {
return this.createdDateFilter;
}
/**
*
* @return The final value of listingSyncProFilter on the object
**/
public LookupRequest.ListingSyncProFilter getListingSyncProFilter() {
return this.listingSyncProFilter;
}
/**
*
* @return The final value of trialFilter on the object
**/
public LookupRequest.TrialFilter getTrialFilter() {
return this.trialFilter;
}
/**
*
* @return The final value of taxonomyIds on the object
**/
public List getTaxonomyIds() {
return this.taxonomyIds;
}
/**
*
* @return The final value of presenceFilter on the object
**/
public LookupRequest.PresenceFilter getPresenceFilter() {
return this.presenceFilter;
}
/**
*
* @return The final value of locationFilter on the object
**/
public LookupRequest.LocationFilter getLocationFilter() {
return this.locationFilter;
}
/**
*
* @return The final value of salesforceId on the object
**/
public String getSalesforceId() {
return this.salesforceId;
}
/**
*
* @return The final value of snapshotFilter on the object
**/
public LookupRequest.SnapshotFilter getSnapshotFilter() {
return this.snapshotFilter;
}
/**
*
* @return The final value of statusFilter on the object
**/
public LookupRequest.StatusFilter getStatusFilter() {
return this.statusFilter;
}
/**
* Used to limit the account groups that the search applies over. Useful for searching across a specific set of account groups, for example: only search across the account groups a user is associated to.
* @return The final value of accountGroupIds on the object
**/
public List getAccountGroupIds() {
return this.accountGroupIds;
}
/**
* Whether or not to include deleted accounts on the lookup
* @return The final value of includeDeleted on the object
**/
public boolean getIncludeDeleted() {
return this.includeDeleted;
}
/**
* To be used to filter by values in custom field
* @return The final value of customFields on the object
**/
public List getCustomFields() {
return this.customFields;
}
public static class Builder {
private String partnerId;
private List marketIds;
private String salesPersonId;
private String customerId;
private List tags;
private List accountFilters;
private LookupRequest.ListingDistributionFilter listingDistributionFilter;
private LookupRequest.CreatedDateFilter createdDateFilter;
private LookupRequest.ListingSyncProFilter listingSyncProFilter;
private LookupRequest.TrialFilter trialFilter;
private List taxonomyIds;
private LookupRequest.PresenceFilter presenceFilter;
private LookupRequest.LocationFilter locationFilter;
private String salesforceId;
private LookupRequest.SnapshotFilter snapshotFilter;
private LookupRequest.StatusFilter statusFilter;
private List accountGroupIds;
private boolean includeDeleted;
private List customFields;
public Builder() {
this.partnerId = "";
this.marketIds = new ArrayList();
this.salesPersonId = "";
this.customerId = "";
this.tags = new ArrayList();
this.accountFilters = null;
this.listingDistributionFilter = null;
this.createdDateFilter = null;
this.listingSyncProFilter = null;
this.trialFilter = null;
this.taxonomyIds = new ArrayList();
this.presenceFilter = null;
this.locationFilter = null;
this.salesforceId = "";
this.snapshotFilter = null;
this.statusFilter = null;
this.accountGroupIds = new ArrayList();
this.includeDeleted = false;
this.customFields = null;
}
/**
* Adds a value to the builder for partnerId
* @param partnerId Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setPartnerId(String partnerId) {
this.partnerId = partnerId;
return this;
}
/**
* Adds a value to the builder for marketIds
* @param marketIds Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setMarketIds(List marketIds) {
this.marketIds = marketIds;
return this;
}
/**
* Adds a value to the builder for salesPersonId
* @param salesPersonId Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setSalesPersonId(String salesPersonId) {
this.salesPersonId = salesPersonId;
return this;
}
/**
* Adds a value to the builder for customerId
* @param customerId Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setCustomerId(String customerId) {
this.customerId = customerId;
return this;
}
/**
* Adds a value to the builder for tags
* @param tags Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setTags(List tags) {
this.tags = tags;
return this;
}
/**
* Adds a value to the builder for accountFilters
* @param accountFilters Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setAccountFilters(List accountFilters) {
this.accountFilters = accountFilters;
return this;
}
/**
* Adds a value to the builder for listingDistributionFilter
* @param listingDistributionFilter Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setListingDistributionFilter(LookupRequest.ListingDistributionFilter listingDistributionFilter) {
this.listingDistributionFilter = listingDistributionFilter;
return this;
}
/**
* Adds a value to the builder for createdDateFilter
* @param createdDateFilter Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setCreatedDateFilter(LookupRequest.CreatedDateFilter createdDateFilter) {
this.createdDateFilter = createdDateFilter;
return this;
}
/**
* Adds a value to the builder for listingSyncProFilter
* @param listingSyncProFilter Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setListingSyncProFilter(LookupRequest.ListingSyncProFilter listingSyncProFilter) {
this.listingSyncProFilter = listingSyncProFilter;
return this;
}
/**
* Adds a value to the builder for trialFilter
* @param trialFilter Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setTrialFilter(LookupRequest.TrialFilter trialFilter) {
this.trialFilter = trialFilter;
return this;
}
/**
* Adds a value to the builder for taxonomyIds
* @param taxonomyIds Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setTaxonomyIds(List taxonomyIds) {
this.taxonomyIds = taxonomyIds;
return this;
}
/**
* Adds a value to the builder for presenceFilter
* @param presenceFilter Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setPresenceFilter(LookupRequest.PresenceFilter presenceFilter) {
this.presenceFilter = presenceFilter;
return this;
}
/**
* Adds a value to the builder for locationFilter
* @param locationFilter Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setLocationFilter(LookupRequest.LocationFilter locationFilter) {
this.locationFilter = locationFilter;
return this;
}
/**
* Adds a value to the builder for salesforceId
* @param salesforceId Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setSalesforceId(String salesforceId) {
this.salesforceId = salesforceId;
return this;
}
/**
* Adds a value to the builder for snapshotFilter
* @param snapshotFilter Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setSnapshotFilter(LookupRequest.SnapshotFilter snapshotFilter) {
this.snapshotFilter = snapshotFilter;
return this;
}
/**
* Adds a value to the builder for statusFilter
* @param statusFilter Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setStatusFilter(LookupRequest.StatusFilter statusFilter) {
this.statusFilter = statusFilter;
return this;
}
/**
* Adds a value to the builder for accountGroupIds
* @param accountGroupIds Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setAccountGroupIds(List accountGroupIds) {
this.accountGroupIds = accountGroupIds;
return this;
}
/**
* Adds a value to the builder for includeDeleted
* @param includeDeleted Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setIncludeDeleted(boolean includeDeleted) {
this.includeDeleted = includeDeleted;
return this;
}
/**
* Adds a value to the builder for customFields
* @param customFields Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setCustomFields(List customFields) {
this.customFields = customFields;
return this;
}
/**
* Takes the configuration in the mutable Builder and uses it to instantiate a final instance
* of the Filters class
* @return The instantiated final Filters
**/
public Filters build() {
return new Filters(
this.partnerId,
this.marketIds,
this.salesPersonId,
this.customerId,
this.tags,
this.accountFilters,
this.listingDistributionFilter,
this.createdDateFilter,
this.listingSyncProFilter,
this.trialFilter,
this.taxonomyIds,
this.presenceFilter,
this.locationFilter,
this.salesforceId,
this.snapshotFilter,
this.statusFilter,
this.accountGroupIds,
this.includeDeleted,
this.customFields);
}
}
/**
* Returns a Builder for Filters, which is a mutable representation of the object. Once the
* client has built up an object they can then create an immutable Filters object using the
* build function.
* @return A fresh Builder instance with no values set
**/
public static Builder newBuilder() {
return new Builder();
}
/**
* Provides a human-readable representation of this object. Useful for debugging.
* @return A string representation of the Filters instance
**/
public String toString() {
String result = "Filters\n";
result += "-> partnerId: (String)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.partnerId).split("\n"))) + "\n";
result += "-> marketIds: (List)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.marketIds).split("\n"))) + "\n";
result += "-> salesPersonId: (String)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.salesPersonId).split("\n"))) + "\n";
result += "-> customerId: (String)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.customerId).split("\n"))) + "\n";
result += "-> tags: (List)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.tags).split("\n"))) + "\n";
result += "-> accountFilters: (List)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.accountFilters).split("\n"))) + "\n";
result += "-> listingDistributionFilter: (LookupRequest.ListingDistributionFilter)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.listingDistributionFilter).split("\n"))) + "\n";
result += "-> createdDateFilter: (LookupRequest.CreatedDateFilter)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.createdDateFilter).split("\n"))) + "\n";
result += "-> listingSyncProFilter: (LookupRequest.ListingSyncProFilter)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.listingSyncProFilter).split("\n"))) + "\n";
result += "-> trialFilter: (LookupRequest.TrialFilter)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.trialFilter).split("\n"))) + "\n";
result += "-> taxonomyIds: (List)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.taxonomyIds).split("\n"))) + "\n";
result += "-> presenceFilter: (LookupRequest.PresenceFilter)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.presenceFilter).split("\n"))) + "\n";
result += "-> locationFilter: (LookupRequest.LocationFilter)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.locationFilter).split("\n"))) + "\n";
result += "-> salesforceId: (String)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.salesforceId).split("\n"))) + "\n";
result += "-> snapshotFilter: (LookupRequest.SnapshotFilter)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.snapshotFilter).split("\n"))) + "\n";
result += "-> statusFilter: (LookupRequest.StatusFilter)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.statusFilter).split("\n"))) + "\n";
result += "-> accountGroupIds: (List)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.accountGroupIds).split("\n"))) + "\n";
result += "-> includeDeleted: (boolean)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.includeDeleted).split("\n"))) + "\n";
result += "-> customFields: (List)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.customFields).split("\n"))) + "\n";
return result;
}
/**
* Allows for simple conversion between the low-level generated protobuf object to
* Filters, which is much more usable.
* @return An instance of Filters representing the input proto object
**/
public static Filters fromProto(ApiProto.LookupRequest.Filters proto) {
Filters out = null;
if (proto != null) {
Filters.Builder outBuilder = Filters.newBuilder()
.setPartnerId(proto.getPartnerId())
.setMarketIds(proto.getMarketIdsList())
.setSalesPersonId(proto.getSalesPersonId())
.setCustomerId(proto.getCustomerId())
.setTags(proto.getTagsList())
.setAccountFilters(LookupRequest.AccountFilter.fromProtos(proto.getAccountFiltersList()))
.setListingDistributionFilter(LookupRequest.ListingDistributionFilter.fromProto(proto.getListingDistributionFilter()))
.setCreatedDateFilter(LookupRequest.CreatedDateFilter.fromProto(proto.getCreatedDateFilter()))
.setListingSyncProFilter(LookupRequest.ListingSyncProFilter.fromProto(proto.getListingSyncProFilter()))
.setTrialFilter(LookupRequest.TrialFilter.fromProto(proto.getTrialFilter()))
.setTaxonomyIds(proto.getTaxonomyIdsList())
.setPresenceFilter(LookupRequest.PresenceFilter.fromProto(proto.getPresenceFilter()))
.setLocationFilter(LookupRequest.LocationFilter.fromProto(proto.getLocationFilter()))
.setSalesforceId(proto.getSalesforceId())
.setSnapshotFilter(LookupRequest.SnapshotFilter.fromProto(proto.getSnapshotFilter()))
.setStatusFilter(LookupRequest.StatusFilter.fromProto(proto.getStatusFilter()))
.setAccountGroupIds(proto.getAccountGroupIdsList())
.setIncludeDeleted(proto.getIncludeDeleted())
.setCustomFields(CustomField.fromProtos(proto.getCustomFieldsList()));
out = outBuilder.build();
}
return out;
}
/**
* Convenience method for handling lists of proto objects. It calls .fromProto on each one
* and returns a list of the converted results.
* @return A list of Filters instances representing the input proto objects
**/
public static List fromProtos(List protos) {
List out = new ArrayList();
for(ApiProto.LookupRequest.Filters proto : protos) {
out.add(Filters.fromProto(proto));
}
return out;
}
/**
* Allows for simple conversion of an object to the low-level generated protobuf object.
* @return An instance of ApiProto.LookupRequest.Filters which is a proto object ready for wire transmission
**/
public ApiProto.LookupRequest.Filters toProto() {
Filters obj = this;
ApiProto.LookupRequest.Filters.Builder outBuilder = ApiProto.LookupRequest.Filters.newBuilder();
outBuilder.setPartnerId(obj.getPartnerId());
outBuilder.addAllMarketIds(obj.getMarketIds());
outBuilder.setSalesPersonId(obj.getSalesPersonId());
outBuilder.setCustomerId(obj.getCustomerId());
outBuilder.addAllTags(obj.getTags());
outBuilder.addAllAccountFilters(LookupRequest.AccountFilter.toProtos(obj.getAccountFilters()));
if(obj.getListingDistributionFilter() != null){outBuilder.setListingDistributionFilter(obj.getListingDistributionFilter().toProto());}
if(obj.getCreatedDateFilter() != null){outBuilder.setCreatedDateFilter(obj.getCreatedDateFilter().toProto());}
if(obj.getListingSyncProFilter() != null){outBuilder.setListingSyncProFilter(obj.getListingSyncProFilter().toProto());}
if(obj.getTrialFilter() != null){outBuilder.setTrialFilter(obj.getTrialFilter().toProto());}
outBuilder.addAllTaxonomyIds(obj.getTaxonomyIds());
if(obj.getPresenceFilter() != null){outBuilder.setPresenceFilter(obj.getPresenceFilter().toProto());}
if(obj.getLocationFilter() != null){outBuilder.setLocationFilter(obj.getLocationFilter().toProto());}
outBuilder.setSalesforceId(obj.getSalesforceId());
if(obj.getSnapshotFilter() != null){outBuilder.setSnapshotFilter(obj.getSnapshotFilter().toProto());}
if(obj.getStatusFilter() != null){outBuilder.setStatusFilter(obj.getStatusFilter().toProto());}
outBuilder.addAllAccountGroupIds(obj.getAccountGroupIds());
outBuilder.setIncludeDeleted(obj.getIncludeDeleted());
outBuilder.addAllCustomFields(CustomField.toProtos(obj.getCustomFields()));
return outBuilder.build();
}
/**
* Convenience method for handling lists of objects. It calls .toProto on each one and
* returns a list of the converted results.
* @return A list of ApiProto.LookupRequest.Filters instances representing the input objects.
*/
public static List toProtos(List objects) {
List out = new ArrayList();
if(objects != null) {
for (Filters obj : objects) {
out.add(obj!=null?obj.toProto():null);
}
}
return out;
}
}
private final ProjectionFilter projectionFilter;
private final LookupRequest.Filters filters;
private final String cursor;
private final long pageSize;
private final SortOptions sortOptions;
private final String searchTerm;
private LookupRequest (
final ProjectionFilter projectionFilter,
final LookupRequest.Filters filters,
final String cursor,
final long pageSize,
final SortOptions sortOptions,
final String searchTerm)
{
this.projectionFilter = projectionFilter;
this.filters = filters;
this.cursor = cursor;
this.pageSize = pageSize;
this.sortOptions = sortOptions;
this.searchTerm = searchTerm;
}
/**
*
* @return The final value of projectionFilter on the object
**/
public ProjectionFilter getProjectionFilter() {
return this.projectionFilter;
}
/**
*
* @return The final value of filters on the object
**/
public LookupRequest.Filters getFilters() {
return this.filters;
}
/**
*
* @return The final value of cursor on the object
**/
public String getCursor() {
return this.cursor;
}
/**
*
* @return The final value of pageSize on the object
**/
public long getPageSize() {
return this.pageSize;
}
/**
*
* @return The final value of sortOptions on the object
**/
public SortOptions getSortOptions() {
return this.sortOptions;
}
/**
* search_term is an arbitrary string to perform full text search across the account group's location data
* @return The final value of searchTerm on the object
**/
public String getSearchTerm() {
return this.searchTerm;
}
public static class Builder {
private ProjectionFilter projectionFilter;
private LookupRequest.Filters filters;
private String cursor;
private long pageSize;
private SortOptions sortOptions;
private String searchTerm;
public Builder() {
this.projectionFilter = null;
this.filters = null;
this.cursor = "";
this.pageSize = 0;
this.sortOptions = null;
this.searchTerm = "";
}
/**
* Adds a value to the builder for projectionFilter
* @param projectionFilter Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setProjectionFilter(ProjectionFilter projectionFilter) {
this.projectionFilter = projectionFilter;
return this;
}
/**
* Adds a value to the builder for filters
* @param filters Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setFilters(LookupRequest.Filters filters) {
this.filters = filters;
return this;
}
/**
* Adds a value to the builder for cursor
* @param cursor Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setCursor(String cursor) {
this.cursor = cursor;
return this;
}
/**
* Adds a value to the builder for pageSize
* @param pageSize Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setPageSize(long pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* Adds a value to the builder for sortOptions
* @param sortOptions Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setSortOptions(SortOptions sortOptions) {
this.sortOptions = sortOptions;
return this;
}
/**
* Adds a value to the builder for searchTerm
* @param searchTerm Value to assign to the mutable Builder
* @return The Builder instance so that call chaining works
**/
public Builder setSearchTerm(String searchTerm) {
this.searchTerm = searchTerm;
return this;
}
/**
* Takes the configuration in the mutable Builder and uses it to instantiate a final instance
* of the LookupRequest class
* @return The instantiated final LookupRequest
**/
public LookupRequest build() {
return new LookupRequest(
this.projectionFilter,
this.filters,
this.cursor,
this.pageSize,
this.sortOptions,
this.searchTerm);
}
}
/**
* Returns a Builder for LookupRequest, which is a mutable representation of the object. Once the
* client has built up an object they can then create an immutable LookupRequest object using the
* build function.
* @return A fresh Builder instance with no values set
**/
public static Builder newBuilder() {
return new Builder();
}
/**
* Provides a human-readable representation of this object. Useful for debugging.
* @return A string representation of the LookupRequest instance
**/
public String toString() {
String result = "LookupRequest\n";
result += "-> projectionFilter: (ProjectionFilter)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.projectionFilter).split("\n"))) + "\n";
result += "-> filters: (LookupRequest.Filters)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.filters).split("\n"))) + "\n";
result += "-> cursor: (String)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.cursor).split("\n"))) + "\n";
result += "-> pageSize: (long)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.pageSize).split("\n"))) + "\n";
result += "-> sortOptions: (SortOptions)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.sortOptions).split("\n"))) + "\n";
result += "-> searchTerm: (String)"
+ StringUtils.join("\n ", Arrays.asList(String.valueOf(this.searchTerm).split("\n"))) + "\n";
return result;
}
/**
* Allows for simple conversion between the low-level generated protobuf object to
* LookupRequest, which is much more usable.
* @return An instance of LookupRequest representing the input proto object
**/
public static LookupRequest fromProto(ApiProto.LookupRequest proto) {
LookupRequest out = null;
if (proto != null) {
LookupRequest.Builder outBuilder = LookupRequest.newBuilder()
.setProjectionFilter(ProjectionFilter.fromProto(proto.getProjectionFilter()))
.setFilters(LookupRequest.Filters.fromProto(proto.getFilters()))
.setCursor(proto.getCursor())
.setPageSize(proto.getPageSize())
.setSortOptions(SortOptions.fromProto(proto.getSortOptions()))
.setSearchTerm(proto.getSearchTerm());
out = outBuilder.build();
}
return out;
}
/**
* Convenience method for handling lists of proto objects. It calls .fromProto on each one
* and returns a list of the converted results.
* @return A list of LookupRequest instances representing the input proto objects
**/
public static List fromProtos(List protos) {
List out = new ArrayList();
for(ApiProto.LookupRequest proto : protos) {
out.add(LookupRequest.fromProto(proto));
}
return out;
}
/**
* Allows for simple conversion of an object to the low-level generated protobuf object.
* @return An instance of ApiProto.LookupRequest which is a proto object ready for wire transmission
**/
public ApiProto.LookupRequest toProto() {
LookupRequest obj = this;
ApiProto.LookupRequest.Builder outBuilder = ApiProto.LookupRequest.newBuilder();
if(obj.getProjectionFilter() != null){outBuilder.setProjectionFilter(obj.getProjectionFilter().toProto());}
if(obj.getFilters() != null){outBuilder.setFilters(obj.getFilters().toProto());}
outBuilder.setCursor(obj.getCursor());
outBuilder.setPageSize(obj.getPageSize());
if(obj.getSortOptions() != null){outBuilder.setSortOptions(obj.getSortOptions().toProto());}
outBuilder.setSearchTerm(obj.getSearchTerm());
return outBuilder.build();
}
/**
* Convenience method for handling lists of objects. It calls .toProto on each one and
* returns a list of the converted results.
* @return A list of ApiProto.LookupRequest instances representing the input objects.
*/
public static List toProtos(List objects) {
List out = new ArrayList();
if(objects != null) {
for (LookupRequest obj : objects) {
out.add(obj!=null?obj.toProto():null);
}
}
return out;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy