Class Fulfillment.GeneratorSettings

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

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

    • GENERATOR_FIELD_NUMBER

      public static final int GENERATOR_FIELD_NUMBER
      See Also:
    • INPUT_PARAMETERS_FIELD_NUMBER

      public static final int INPUT_PARAMETERS_FIELD_NUMBER
      See Also:
    • OUTPUT_PARAMETER_FIELD_NUMBER

      public static final int OUTPUT_PARAMETER_FIELD_NUMBER
      See Also:
  • 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
    • internalGetFieldAccessorTable

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

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Fulfillment.GeneratorSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Fulfillment.GeneratorSettings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Fulfillment.GeneratorSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Fulfillment.GeneratorSettings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Fulfillment.GeneratorSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Fulfillment.GeneratorSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Fulfillment.GeneratorSettings parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Fulfillment.GeneratorSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Fulfillment.GeneratorSettings parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Fulfillment.GeneratorSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Fulfillment.GeneratorSettings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Fulfillment.GeneratorSettings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Fulfillment.GeneratorSettings.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Fulfillment.GeneratorSettings.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Fulfillment.GeneratorSettings getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Fulfillment.GeneratorSettings> parser()
    • getParserForType

      public com.google.protobuf.Parser<Fulfillment.GeneratorSettings> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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