public static final class ToolCallResult.Error.Builder extends GeneratedMessage.Builder<ToolCallResult.Error.Builder> implements ToolCallResult.ErrorOrBuilderAn error produced by the tool call.
Protobuf type google.cloud.dialogflow.v2.ToolCallResult.Error
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ToolCallResult.Error.BuilderImplements
ToolCallResult.ErrorOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
clearMessage()
public ToolCallResult.Error.Builder clearMessage()Optional. The error message of the function.
string message = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ToolCallResult.Error.Builder |
This builder for chaining. |
clearRetryable()
public ToolCallResult.Error.Builder clearRetryable()Optional. Specifies whether the tool call is retryable.
bool retryable = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ToolCallResult.Error.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ToolCallResult.Error getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ToolCallResult.Error |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMessage()
public String getMessage()Optional. The error message of the function.
string message = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The message. |
getMessageBytes()
public ByteString getMessageBytes()Optional. The error message of the function.
string message = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for message. |
getRetryable()
public boolean getRetryable()Optional. Specifies whether the tool call is retryable.
bool retryable = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The retryable. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
setMessage(String value)
public ToolCallResult.Error.Builder setMessage(String value)Optional. The error message of the function.
string message = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe message to set. |
| Returns | |
|---|---|
| Type | Description |
ToolCallResult.Error.Builder |
This builder for chaining. |
setMessageBytes(ByteString value)
public ToolCallResult.Error.Builder setMessageBytes(ByteString value)Optional. The error message of the function.
string message = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for message to set. |
| Returns | |
|---|---|
| Type | Description |
ToolCallResult.Error.Builder |
This builder for chaining. |
setRetryable(boolean value)
public ToolCallResult.Error.Builder setRetryable(boolean value)Optional. Specifies whether the tool call is retryable.
bool retryable = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe retryable to set. |
| Returns | |
|---|---|
| Type | Description |
ToolCallResult.Error.Builder |
This builder for chaining. |