public static interface Webhook.GenericWebServiceOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsParameterMapping(String key)
Optional.
|
boolean |
containsRequestHeaders(String key)
The HTTP request headers to send together with webhook requests.
|
com.google.protobuf.ByteString |
getAllowedCaCerts(int index)
Optional.
|
int |
getAllowedCaCertsCount()
Optional.
|
List<com.google.protobuf.ByteString> |
getAllowedCaCertsList()
Optional.
|
Webhook.GenericWebService.HttpMethod |
getHttpMethod()
Optional.
|
int |
getHttpMethodValue()
Optional.
|
Webhook.GenericWebService.OAuthConfig |
getOauthConfig()
Optional.
|
Webhook.GenericWebService.OAuthConfigOrBuilder |
getOauthConfigOrBuilder()
Optional.
|
Map<String,String> |
getParameterMapping()
Deprecated.
|
int |
getParameterMappingCount()
Optional.
|
Map<String,String> |
getParameterMappingMap()
Optional.
|
String |
getParameterMappingOrDefault(String key,
String defaultValue)
Optional.
|
String |
getParameterMappingOrThrow(String key)
Optional.
|
String |
getPassword()
Deprecated.
google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated.
See google/cloud/dialogflow/cx/v3/webhook.proto;l=190
|
com.google.protobuf.ByteString |
getPasswordBytes()
Deprecated.
google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated.
See google/cloud/dialogflow/cx/v3/webhook.proto;l=190
|
String |
getRequestBody()
Optional.
|
com.google.protobuf.ByteString |
getRequestBodyBytes()
Optional.
|
Map<String,String> |
getRequestHeaders()
Deprecated.
|
int |
getRequestHeadersCount()
The HTTP request headers to send together with webhook requests.
|
Map<String,String> |
getRequestHeadersMap()
The HTTP request headers to send together with webhook requests.
|
String |
getRequestHeadersOrDefault(String key,
String defaultValue)
The HTTP request headers to send together with webhook requests.
|
String |
getRequestHeadersOrThrow(String key)
The HTTP request headers to send together with webhook requests.
|
Webhook.GenericWebService.ServiceAgentAuth |
getServiceAgentAuth()
Optional.
|
int |
getServiceAgentAuthValue()
Optional.
|
String |
getUri()
Required.
|
com.google.protobuf.ByteString |
getUriBytes()
Required.
|
String |
getUsername()
Deprecated.
google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated.
See google/cloud/dialogflow/cx/v3/webhook.proto;l=187
|
com.google.protobuf.ByteString |
getUsernameBytes()
Deprecated.
google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated.
See google/cloud/dialogflow/cx/v3/webhook.proto;l=187
|
Webhook.GenericWebService.WebhookType |
getWebhookType()
Optional.
|
int |
getWebhookTypeValue()
Optional.
|
boolean |
hasOauthConfig()
Optional.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getUri()
Required. The webhook URI for receiving POST requests. It must use https protocol.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];com.google.protobuf.ByteString getUriBytes()
Required. The webhook URI for receiving POST requests. It must use https protocol.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];@Deprecated String getUsername()
The user name for HTTP Basic authentication.
string username = 2 [deprecated = true];@Deprecated com.google.protobuf.ByteString getUsernameBytes()
The user name for HTTP Basic authentication.
string username = 2 [deprecated = true];@Deprecated String getPassword()
The password for HTTP Basic authentication.
string password = 3 [deprecated = true];@Deprecated com.google.protobuf.ByteString getPasswordBytes()
The password for HTTP Basic authentication.
string password = 3 [deprecated = true];int getRequestHeadersCount()
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;boolean containsRequestHeaders(String key)
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;@Deprecated Map<String,String> getRequestHeaders()
getRequestHeadersMap() instead.Map<String,String> getRequestHeadersMap()
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;String getRequestHeadersOrDefault(String key, String defaultValue)
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;String getRequestHeadersOrThrow(String key)
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;List<com.google.protobuf.ByteString> getAllowedCaCertsList()
Optional. Specifies a list of allowed custom CA certificates (in DER
format) for HTTPS verification. This overrides the default SSL trust
store. If this is empty or unspecified, Dialogflow will use Google's
default trust store to verify certificates. N.B. Make sure the HTTPS
server certificates are signed with "subject alt name". For instance a
certificate can be self-signed using the following command,
```
openssl x509 -req -days 200 -in example.com.csr \
-signkey example.com.key \
-out example.com.crt \
-extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
```
repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL];int getAllowedCaCertsCount()
Optional. Specifies a list of allowed custom CA certificates (in DER
format) for HTTPS verification. This overrides the default SSL trust
store. If this is empty or unspecified, Dialogflow will use Google's
default trust store to verify certificates. N.B. Make sure the HTTPS
server certificates are signed with "subject alt name". For instance a
certificate can be self-signed using the following command,
```
openssl x509 -req -days 200 -in example.com.csr \
-signkey example.com.key \
-out example.com.crt \
-extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
```
repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL];com.google.protobuf.ByteString getAllowedCaCerts(int index)
Optional. Specifies a list of allowed custom CA certificates (in DER
format) for HTTPS verification. This overrides the default SSL trust
store. If this is empty or unspecified, Dialogflow will use Google's
default trust store to verify certificates. N.B. Make sure the HTTPS
server certificates are signed with "subject alt name". For instance a
certificate can be self-signed using the following command,
```
openssl x509 -req -days 200 -in example.com.csr \
-signkey example.com.key \
-out example.com.crt \
-extfile <(printf "\nsubjectAltName='DNS:www.example.com'")
```
repeated bytes allowed_ca_certs = 5 [(.google.api.field_behavior) = OPTIONAL];index - The index of the element to return.boolean hasOauthConfig()
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.
.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL];
Webhook.GenericWebService.OAuthConfig getOauthConfig()
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.
.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL];
Webhook.GenericWebService.OAuthConfigOrBuilder getOauthConfigOrBuilder()
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.
.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL];
int getServiceAgentAuthValue()
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.
.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth service_agent_auth = 12 [(.google.api.field_behavior) = OPTIONAL];
Webhook.GenericWebService.ServiceAgentAuth getServiceAgentAuth()
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.
.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.ServiceAgentAuth service_agent_auth = 12 [(.google.api.field_behavior) = OPTIONAL];
int getWebhookTypeValue()
Optional. Type of the webhook.
.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType webhook_type = 6 [(.google.api.field_behavior) = OPTIONAL];
Webhook.GenericWebService.WebhookType getWebhookType()
Optional. Type of the webhook.
.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType webhook_type = 6 [(.google.api.field_behavior) = OPTIONAL];
int getHttpMethodValue()
Optional. HTTP method for the flexible webhook calls. Standard webhook always uses POST.
.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod http_method = 7 [(.google.api.field_behavior) = OPTIONAL];
Webhook.GenericWebService.HttpMethod getHttpMethod()
Optional. HTTP method for the flexible webhook calls. Standard webhook always uses POST.
.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.HttpMethod http_method = 7 [(.google.api.field_behavior) = OPTIONAL];
String getRequestBody()
Optional. Defines a custom JSON object as request body to send to flexible webhook.
string request_body = 8 [(.google.api.field_behavior) = OPTIONAL];com.google.protobuf.ByteString getRequestBodyBytes()
Optional. Defines a custom JSON object as request body to send to flexible webhook.
string request_body = 8 [(.google.api.field_behavior) = OPTIONAL];int getParameterMappingCount()
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
map<string, string> parameter_mapping = 9 [(.google.api.field_behavior) = OPTIONAL];
boolean containsParameterMapping(String key)
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
map<string, string> parameter_mapping = 9 [(.google.api.field_behavior) = OPTIONAL];
@Deprecated Map<String,String> getParameterMapping()
getParameterMappingMap() instead.Map<String,String> getParameterMappingMap()
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
map<string, string> parameter_mapping = 9 [(.google.api.field_behavior) = OPTIONAL];
String getParameterMappingOrDefault(String key, String defaultValue)
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
map<string, string> parameter_mapping = 9 [(.google.api.field_behavior) = OPTIONAL];
String getParameterMappingOrThrow(String key)
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
map<string, string> parameter_mapping = 9 [(.google.api.field_behavior) = OPTIONAL];
Copyright © 2025 Google LLC. All rights reserved.