Class Webhook.Builder (0.14.2)

public static final class Webhook.Builder extends GeneratedMessageV3.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.v3.Webhook

Implements

WebhookOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Webhook.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Webhook.Builder
Overrides

build()

public Webhook build()
Returns
TypeDescription
Webhook

buildPartial()

public Webhook buildPartial()
Returns
TypeDescription
Webhook

clear()

public Webhook.Builder clear()
Returns
TypeDescription
Webhook.Builder
Overrides

clearDisabled()

public Webhook.Builder clearDisabled()

Indicates whether the webhook is disabled.

bool disabled = 5;

Returns
TypeDescription
Webhook.Builder

This builder for chaining.

clearDisplayName()

public Webhook.Builder clearDisplayName()

Required. The human-readable name of the webhook, unique within the agent.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Webhook.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Webhook.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Webhook.Builder
Overrides

clearGenericWebService()

public Webhook.Builder clearGenericWebService()

Configuration for a generic web service.

.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService generic_web_service = 4;

Returns
TypeDescription
Webhook.Builder

clearName()

public Webhook.Builder clearName()

The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name automatically. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>.

string name = 1;

Returns
TypeDescription
Webhook.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Webhook.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Webhook.Builder
Overrides

clearServiceDirectory()

public Webhook.Builder clearServiceDirectory()

Configuration for a Service Directory service.

.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig service_directory = 7;

Returns
TypeDescription
Webhook.Builder

clearTimeout()

public Webhook.Builder 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;

Returns
TypeDescription
Webhook.Builder

clearWebhook()

public Webhook.Builder clearWebhook()
Returns
TypeDescription
Webhook.Builder

clone()

public Webhook.Builder clone()
Returns
TypeDescription
Webhook.Builder
Overrides

getDefaultInstanceForType()

public Webhook getDefaultInstanceForType()
Returns
TypeDescription
Webhook

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisabled()

public boolean getDisabled()

Indicates whether the webhook is disabled.

bool disabled = 5;

Returns
TypeDescription
boolean

The disabled.

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];

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The human-readable name of the webhook, unique within the agent.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for displayName.

getGenericWebService()

public Webhook.GenericWebService getGenericWebService()

Configuration for a generic web service.

.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService generic_web_service = 4;

Returns
TypeDescription
Webhook.GenericWebService

The genericWebService.

getGenericWebServiceBuilder()

public Webhook.GenericWebService.Builder getGenericWebServiceBuilder()

Configuration for a generic web service.

.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService generic_web_service = 4;

Returns
TypeDescription
Webhook.GenericWebService.Builder

getGenericWebServiceOrBuilder()

public Webhook.GenericWebServiceOrBuilder getGenericWebServiceOrBuilder()

Configuration for a generic web service.

.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService generic_web_service = 4;

Returns
TypeDescription
Webhook.GenericWebServiceOrBuilder

getName()

public String getName()

The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name automatically. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name automatically. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getServiceDirectory()

public Webhook.ServiceDirectoryConfig getServiceDirectory()

Configuration for a Service Directory service.

.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig service_directory = 7;

Returns
TypeDescription
Webhook.ServiceDirectoryConfig

The serviceDirectory.

getServiceDirectoryBuilder()

public Webhook.ServiceDirectoryConfig.Builder getServiceDirectoryBuilder()

Configuration for a Service Directory service.

.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig service_directory = 7;

Returns
TypeDescription
Webhook.ServiceDirectoryConfig.Builder

getServiceDirectoryOrBuilder()

public Webhook.ServiceDirectoryConfigOrBuilder getServiceDirectoryOrBuilder()

Configuration for a Service Directory service.

.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig service_directory = 7;

Returns
TypeDescription
Webhook.ServiceDirectoryConfigOrBuilder

getTimeout()

public 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;

Returns
TypeDescription
Duration

The timeout.

getTimeoutBuilder()

public 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;

Returns
TypeDescription
Builder

getTimeoutOrBuilder()

public 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;

Returns
TypeDescription
DurationOrBuilder

getWebhookCase()

public Webhook.WebhookCase getWebhookCase()
Returns
TypeDescription
Webhook.WebhookCase

hasGenericWebService()

public boolean hasGenericWebService()

