Class ToolConfig.Builder (3.41.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ToolConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ToolConfig.Builder
Overrides

build()

public ToolConfig build()
Returns
TypeDescription
ToolConfig

buildPartial()

public ToolConfig buildPartial()
Returns
TypeDescription
ToolConfig

clear()

public ToolConfig.Builder clear()
Returns
TypeDescription
ToolConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ToolConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ToolConfig.Builder
Overrides

clearFunctionCallingConfig()

public ToolConfig.Builder clearFunctionCallingConfig()

Function calling config.

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

Returns
TypeDescription
ToolConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ToolConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ToolConfig.Builder
Overrides

clone()

public ToolConfig.Builder clone()
Returns
TypeDescription
ToolConfig.Builder
Overrides

getDefaultInstanceForType()

public ToolConfig getDefaultInstanceForType()
Returns
TypeDescription
ToolConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFunctionCallingConfig()

public FunctionCallingConfig getFunctionCallingConfig()

Function calling config.

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

Returns
TypeDescription
FunctionCallingConfig

The functionCallingConfig.

getFunctionCallingConfigBuilder()

public FunctionCallingConfig.Builder getFunctionCallingConfigBuilder()

Function calling config.

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

Returns
TypeDescription
FunctionCallingConfig.Builder

getFunctionCallingConfigOrBuilder()

public FunctionCallingConfigOrBuilder getFunctionCallingConfigOrBuilder()

Function calling config.

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

Returns
TypeDescription
FunctionCallingConfigOrBuilder

hasFunctionCallingConfig()

public boolean hasFunctionCallingConfig()

Function calling config.

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

Returns
TypeDescription
boolean

Whether the functionCallingConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ToolConfig other)

public ToolConfig.Builder mergeFrom(ToolConfig other)
Parameter
NameDescription
otherToolConfig
Returns
TypeDescription
ToolConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ToolConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ToolConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ToolConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ToolConfig.Builder
Overrides

mergeFunctionCallingConfig(FunctionCallingConfig value)

public ToolConfig.Builder mergeFunctionCallingConfig(FunctionCallingConfig value)

Function calling config.

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

Parameter
NameDescription
valueFunctionCallingConfig
Returns
TypeDescription
ToolConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ToolConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ToolConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ToolConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ToolConfig.Builder
Overrides

setFunctionCallingConfig(FunctionCallingConfig value)

public ToolConfig.Builder setFunctionCallingConfig(FunctionCallingConfig value)

Function calling config.

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

Parameter
NameDescription
valueFunctionCallingConfig
Returns
TypeDescription
ToolConfig.Builder

setFunctionCallingConfig(FunctionCallingConfig.Builder builderForValue)

public ToolConfig.Builder setFunctionCallingConfig(FunctionCallingConfig.Builder builderForValue)

Function calling config.

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

Parameter
NameDescription
builderForValueFunctionCallingConfig.Builder
Returns
TypeDescription
ToolConfig.Builder

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

public ToolConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ToolConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ToolConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ToolConfig.Builder
Overrides