Interface Webhook.GenericWebServiceOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Webhook.GenericWebService
,Webhook.GenericWebService.Builder
- Enclosing class:
- Webhook
public static interface Webhook.GenericWebServiceOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method 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.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.com.google.protobuf.ByteString
getPasswordBytes()
Deprecated.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated.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.String
getUri()
Required.com.google.protobuf.ByteString
getUriBytes()
Required.String
getUsername()
Deprecated.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated.com.google.protobuf.ByteString
getUsernameBytes()
Deprecated.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated.Webhook.GenericWebService.WebhookType
getWebhookType()
Optional.int
getWebhookTypeValue()
Optional.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getUri
String getUri()
Required. The webhook URI for receiving POST requests. It must use https protocol.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The uri.
-
getUriBytes
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];
- Returns:
- The bytes for uri.
-
getUsername
@Deprecated String getUsername()
Deprecated.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated. See google/cloud/dialogflow/cx/v3/webhook.proto;l=147The user name for HTTP Basic authentication.
string username = 2 [deprecated = true];
- Returns:
- The username.
-
getUsernameBytes
@Deprecated 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=147The user name for HTTP Basic authentication.
string username = 2 [deprecated = true];
- Returns:
- The bytes for username.
-
getPassword
@Deprecated String getPassword()
Deprecated.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated. See google/cloud/dialogflow/cx/v3/webhook.proto;l=150The password for HTTP Basic authentication.
string password = 3 [deprecated = true];
- Returns:
- The password.
-
getPasswordBytes
@Deprecated 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=150The password for HTTP Basic authentication.
string password = 3 [deprecated = true];
- Returns:
- The bytes for password.
-
getRequestHeadersCount
int getRequestHeadersCount()
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;
-
containsRequestHeaders
boolean containsRequestHeaders(String key)
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;
-
getRequestHeaders
@Deprecated Map<String,String> getRequestHeaders()
Deprecated.UsegetRequestHeadersMap()
instead.
-
getRequestHeadersMap
Map<String,String> getRequestHeadersMap()
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;
-
getRequestHeadersOrDefault
String getRequestHeadersOrDefault(String key, String defaultValue)
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;
-
getRequestHeadersOrThrow
String getRequestHeadersOrThrow(String key)
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;
-
getAllowedCaCertsList
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];
- Returns:
- A list containing the allowedCaCerts.
-
getAllowedCaCertsCount
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];
- Returns:
- The count of allowedCaCerts.
-
getAllowedCaCerts
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];
- Parameters:
index
- The index of the element to return.- Returns:
- The allowedCaCerts at the given index.
-
getWebhookTypeValue
int getWebhookTypeValue()
Optional. Type of the webhook.
.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.WebhookType webhook_type = 6 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The enum numeric value on the wire for webhookType.
-
getWebhookType
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];
- Returns:
- The webhookType.
-
getHttpMethodValue
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];
- Returns:
- The enum numeric value on the wire for httpMethod.
-
getHttpMethod
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];
- Returns:
- The httpMethod.
-
getRequestBody
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];
- Returns:
- The requestBody.
-
getRequestBodyBytes
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];
- Returns:
- The bytes for requestBody.
-
getParameterMappingCount
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];
-
containsParameterMapping
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];
-
getParameterMapping
@Deprecated Map<String,String> getParameterMapping()
Deprecated.UsegetParameterMappingMap()
instead.
-
getParameterMappingMap
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];
-
getParameterMappingOrDefault
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];
-
getParameterMappingOrThrow
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];
-
-