Interface GeneratorOrBuilder (0.52.0)

public interface GeneratorOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDisplayName()

public abstract String getDisplayName()

Required. The human-readable name of the generator, unique within the agent. The prompt contains pre-defined parameters such as $conversation, $last-user-utterance, etc. populated by Dialogflow. It can also contain custom placeholders which will be resolved during fulfillment.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public abstract ByteString getDisplayNameBytes()

Required. The human-readable name of the generator, unique within the agent. The prompt contains pre-defined parameters such as $conversation, $last-user-utterance, etc. populated by Dialogflow. It can also contain custom placeholders which will be resolved during fulfillment.

string display_name = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for displayName.

getLlmModelSettings()

public abstract LlmModelSettings getLlmModelSettings()

The LLM model settings.

.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 9;

Returns
TypeDescription
LlmModelSettings

The llmModelSettings.

getLlmModelSettingsOrBuilder()

public abstract LlmModelSettingsOrBuilder getLlmModelSettingsOrBuilder()

The LLM model settings.

.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 9;

Returns
TypeDescription
LlmModelSettingsOrBuilder

getName()

public abstract String getName()

The unique identifier of the generator. Must be set for the Generators.UpdateGenerator method. [Generators.CreateGenerate][] populates the name automatically. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/generators/<Generator ID>.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

The unique identifier of the generator. Must be set for the Generators.UpdateGenerator method. [Generators.CreateGenerate][] populates the name automatically. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/generators/<Generator ID>.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getPlaceholders(int index)

public abstract Generator.Placeholder getPlaceholders(int index)

Optional. List of custom placeholders in the prompt text.

repeated .google.cloud.dialogflow.cx.v3beta1.Generator.Placeholder placeholders = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
Generator.Placeholder

getPlaceholdersCount()

public abstract int getPlaceholdersCount()

Optional. List of custom placeholders in the prompt text.

repeated .google.cloud.dialogflow.cx.v3beta1.Generator.Placeholder placeholders = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getPlaceholdersList()

public abstract List<Generator.Placeholder> getPlaceholdersList()

Optional. List of custom placeholders in the prompt text.

repeated .google.cloud.dialogflow.cx.v3beta1.Generator.Placeholder placeholders = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Placeholder>

getPlaceholdersOrBuilder(int index)

public abstract Generator.PlaceholderOrBuilder getPlaceholdersOrBuilder(int index)

Optional. List of custom placeholders in the prompt text.

repeated .google.cloud.dialogflow.cx.v3beta1.Generator.Placeholder placeholders = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
Generator.PlaceholderOrBuilder

getPlaceholdersOrBuilderList()

public abstract List<? extends Generator.PlaceholderOrBuilder> getPlaceholdersOrBuilderList()

Optional. List of custom placeholders in the prompt text.

repeated .google.cloud.dialogflow.cx.v3beta1.Generator.Placeholder placeholders = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.cx.v3beta1.Generator.PlaceholderOrBuilder>

getPromptText()

public abstract Phrase getPromptText()

Required. Prompt for the LLM model.

.google.cloud.dialogflow.cx.v3beta1.Phrase prompt_text = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Phrase

The promptText.

getPromptTextOrBuilder()

public abstract PhraseOrBuilder getPromptTextOrBuilder()

Required. Prompt for the LLM model.

.google.cloud.dialogflow.cx.v3beta1.Phrase prompt_text = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PhraseOrBuilder

hasLlmModelSettings()

public abstract boolean hasLlmModelSettings()

The LLM model settings.

.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 9;

Returns
TypeDescription
boolean

Whether the llmModelSettings field is set.

hasPromptText()

public abstract boolean hasPromptText()

Required. Prompt for the LLM model.

.google.cloud.dialogflow.cx.v3beta1.Phrase prompt_text = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the promptText field is set.