allowedCaCerts = $allowedCaCerts; } /** * @return string[] */ public function getAllowedCaCerts() { return $this->allowedCaCerts; } /** * Optional. HTTP method for the flexible webhook calls. Standard webhook * always uses POST. * * Accepted values: HTTP_METHOD_UNSPECIFIED, POST, GET, HEAD, PUT, DELETE, * PATCH, OPTIONS * * @param self::HTTP_METHOD_* $httpMethod */ public function setHttpMethod($httpMethod) { $this->httpMethod = $httpMethod; } /** * @return self::HTTP_METHOD_* */ public function getHttpMethod() { return $this->httpMethod; } /** * Optional. The OAuth configuration of the webhook. If specified, Dialogflow * will initiate the OAuth client credential flow to exchange an access token * from the 3rd party platform and put it in the auth header. * * @param GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig $oauthConfig */ public function setOauthConfig(GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig $oauthConfig) { $this->oauthConfig = $oauthConfig; } /** * @return GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig */ public function getOauthConfig() { return $this->oauthConfig; } /** * Optional. Maps the values extracted from specific fields of the flexible * webhook response into session parameters. - Key: session parameter name - * Value: field path in the webhook response * * @param string[] $parameterMapping */ public function setParameterMapping($parameterMapping) { $this->parameterMapping = $parameterMapping; } /** * @return string[] */ public function getParameterMapping() { return $this->parameterMapping; } /** * The password for HTTP Basic authentication. * * @deprecated * @param string $password */ public function setPassword($password) { $this->password = $password; } /** * @deprecated * @return string */ public function getPassword() { return $this->password; } /** * Optional. Defines a custom JSON object as request body to send to flexible * webhook. * * @param string $requestBody */ public function setRequestBody($requestBody) { $this->requestBody = $requestBody; } /** * @return string */ public function getRequestBody() { return $this->requestBody; } /** * The HTTP request headers to send together with webhook requests. * * @param string[] $requestHeaders */ public function setRequestHeaders($requestHeaders) { $this->requestHeaders = $requestHeaders; } /** * @return string[] */ public function getRequestHeaders() { return $this->requestHeaders; } /** * Optional. The SecretManager secret version resource storing the * username:password pair for HTTP Basic authentication. Format: * `projects/{project}/secrets/{secret}/versions/{version}` * * @param string $secretVersionForUsernamePassword */ public function setSecretVersionForUsernamePassword($secretVersionForUsernamePassword) { $this->secretVersionForUsernamePassword = $secretVersionForUsernamePassword; } /** * @return string */ public function getSecretVersionForUsernamePassword() { return $this->secretVersionForUsernamePassword; } /** * Optional. The HTTP request headers to send together with webhook requests. * Header values are stored in SecretManager secret versions. When the same * header name is specified in both `request_headers` and * `secret_versions_for_request_headers`, the value in * `secret_versions_for_request_headers` will be used. * * @param GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue[] $secretVersionsForRequestHeaders */ public function setSecretVersionsForRequestHeaders($secretVersionsForRequestHeaders) { $this->secretVersionsForRequestHeaders = $secretVersionsForRequestHeaders; } /** * @return GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue[] */ public function getSecretVersionsForRequestHeaders() { return $this->secretVersionsForRequestHeaders; } /** * Optional. Configuration for service account authentication. * * @param GoogleCloudDialogflowCxV3WebhookGenericWebServiceServiceAccountAuthConfig $serviceAccountAuthConfig */ public function setServiceAccountAuthConfig(GoogleCloudDialogflowCxV3WebhookGenericWebServiceServiceAccountAuthConfig $serviceAccountAuthConfig) { $this->serviceAccountAuthConfig = $serviceAccountAuthConfig; } /** * @return GoogleCloudDialogflowCxV3WebhookGenericWebServiceServiceAccountAuthConfig */ public function getServiceAccountAuthConfig() { return $this->serviceAccountAuthConfig; } /** * Optional. Indicate the auth token type generated from the [Diglogflow * service agent](https://cloud.google.com/iam/docs/service-agents#dialogflow- * service-agent). The generated token is sent in the Authorization header. * * Accepted values: SERVICE_AGENT_AUTH_UNSPECIFIED, NONE, ID_TOKEN, * ACCESS_TOKEN * * @param self::SERVICE_AGENT_AUTH_* $serviceAgentAuth */ public function setServiceAgentAuth($serviceAgentAuth) { $this->serviceAgentAuth = $serviceAgentAuth; } /** * @return self::SERVICE_AGENT_AUTH_* */ public function getServiceAgentAuth() { return $this->serviceAgentAuth; } /** * Required. The webhook URI for receiving POST requests. It must use https * protocol. * * @param string $uri */ public function setUri($uri) { $this->uri = $uri; } /** * @return string */ public function getUri() { return $this->uri; } /** * The user name for HTTP Basic authentication. * * @deprecated * @param string $username */ public function setUsername($username) { $this->username = $username; } /** * @deprecated * @return string */ public function getUsername() { return $this->username; } /** * Optional. Type of the webhook. * * Accepted values: WEBHOOK_TYPE_UNSPECIFIED, STANDARD, FLEXIBLE * * @param self::WEBHOOK_TYPE_* $webhookType */ public function setWebhookType($webhookType) { $this->webhookType = $webhookType; } /** * @return self::WEBHOOK_TYPE_* */ public function getWebhookType() { return $this->webhookType; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudDialogflowCxV3WebhookGenericWebService::class, 'Google_Service_Dialogflow_GoogleCloudDialogflowCxV3WebhookGenericWebService');