Class GenerativeSettings.FallbackSettings.Builder (0.44.0)

public static final class GenerativeSettings.FallbackSettings.Builder extends GeneratedMessageV3.Builder<GenerativeSettings.FallbackSettings.Builder> implements GenerativeSettings.FallbackSettingsOrBuilder

Settings for Generative Fallback.

Protobuf type google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings

Static Methods

getDescriptor()

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

Methods

addAllPromptTemplates(Iterable<? extends GenerativeSettings.FallbackSettings.PromptTemplate> values)

public GenerativeSettings.FallbackSettings.Builder addAllPromptTemplates(Iterable<? extends GenerativeSettings.FallbackSettings.PromptTemplate> values)

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate>
Returns
Type Description
GenerativeSettings.FallbackSettings.Builder

addPromptTemplates(GenerativeSettings.FallbackSettings.PromptTemplate value)

public GenerativeSettings.FallbackSettings.Builder addPromptTemplates(GenerativeSettings.FallbackSettings.PromptTemplate value)

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;

Parameter
Name Description
value GenerativeSettings.FallbackSettings.PromptTemplate
Returns
Type Description
GenerativeSettings.FallbackSettings.Builder

addPromptTemplates(GenerativeSettings.FallbackSettings.PromptTemplate.Builder builderForValue)

public GenerativeSettings.FallbackSettings.Builder addPromptTemplates(GenerativeSettings.FallbackSettings.PromptTemplate.Builder builderForValue)

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;

Parameter
Name Description
builderForValue GenerativeSettings.FallbackSettings.PromptTemplate.Builder
Returns
Type Description
GenerativeSettings.FallbackSettings.Builder

addPromptTemplates(int index, GenerativeSettings.FallbackSettings.PromptTemplate value)

public GenerativeSettings.FallbackSettings.Builder addPromptTemplates(int index, GenerativeSettings.FallbackSettings.PromptTemplate value)

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;

Parameters
Name Description
index int
value GenerativeSettings.FallbackSettings.PromptTemplate
Returns
Type Description
GenerativeSettings.FallbackSettings.Builder

addPromptTemplates(int index, GenerativeSettings.FallbackSettings.PromptTemplate.Builder builderForValue)

public GenerativeSettings.FallbackSettings.Builder addPromptTemplates(int index, GenerativeSettings.FallbackSettings.PromptTemplate.Builder builderForValue)

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;

Parameters
Name Description
index int
builderForValue GenerativeSettings.FallbackSettings.PromptTemplate.Builder
Returns
Type Description
GenerativeSettings.FallbackSettings.Builder

addPromptTemplatesBuilder()

public GenerativeSettings.FallbackSettings.PromptTemplate.Builder addPromptTemplatesBuilder()

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;

Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder

addPromptTemplatesBuilder(int index)

public GenerativeSettings.FallbackSettings.PromptTemplate.Builder addPromptTemplatesBuilder(int index)

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;

Parameter
Name Description
index int
Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearField(Descriptors.FieldDescriptor field)

public GenerativeSettings.FallbackSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GenerativeSettings.FallbackSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public GenerativeSettings.FallbackSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GenerativeSettings.FallbackSettings.Builder
Overrides

clearPromptTemplates()

public GenerativeSettings.FallbackSettings.Builder clearPromptTemplates()

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;

Returns
Type Description
GenerativeSettings.FallbackSettings.Builder

clearSelectedPrompt()

public GenerativeSettings.FallbackSettings.Builder clearSelectedPrompt()

Display name of the selected prompt.

string selected_prompt = 3;

Returns
Type Description
GenerativeSettings.FallbackSettings.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPromptTemplates(int index)

public GenerativeSettings.FallbackSettings.PromptTemplate getPromptTemplates(int index)

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;

Parameter
Name Description
index int
Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate

getPromptTemplatesBuilder(int index)

public GenerativeSettings.FallbackSettings.PromptTemplate.Builder getPromptTemplatesBuilder(int index)

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;

Parameter
Name Description
index int
Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplate.Builder

getPromptTemplatesBuilderList()

public List<GenerativeSettings.FallbackSettings.PromptTemplate.Builder> getPromptTemplatesBuilderList()

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;

Returns
Type Description
List<Builder>

getPromptTemplatesCount()

public int getPromptTemplatesCount()

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;

Returns
Type Description
int

getPromptTemplatesList()

public List<GenerativeSettings.FallbackSettings.PromptTemplate> getPromptTemplatesList()

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;

Returns
Type Description
List<PromptTemplate>

getPromptTemplatesOrBuilder(int index)

public GenerativeSettings.FallbackSettings.PromptTemplateOrBuilder getPromptTemplatesOrBuilder(int index)

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;

Parameter
Name Description
index int
Returns
Type Description
GenerativeSettings.FallbackSettings.PromptTemplateOrBuilder

getPromptTemplatesOrBuilderList()

public List<? extends GenerativeSettings.FallbackSettings.PromptTemplateOrBuilder> getPromptTemplatesOrBuilderList()

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplateOrBuilder>

getSelectedPrompt()

public String getSelectedPrompt()

Display name of the selected prompt.

string selected_prompt = 3;

Returns
Type Description
String

The selectedPrompt.

getSelectedPromptBytes()

public ByteString getSelectedPromptBytes()

Display name of the selected prompt.

string selected_prompt = 3;

Returns
Type Description
ByteString

The bytes for selectedPrompt.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GenerativeSettings.FallbackSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePromptTemplates(int index)

public GenerativeSettings.FallbackSettings.Builder removePromptTemplates(int index)

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;

Parameter
Name Description
index int
Returns
Type Description
GenerativeSettings.FallbackSettings.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPromptTemplates(int index, GenerativeSettings.FallbackSettings.PromptTemplate value)

public GenerativeSettings.FallbackSettings.Builder setPromptTemplates(int index, GenerativeSettings.FallbackSettings.PromptTemplate value)

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;

Parameters
Name Description
index int
value GenerativeSettings.FallbackSettings.PromptTemplate
Returns
Type Description
GenerativeSettings.FallbackSettings.Builder

setPromptTemplates(int index, GenerativeSettings.FallbackSettings.PromptTemplate.Builder builderForValue)

public GenerativeSettings.FallbackSettings.Builder setPromptTemplates(int index, GenerativeSettings.FallbackSettings.PromptTemplate.Builder builderForValue)

Stored prompts that can be selected, for example default templates like "conservative" or "chatty", or user defined ones.

repeated .google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate prompt_templates = 4;

Parameters
Name Description
index int
builderForValue GenerativeSettings.FallbackSettings.PromptTemplate.Builder
Returns
Type Description
GenerativeSettings.FallbackSettings.Builder

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

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

setSelectedPrompt(String value)

public GenerativeSettings.FallbackSettings.Builder setSelectedPrompt(String value)

Display name of the selected prompt.

string selected_prompt = 3;

Parameter
Name Description
value String

The selectedPrompt to set.

Returns
Type Description
GenerativeSettings.FallbackSettings.Builder

This builder for chaining.

setSelectedPromptBytes(ByteString value)

public GenerativeSettings.FallbackSettings.Builder setSelectedPromptBytes(ByteString value)

Display name of the selected prompt.

string selected_prompt = 3;

Parameter
Name Description
value ByteString

The bytes for selectedPrompt to set.

Returns
Type Description
GenerativeSettings.FallbackSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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