Class CesToolSpec.Builder (4.97.0)

public static final class CesToolSpec.Builder extends GeneratedMessage.Builder<CesToolSpec.Builder> implements CesToolSpecOrBuilder

Spec of CES tool that the generator can choose from.

Protobuf type google.cloud.dialogflow.v2beta1.CesToolSpec

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public CesToolSpec build()
Returns
Type Description
CesToolSpec

buildPartial()

public CesToolSpec buildPartial()
Returns
Type Description
CesToolSpec

clear()

public CesToolSpec.Builder clear()
Returns
Type Description
CesToolSpec.Builder
Overrides

clearCesTool()

public CesToolSpec.Builder clearCesTool()

Optional. Format: projects/<Project ID>/locations/<Location ID>/apps/<app ID>/tools/<tool ID>.

string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
CesToolSpec.Builder

This builder for chaining.

clearConfirmationRequirement()

public CesToolSpec.Builder clearConfirmationRequirement()

Optional. Indicates whether the tool requires human confirmation.

.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CesToolSpec.Builder

This builder for chaining.

getCesTool()

public String getCesTool()

Optional. Format: projects/<Project ID>/locations/<Location ID>/apps/<app ID>/tools/<tool ID>.

string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The cesTool.

getCesToolBytes()

public ByteString getCesToolBytes()

Optional. Format: projects/<Project ID>/locations/<Location ID>/apps/<app ID>/tools/<tool ID>.

string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for cesTool.

getConfirmationRequirement()

public Tool.ConfirmationRequirement getConfirmationRequirement()

Optional. Indicates whether the tool requires human confirmation.

.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Tool.ConfirmationRequirement

The confirmationRequirement.

getConfirmationRequirementValue()

public int getConfirmationRequirementValue()

Optional. Indicates whether the tool requires human confirmation.

.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for confirmationRequirement.

getDefaultInstanceForType()

public CesToolSpec getDefaultInstanceForType()
Returns
Type Description
CesToolSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CesToolSpec other)

public CesToolSpec.Builder mergeFrom(CesToolSpec other)
Parameter
Name Description
other CesToolSpec
Returns
Type Description
CesToolSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CesToolSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CesToolSpec.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CesToolSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CesToolSpec.Builder
Overrides

setCesTool(String value)

public CesToolSpec.Builder setCesTool(String value)

Optional. Format: projects/<Project ID>/locations/<Location ID>/apps/<app ID>/tools/<tool ID>.

string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The cesTool to set.

Returns
Type Description
CesToolSpec.Builder

This builder for chaining.

setCesToolBytes(ByteString value)

public CesToolSpec.Builder setCesToolBytes(ByteString value)

Optional. Format: projects/<Project ID>/locations/<Location ID>/apps/<app ID>/tools/<tool ID>.

string ces_tool = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for cesTool to set.

Returns
Type Description
CesToolSpec.Builder

This builder for chaining.

setConfirmationRequirement(Tool.ConfirmationRequirement value)

public CesToolSpec.Builder setConfirmationRequirement(Tool.ConfirmationRequirement value)

Optional. Indicates whether the tool requires human confirmation.

.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Tool.ConfirmationRequirement

The confirmationRequirement to set.

Returns
Type Description
CesToolSpec.Builder

This builder for chaining.

setConfirmationRequirementValue(int value)

public CesToolSpec.Builder setConfirmationRequirementValue(int value)

Optional. Indicates whether the tool requires human confirmation.

.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement confirmation_requirement = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for confirmationRequirement to set.

Returns
Type Description
CesToolSpec.Builder

This builder for chaining.