- 0.65.0 (latest)
- 0.64.0
- 0.63.0
- 0.62.0
- 0.60.0
- 0.59.0
- 0.58.0
- 0.57.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.7
- 0.13.1
- 0.12.1
- 0.11.5
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.v3beta1.Webhook
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Webhook.BuilderImplements
WebhookOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Webhook.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Webhook.Builder |
build()
public Webhook build()
Type | Description |
Webhook |
buildPartial()
public Webhook buildPartial()
Type | Description |
Webhook |
clear()
public Webhook.Builder clear()
Type | Description |
Webhook.Builder |
clearDisabled()
public Webhook.Builder clearDisabled()
Indicates whether the webhook is disabled.
bool disabled = 5;
Type | Description |
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];
Type | Description |
Webhook.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Webhook.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Webhook.Builder |
clearGenericWebService()
public Webhook.Builder clearGenericWebService()
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 4;
Type | Description |
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;
Type | Description |
Webhook.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Webhook.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Webhook.Builder |
clearServiceDirectory()
public Webhook.Builder clearServiceDirectory()
Configuration for a Service Directory service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig service_directory = 7;
Type | Description |
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;
Type | Description |
Webhook.Builder |
clearWebhook()
public Webhook.Builder clearWebhook()
Type | Description |
Webhook.Builder |
clone()
public Webhook.Builder clone()
Type | Description |
Webhook.Builder |
getDefaultInstanceForType()
public Webhook getDefaultInstanceForType()
Type | Description |
Webhook |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDisabled()
public boolean getDisabled()
Indicates whether the webhook is disabled.
bool disabled = 5;
Type | Description |
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];
Type | Description |
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];
Type | Description |
ByteString | The bytes for displayName. |
getGenericWebService()
public Webhook.GenericWebService getGenericWebService()
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 4;
Type | Description |
Webhook.GenericWebService | The genericWebService. |
getGenericWebServiceBuilder()
public Webhook.GenericWebService.Builder getGenericWebServiceBuilder()
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 4;
Type | Description |
Webhook.GenericWebService.Builder |
getGenericWebServiceOrBuilder()
public Webhook.GenericWebServiceOrBuilder getGenericWebServiceOrBuilder()
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 4;
Type | Description |
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;
Type | Description |
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;
Type | Description |
ByteString | The bytes for name. |
getServiceDirectory()
public Webhook.ServiceDirectoryConfig getServiceDirectory()
Configuration for a Service Directory service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig service_directory = 7;
Type | Description |
Webhook.ServiceDirectoryConfig | The serviceDirectory. |
getServiceDirectoryBuilder()
public Webhook.ServiceDirectoryConfig.Builder getServiceDirectoryBuilder()
Configuration for a Service Directory service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig service_directory = 7;
Type | Description |
Webhook.ServiceDirectoryConfig.Builder |
getServiceDirectoryOrBuilder()
public Webhook.ServiceDirectoryConfigOrBuilder getServiceDirectoryOrBuilder()
Configuration for a Service Directory service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig service_directory = 7;
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
DurationOrBuilder |
getWebhookCase()
public Webhook.WebhookCase getWebhookCase()
Type | Description |
Webhook.WebhookCase |
hasGenericWebService()
public boolean hasGenericWebService()
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 4;
Type | Description |
boolean | Whether the genericWebService field is set. |
hasServiceDirectory()
public boolean hasServiceDirectory()
Configuration for a Service Directory service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig service_directory = 7;
Type | Description |
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;
Type | Description |
boolean | Whether the timeout field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Webhook other)
public Webhook.Builder mergeFrom(Webhook other)
Name | Description |
other | Webhook |
Type | Description |
Webhook.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Webhook.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Webhook.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Webhook.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Webhook.Builder |
mergeGenericWebService(Webhook.GenericWebService value)
public Webhook.Builder mergeGenericWebService(Webhook.GenericWebService value)
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 4;
Name | Description |
value | Webhook.GenericWebService |
Type | Description |
Webhook.Builder |
mergeServiceDirectory(Webhook.ServiceDirectoryConfig value)
public Webhook.Builder mergeServiceDirectory(Webhook.ServiceDirectoryConfig value)
Configuration for a Service Directory service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig service_directory = 7;
Name | Description |
value | Webhook.ServiceDirectoryConfig |
Type | Description |
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;
Name | Description |
value | Duration |
Type | Description |
Webhook.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Webhook.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Webhook.Builder |
setDisabled(boolean value)
public Webhook.Builder setDisabled(boolean value)
Indicates whether the webhook is disabled.
bool disabled = 5;
Name | Description |
value | boolean The disabled to set. |
Type | Description |
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];
Name | Description |
value | String The displayName to set. |
Type | Description |
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];
Name | Description |
value | ByteString The bytes for displayName to set. |
Type | Description |
Webhook.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Webhook.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Webhook.Builder |
setGenericWebService(Webhook.GenericWebService value)
public Webhook.Builder setGenericWebService(Webhook.GenericWebService value)
Configuration for a generic web service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService generic_web_service = 4;
Name | Description |
value | Webhook.GenericWebService |
Type | Description |
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.v3beta1.Webhook.GenericWebService generic_web_service = 4;
Name | Description |
builderForValue | Webhook.GenericWebService.Builder |
Type | Description |
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;
Name | Description |
value | String The name to set. |
Type | Description |
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;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Webhook.Builder |
setServiceDirectory(Webhook.ServiceDirectoryConfig value)
public Webhook.Builder setServiceDirectory(Webhook.ServiceDirectoryConfig value)
Configuration for a Service Directory service.
.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig service_directory = 7;
Name | Description |
value | Webhook.ServiceDirectoryConfig |
Type | Description |
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.v3beta1.Webhook.ServiceDirectoryConfig service_directory = 7;
Name | Description |
builderForValue | Webhook.ServiceDirectoryConfig.Builder |
Type | Description |
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;
Name | Description |
value | Duration |
Type | Description |
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;
Name | Description |
builderForValue | Builder |
Type | Description |
Webhook.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Webhook.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Webhook.Builder |