Class ToolConfig.Builder (3.50.0)

public static final class ToolConfig.Builder extends GeneratedMessageV3.Builder<ToolConfig.Builder> implements ToolConfigOrBuilder

Tool config. This config is shared for all tools provided in the request.

Protobuf type google.cloud.aiplatform.v1beta1.ToolConfig

Implements

ToolConfigOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ToolConfig build()
Returns
Type Description
ToolConfig

buildPartial()

public ToolConfig buildPartial()
Returns
Type Description
ToolConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFunctionCallingConfig()

public ToolConfig.Builder clearFunctionCallingConfig()

Optional. Function calling config.

.google.cloud.aiplatform.v1beta1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ToolConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ToolConfig.Builder clone()
Returns
Type Description
ToolConfig.Builder
Overrides

getDefaultInstanceForType()

public ToolConfig getDefaultInstanceForType()
Returns
Type Description
ToolConfig

getDescriptorForType()

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

getFunctionCallingConfig()

public FunctionCallingConfig getFunctionCallingConfig()

Optional. Function calling config.

.google.cloud.aiplatform.v1beta1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FunctionCallingConfig

The functionCallingConfig.

getFunctionCallingConfigBuilder()

public FunctionCallingConfig.Builder getFunctionCallingConfigBuilder()

Optional. Function calling config.

.google.cloud.aiplatform.v1beta1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FunctionCallingConfig.Builder

getFunctionCallingConfigOrBuilder()

public FunctionCallingConfigOrBuilder getFunctionCallingConfigOrBuilder()

Optional. Function calling config.

.google.cloud.aiplatform.v1beta1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FunctionCallingConfigOrBuilder

hasFunctionCallingConfig()

public boolean hasFunctionCallingConfig()

Optional. Function calling config.

.google.cloud.aiplatform.v1beta1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the functionCallingConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ToolConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFunctionCallingConfig(FunctionCallingConfig value)

public ToolConfig.Builder mergeFunctionCallingConfig(FunctionCallingConfig value)

Optional. Function calling config.

.google.cloud.aiplatform.v1beta1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FunctionCallingConfig
Returns
Type Description
ToolConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFunctionCallingConfig(FunctionCallingConfig value)

public ToolConfig.Builder setFunctionCallingConfig(FunctionCallingConfig value)

Optional. Function calling config.

.google.cloud.aiplatform.v1beta1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FunctionCallingConfig
Returns
Type Description
ToolConfig.Builder

setFunctionCallingConfig(FunctionCallingConfig.Builder builderForValue)

public ToolConfig.Builder setFunctionCallingConfig(FunctionCallingConfig.Builder builderForValue)

Optional. Function calling config.

.google.cloud.aiplatform.v1beta1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue FunctionCallingConfig.Builder
Returns
Type Description
ToolConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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