Class GenerativeSettings.FallbackSettings.PromptTemplate.Builder (0.53.0)

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.v3.GenerativeSettings.FallbackSettings.PromptTemplate

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GenerativeSettings.FallbackSettings.PromptTemplate.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GenerativeSettings.FallbackSettings.PromptTemplate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder
Overrides

build()

public GenerativeSettings.FallbackSettings.PromptTemplate build()
Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate

buildPartial()

public GenerativeSettings.FallbackSettings.PromptTemplate buildPartial()
Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate

clear()

public GenerativeSettings.FallbackSettings.PromptTemplate.Builder clear()
Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder
Overrides

clearDisplayName()

public GenerativeSettings.FallbackSettings.PromptTemplate.Builder clearDisplayName()

Prompt name.

string display_name = 1;

Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public GenerativeSettings.FallbackSettings.PromptTemplate.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder
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;

Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GenerativeSettings.FallbackSettings.PromptTemplate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder
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;

Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder

This builder for chaining.

clone()

public GenerativeSettings.FallbackSettings.PromptTemplate.Builder clone()
Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder
Overrides

getDefaultInstanceForType()

public GenerativeSettings.FallbackSettings.PromptTemplate getDefaultInstanceForType()
Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GenerativeSettings.FallbackSettings.PromptTemplate other)

public GenerativeSettings.FallbackSettings.PromptTemplate.Builder mergeFrom(GenerativeSettings.FallbackSettings.PromptTemplate other)
Parameter
Name Description
other GenerativeSettings.FallbackSettings.PromptTemplate
Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GenerativeSettings.FallbackSettings.PromptTemplate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GenerativeSettings.FallbackSettings.PromptTemplate.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GenerativeSettings.FallbackSettings.PromptTemplate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder
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.

Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder

This builder for chaining.

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.

Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public GenerativeSettings.FallbackSettings.PromptTemplate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder
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.

Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder

This builder for chaining.

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.

Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder

This builder for chaining.

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.

Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GenerativeSettings.FallbackSettings.PromptTemplate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GenerativeSettings.FallbackSettings.PromptTemplate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder
Overrides