Class Fulfillment.GeneratorSettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Fulfillment.GeneratorSettings.Builder>
com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings.Builder
All Implemented Interfaces:
Fulfillment.GeneratorSettingsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Fulfillment.GeneratorSettings

public static final class Fulfillment.GeneratorSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<Fulfillment.GeneratorSettings.Builder> implements Fulfillment.GeneratorSettingsOrBuilder
 Generator settings used by the LLM to generate a text response.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Fulfillment.GeneratorSettings.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Fulfillment.GeneratorSettings.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Fulfillment.GeneratorSettings.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<Fulfillment.GeneratorSettings.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<Fulfillment.GeneratorSettings.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public Fulfillment.GeneratorSettings.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<Fulfillment.GeneratorSettings.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Fulfillment.GeneratorSettings.Builder>
    • mergeFrom

      public Fulfillment.GeneratorSettings.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<Fulfillment.GeneratorSettings.Builder>
      Throws:
      IOException
    • getGenerator

      public String getGenerator()
       Required. The generator to call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.
       
      string generator = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getGenerator in interface Fulfillment.GeneratorSettingsOrBuilder
      Returns:
      The generator.
    • getGeneratorBytes

      public com.google.protobuf.ByteString getGeneratorBytes()
       Required. The generator to call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.
       
      string generator = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getGeneratorBytes in interface Fulfillment.GeneratorSettingsOrBuilder
      Returns:
      The bytes for generator.
    • setGenerator

      public Fulfillment.GeneratorSettings.Builder setGenerator(String value)
       Required. The generator to call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.
       
      string generator = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The generator to set.
      Returns:
      This builder for chaining.
    • clearGenerator

      public Fulfillment.GeneratorSettings.Builder clearGenerator()
       Required. The generator to call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.
       
      string generator = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setGeneratorBytes

      public Fulfillment.GeneratorSettings.Builder setGeneratorBytes(com.google.protobuf.ByteString value)
       Required. The generator to call.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`.
       
      string generator = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for generator to set.
      Returns:
      This builder for chaining.
    • getInputParametersCount

      public int getInputParametersCount()
      Description copied from interface: Fulfillment.GeneratorSettingsOrBuilder
       Map from [placeholder parameter][Generator.Parameter.id] in the
       [Generator][google.cloud.dialogflow.cx.v3beta1.Generator] to
       corresponding session parameters. By default, Dialogflow uses the session
       parameter with the same name to fill in the generator template. e.g. If
       there is a placeholder parameter `city` in the Generator, Dialogflow
       default to fill in the `$city` with
       `$session.params.city`. However, you may choose to fill `$city` with
       `$session.params.desination-city`.
       - Map key: [parameter ID][Genrator.Parameter.id]
       - Map value: session parameter name
       
      map<string, string> input_parameters = 2;
      Specified by:
      getInputParametersCount in interface Fulfillment.GeneratorSettingsOrBuilder
    • containsInputParameters

      public boolean containsInputParameters(String key)
       Map from [placeholder parameter][Generator.Parameter.id] in the
       [Generator][google.cloud.dialogflow.cx.v3beta1.Generator] to
       corresponding session parameters. By default, Dialogflow uses the session
       parameter with the same name to fill in the generator template. e.g. If
       there is a placeholder parameter `city` in the Generator, Dialogflow
       default to fill in the `$city` with
       `$session.params.city`. However, you may choose to fill `$city` with
       `$session.params.desination-city`.
       - Map key: [parameter ID][Genrator.Parameter.id]
       - Map value: session parameter name
       
      map<string, string> input_parameters = 2;
      Specified by:
      containsInputParameters in interface Fulfillment.GeneratorSettingsOrBuilder
    • getInputParameters

      @Deprecated public Map<String,String> getInputParameters()
      Deprecated.
      Specified by:
      getInputParameters in interface Fulfillment.GeneratorSettingsOrBuilder
    • getInputParametersMap

      public Map<String,String> getInputParametersMap()
       Map from [placeholder parameter][Generator.Parameter.id] in the
       [Generator][google.cloud.dialogflow.cx.v3beta1.Generator] to
       corresponding session parameters. By default, Dialogflow uses the session
       parameter with the same name to fill in the generator template. e.g. If
       there is a placeholder parameter `city` in the Generator, Dialogflow
       default to fill in the `$city` with
       `$session.params.city`. However, you may choose to fill `$city` with
       `$session.params.desination-city`.
       - Map key: [parameter ID][Genrator.Parameter.id]
       - Map value: session parameter name
       
      map<string, string> input_parameters = 2;
      Specified by:
      getInputParametersMap in interface Fulfillment.GeneratorSettingsOrBuilder
    • getInputParametersOrDefault

      public String getInputParametersOrDefault(String key, String defaultValue)
       Map from [placeholder parameter][Generator.Parameter.id] in the
       [Generator][google.cloud.dialogflow.cx.v3beta1.Generator] to
       corresponding session parameters. By default, Dialogflow uses the session
       parameter with the same name to fill in the generator template. e.g. If
       there is a placeholder parameter `city` in the Generator, Dialogflow
       default to fill in the `$city` with
       `$session.params.city`. However, you may choose to fill `$city` with
       `$session.params.desination-city`.
       - Map key: [parameter ID][Genrator.Parameter.id]
       - Map value: session parameter name
       
      map<string, string> input_parameters = 2;
      Specified by:
      getInputParametersOrDefault in interface Fulfillment.GeneratorSettingsOrBuilder
    • getInputParametersOrThrow

      public String getInputParametersOrThrow(String key)
       Map from [placeholder parameter][Generator.Parameter.id] in the
       [Generator][google.cloud.dialogflow.cx.v3beta1.Generator] to
       corresponding session parameters. By default, Dialogflow uses the session
       parameter with the same name to fill in the generator template. e.g. If
       there is a placeholder parameter `city` in the Generator, Dialogflow
       default to fill in the `$city` with
       `$session.params.city`. However, you may choose to fill `$city` with
       `$session.params.desination-city`.
       - Map key: [parameter ID][Genrator.Parameter.id]
       - Map value: session parameter name
       
      map<string, string> input_parameters = 2;
      Specified by:
      getInputParametersOrThrow in interface Fulfillment.GeneratorSettingsOrBuilder
    • clearInputParameters

      public Fulfillment.GeneratorSettings.Builder clearInputParameters()
    • removeInputParameters

      public Fulfillment.GeneratorSettings.Builder removeInputParameters(String key)
       Map from [placeholder parameter][Generator.Parameter.id] in the
       [Generator][google.cloud.dialogflow.cx.v3beta1.Generator] to
       corresponding session parameters. By default, Dialogflow uses the session
       parameter with the same name to fill in the generator template. e.g. If
       there is a placeholder parameter `city` in the Generator, Dialogflow
       default to fill in the `$city` with
       `$session.params.city`. However, you may choose to fill `$city` with
       `$session.params.desination-city`.
       - Map key: [parameter ID][Genrator.Parameter.id]
       - Map value: session parameter name
       
      map<string, string> input_parameters = 2;
    • getMutableInputParameters

      @Deprecated public Map<String,String> getMutableInputParameters()
      Deprecated.
      Use alternate mutation accessors instead.
    • putInputParameters

      public Fulfillment.GeneratorSettings.Builder putInputParameters(String key, String value)
       Map from [placeholder parameter][Generator.Parameter.id] in the
       [Generator][google.cloud.dialogflow.cx.v3beta1.Generator] to
       corresponding session parameters. By default, Dialogflow uses the session
       parameter with the same name to fill in the generator template. e.g. If
       there is a placeholder parameter `city` in the Generator, Dialogflow
       default to fill in the `$city` with
       `$session.params.city`. However, you may choose to fill `$city` with
       `$session.params.desination-city`.
       - Map key: [parameter ID][Genrator.Parameter.id]
       - Map value: session parameter name
       
      map<string, string> input_parameters = 2;
    • putAllInputParameters

      public Fulfillment.GeneratorSettings.Builder putAllInputParameters(Map<String,String> values)
       Map from [placeholder parameter][Generator.Parameter.id] in the
       [Generator][google.cloud.dialogflow.cx.v3beta1.Generator] to
       corresponding session parameters. By default, Dialogflow uses the session
       parameter with the same name to fill in the generator template. e.g. If
       there is a placeholder parameter `city` in the Generator, Dialogflow
       default to fill in the `$city` with
       `$session.params.city`. However, you may choose to fill `$city` with
       `$session.params.desination-city`.
       - Map key: [parameter ID][Genrator.Parameter.id]
       - Map value: session parameter name
       
      map<string, string> input_parameters = 2;
    • getOutputParameter

      public String getOutputParameter()
       Required. Output parameter which should contain the generator response.
       
      string output_parameter = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOutputParameter in interface Fulfillment.GeneratorSettingsOrBuilder
      Returns:
      The outputParameter.
    • getOutputParameterBytes

      public com.google.protobuf.ByteString getOutputParameterBytes()
       Required. Output parameter which should contain the generator response.
       
      string output_parameter = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getOutputParameterBytes in interface Fulfillment.GeneratorSettingsOrBuilder
      Returns:
      The bytes for outputParameter.
    • setOutputParameter

      public Fulfillment.GeneratorSettings.Builder setOutputParameter(String value)
       Required. Output parameter which should contain the generator response.
       
      string output_parameter = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The outputParameter to set.
      Returns:
      This builder for chaining.
    • clearOutputParameter

      public Fulfillment.GeneratorSettings.Builder clearOutputParameter()
       Required. Output parameter which should contain the generator response.
       
      string output_parameter = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setOutputParameterBytes

      public Fulfillment.GeneratorSettings.Builder setOutputParameterBytes(com.google.protobuf.ByteString value)
       Required. Output parameter which should contain the generator response.
       
      string output_parameter = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for outputParameter to set.
      Returns:
      This builder for chaining.