Class Webhook
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dialogflow.cx.v3.Webhook
-
- All Implemented Interfaces:
WebhookOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
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 typegoogle.cloud.dialogflow.cx.v3.Webhook- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebhook.BuilderWebhooks host the developer's business logic.static classWebhook.GenericWebServiceRepresents configuration for a generic web service.static interfaceWebhook.GenericWebServiceOrBuilderstatic classWebhook.ServiceDirectoryConfigRepresents configuration for a [Service Directory](https://cloud.google.com/service-directory) service.static interfaceWebhook.ServiceDirectoryConfigOrBuilderstatic classWebhook.WebhookCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDISABLED_FIELD_NUMBERstatic intDISPLAY_NAME_FIELD_NUMBERstatic intGENERIC_WEB_SERVICE_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intSERVICE_DIRECTORY_FIELD_NUMBERstatic intTIMEOUT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static WebhookgetDefaultInstance()WebhookgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetDisabled()Indicates whether the webhook is disabled.StringgetDisplayName()Required.com.google.protobuf.ByteStringgetDisplayNameBytes()Required.Webhook.GenericWebServicegetGenericWebService()Configuration for a generic web service.Webhook.GenericWebServiceOrBuildergetGenericWebServiceOrBuilder()Configuration for a generic web service.StringgetName()The unique identifier of the webhook.com.google.protobuf.ByteStringgetNameBytes()The unique identifier of the webhook.com.google.protobuf.Parser<Webhook>getParserForType()intgetSerializedSize()Webhook.ServiceDirectoryConfiggetServiceDirectory()Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.Webhook.ServiceDirectoryConfigOrBuildergetServiceDirectoryOrBuilder()Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.com.google.protobuf.DurationgetTimeout()Webhook execution timeout.com.google.protobuf.DurationOrBuildergetTimeoutOrBuilder()Webhook execution timeout.Webhook.WebhookCasegetWebhookCase()booleanhasGenericWebService()Configuration for a generic web service.inthashCode()booleanhasServiceDirectory()Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.booleanhasTimeout()Webhook execution timeout.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Webhook.BuildernewBuilder()static Webhook.BuildernewBuilder(Webhook prototype)Webhook.BuildernewBuilderForType()protected Webhook.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static WebhookparseDelimitedFrom(InputStream input)static WebhookparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WebhookparseFrom(byte[] data)static WebhookparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WebhookparseFrom(com.google.protobuf.ByteString data)static WebhookparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WebhookparseFrom(com.google.protobuf.CodedInputStream input)static WebhookparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WebhookparseFrom(InputStream input)static WebhookparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WebhookparseFrom(ByteBuffer data)static WebhookparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Webhook>parser()Webhook.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GENERIC_WEB_SERVICE_FIELD_NUMBER
public static final int GENERIC_WEB_SERVICE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVICE_DIRECTORY_FIELD_NUMBER
public static final int SERVICE_DIRECTORY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIMEOUT_FIELD_NUMBER
public static final int TIMEOUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISABLED_FIELD_NUMBER
public static final int DISABLED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getWebhookCase
public Webhook.WebhookCase getWebhookCase()
- Specified by:
getWebhookCasein interfaceWebhookOrBuilder
-
getName
public 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;- Specified by:
getNamein interfaceWebhookOrBuilder- Returns:
- The name.
-
getNameBytes
public 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;- Specified by:
getNameBytesin interfaceWebhookOrBuilder- Returns:
- The bytes for name.
-
getDisplayName
public String getDisplayName()
Required. The human-readable name of the webhook, unique within the agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getDisplayNamein interfaceWebhookOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public 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];- Specified by:
getDisplayNameBytesin interfaceWebhookOrBuilder- Returns:
- The bytes for displayName.
-
hasGenericWebService
public boolean hasGenericWebService()
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService generic_web_service = 4;- Specified by:
hasGenericWebServicein interfaceWebhookOrBuilder- Returns:
- Whether the genericWebService field is set.
-
getGenericWebService
public Webhook.GenericWebService getGenericWebService()
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService generic_web_service = 4;- Specified by:
getGenericWebServicein interfaceWebhookOrBuilder- Returns:
- The genericWebService.
-
getGenericWebServiceOrBuilder
public Webhook.GenericWebServiceOrBuilder getGenericWebServiceOrBuilder()
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService generic_web_service = 4;- Specified by:
getGenericWebServiceOrBuilderin interfaceWebhookOrBuilder
-
hasServiceDirectory
public boolean hasServiceDirectory()
Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.
.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig service_directory = 7;- Specified by:
hasServiceDirectoryin interfaceWebhookOrBuilder- Returns:
- Whether the serviceDirectory field is set.
-
getServiceDirectory
public 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;- Specified by:
getServiceDirectoryin interfaceWebhookOrBuilder- Returns:
- The serviceDirectory.
-
getServiceDirectoryOrBuilder
public 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;- Specified by:
getServiceDirectoryOrBuilderin interfaceWebhookOrBuilder
-
hasTimeout
public 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;- Specified by:
hasTimeoutin interfaceWebhookOrBuilder- Returns:
- Whether the timeout field is set.
-
getTimeout
public 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;- Specified by:
getTimeoutin interfaceWebhookOrBuilder- Returns:
- The timeout.
-
getTimeoutOrBuilder
public 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;- Specified by:
getTimeoutOrBuilderin interfaceWebhookOrBuilder
-
getDisabled
public boolean getDisabled()
Indicates whether the webhook is disabled.
bool disabled = 5;- Specified by:
getDisabledin interfaceWebhookOrBuilder- Returns:
- The disabled.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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 parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Webhook parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Webhook parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Webhook 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 parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Webhook parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Webhook parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Webhook parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Webhook parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Webhook parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Webhook parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Webhook parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Webhook.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Webhook.Builder newBuilder()
-
newBuilder
public static Webhook.Builder newBuilder(Webhook prototype)
-
toBuilder
public Webhook.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Webhook.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Webhook getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Webhook> parser()
-
getParserForType
public com.google.protobuf.Parser<Webhook> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Webhook getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-