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.vertexai.v1.ToolConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public ToolConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ToolConfig build()
public ToolConfig buildPartial()
public ToolConfig.Builder clear()
Overrides
public ToolConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public ToolConfig.Builder clearFunctionCallingConfig()
Optional. Function calling config.
.google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];
public ToolConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public ToolConfig.Builder clone()
Overrides
public ToolConfig getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public FunctionCallingConfig getFunctionCallingConfig()
Optional. Function calling config.
.google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];
public FunctionCallingConfig.Builder getFunctionCallingConfigBuilder()
Optional. Function calling config.
.google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];
public FunctionCallingConfigOrBuilder getFunctionCallingConfigOrBuilder()
Optional. Function calling config.
.google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];
public boolean hasFunctionCallingConfig()
Optional. Function calling config.
.google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the functionCallingConfig field is set.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ToolConfig.Builder mergeFrom(ToolConfig other)
public ToolConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ToolConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public ToolConfig.Builder mergeFunctionCallingConfig(FunctionCallingConfig value)
Optional. Function calling config.
.google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];
public final ToolConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public ToolConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ToolConfig.Builder setFunctionCallingConfig(FunctionCallingConfig value)
Optional. Function calling config.
.google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];
public ToolConfig.Builder setFunctionCallingConfig(FunctionCallingConfig.Builder builderForValue)
Optional. Function calling config.
.google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];
public ToolConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final ToolConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides