public static final class Tool.FunctionTool.Builder extends GeneratedMessageV3.Builder<Tool.FunctionTool.Builder> 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
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 Tool.FunctionTool.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Tool.FunctionTool build()
public Tool.FunctionTool buildPartial()
public Tool.FunctionTool.Builder clear()
Overrides
public Tool.FunctionTool.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public Tool.FunctionTool.Builder clearInputSchema()
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];
public Tool.FunctionTool.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public Tool.FunctionTool.Builder clearOutputSchema()
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];
public Tool.FunctionTool.Builder clone()
Overrides
public Tool.FunctionTool getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
public Struct.Builder getInputSchemaBuilder()
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];
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];
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.
|
public Struct.Builder getOutputSchemaBuilder()
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];
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];
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Tool.FunctionTool.Builder mergeFrom(Tool.FunctionTool other)
public Tool.FunctionTool.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public Tool.FunctionTool.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public Tool.FunctionTool.Builder mergeInputSchema(Struct value)
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];
Parameter |
Name |
Description |
value |
Struct
|
public Tool.FunctionTool.Builder mergeOutputSchema(Struct value)
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];
Parameter |
Name |
Description |
value |
Struct
|
public final Tool.FunctionTool.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public Tool.FunctionTool.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Tool.FunctionTool.Builder setInputSchema(Struct value)
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];
Parameter |
Name |
Description |
value |
Struct
|
public Tool.FunctionTool.Builder setInputSchema(Struct.Builder builderForValue)
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];
Parameter |
Name |
Description |
builderForValue |
Builder
|
public Tool.FunctionTool.Builder setOutputSchema(Struct value)
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];
Parameter |
Name |
Description |
value |
Struct
|
public Tool.FunctionTool.Builder setOutputSchema(Struct.Builder builderForValue)
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];
Parameter |
Name |
Description |
builderForValue |
Builder
|
public Tool.FunctionTool.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final Tool.FunctionTool.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides