Prepare an AbstractGoogleJsonClient.Builder using an API key.

@param builder The builder to be prepared.
@param apiKey The API key of the Google Cloud Platform project.
@return The passed in builder, for easy chaining.
435794
public <T extends AbstractGoogleJsonClient.Builder> T fromApiKey(T builder, String apiKey) {
    Preconditions.checkNotNull(builder);
    Preconditions.checkNotNull(apiKey);
    return prepareBuilder(builder, null, new CommonGoogleClientRequestInitializer(apiKey));
  }
1296589
public <T extends AbstractGoogleJsonClient.Builder> T fromApplicationDefaultCredential(T builder) {
    Preconditions.checkNotNull(builder);
    return fromCredential(builder, CredentialFactory.getApplicationDefaultCredential());
  }
897996
@Nonnull
	public static IntBinaryOperator intBinaryOperatorFrom(Consumer<IntBinaryOperatorBuilder> buildingFunction) {
		IntBinaryOperatorBuilder builder = new IntBinaryOperatorBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
977396
public OmdbBuilder setApiKey(final String apiKey) throws OMDBException {
        if (StringUtils.isBlank(apiKey)) {
            throw new OMDBException(ApiExceptionType.AUTH_FAILURE, "Must provide an ApiKey");
        }
        params.add(Param.APIKEY, apiKey);
        return this;
    }
1085741
@Nonnull
	public static <T> LOiToSrtFunctionBuilder<T> oiToSrtFunction(Consumer<LOiToSrtFunction<T>> consumer) {
		return new LOiToSrtFunctionBuilder(consumer);
	}
750404
public Datatype.Builder setBuilderFactory(Optional<? extends BuilderFactory> builderFactory) {
    if (builderFactory.isPresent()) {
      return setBuilderFactory(builderFactory.get());
    } else {
      return clearBuilderFactory();
    }
  }
425382
@Override
  public BindingBuilder<T> to(Class<? super T> api)
  {
    Objects.requireNonNull(api);
    
    _api = api;
    
    _builder.to(api);

    return this;
  }
1124563
@Nonnull
	public static <T> UnaryOperator<T> unaryOperatorFrom(Consumer<UnaryOperatorBuilder<T>> buildingFunction) {
		UnaryOperatorBuilder builder = new UnaryOperatorBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
671798
@Nonnull
	public static LByteToIntFunction byteToIntFunctionFrom(Consumer<LByteToIntFunctionBuilder> buildingFunction) {
		LByteToIntFunctionBuilder builder = new LByteToIntFunctionBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
1284468
public static function build($apiKey)
    {
        self::$apiKey          = $apiKey;
        static::$cachedFactory = new ServiceBuilderLoader();

        return parent::factory(__DIR__.'/Resources/clients.json');
    }
188303
@Nonnull
	public static <T1, T2, R> LBiObjDblFunction<T1, T2, R> biObjDblFunctionFrom(Consumer<LBiObjDblFunctionBuilder<T1, T2, R>> buildingFunction) {
		LBiObjDblFunctionBuilder builder = new LBiObjDblFunctionBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
1281926
@CheckReturnValue
  public static <ReqT, RespT> Builder<ReqT, RespT> newBuilder(
      Marshaller<ReqT> requestMarshaller, Marshaller<RespT> responseMarshaller) {
    return new Builder<ReqT, RespT>()
        .setRequestMarshaller(requestMarshaller)
        .setResponseMarshaller(responseMarshaller);
  }
1240830
@Nonnull
	public static <T, R> LObjDblFunction<T, R> objDblFunctionFrom(Consumer<LObjDblFunctionBuilder<T, R>> buildingFunction) {
		LObjDblFunctionBuilder builder = new LObjDblFunctionBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
224405
public static Builder v1Builder(String name) {
        return new Builder(name, V1MarshallerSet.marshallers(), V1MarshallerSet.setMarshallers(),
                           StandardUnmarshallerSet.unmarshallers(),
                           StandardUnmarshallerSet.setUnmarshallers());
    }
1007793
@Nonnull
	public static <T> LObjBiIntPredicate<T> objBiIntPredicateFrom(Consumer<LObjBiIntPredicateBuilder<T>> buildingFunction) {
		LObjBiIntPredicateBuilder builder = new LObjBiIntPredicateBuilder();
		buildingFunction.accept(builder);
		return builder.build();
	}
205418
public static ClientConfigurationBuilder builder(final String url, final String username, final String password) {
        return new ClientConfigurationBuilder(url, username, password);
    }
749599
@Beta
  public Builder toBuilder() {
    Builder builder = new GoogleCredential.Builder()
        .setServiceAccountPrivateKey(serviceAccountPrivateKey)
        .setServiceAccountPrivateKeyId(serviceAccountPrivateKeyId)
        .setServiceAccountId(serviceAccountId)
        .setServiceAccountProjectId(serviceAccountProjectId)
        .setServiceAccountUser(serviceAccountUser)
        .setServiceAccountScopes(serviceAccountScopes)
        .setTokenServerEncodedUrl(getTokenServerEncodedUrl())
        .setTransport(getTransport())
        .setJsonFactory(getJsonFactory())
        .setClock(getClock());

    builder.setClientAuthentication(getClientAuthentication());

    return builder;
  }