Class Tool.CodeExecution.Builder (3.55.0)

public static final class Tool.CodeExecution.Builder extends GeneratedMessageV3.Builder<Tool.CodeExecution.Builder> implements Tool.CodeExecutionOrBuilder

Tool that executes code generated by the model, and automatically returns the result to the model.

See also [ExecutableCode]and [CodeExecutionResult] which are input and output to this tool.

Protobuf type google.cloud.aiplatform.v1beta1.Tool.CodeExecution

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Tool.CodeExecution build()
Returns
Type Description
Tool.CodeExecution

buildPartial()

public Tool.CodeExecution buildPartial()
Returns
Type Description
Tool.CodeExecution

clear()

public Tool.CodeExecution.Builder clear()
Returns
Type Description
Tool.CodeExecution.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Tool.CodeExecution.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Tool.CodeExecution.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Tool.CodeExecution.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Tool.CodeExecution.Builder
Overrides

clone()

public Tool.CodeExecution.Builder clone()
Returns
Type Description
Tool.CodeExecution.Builder
Overrides

getDefaultInstanceForType()

public Tool.CodeExecution getDefaultInstanceForType()
Returns
Type Description
Tool.CodeExecution

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Tool.CodeExecution other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Tool.CodeExecution.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Tool.CodeExecution.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final Tool.CodeExecution.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Tool.CodeExecution.Builder
Overrides