Class Tool.FunctionTool (0.62.0)

public static final class Tool.FunctionTool extends GeneratedMessageV3 implements Tool.FunctionToolOrBuilder

A Function tool describes the functions to be invoked on the client side.

Protobuf type google.cloud.dialogflow.cx.v3beta1.Tool.FunctionTool

Static Fields

INPUT_SCHEMA_FIELD_NUMBER

public static final int INPUT_SCHEMA_FIELD_NUMBER
Field Value
Type Description
int

OUTPUT_SCHEMA_FIELD_NUMBER

public static final int OUTPUT_SCHEMA_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Tool.FunctionTool getDefaultInstance()
Returns
Type Description
Tool.FunctionTool

getDescriptor()

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

newBuilder()

public static Tool.FunctionTool.Builder newBuilder()
Returns
Type Description
Tool.FunctionTool.Builder

newBuilder(Tool.FunctionTool prototype)

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

parseDelimitedFrom(InputStream input)

public static Tool.FunctionTool parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Tool.FunctionTool
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Tool.FunctionTool parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Tool.FunctionTool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Tool.FunctionTool parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Tool.FunctionTool
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Tool.FunctionTool parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Tool.FunctionTool
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Tool.FunctionTool parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Tool.FunctionTool
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Tool.FunctionTool> parser()
Returns
Type Description
Parser<FunctionTool>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getInputSchema()

public Struct getInputSchema()

Optional. The JSON schema is encapsulated in a google.protobuf.Struct to describe the input of the function. This input is a JSON object that contains the function's parameters as properties of the object.

.google.protobuf.Struct input_schema = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The inputSchema.

getInputSchemaOrBuilder()

public StructOrBuilder getInputSchemaOrBuilder()

Optional. The JSON schema is encapsulated in a google.protobuf.Struct to describe the input of the function. This input is a JSON object that contains the function's parameters as properties of the object.

.google.protobuf.Struct input_schema = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getOutputSchema()

public Struct getOutputSchema()

Optional. The JSON schema is encapsulated in a google.protobuf.Struct to describe the output of the function. This output is a JSON object that contains the function's parameters as properties of the object.

.google.protobuf.Struct output_schema = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The outputSchema.

getOutputSchemaOrBuilder()

public StructOrBuilder getOutputSchemaOrBuilder()

Optional. The JSON schema is encapsulated in a google.protobuf.Struct to describe the output of the function. This output is a JSON object that contains the function's parameters as properties of the object.

.google.protobuf.Struct output_schema = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getParserForType()

public Parser<Tool.FunctionTool> getParserForType()
Returns
Type Description
Parser<FunctionTool>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasInputSchema()

public boolean hasInputSchema()

Optional. The JSON schema is encapsulated in a google.protobuf.Struct to describe the input of the function. This input is a JSON object that contains the function's parameters as properties of the object.

.google.protobuf.Struct input_schema = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the inputSchema field is set.

hasOutputSchema()

public boolean hasOutputSchema()

Optional. The JSON schema is encapsulated in a google.protobuf.Struct to describe the output of the function. This output is a JSON object that contains the function's parameters as properties of the object.

.google.protobuf.Struct output_schema = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the outputSchema 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 Tool.FunctionTool.Builder newBuilderForType()
Returns
Type Description
Tool.FunctionTool.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Tool.FunctionTool.Builder toBuilder()
Returns
Type Description
Tool.FunctionTool.Builder

writeTo(CodedOutputStream output)

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