Class ToolFakeConfig.Builder (0.1.0)

public static final class ToolFakeConfig.Builder extends GeneratedMessage.Builder<ToolFakeConfig.Builder> implements ToolFakeConfigOrBuilder

Configuration for tool behavior in fake mode.

Protobuf type google.cloud.ces.v1.ToolFakeConfig

Static Methods

getDescriptor()

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

Methods

build()

public ToolFakeConfig build()
Returns
Type Description
ToolFakeConfig

buildPartial()

public ToolFakeConfig buildPartial()
Returns
Type Description
ToolFakeConfig

clear()

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

clearCodeBlock()

public ToolFakeConfig.Builder clearCodeBlock()

Optional. Code block which will be executed instead of a real tool call.

.google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ToolFakeConfig.Builder

clearEnableFakeMode()

public ToolFakeConfig.Builder clearEnableFakeMode()

Optional. Whether the tool is using fake mode.

bool enable_fake_mode = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ToolFakeConfig.Builder

This builder for chaining.

clearToolResponse()

public ToolFakeConfig.Builder clearToolResponse()
Returns
Type Description
ToolFakeConfig.Builder

getCodeBlock()

public CodeBlock getCodeBlock()

Optional. Code block which will be executed instead of a real tool call.

.google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CodeBlock

The codeBlock.

getCodeBlockBuilder()

public CodeBlock.Builder getCodeBlockBuilder()

Optional. Code block which will be executed instead of a real tool call.

.google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CodeBlock.Builder

getCodeBlockOrBuilder()

public CodeBlockOrBuilder getCodeBlockOrBuilder()

Optional. Code block which will be executed instead of a real tool call.

.google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CodeBlockOrBuilder

getDefaultInstanceForType()

public ToolFakeConfig getDefaultInstanceForType()
Returns
Type Description
ToolFakeConfig

getDescriptorForType()

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

getEnableFakeMode()

public boolean getEnableFakeMode()

Optional. Whether the tool is using fake mode.

bool enable_fake_mode = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enableFakeMode.

getToolResponseCase()

public ToolFakeConfig.ToolResponseCase getToolResponseCase()
Returns
Type Description
ToolFakeConfig.ToolResponseCase

hasCodeBlock()

public boolean hasCodeBlock()

Optional. Code block which will be executed instead of a real tool call.

.google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the codeBlock field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCodeBlock(CodeBlock value)

public ToolFakeConfig.Builder mergeCodeBlock(CodeBlock value)

Optional. Code block which will be executed instead of a real tool call.

.google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CodeBlock
Returns
Type Description
ToolFakeConfig.Builder

mergeFrom(ToolFakeConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCodeBlock(CodeBlock value)

public ToolFakeConfig.Builder setCodeBlock(CodeBlock value)

Optional. Code block which will be executed instead of a real tool call.

.google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value CodeBlock
Returns
Type Description
ToolFakeConfig.Builder

setCodeBlock(CodeBlock.Builder builderForValue)

public ToolFakeConfig.Builder setCodeBlock(CodeBlock.Builder builderForValue)

Optional. Code block which will be executed instead of a real tool call.

.google.cloud.ces.v1.CodeBlock code_block = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue CodeBlock.Builder
Returns
Type Description
ToolFakeConfig.Builder

setEnableFakeMode(boolean value)

public ToolFakeConfig.Builder setEnableFakeMode(boolean value)

Optional. Whether the tool is using fake mode.

bool enable_fake_mode = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The enableFakeMode to set.

Returns
Type Description
ToolFakeConfig.Builder

This builder for chaining.