apiAuth = $apiAuth; } /** * @deprecated * @return GoogleCloudAiplatformV1ApiAuth */ public function getApiAuth() { return $this->apiAuth; } /** * The API spec that the external API implements. * * Accepted values: API_SPEC_UNSPECIFIED, SIMPLE_SEARCH, ELASTIC_SEARCH * * @param self::API_SPEC_* $apiSpec */ public function setApiSpec($apiSpec) { $this->apiSpec = $apiSpec; } /** * @return self::API_SPEC_* */ public function getApiSpec() { return $this->apiSpec; } /** * The authentication config to access the API. * * @param GoogleCloudAiplatformV1AuthConfig $authConfig */ public function setAuthConfig(GoogleCloudAiplatformV1AuthConfig $authConfig) { $this->authConfig = $authConfig; } /** * @return GoogleCloudAiplatformV1AuthConfig */ public function getAuthConfig() { return $this->authConfig; } /** * Parameters for the elastic search API. * * @param GoogleCloudAiplatformV1ExternalApiElasticSearchParams $elasticSearchParams */ public function setElasticSearchParams(GoogleCloudAiplatformV1ExternalApiElasticSearchParams $elasticSearchParams) { $this->elasticSearchParams = $elasticSearchParams; } /** * @return GoogleCloudAiplatformV1ExternalApiElasticSearchParams */ public function getElasticSearchParams() { return $this->elasticSearchParams; } /** * 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 * * @param string $endpoint */ public function setEndpoint($endpoint) { $this->endpoint = $endpoint; } /** * @return string */ public function getEndpoint() { return $this->endpoint; } /** * Parameters for the simple search API. * * @param GoogleCloudAiplatformV1ExternalApiSimpleSearchParams $simpleSearchParams */ public function setSimpleSearchParams(GoogleCloudAiplatformV1ExternalApiSimpleSearchParams $simpleSearchParams) { $this->simpleSearchParams = $simpleSearchParams; } /** * @return GoogleCloudAiplatformV1ExternalApiSimpleSearchParams */ public function getSimpleSearchParams() { return $this->simpleSearchParams; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudAiplatformV1ExternalApi::class, 'Google_Service_Aiplatform_GoogleCloudAiplatformV1ExternalApi');