Class Webhook.GenericWebService
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService
- All Implemented Interfaces:
Webhook.GenericWebServiceOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- Webhook
public static final class Webhook.GenericWebService
extends com.google.protobuf.GeneratedMessage
implements Webhook.GenericWebServiceOrBuilder
Represents configuration for a generic web service.Protobuf type
google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents configuration for a generic web service.static enumHTTP method to use when calling webhooks.static final classRepresents configuration of OAuth client credential flow for 3rd party API authentication.static interfacestatic final classRepresents the value of an HTTP header stored in a SecretManager secret version.static interfacestatic final classConfiguration for authentication using a service account.static interfacestatic enumIndicate the auth token type generated from the [Diglogflow service agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).static enumRepresents the type of webhook configuration.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanOptional.booleanThe HTTP request headers to send together with webhook requests.booleanOptional.booleancom.google.protobuf.ByteStringgetAllowedCaCerts(int index) Optional.intOptional.List<com.google.protobuf.ByteString>Optional.static Webhook.GenericWebServicestatic final com.google.protobuf.Descriptors.DescriptorOptional.intOptional.Optional.Optional.Deprecated.intOptional.Optional.getParameterMappingOrDefault(String key, String defaultValue) Optional.Optional.com.google.protobuf.Parser<Webhook.GenericWebService>Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is deprecated.com.google.protobuf.ByteStringDeprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is deprecated.Optional.com.google.protobuf.ByteStringOptional.Deprecated.intThe HTTP request headers to send together with webhook requests.The HTTP request headers to send together with webhook requests.getRequestHeadersOrDefault(String key, String defaultValue) The HTTP request headers to send together with webhook requests.The HTTP request headers to send together with webhook requests.Optional.com.google.protobuf.ByteStringOptional.Deprecated.intOptional.Optional.getSecretVersionsForRequestHeadersOrDefault(String key, Webhook.GenericWebService.SecretVersionHeaderValue defaultValue) Optional.Optional.intOptional.Optional.Optional.intOptional.getUri()Required.com.google.protobuf.ByteStringRequired.Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is deprecated.com.google.protobuf.ByteStringDeprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is deprecated.Optional.intOptional.inthashCode()booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleannewBuilder(Webhook.GenericWebService prototype) protected Webhook.GenericWebService.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Webhook.GenericWebServiceparseDelimitedFrom(InputStream input) static Webhook.GenericWebServiceparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Webhook.GenericWebServiceparseFrom(byte[] data) static Webhook.GenericWebServiceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Webhook.GenericWebServiceparseFrom(com.google.protobuf.ByteString data) static Webhook.GenericWebServiceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Webhook.GenericWebServiceparseFrom(com.google.protobuf.CodedInputStream input) static Webhook.GenericWebServiceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Webhook.GenericWebServiceparseFrom(InputStream input) static Webhook.GenericWebServiceparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Webhook.GenericWebServiceparseFrom(ByteBuffer data) static Webhook.GenericWebServiceparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Webhook.GenericWebService>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER- See Also:
-
USERNAME_FIELD_NUMBER
public static final int USERNAME_FIELD_NUMBER- See Also:
-
PASSWORD_FIELD_NUMBER
public static final int PASSWORD_FIELD_NUMBER- See Also:
-
SECRET_VERSION_FOR_USERNAME_PASSWORD_FIELD_NUMBER
public static final int SECRET_VERSION_FOR_USERNAME_PASSWORD_FIELD_NUMBER- See Also:
-
REQUEST_HEADERS_FIELD_NUMBER
public static final int REQUEST_HEADERS_FIELD_NUMBER- See Also:
-
SECRET_VERSIONS_FOR_REQUEST_HEADERS_FIELD_NUMBER
public static final int SECRET_VERSIONS_FOR_REQUEST_HEADERS_FIELD_NUMBER- See Also:
-
ALLOWED_CA_CERTS_FIELD_NUMBER
public static final int ALLOWED_CA_CERTS_FIELD_NUMBER- See Also:
-
OAUTH_CONFIG_FIELD_NUMBER
public static final int OAUTH_CONFIG_FIELD_NUMBER- See Also:
-
SERVICE_AGENT_AUTH_FIELD_NUMBER
public static final int SERVICE_AGENT_AUTH_FIELD_NUMBER- See Also:
-
SERVICE_ACCOUNT_AUTH_CONFIG_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_AUTH_CONFIG_FIELD_NUMBER- See Also:
-
WEBHOOK_TYPE_FIELD_NUMBER
public static final int WEBHOOK_TYPE_FIELD_NUMBER- See Also:
-
HTTP_METHOD_FIELD_NUMBER
public static final int HTTP_METHOD_FIELD_NUMBER- See Also:
-
REQUEST_BODY_FIELD_NUMBER
public static final int REQUEST_BODY_FIELD_NUMBER- See Also:
-
PARAMETER_MAPPING_FIELD_NUMBER
public static final int PARAMETER_MAPPING_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getUri
Required. The webhook URI for receiving POST requests. It must use https protocol.
string uri = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getUriin interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- The uri.
-
getUriBytes
public 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];- Specified by:
getUriBytesin interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- The bytes for uri.
-
getUsername
Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=225The user name for HTTP Basic authentication.
string username = 2 [deprecated = true];- Specified by:
getUsernamein interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- The username.
-
getUsernameBytes
Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.username is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=225The user name for HTTP Basic authentication.
string username = 2 [deprecated = true];- Specified by:
getUsernameBytesin interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- The bytes for username.
-
getPassword
Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=228The password for HTTP Basic authentication.
string password = 3 [deprecated = true];- Specified by:
getPasswordin interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- The password.
-
getPasswordBytes
Deprecated.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.password is deprecated. See google/cloud/dialogflow/cx/v3beta1/webhook.proto;l=228The password for HTTP Basic authentication.
string password = 3 [deprecated = true];- Specified by:
getPasswordBytesin interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- The bytes for password.
-
getSecretVersionForUsernamePassword
Optional. The SecretManager secret version resource storing the username:password pair for HTTP Basic authentication. Format: `projects/{project}/secrets/{secret}/versions/{version}`string secret_version_for_username_password = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getSecretVersionForUsernamePasswordin interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- The secretVersionForUsernamePassword.
-
getSecretVersionForUsernamePasswordBytes
public com.google.protobuf.ByteString getSecretVersionForUsernamePasswordBytes()Optional. The SecretManager secret version resource storing the username:password pair for HTTP Basic authentication. Format: `projects/{project}/secrets/{secret}/versions/{version}`string secret_version_for_username_password = 19 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getSecretVersionForUsernamePasswordBytesin interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- The bytes for secretVersionForUsernamePassword.
-
getRequestHeadersCount
public int getRequestHeadersCount()Description copied from interface:Webhook.GenericWebServiceOrBuilderThe HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;- Specified by:
getRequestHeadersCountin interfaceWebhook.GenericWebServiceOrBuilder
-
containsRequestHeaders
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;- Specified by:
containsRequestHeadersin interfaceWebhook.GenericWebServiceOrBuilder
-
getRequestHeaders
Deprecated.UsegetRequestHeadersMap()instead.- Specified by:
getRequestHeadersin interfaceWebhook.GenericWebServiceOrBuilder
-
getRequestHeadersMap
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;- Specified by:
getRequestHeadersMapin interfaceWebhook.GenericWebServiceOrBuilder
-
getRequestHeadersOrDefault
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;- Specified by:
getRequestHeadersOrDefaultin interfaceWebhook.GenericWebServiceOrBuilder
-
getRequestHeadersOrThrow
The HTTP request headers to send together with webhook requests.
map<string, string> request_headers = 4;- Specified by:
getRequestHeadersOrThrowin interfaceWebhook.GenericWebServiceOrBuilder
-
getSecretVersionsForRequestHeadersCount
public int getSecretVersionsForRequestHeadersCount()Description copied from interface:Webhook.GenericWebServiceOrBuilderOptional. 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.
map<string, .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.SecretVersionHeaderValue> secret_versions_for_request_headers = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSecretVersionsForRequestHeadersCountin interfaceWebhook.GenericWebServiceOrBuilder
-
containsSecretVersionsForRequestHeaders
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.
map<string, .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.SecretVersionHeaderValue> secret_versions_for_request_headers = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
containsSecretVersionsForRequestHeadersin interfaceWebhook.GenericWebServiceOrBuilder
-
getSecretVersionsForRequestHeaders
@Deprecated public Map<String,Webhook.GenericWebService.SecretVersionHeaderValue> getSecretVersionsForRequestHeaders()Deprecated.UsegetSecretVersionsForRequestHeadersMap()instead.- Specified by:
getSecretVersionsForRequestHeadersin interfaceWebhook.GenericWebServiceOrBuilder
-
getSecretVersionsForRequestHeadersMap
public Map<String,Webhook.GenericWebService.SecretVersionHeaderValue> getSecretVersionsForRequestHeadersMap()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.
map<string, .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.SecretVersionHeaderValue> secret_versions_for_request_headers = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSecretVersionsForRequestHeadersMapin interfaceWebhook.GenericWebServiceOrBuilder
-
getSecretVersionsForRequestHeadersOrDefault
public Webhook.GenericWebService.SecretVersionHeaderValue getSecretVersionsForRequestHeadersOrDefault(String key, Webhook.GenericWebService.SecretVersionHeaderValue defaultValue) 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.
map<string, .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.SecretVersionHeaderValue> secret_versions_for_request_headers = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSecretVersionsForRequestHeadersOrDefaultin interfaceWebhook.GenericWebServiceOrBuilder
-
getSecretVersionsForRequestHeadersOrThrow
public Webhook.GenericWebService.SecretVersionHeaderValue getSecretVersionsForRequestHeadersOrThrow(String key) 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.
map<string, .google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.SecretVersionHeaderValue> secret_versions_for_request_headers = 20 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSecretVersionsForRequestHeadersOrThrowin interfaceWebhook.GenericWebServiceOrBuilder
-
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];- Specified by:
getAllowedCaCertsListin interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- A list containing the allowedCaCerts.
-
getAllowedCaCertsCount
public 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];- Specified by:
getAllowedCaCertsCountin interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- The count of allowedCaCerts.
-
getAllowedCaCerts
public 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];- Specified by:
getAllowedCaCertsin interfaceWebhook.GenericWebServiceOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowedCaCerts at the given index.
-
hasOauthConfig
public 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.v3beta1.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasOauthConfigin interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- Whether the oauthConfig field is set.
-
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.v3beta1.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOauthConfigin interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- The oauthConfig.
-
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.v3beta1.Webhook.GenericWebService.OAuthConfig oauth_config = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOauthConfigOrBuilderin interfaceWebhook.GenericWebServiceOrBuilder
-
getServiceAgentAuthValue
public 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.v3beta1.Webhook.GenericWebService.ServiceAgentAuth service_agent_auth = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getServiceAgentAuthValuein interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- The enum numeric value on the wire for 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.v3beta1.Webhook.GenericWebService.ServiceAgentAuth service_agent_auth = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getServiceAgentAuthin interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- The serviceAgentAuth.
-
hasServiceAccountAuthConfig
public boolean hasServiceAccountAuthConfig()Optional. Configuration for service account authentication.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasServiceAccountAuthConfigin interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- Whether the serviceAccountAuthConfig field is set.
-
getServiceAccountAuthConfig
Optional. Configuration for service account authentication.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getServiceAccountAuthConfigin interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- The serviceAccountAuthConfig.
-
getServiceAccountAuthConfigOrBuilder
public Webhook.GenericWebService.ServiceAccountAuthConfigOrBuilder getServiceAccountAuthConfigOrBuilder()Optional. Configuration for service account authentication.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.ServiceAccountAuthConfig service_account_auth_config = 18 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getServiceAccountAuthConfigOrBuilderin interfaceWebhook.GenericWebServiceOrBuilder
-
getWebhookTypeValue
public int getWebhookTypeValue()Optional. Type of the webhook.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.WebhookType webhook_type = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getWebhookTypeValuein interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- The enum numeric value on the wire for webhookType.
-
getWebhookType
Optional. Type of the webhook.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.WebhookType webhook_type = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getWebhookTypein interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- The webhookType.
-
getHttpMethodValue
public int getHttpMethodValue()Optional. HTTP method for the flexible webhook calls. Standard webhook always uses POST.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.HttpMethod http_method = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHttpMethodValuein interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- The enum numeric value on the wire for httpMethod.
-
getHttpMethod
Optional. HTTP method for the flexible webhook calls. Standard webhook always uses POST.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.HttpMethod http_method = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHttpMethodin interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- The httpMethod.
-
getRequestBody
Optional. Defines a custom JSON object as request body to send to flexible webhook.
string request_body = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRequestBodyin interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- The requestBody.
-
getRequestBodyBytes
public 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];- Specified by:
getRequestBodyBytesin interfaceWebhook.GenericWebServiceOrBuilder- Returns:
- The bytes for requestBody.
-
getParameterMappingCount
public int getParameterMappingCount()Description copied from interface:Webhook.GenericWebServiceOrBuilderOptional. 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];- Specified by:
getParameterMappingCountin interfaceWebhook.GenericWebServiceOrBuilder
-
containsParameterMapping
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];- Specified by:
containsParameterMappingin interfaceWebhook.GenericWebServiceOrBuilder
-
getParameterMapping
Deprecated.UsegetParameterMappingMap()instead.- Specified by:
getParameterMappingin interfaceWebhook.GenericWebServiceOrBuilder
-
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];- Specified by:
getParameterMappingMapin interfaceWebhook.GenericWebServiceOrBuilder
-
getParameterMappingOrDefault
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];- Specified by:
getParameterMappingOrDefaultin interfaceWebhook.GenericWebServiceOrBuilder
-
getParameterMappingOrThrow
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];- Specified by:
getParameterMappingOrThrowin interfaceWebhook.GenericWebServiceOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Webhook.GenericWebService parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Webhook.GenericWebService parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Webhook.GenericWebService parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Webhook.GenericWebService parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Webhook.GenericWebService parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Webhook.GenericWebService parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Webhook.GenericWebService parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Webhook.GenericWebService parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Webhook.GenericWebService parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Webhook.GenericWebService parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Webhook.GenericWebService.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-