Class Webhook.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Webhook.Builder>
com.google.cloud.dialogflow.cx.v3beta1.Webhook.Builder
- All Implemented Interfaces:
WebhookOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Webhook
public static final class Webhook.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Webhook.Builder>
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.v3beta1.Webhook-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Indicates whether the webhook is disabled.Required.Configuration for a generic web service.The unique identifier of the webhook.Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.Webhook execution timeout.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIndicates whether the webhook is disabled.Required.com.google.protobuf.ByteStringRequired.Configuration for a generic web service.Configuration for a generic web service.Configuration for a generic web service.getName()The unique identifier of the webhook.com.google.protobuf.ByteStringThe unique identifier of the webhook.Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.com.google.protobuf.DurationWebhook execution timeout.com.google.protobuf.Duration.BuilderWebhook execution timeout.com.google.protobuf.DurationOrBuilderWebhook execution timeout.booleanConfiguration for a generic web service.booleanConfiguration for a [Service Directory](https://cloud.google.com/service-directory) service.booleanWebhook execution timeout.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Configuration for a generic web service.Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.mergeTimeout(com.google.protobuf.Duration value) Webhook execution timeout.setDisabled(boolean value) Indicates whether the webhook is disabled.setDisplayName(String value) Required.setDisplayNameBytes(com.google.protobuf.ByteString value) Required.Configuration for a generic web service.setGenericWebService(Webhook.GenericWebService.Builder builderForValue) Configuration for a generic web service.The unique identifier of the webhook.setNameBytes(com.google.protobuf.ByteString value) The unique identifier of the webhook.Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.setServiceDirectory(Webhook.ServiceDirectoryConfig.Builder builderForValue) Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.setTimeout(com.google.protobuf.Duration value) Webhook execution timeout.setTimeout(com.google.protobuf.Duration.Builder builderForValue) Webhook execution timeout.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Webhook.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Webhook.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Webhook.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Webhook.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Webhook.Builder>
-
mergeFrom
public Webhook.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Webhook.Builder>- Throws:
IOException
-
getWebhookCase
- Specified by:
getWebhookCasein interfaceWebhookOrBuilder
-
clearWebhook
-
getName
The unique identifier of the webhook. Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3beta1.Webhooks.UpdateWebhook] method. [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3beta1.Webhooks.CreateWebhook] populates the name automatically. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`.
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.v3beta1.Webhooks.UpdateWebhook] method. [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3beta1.Webhooks.CreateWebhook] populates the name automatically. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`.
string name = 1;- Specified by:
getNameBytesin interfaceWebhookOrBuilder- Returns:
- The bytes for name.
-
setName
The unique identifier of the webhook. Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3beta1.Webhooks.UpdateWebhook] method. [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3beta1.Webhooks.CreateWebhook] populates the name automatically. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The unique identifier of the webhook. Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3beta1.Webhooks.UpdateWebhook] method. [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3beta1.Webhooks.CreateWebhook] populates the name automatically. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The unique identifier of the webhook. Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3beta1.Webhooks.UpdateWebhook] method. [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3beta1.Webhooks.CreateWebhook] populates the name automatically. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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.
-
setDisplayName
Required. The human-readable name of the webhook, unique within the agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Required. The human-readable name of the webhook, unique within the agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Required. The human-readable name of the webhook, unique within the agent.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
hasGenericWebService
public boolean hasGenericWebService()Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 4;- Specified by:
hasGenericWebServicein interfaceWebhookOrBuilder- Returns:
- Whether the genericWebService field is set.
-
getGenericWebService
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 4;- Specified by:
getGenericWebServicein interfaceWebhookOrBuilder- Returns:
- The genericWebService.
-
setGenericWebService
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 4; -
setGenericWebService
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 4; -
mergeGenericWebService
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 4; -
clearGenericWebService
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 4; -
getGenericWebServiceBuilder
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 4; -
getGenericWebServiceOrBuilder
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.Webhook.ServiceDirectoryConfig service_directory = 7;- Specified by:
hasServiceDirectoryin interfaceWebhookOrBuilder- Returns:
- Whether the serviceDirectory field is set.
-
getServiceDirectory
Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig service_directory = 7;- Specified by:
getServiceDirectoryin interfaceWebhookOrBuilder- Returns:
- The serviceDirectory.
-
setServiceDirectory
Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig service_directory = 7; -
setServiceDirectory
Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig service_directory = 7; -
mergeServiceDirectory
Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig service_directory = 7; -
clearServiceDirectory
Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig service_directory = 7; -
getServiceDirectoryBuilder
Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig service_directory = 7; -
getServiceDirectoryOrBuilder
Configuration for a [Service Directory](https://cloud.google.com/service-directory) service.
.google.cloud.dialogflow.cx.v3beta1.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.
-
setTimeout
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; -
setTimeout
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; -
mergeTimeout
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; -
clearTimeout
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; -
getTimeoutBuilder
public com.google.protobuf.Duration.Builder getTimeoutBuilder()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
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.
-
setDisabled
Indicates whether the webhook is disabled.
bool disabled = 5;- Parameters:
value- The disabled to set.- Returns:
- This builder for chaining.
-
clearDisabled
Indicates whether the webhook is disabled.
bool disabled = 5;- Returns:
- This builder for chaining.
-