Package com.google.cloud.dialogflow.v2
Class Tool.FunctionTool.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Tool.FunctionTool.Builder>
com.google.cloud.dialogflow.v2.Tool.FunctionTool.Builder
- All Implemented Interfaces:
Tool.FunctionToolOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Tool.FunctionTool
public static final class Tool.FunctionTool.Builder
extends com.google.protobuf.GeneratedMessage.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.v2.Tool.FunctionTool-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.StructOptional.com.google.protobuf.Struct.BuilderOptional.com.google.protobuf.StructOrBuilderOptional.Optional.intOptional.com.google.protobuf.StructOptional.com.google.protobuf.Struct.BuilderOptional.com.google.protobuf.StructOrBuilderOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Tool.FunctionTool other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeInputSchema(com.google.protobuf.Struct value) Optional.mergeOutputSchema(com.google.protobuf.Struct value) Optional.setInputSchema(com.google.protobuf.Struct value) Optional.setInputSchema(com.google.protobuf.Struct.Builder builderForValue) Optional.setMethodType(Tool.MethodType value) Optional.setMethodTypeValue(int value) Optional.setOutputSchema(com.google.protobuf.Struct value) Optional.setOutputSchema(com.google.protobuf.Struct.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Tool.FunctionTool.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Tool.FunctionTool.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Tool.FunctionTool.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Tool.FunctionTool.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Tool.FunctionTool.Builder>
-
mergeFrom
public Tool.FunctionTool.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Tool.FunctionTool.Builder>- Throws:
IOException
-
hasInputSchema
public boolean hasInputSchema()Optional. The JSON schema is encapsulated in a [google.protobuf.Struct][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];- Specified by:
hasInputSchemain interfaceTool.FunctionToolOrBuilder- Returns:
- Whether the inputSchema field is set.
-
getInputSchema
public com.google.protobuf.Struct getInputSchema()Optional. The JSON schema is encapsulated in a [google.protobuf.Struct][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];- Specified by:
getInputSchemain interfaceTool.FunctionToolOrBuilder- Returns:
- The inputSchema.
-
setInputSchema
Optional. The JSON schema is encapsulated in a [google.protobuf.Struct][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]; -
setInputSchema
Optional. The JSON schema is encapsulated in a [google.protobuf.Struct][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]; -
mergeInputSchema
Optional. The JSON schema is encapsulated in a [google.protobuf.Struct][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]; -
clearInputSchema
Optional. The JSON schema is encapsulated in a [google.protobuf.Struct][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]; -
getInputSchemaBuilder
public com.google.protobuf.Struct.Builder getInputSchemaBuilder()Optional. The JSON schema is encapsulated in a [google.protobuf.Struct][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]; -
getInputSchemaOrBuilder
public com.google.protobuf.StructOrBuilder getInputSchemaOrBuilder()Optional. The JSON schema is encapsulated in a [google.protobuf.Struct][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];- Specified by:
getInputSchemaOrBuilderin interfaceTool.FunctionToolOrBuilder
-
hasOutputSchema
public boolean hasOutputSchema()Optional. The JSON schema is encapsulated in a [google.protobuf.Struct][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];- Specified by:
hasOutputSchemain interfaceTool.FunctionToolOrBuilder- Returns:
- Whether the outputSchema field is set.
-
getOutputSchema
public com.google.protobuf.Struct getOutputSchema()Optional. The JSON schema is encapsulated in a [google.protobuf.Struct][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];- Specified by:
getOutputSchemain interfaceTool.FunctionToolOrBuilder- Returns:
- The outputSchema.
-
setOutputSchema
Optional. The JSON schema is encapsulated in a [google.protobuf.Struct][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]; -
setOutputSchema
public Tool.FunctionTool.Builder setOutputSchema(com.google.protobuf.Struct.Builder builderForValue) Optional. The JSON schema is encapsulated in a [google.protobuf.Struct][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]; -
mergeOutputSchema
Optional. The JSON schema is encapsulated in a [google.protobuf.Struct][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]; -
clearOutputSchema
Optional. The JSON schema is encapsulated in a [google.protobuf.Struct][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]; -
getOutputSchemaBuilder
public com.google.protobuf.Struct.Builder getOutputSchemaBuilder()Optional. The JSON schema is encapsulated in a [google.protobuf.Struct][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]; -
getOutputSchemaOrBuilder
public com.google.protobuf.StructOrBuilder getOutputSchemaOrBuilder()Optional. The JSON schema is encapsulated in a [google.protobuf.Struct][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];- Specified by:
getOutputSchemaOrBuilderin interfaceTool.FunctionToolOrBuilder
-
getMethodTypeValue
public int getMethodTypeValue()Optional. The method type of the function. If not specified, the default value is GET.
.google.cloud.dialogflow.v2.Tool.MethodType method_type = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMethodTypeValuein interfaceTool.FunctionToolOrBuilder- Returns:
- The enum numeric value on the wire for methodType.
-
setMethodTypeValue
Optional. The method type of the function. If not specified, the default value is GET.
.google.cloud.dialogflow.v2.Tool.MethodType method_type = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for methodType to set.- Returns:
- This builder for chaining.
-
getMethodType
Optional. The method type of the function. If not specified, the default value is GET.
.google.cloud.dialogflow.v2.Tool.MethodType method_type = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMethodTypein interfaceTool.FunctionToolOrBuilder- Returns:
- The methodType.
-
setMethodType
Optional. The method type of the function. If not specified, the default value is GET.
.google.cloud.dialogflow.v2.Tool.MethodType method_type = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The methodType to set.- Returns:
- This builder for chaining.
-
clearMethodType
Optional. The method type of the function. If not specified, the default value is GET.
.google.cloud.dialogflow.v2.Tool.MethodType method_type = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-