Class ModelConfig.VertexModelConfigObject
-
- All Implemented Interfaces:
public final class ModelConfig.VertexModelConfigObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classModelConfig.VertexModelConfigObject.BuilderA builder for VertexModelConfigObject.
public final classModelConfig.VertexModelConfigObject.AuthVertex provider authentication configuration
public final classModelConfig.VertexModelConfigObject.ProviderOptionsVertex provider-specific model configuration
public final classModelConfig.VertexModelConfigObject.HeadersCustom headers sent with every request to the model provider
-
Method Summary
Modifier and Type Method Description final ModelConfig.VertexModelConfigObject.Authauth()Vertex provider authentication configuration final StringmodelName()Model name string with provider prefix (e.g. final JsonValue_provider()Vertex AI model providerExpected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("vertex")final ModelConfig.VertexModelConfigObject.ProviderOptionsproviderOptions()Vertex provider-specific model configuration final Optional<String>apiKey()API key for the model provider final Optional<String>baseUrl()Base URL for the model provider final Optional<ModelConfig.VertexModelConfigObject.Headers>headers()Custom headers sent with every request to the model provider final JsonField<ModelConfig.VertexModelConfigObject.Auth>_auth()Returns the raw JSON value of auth. final JsonField<String>_modelName()Returns the raw JSON value of modelName. final JsonField<ModelConfig.VertexModelConfigObject.ProviderOptions>_providerOptions()Returns the raw JSON value of providerOptions. final JsonField<String>_apiKey()Returns the raw JSON value of apiKey. final JsonField<String>_baseUrl()Returns the raw JSON value of baseUrl. final JsonField<ModelConfig.VertexModelConfigObject.Headers>_headers()Returns the raw JSON value of headers. final Map<String, JsonValue>_additionalProperties()final ModelConfig.VertexModelConfigObject.BuildertoBuilder()final ModelConfig.VertexModelConfigObjectvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ModelConfig.VertexModelConfigObject.Builderbuilder()Returns a mutable builder for constructing an instance of VertexModelConfigObject. -
-
Method Detail
-
auth
final ModelConfig.VertexModelConfigObject.Auth auth()
Vertex provider authentication configuration
-
modelName
final String modelName()
Model name string with provider prefix (e.g., 'openai/gpt-5-nano')
-
_provider
final JsonValue _provider()
Vertex AI model provider
Expected to always return the following:
JsonValue.from("vertex")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
providerOptions
final ModelConfig.VertexModelConfigObject.ProviderOptions providerOptions()
Vertex provider-specific model configuration
-
headers
final Optional<ModelConfig.VertexModelConfigObject.Headers> headers()
Custom headers sent with every request to the model provider
-
_auth
final JsonField<ModelConfig.VertexModelConfigObject.Auth> _auth()
Returns the raw JSON value of auth.
Unlike auth, this method doesn't throw if the JSON field has an unexpected type.
-
_modelName
final JsonField<String> _modelName()
Returns the raw JSON value of modelName.
Unlike modelName, this method doesn't throw if the JSON field has an unexpected type.
-
_providerOptions
final JsonField<ModelConfig.VertexModelConfigObject.ProviderOptions> _providerOptions()
Returns the raw JSON value of providerOptions.
Unlike providerOptions, this method doesn't throw if the JSON field has an unexpected type.
-
_apiKey
final JsonField<String> _apiKey()
Returns the raw JSON value of apiKey.
Unlike apiKey, this method doesn't throw if the JSON field has an unexpected type.
-
_baseUrl
final JsonField<String> _baseUrl()
Returns the raw JSON value of baseUrl.
Unlike baseUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_headers
final JsonField<ModelConfig.VertexModelConfigObject.Headers> _headers()
Returns the raw JSON value of headers.
Unlike headers, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ModelConfig.VertexModelConfigObject.Builder toBuilder()
-
validate
final ModelConfig.VertexModelConfigObject validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ModelConfig.VertexModelConfigObject.Builder builder()
Returns a mutable builder for constructing an instance of VertexModelConfigObject.
The following fields are required:
.auth() .modelName() .providerOptions()
-
-
-
-