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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Required.booleanMap from [placeholder parameter][Generator.Parameter.id] in the [Generator][google.cloud.dialogflow.cx.v3beta1.Generator] to corresponding session parameters.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.Deprecated.intMap from [placeholder parameter][Generator.Parameter.id] in the [Generator][google.cloud.dialogflow.cx.v3beta1.Generator] to corresponding session parameters.Map from [placeholder parameter][Generator.Parameter.id] in the [Generator][google.cloud.dialogflow.cx.v3beta1.Generator] to corresponding session parameters.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.Map from [placeholder parameter][Generator.Parameter.id] in the [Generator][google.cloud.dialogflow.cx.v3beta1.Generator] to corresponding session parameters.Deprecated.Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.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.Map from [placeholder parameter][Generator.Parameter.id] in the [Generator][google.cloud.dialogflow.cx.v3beta1.Generator] to corresponding session parameters.setGenerator(String value) Required.setGeneratorBytes(com.google.protobuf.ByteString value) Required.setOutputParameter(String value) Required.setOutputParameterBytes(com.google.protobuf.ByteString value) Required.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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Fulfillment.GeneratorSettings.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Fulfillment.GeneratorSettings.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Fulfillment.GeneratorSettings.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<Fulfillment.GeneratorSettings.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<Fulfillment.GeneratorSettings.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<Fulfillment.GeneratorSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Fulfillment.GeneratorSettings.Builder>- Throws:
IOException
-
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:
getGeneratorin interfaceFulfillment.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:
getGeneratorBytesin interfaceFulfillment.GeneratorSettingsOrBuilder- Returns:
- The bytes for generator.
-
setGenerator
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
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.GeneratorSettingsOrBuilderMap 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:
getInputParametersCountin interfaceFulfillment.GeneratorSettingsOrBuilder
-
containsInputParameters
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:
containsInputParametersin interfaceFulfillment.GeneratorSettingsOrBuilder
-
getInputParameters
Deprecated.UsegetInputParametersMap()instead.- Specified by:
getInputParametersin interfaceFulfillment.GeneratorSettingsOrBuilder
-
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:
getInputParametersMapin interfaceFulfillment.GeneratorSettingsOrBuilder
-
getInputParametersOrDefault
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:
getInputParametersOrDefaultin interfaceFulfillment.GeneratorSettingsOrBuilder
-
getInputParametersOrThrow
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:
getInputParametersOrThrowin interfaceFulfillment.GeneratorSettingsOrBuilder
-
clearInputParameters
-
removeInputParameters
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.Use alternate mutation accessors instead. -
putInputParameters
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
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
Required. Output parameter which should contain the generator response.
string output_parameter = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getOutputParameterin interfaceFulfillment.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:
getOutputParameterBytesin interfaceFulfillment.GeneratorSettingsOrBuilder- Returns:
- The bytes for outputParameter.
-
setOutputParameter
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
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.
-