Class DeleteWebhookRequest.Builder (0.13.0)

public static final class DeleteWebhookRequest.Builder extends GeneratedMessageV3.Builder<DeleteWebhookRequest.Builder> implements DeleteWebhookRequestOrBuilder

The request message for Webhooks.DeleteWebhook.

Protobuf type google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeleteWebhookRequest build()
Returns
TypeDescription
DeleteWebhookRequest

buildPartial()

public DeleteWebhookRequest buildPartial()
Returns
TypeDescription
DeleteWebhookRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearForce()

public DeleteWebhookRequest.Builder clearForce()

This field has no effect for webhook not being used. For webhooks that are used by pages/flows/transition route groups:

  • If force is set to false, an error will be returned with message indicating the referenced resources.
  • If force is set to true, Dialogflow will remove the webhook, as well as any references to the webhook (i.e. Webhook and tagin fulfillments that point to this webhook will be removed).

bool force = 2;

Returns
TypeDescription
DeleteWebhookRequest.Builder

This builder for chaining.

clearName()

public DeleteWebhookRequest.Builder clearName()

Required. The name of the webhook to delete. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
DeleteWebhookRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DeleteWebhookRequest getDefaultInstanceForType()
Returns
TypeDescription
DeleteWebhookRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getForce()

public boolean getForce()

This field has no effect for webhook not being used. For webhooks that are used by pages/flows/transition route groups:

  • If force is set to false, an error will be returned with message indicating the referenced resources.
  • If force is set to true, Dialogflow will remove the webhook, as well as any references to the webhook (i.e. Webhook and tagin fulfillments that point to this webhook will be removed).

bool force = 2;

Returns
TypeDescription
boolean

The force.

getName()

public String getName()

Required. The name of the webhook to delete. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the webhook to delete. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeleteWebhookRequest other)

public DeleteWebhookRequest.Builder mergeFrom(DeleteWebhookRequest other)
Parameter
NameDescription
otherDeleteWebhookRequest
Returns
TypeDescription
DeleteWebhookRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setForce(boolean value)

public DeleteWebhookRequest.Builder setForce(boolean value)

This field has no effect for webhook not being used. For webhooks that are used by pages/flows/transition route groups:

  • If force is set to false, an error will be returned with message indicating the referenced resources.
  • If force is set to true, Dialogflow will remove the webhook, as well as any references to the webhook (i.e. Webhook and tagin fulfillments that point to this webhook will be removed).

bool force = 2;

Parameter
NameDescription
valueboolean

The force to set.

Returns
TypeDescription
DeleteWebhookRequest.Builder

This builder for chaining.

setName(String value)

public DeleteWebhookRequest.Builder setName(String value)

Required. The name of the webhook to delete. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DeleteWebhookRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteWebhookRequest.Builder setNameBytes(ByteString value)

Required. The name of the webhook to delete. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DeleteWebhookRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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