Class ExternalApi.Builder
- Enclosing class:
- ExternalApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ExternalApi.BuilderSetter for apiAuth.apiAuth(ApiAuth.Builder apiAuthBuilder) Setter for apiAuth builder.abstract ExternalApi.BuilderSetter for apiSpec.apiSpec(ApiSpec.Known knownType) Setter for apiSpec given a known enum.Setter for apiSpec given a string.abstract ExternalApi.BuilderauthConfig(AuthConfig authConfig) Setter for authConfig.authConfig(AuthConfig.Builder authConfigBuilder) Setter for authConfig builder.abstract ExternalApibuild()Clears the value of apiAuth field.Clears the value of apiSpec field.Clears the value of authConfig field.Clears the value of elasticSearchParams field.Clears the value of endpoint field.Clears the value of simpleSearchParams field.abstract ExternalApi.BuilderelasticSearchParams(ExternalApiElasticSearchParams elasticSearchParams) Setter for elasticSearchParams.elasticSearchParams(ExternalApiElasticSearchParams.Builder elasticSearchParamsBuilder) Setter for elasticSearchParams builder.abstract ExternalApi.BuilderSetter for endpoint.abstract ExternalApi.BuildersimpleSearchParams(ExternalApiSimpleSearchParams simpleSearchParams) Setter for simpleSearchParams.simpleSearchParams(ExternalApiSimpleSearchParams.Builder simpleSearchParamsBuilder) Setter for simpleSearchParams builder.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiAuth
Setter for apiAuth.apiAuth: The authentication config to access the API. Deprecated. Please use auth_config instead.
-
apiAuth
Setter for apiAuth builder.apiAuth: The authentication config to access the API. Deprecated. Please use auth_config instead.
-
clearApiAuth
Clears the value of apiAuth field. -
apiSpec
Setter for apiSpec.apiSpec: The API spec that the external API implements.
-
clearApiSpec
Clears the value of apiSpec field. -
apiSpec
Setter for apiSpec given a known enum.apiSpec: The API spec that the external API implements.
-
apiSpec
Setter for apiSpec given a string.apiSpec: The API spec that the external API implements.
-
authConfig
Setter for authConfig.authConfig: The authentication config to access the API.
-
authConfig
Setter for authConfig builder.authConfig: The authentication config to access the API.
-
clearAuthConfig
Clears the value of authConfig field. -
elasticSearchParams
public abstract ExternalApi.Builder elasticSearchParams(ExternalApiElasticSearchParams elasticSearchParams) Setter for elasticSearchParams.elasticSearchParams: Parameters for the elastic search API.
-
elasticSearchParams
@CanIgnoreReturnValue public ExternalApi.Builder elasticSearchParams(ExternalApiElasticSearchParams.Builder elasticSearchParamsBuilder) Setter for elasticSearchParams builder.elasticSearchParams: Parameters for the elastic search API.
-
clearElasticSearchParams
Clears the value of elasticSearchParams field. -
endpoint
Setter for endpoint.endpoint: The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search
-
clearEndpoint
Clears the value of endpoint field. -
simpleSearchParams
public abstract ExternalApi.Builder simpleSearchParams(ExternalApiSimpleSearchParams simpleSearchParams) Setter for simpleSearchParams.simpleSearchParams: Parameters for the simple search API.
-
simpleSearchParams
@CanIgnoreReturnValue public ExternalApi.Builder simpleSearchParams(ExternalApiSimpleSearchParams.Builder simpleSearchParamsBuilder) Setter for simpleSearchParams builder.simpleSearchParams: Parameters for the simple search API.
-
clearSimpleSearchParams
Clears the value of simpleSearchParams field. -
build
-