Class ToolCallResult.Error.Builder (0.53.0)

public static final class ToolCallResult.Error.Builder extends GeneratedMessageV3.Builder<ToolCallResult.Error.Builder> implements ToolCallResult.ErrorOrBuilder

An error produced by the tool call.

Protobuf type google.cloud.dialogflow.cx.v3beta1.ToolCallResult.Error

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ToolCallResult.Error.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ToolCallResult.Error.Builder
Overrides

build()

public ToolCallResult.Error build()
Returns
Type Description
ToolCallResult.Error

buildPartial()

public ToolCallResult.Error buildPartial()
Returns
Type Description
ToolCallResult.Error

clear()

public ToolCallResult.Error.Builder clear()
Returns
Type Description
ToolCallResult.Error.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ToolCallResult.Error.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ToolCallResult.Error.Builder
Overrides

clearMessage()

public ToolCallResult.Error.Builder clearMessage()

The error message of the function.

string message = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ToolCallResult.Error.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ToolCallResult.Error.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ToolCallResult.Error.Builder
Overrides

clone()

public ToolCallResult.Error.Builder clone()
Returns
Type Description
ToolCallResult.Error.Builder
Overrides

getDefaultInstanceForType()

public ToolCallResult.Error getDefaultInstanceForType()
Returns
Type Description
ToolCallResult.Error

getDescriptorForType()

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

getMessage()

public String getMessage()

The error message of the function.

string message = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

The error message of the function.

string message = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for message.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ToolCallResult.Error other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ToolCallResult.Error.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ToolCallResult.Error.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ToolCallResult.Error.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ToolCallResult.Error.Builder
Overrides

setMessage(String value)

public ToolCallResult.Error.Builder setMessage(String value)

The error message of the function.

string message = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The message to set.

Returns
Type Description
ToolCallResult.Error.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public ToolCallResult.Error.Builder setMessageBytes(ByteString value)

The error message of the function.

string message = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for message to set.

Returns
Type Description
ToolCallResult.Error.Builder

This builder for chaining.

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

public ToolCallResult.Error.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ToolCallResult.Error.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ToolCallResult.Error.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ToolCallResult.Error.Builder
Overrides