Configuration for a generic web service.

.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService generic_web_service = 4;

Returns
TypeDescription
boolean

Whether the genericWebService field is set.

hasServiceDirectory()

public boolean hasServiceDirectory()

Configuration for a Service Directory service.

.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig service_directory = 7;

Returns
TypeDescription
boolean

Whether the serviceDirectory field is set.

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;

Returns
TypeDescription
boolean

Whether the timeout field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Webhook other)

public Webhook.Builder mergeFrom(Webhook other)
Parameter
NameDescription
otherWebhook
Returns
TypeDescription
Webhook.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Webhook.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Webhook.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Webhook.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Webhook.Builder
Overrides

mergeGenericWebService(Webhook.GenericWebService value)

public Webhook.Builder mergeGenericWebService(Webhook.GenericWebService value)

Configuration for a generic web service.

.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService generic_web_service = 4;

Parameter
NameDescription
valueWebhook.GenericWebService
Returns
TypeDescription
Webhook.Builder

mergeServiceDirectory(Webhook.ServiceDirectoryConfig value)

public Webhook.Builder mergeServiceDirectory(Webhook.ServiceDirectoryConfig value)

Configuration for a Service Directory service.

.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig service_directory = 7;

Parameter
NameDescription
valueWebhook.ServiceDirectoryConfig
Returns
TypeDescription
Webhook.Builder

mergeTimeout(Duration value)

public Webhook.Builder mergeTimeout(Duration value)

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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Webhook.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Webhook.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Webhook.Builder
Overrides

setDisabled(boolean value)

public Webhook.Builder setDisabled(boolean value)

Indicates whether the webhook is disabled.

bool disabled = 5;

Parameter
NameDescription
valueboolean

The disabled to set.

Returns
TypeDescription
Webhook.Builder

This builder for chaining.

setDisplayName(String value)

public Webhook.Builder setDisplayName(String value)

Required. The human-readable name of the webhook, unique within the agent.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Webhook.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Webhook.Builder setDisplayNameBytes(ByteString value)

Required. The human-readable name of the webhook, unique within the agent.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Webhook.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Webhook.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Webhook.Builder
Overrides

setGenericWebService(Webhook.GenericWebService value)

public Webhook.Builder setGenericWebService(Webhook.GenericWebService value)

Configuration for a generic web service.

.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService generic_web_service = 4;

Parameter
NameDescription
valueWebhook.GenericWebService
Returns
TypeDescription
Webhook.Builder

setGenericWebService(Webhook.GenericWebService.Builder builderForValue)

public Webhook.Builder setGenericWebService(Webhook.GenericWebService.Builder builderForValue)

Configuration for a generic web service.

.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService generic_web_service = 4;

Parameter
NameDescription
builderForValueWebhook.GenericWebService.Builder
Returns
TypeDescription
Webhook.Builder

setName(String value)

public Webhook.Builder setName(String value)

The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name automatically. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Webhook.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Webhook.Builder setNameBytes(ByteString value)

The unique identifier of the webhook. Required for the Webhooks.UpdateWebhook method. Webhooks.CreateWebhook populates the name automatically. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Webhook.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Webhook.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Webhook.Builder
Overrides

setServiceDirectory(Webhook.ServiceDirectoryConfig value)

public Webhook.Builder setServiceDirectory(Webhook.ServiceDirectoryConfig value)

Configuration for a Service Directory service.

.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig service_directory = 7;

Parameter
NameDescription
valueWebhook.ServiceDirectoryConfig
Returns
TypeDescription
Webhook.Builder

setServiceDirectory(Webhook.ServiceDirectoryConfig.Builder builderForValue)

public Webhook.Builder setServiceDirectory(Webhook.ServiceDirectoryConfig.Builder builderForValue)

Configuration for a Service Directory service.

.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig service_directory = 7;

Parameter
NameDescription
builderForValueWebhook.ServiceDirectoryConfig.Builder
Returns
TypeDescription
Webhook.Builder

setTimeout(Duration value)

public Webhook.Builder setTimeout(Duration value)

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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Webhook.Builder

setTimeout(Duration.Builder builderForValue)

public Webhook.Builder setTimeout(Duration.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Webhook.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Webhook.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Webhook.Builder
Overrides