public < T extends AbstractGoogleJsonClient . Builder > T fromOfflineAuth ( T builder , OfflineAuth auth ) { Preconditions . checkNotNull ( builder ) ; Preconditions . checkNotNull ( auth ) ; if ( auth . hasApiKey ( ) ) { return fromApiKey ( builder , auth . getApiKey ( ) ) ; } return fromCredential ( builder , auth . getCredential ( ) ) ; }
Prepare an AbstractGoogleJsonClient . Builder with the given OfflineAuth object .