public final class Webhook extends com.google.protobuf.GeneratedMessageV3 implements WebhookOrBuilder
Webhooks host the developer's business logic. During a session, webhooks allow the developer to use the data extracted by Dialogflow's natural language processing to generate dynamic responses, validate collected data, or trigger actions on the backend.Protobuf type
google.cloud.dialogflow.cx.v3.Webhook| Modifier and Type | Class and Description |
|---|---|
static class |
Webhook.Builder
Webhooks host the developer's business logic.
|
static class |
Webhook.GenericWebService
Represents configuration for a generic web service.
|
static interface |
Webhook.GenericWebServiceOrBuilder |
static class |
Webhook.ServiceDirectoryConfig
Represents configuration for a [Service
Directory](https://cloud.google.com/service-directory) service.
|
static interface |
Webhook.ServiceDirectoryConfigOrBuilder |
static class |
Webhook.WebhookCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DISABLED_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
GENERIC_WEB_SERVICE_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
SERVICE_DIRECTORY_FIELD_NUMBER |
static int |
TIMEOUT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Webhook |
getDefaultInstance() |
Webhook |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getDisabled()
Indicates whether the webhook is disabled.
|
String |
getDisplayName()
Required.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
Required.
|
Webhook.GenericWebService |
getGenericWebService()
Configuration for a generic web service.
|
Webhook.GenericWebServiceOrBuilder |
getGenericWebServiceOrBuilder()
Configuration for a generic web service.
|
String |
getName()
The unique identifier of the webhook.
|
com.google.protobuf.ByteString |
getNameBytes()
The unique identifier of the webhook.
|
com.google.protobuf.Parser<Webhook> |
getParserForType() |
int |
getSerializedSize() |
Webhook.ServiceDirectoryConfig |
getServiceDirectory()
Configuration for a [Service
Directory](https://cloud.google.com/service-directory) service.
|
Webhook.ServiceDirectoryConfigOrBuilder |
getServiceDirectoryOrBuilder()
Configuration for a [Service
Directory](https://cloud.google.com/service-directory) service.
|
com.google.protobuf.Duration |
getTimeout()
Webhook execution timeout.
|
com.google.protobuf.DurationOrBuilder |
getTimeoutOrBuilder()
Webhook execution timeout.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
Webhook.WebhookCase |
getWebhookCase() |
boolean |
hasGenericWebService()
Configuration for a generic web service.
|
int |
hashCode() |
boolean |
hasServiceDirectory()
Configuration for a [Service
Directory](https://cloud.google.com/service-directory) service.
|
boolean |
hasTimeout()
Webhook execution timeout.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Webhook.Builder |
newBuilder() |
static Webhook.Builder |
newBuilder(Webhook prototype) |
Webhook.Builder |
newBuilderForType() |
protected Webhook.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Webhook |
parseDelimitedFrom(InputStream input) |
static Webhook |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Webhook |
parseFrom(byte[] data) |
static Webhook |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Webhook |
parseFrom(ByteBuffer data) |
static Webhook |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Webhook |
parseFrom(com.google.protobuf.ByteString data) |
static Webhook |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Webhook |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Webhook |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Webhook |
parseFrom(InputStream input) |
static Webhook |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Webhook> |
parser() |
Webhook.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int GENERIC_WEB_SERVICE_FIELD_NUMBER
public static final int SERVICE_DIRECTORY_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER
public static final int DISABLED_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public Webhook.WebhookCase getWebhookCase()
getWebhookCase in interface WebhookOrBuilderpublic String getName()
The unique identifier of the webhook. Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method. [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
string name = 1;getName in interface WebhookOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The unique identifier of the webhook. Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method. [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
string name = 1;getNameBytes in interface WebhookOrBuilderpublic String getDisplayName()
Required. The human-readable name of the webhook, unique within the agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];getDisplayName in interface WebhookOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
Required. The human-readable name of the webhook, unique within the agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];getDisplayNameBytes in interface WebhookOrBuilderpublic boolean hasGenericWebService()
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService generic_web_service = 4;hasGenericWebService in interface WebhookOrBuilderpublic Webhook.GenericWebService getGenericWebService()
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService generic_web_service = 4;getGenericWebService in interface WebhookOrBuilderpublic Webhook.GenericWebServiceOrBuilder getGenericWebServiceOrBuilder()
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService generic_web_service = 4;getGenericWebServiceOrBuilder in interface WebhookOrBuilderpublic boolean hasServiceDirectory()
Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.
.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig service_directory = 7;
hasServiceDirectory in interface WebhookOrBuilderpublic Webhook.ServiceDirectoryConfig getServiceDirectory()
Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.
.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig service_directory = 7;
getServiceDirectory in interface WebhookOrBuilderpublic Webhook.ServiceDirectoryConfigOrBuilder getServiceDirectoryOrBuilder()
Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.
.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig service_directory = 7;
getServiceDirectoryOrBuilder in interface WebhookOrBuilderpublic boolean hasTimeout()
Webhook execution timeout. Execution is considered failed if Dialogflow doesn't receive a response from webhook at the end of the timeout period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds.
.google.protobuf.Duration timeout = 6;hasTimeout in interface WebhookOrBuilderpublic com.google.protobuf.Duration getTimeout()
Webhook execution timeout. Execution is considered failed if Dialogflow doesn't receive a response from webhook at the end of the timeout period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds.
.google.protobuf.Duration timeout = 6;getTimeout in interface WebhookOrBuilderpublic com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
Webhook execution timeout. Execution is considered failed if Dialogflow doesn't receive a response from webhook at the end of the timeout period. Defaults to 5 seconds, maximum allowed timeout is 30 seconds.
.google.protobuf.Duration timeout = 6;getTimeoutOrBuilder in interface WebhookOrBuilderpublic boolean getDisabled()
Indicates whether the webhook is disabled.
bool disabled = 5;getDisabled in interface WebhookOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Webhook parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Webhook parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Webhook parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Webhook parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Webhook parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Webhook parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Webhook parseFrom(InputStream input) throws IOException
IOExceptionpublic static Webhook parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Webhook parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Webhook parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Webhook parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Webhook parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Webhook.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Webhook.Builder newBuilder()
public static Webhook.Builder newBuilder(Webhook prototype)
public Webhook.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Webhook.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Webhook getDefaultInstance()
public static com.google.protobuf.Parser<Webhook> parser()
public com.google.protobuf.Parser<Webhook> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Webhook getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.