Class ToolConfig (1.15.0)

public final class ToolConfig extends GeneratedMessageV3 implements ToolConfigOrBuilder

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

Protobuf type google.cloud.vertexai.v1.ToolConfig

Implements

ToolConfigOrBuilder

Static Fields

FUNCTION_CALLING_CONFIG_FIELD_NUMBER

public static final int FUNCTION_CALLING_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ToolConfig getDefaultInstance()
Returns
Type Description
ToolConfig

getDescriptor()

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

newBuilder()

public static ToolConfig.Builder newBuilder()
Returns
Type Description
ToolConfig.Builder

newBuilder(ToolConfig prototype)

public static ToolConfig.Builder newBuilder(ToolConfig prototype)
Parameter
Name Description
prototype ToolConfig
Returns
Type Description
ToolConfig.Builder

parseDelimitedFrom(InputStream input)

public static ToolConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ToolConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ToolConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ToolConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ToolConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ToolConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ToolConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ToolConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ToolConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ToolConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ToolConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ToolConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ToolConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ToolConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ToolConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ToolConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ToolConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ToolConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ToolConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ToolConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ToolConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ToolConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ToolConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ToolConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ToolConfig> parser()
Returns
Type Description
Parser<ToolConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ToolConfig getDefaultInstanceForType()
Returns
Type Description
ToolConfig

getFunctionCallingConfig()

public FunctionCallingConfig getFunctionCallingConfig()

Optional. Function calling config.

.google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FunctionCallingConfig

The functionCallingConfig.

getFunctionCallingConfigOrBuilder()

public FunctionCallingConfigOrBuilder getFunctionCallingConfigOrBuilder()

Optional. Function calling config.

.google.cloud.vertexai.v1.FunctionCallingConfig function_calling_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FunctionCallingConfigOrBuilder

getParserForType()

public Parser<ToolConfig> getParserForType()
Returns
Type Description
Parser<ToolConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasFunctionCallingConfig()

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ToolConfig.Builder newBuilderForType()
Returns
Type Description
ToolConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ToolConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ToolConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ToolConfig.Builder toBuilder()
Returns
Type Description
ToolConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException