/** * Constructs a new report query builder by copying all properties from the passed report query * builder. * * @param builderInterface the report query builder whose properties will be copied to. */ public Builder(BuilderInterface builderInterface) { checkNotNull(builderInterface, "The report query builder cannot be null."); Builder builder = (Builder) builderInterface; proxiedImpl = new ReportQueryBuilderImpl(builder.proxiedImpl); InvocationHandler invocationHandler = new AdsUtilityInvocationHandler( proxiedImpl, AdWordsInternals.getInstance().getAdsUtilityRegistry()); this.proxy = Reflection.newProxy(BuilderInterface.class, invocationHandler); }
/** * Constructs a new report query builder by copying all properties from the passed report query * builder. * * @param builderInterface the report query builder whose properties will be copied to. */ public Builder(BuilderInterface builderInterface) { checkNotNull(builderInterface, "The report query builder cannot be null."); Builder builder = (Builder) builderInterface; proxiedImpl = new ReportQueryBuilderImpl(builder.proxiedImpl); InvocationHandler invocationHandler = new AdsUtilityInvocationHandler( proxiedImpl, AdWordsInternals.getInstance().getAdsUtilityRegistry()); this.proxy = Reflection.newProxy(BuilderInterface.class, invocationHandler); }
/** Constructs a new report query builder. */ public Builder() { proxiedImpl = new ReportQueryBuilderImpl(this); InvocationHandler invocationHandler = new AdsUtilityInvocationHandler( proxiedImpl, AdWordsInternals.getInstance().getAdsUtilityRegistry()); this.proxy = Reflection.newProxy(BuilderInterface.class, invocationHandler); }
/** Constructs a new report query builder. */ public Builder() { proxiedImpl = new ReportQueryBuilderImpl(this); InvocationHandler invocationHandler = new AdsUtilityInvocationHandler( proxiedImpl, AdWordsInternals.getInstance().getAdsUtilityRegistry()); this.proxy = Reflection.newProxy(BuilderInterface.class, invocationHandler); }