public static final class GenerativeSettings.FallbackSettings.PromptTemplate.Builder extends GeneratedMessageV3.Builder<GenerativeSettings.FallbackSettings.PromptTemplate.Builder> implements GenerativeSettings.FallbackSettings.PromptTemplateOrBuilder
Prompt template.
Protobuf type
google.cloud.dialogflow.cx.v3beta1.GenerativeSettings.FallbackSettings.PromptTemplate
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GenerativeSettings.FallbackSettings.PromptTemplate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public GenerativeSettings.FallbackSettings.PromptTemplate build()
buildPartial()
public GenerativeSettings.FallbackSettings.PromptTemplate buildPartial()
clear()
public GenerativeSettings.FallbackSettings.PromptTemplate.Builder clear()
Overrides
clearDisplayName()
public GenerativeSettings.FallbackSettings.PromptTemplate.Builder clearDisplayName()
Prompt name.
string display_name = 1;
clearField(Descriptors.FieldDescriptor field)
public GenerativeSettings.FallbackSettings.PromptTemplate.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearFrozen()
public GenerativeSettings.FallbackSettings.PromptTemplate.Builder clearFrozen()
If the flag is true, the prompt is frozen and cannot be modified by
users.
bool frozen = 3;
clearOneof(Descriptors.OneofDescriptor oneof)
public GenerativeSettings.FallbackSettings.PromptTemplate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPromptText()
public GenerativeSettings.FallbackSettings.PromptTemplate.Builder clearPromptText()
Prompt text that is sent to a LLM on no-match default, placeholders are
filled downstream. For example: "Here is a conversation $conversation,
a response is: "
string prompt_text = 2;
clone()
public GenerativeSettings.FallbackSettings.PromptTemplate.Builder clone()
Overrides
getDefaultInstanceForType()
public GenerativeSettings.FallbackSettings.PromptTemplate getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getDisplayName()
public String getDisplayName()
Prompt name.
string display_name = 1;
Returns |
Type |
Description |
String |
The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Prompt name.
string display_name = 1;
Returns |
Type |
Description |
ByteString |
The bytes for displayName.
|
getFrozen()
public boolean getFrozen()
If the flag is true, the prompt is frozen and cannot be modified by
users.
bool frozen = 3;
Returns |
Type |
Description |
boolean |
The frozen.
|
getPromptText()
public String getPromptText()
Prompt text that is sent to a LLM on no-match default, placeholders are
filled downstream. For example: "Here is a conversation $conversation,
a response is: "
string prompt_text = 2;
Returns |
Type |
Description |
String |
The promptText.
|
getPromptTextBytes()
public ByteString getPromptTextBytes()
Prompt text that is sent to a LLM on no-match default, placeholders are
filled downstream. For example: "Here is a conversation $conversation,
a response is: "
string prompt_text = 2;
Returns |
Type |
Description |
ByteString |
The bytes for promptText.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(GenerativeSettings.FallbackSettings.PromptTemplate other)
public GenerativeSettings.FallbackSettings.PromptTemplate.Builder mergeFrom(GenerativeSettings.FallbackSettings.PromptTemplate other)
public GenerativeSettings.FallbackSettings.PromptTemplate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public GenerativeSettings.FallbackSettings.PromptTemplate.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GenerativeSettings.FallbackSettings.PromptTemplate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setDisplayName(String value)
public GenerativeSettings.FallbackSettings.PromptTemplate.Builder setDisplayName(String value)
Prompt name.
string display_name = 1;
Parameter |
Name |
Description |
value |
String
The displayName to set.
|
setDisplayNameBytes(ByteString value)
public GenerativeSettings.FallbackSettings.PromptTemplate.Builder setDisplayNameBytes(ByteString value)
Prompt name.
string display_name = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for displayName to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public GenerativeSettings.FallbackSettings.PromptTemplate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setFrozen(boolean value)
public GenerativeSettings.FallbackSettings.PromptTemplate.Builder setFrozen(boolean value)
If the flag is true, the prompt is frozen and cannot be modified by
users.
bool frozen = 3;
Parameter |
Name |
Description |
value |
boolean
The frozen to set.
|
setPromptText(String value)
public GenerativeSettings.FallbackSettings.PromptTemplate.Builder setPromptText(String value)
Prompt text that is sent to a LLM on no-match default, placeholders are
filled downstream. For example: "Here is a conversation $conversation,
a response is: "
string prompt_text = 2;
Parameter |
Name |
Description |
value |
String
The promptText to set.
|
setPromptTextBytes(ByteString value)
public GenerativeSettings.FallbackSettings.PromptTemplate.Builder setPromptTextBytes(ByteString value)
Prompt text that is sent to a LLM on no-match default, placeholders are
filled downstream. For example: "Here is a conversation $conversation,
a response is: "
string prompt_text = 2;
Parameter |
Name |
Description |
value |
ByteString
The bytes for promptText to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GenerativeSettings.FallbackSettings.PromptTemplate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GenerativeSettings.FallbackSettings.PromptTemplate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides