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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Tool.FunctionTool.Builder>
    • clear

      public Tool.FunctionTool.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Tool.FunctionTool.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Tool.FunctionTool.Builder>
    • getDefaultInstanceForType

      public Tool.FunctionTool getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Tool.FunctionTool build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Tool.FunctionTool buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Tool.FunctionTool.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Tool.FunctionTool.Builder>
    • mergeFrom

      public Tool.FunctionTool.Builder mergeFrom(Tool.FunctionTool other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasInputSchema in interface Tool.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:
      getInputSchema in interface Tool.FunctionToolOrBuilder
      Returns:
      The inputSchema.
    • setInputSchema

      public Tool.FunctionTool.Builder setInputSchema(com.google.protobuf.Struct value)
       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

      public Tool.FunctionTool.Builder setInputSchema(com.google.protobuf.Struct.Builder builderForValue)
       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

      public Tool.FunctionTool.Builder mergeInputSchema(com.google.protobuf.Struct value)
       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

      public Tool.FunctionTool.Builder 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:
      getInputSchemaOrBuilder in interface Tool.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:
      hasOutputSchema in interface Tool.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:
      getOutputSchema in interface Tool.FunctionToolOrBuilder
      Returns:
      The outputSchema.
    • setOutputSchema

      public Tool.FunctionTool.Builder setOutputSchema(com.google.protobuf.Struct value)
       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

      public Tool.FunctionTool.Builder mergeOutputSchema(com.google.protobuf.Struct value)
       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

      public Tool.FunctionTool.Builder 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:
      getOutputSchemaOrBuilder in interface Tool.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:
      getMethodTypeValue in interface Tool.FunctionToolOrBuilder
      Returns:
      The enum numeric value on the wire for methodType.
    • setMethodTypeValue

      public Tool.FunctionTool.Builder setMethodTypeValue(int value)
       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

      public Tool.MethodType 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:
      getMethodType in interface Tool.FunctionToolOrBuilder
      Returns:
      The methodType.
    • setMethodType

      public Tool.FunctionTool.Builder setMethodType(Tool.MethodType value)
       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

      public Tool.FunctionTool.Builder 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.