Class VertexAI.Builder (1.14.0)

public static class VertexAI.Builder

Builder for VertexAI.

Inheritance

java.lang.Object > VertexAI.Builder

Constructors

Builder()

public Builder()

Methods

build()

public VertexAI build()
Returns
Type Description
VertexAI

setApiEndpoint(String apiEndpoint)

public VertexAI.Builder setApiEndpoint(String apiEndpoint)
Parameter
Name Description
apiEndpoint String
Returns
Type Description
VertexAI.Builder

setCredentials(Credentials credentials)

public VertexAI.Builder setCredentials(Credentials credentials)
Parameter
Name Description
credentials com.google.auth.Credentials
Returns
Type Description
VertexAI.Builder

setCustomHeaders(Map<String,String> customHeaders)

public VertexAI.Builder setCustomHeaders(Map<String,String> customHeaders)
Parameter
Name Description
customHeaders Map<String,String>
Returns
Type Description
VertexAI.Builder

setLlmClientSupplier(Supplier<LlmUtilityServiceClient> llmClientSupplier)

public VertexAI.Builder setLlmClientSupplier(Supplier<LlmUtilityServiceClient> llmClientSupplier)
Parameter
Name Description
llmClientSupplier com.google.common.base.Supplier<LlmUtilityServiceClient>
Returns
Type Description
VertexAI.Builder

setLocation(String location)

public VertexAI.Builder setLocation(String location)
Parameter
Name Description
location String
Returns
Type Description
VertexAI.Builder

setPredictionClientSupplier(Supplier<PredictionServiceClient> predictionClientSupplier)

public VertexAI.Builder setPredictionClientSupplier(Supplier<PredictionServiceClient> predictionClientSupplier)
Parameter
Name Description
predictionClientSupplier com.google.common.base.Supplier<PredictionServiceClient>
Returns
Type Description
VertexAI.Builder

setProjectId(String projectId)

public VertexAI.Builder setProjectId(String projectId)
Parameter
Name Description
projectId String
Returns
Type Description
VertexAI.Builder

setScopes(List<String> scopes)

public VertexAI.Builder setScopes(List<String> scopes)
Parameter
Name Description
scopes List<String>
Returns
Type Description
VertexAI.Builder

setTransport(Transport transport)

public VertexAI.Builder setTransport(Transport transport)
Parameter
Name Description
transport Transport
Returns
Type Description
VertexAI.Builder