Class Playbook.Builder (0.52.0)

public static final class Playbook.Builder extends GeneratedMessageV3.Builder<Playbook.Builder> implements PlaybookOrBuilder

Playbook is the basic building block to instruct the LLM how to execute a certain task.

A playbook consists of a goal to accomplish, an optional list of step by step instructions (the step instruction may refers to name of the custom or default plugin tools to use) to perform the task, a list of contextual input data to be passed in at the beginning of the invoked, and a list of output parameters to store the playbook result.

Protobuf type google.cloud.dialogflow.cx.v3beta1.Playbook

Implements

PlaybookOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllInputParameterDefinitions(Iterable<? extends ParameterDefinition> values)

public Playbook.Builder addAllInputParameterDefinitions(Iterable<? extends ParameterDefinition> values)

Optional. Defined structured input parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition input_parameter_definitions = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3beta1.ParameterDefinition>
Returns
TypeDescription
Playbook.Builder

addAllOutputParameterDefinitions(Iterable<? extends ParameterDefinition> values)

public Playbook.Builder addAllOutputParameterDefinitions(Iterable<? extends ParameterDefinition> values)

Optional. Defined structured output parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition output_parameter_definitions = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3beta1.ParameterDefinition>
Returns
TypeDescription
Playbook.Builder

addAllReferencedFlows(Iterable<String> values)

public Playbook.Builder addAllReferencedFlows(Iterable<String> values)

Output only. The resource name of flows referenced by the current playbook in the instructions.

repeated string referenced_flows = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valuesIterable<String>

The referencedFlows to add.

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

addAllReferencedPlaybooks(Iterable<String> values)

public Playbook.Builder addAllReferencedPlaybooks(Iterable<String> values)

Output only. The resource name of other playbooks referenced by the current playbook in the instructions.

repeated string referenced_playbooks = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valuesIterable<String>

The referencedPlaybooks to add.

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

addAllReferencedTools(Iterable<String> values)

public Playbook.Builder addAllReferencedTools(Iterable<String> values)

Optional. The resource name of tools referenced by the current playbook in the instructions. If not provided explicitly, they are will be implied using the tool being referenced in goal and steps.

repeated string referenced_tools = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valuesIterable<String>

The referencedTools to add.

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

addAllSteps(Iterable<? extends Playbook.Step> values)

public Playbook.Builder addAllSteps(Iterable<? extends Playbook.Step> values)

Ordered list of step by step execution instructions to accomplish target goal.

repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3beta1.Playbook.Step>
Returns
TypeDescription
Playbook.Builder

addInputParameterDefinitions(ParameterDefinition value)

public Playbook.Builder addInputParameterDefinitions(ParameterDefinition value)

Optional. Defined structured input parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition input_parameter_definitions = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueParameterDefinition
Returns
TypeDescription
Playbook.Builder

addInputParameterDefinitions(ParameterDefinition.Builder builderForValue)

public Playbook.Builder addInputParameterDefinitions(ParameterDefinition.Builder builderForValue)

Optional. Defined structured input parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition input_parameter_definitions = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueParameterDefinition.Builder
Returns
TypeDescription
Playbook.Builder

addInputParameterDefinitions(int index, ParameterDefinition value)

public Playbook.Builder addInputParameterDefinitions(int index, ParameterDefinition value)

Optional. Defined structured input parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition input_parameter_definitions = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueParameterDefinition
Returns
TypeDescription
Playbook.Builder

addInputParameterDefinitions(int index, ParameterDefinition.Builder builderForValue)

public Playbook.Builder addInputParameterDefinitions(int index, ParameterDefinition.Builder builderForValue)

Optional. Defined structured input parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition input_parameter_definitions = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueParameterDefinition.Builder
Returns
TypeDescription
Playbook.Builder

addInputParameterDefinitionsBuilder()

public ParameterDefinition.Builder addInputParameterDefinitionsBuilder()

Optional. Defined structured input parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition input_parameter_definitions = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ParameterDefinition.Builder

addInputParameterDefinitionsBuilder(int index)

public ParameterDefinition.Builder addInputParameterDefinitionsBuilder(int index)

Optional. Defined structured input parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition input_parameter_definitions = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ParameterDefinition.Builder

addOutputParameterDefinitions(ParameterDefinition value)

public Playbook.Builder addOutputParameterDefinitions(ParameterDefinition value)

Optional. Defined structured output parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition output_parameter_definitions = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueParameterDefinition
Returns
TypeDescription
Playbook.Builder

addOutputParameterDefinitions(ParameterDefinition.Builder builderForValue)

public Playbook.Builder addOutputParameterDefinitions(ParameterDefinition.Builder builderForValue)

Optional. Defined structured output parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition output_parameter_definitions = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueParameterDefinition.Builder
Returns
TypeDescription
Playbook.Builder

addOutputParameterDefinitions(int index, ParameterDefinition value)

public Playbook.Builder addOutputParameterDefinitions(int index, ParameterDefinition value)

Optional. Defined structured output parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition output_parameter_definitions = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueParameterDefinition
Returns
TypeDescription
Playbook.Builder

addOutputParameterDefinitions(int index, ParameterDefinition.Builder builderForValue)

public Playbook.Builder addOutputParameterDefinitions(int index, ParameterDefinition.Builder builderForValue)

Optional. Defined structured output parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition output_parameter_definitions = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueParameterDefinition.Builder
Returns
TypeDescription
Playbook.Builder

addOutputParameterDefinitionsBuilder()

public ParameterDefinition.Builder addOutputParameterDefinitionsBuilder()

Optional. Defined structured output parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition output_parameter_definitions = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ParameterDefinition.Builder

addOutputParameterDefinitionsBuilder(int index)

public ParameterDefinition.Builder addOutputParameterDefinitionsBuilder(int index)

Optional. Defined structured output parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition output_parameter_definitions = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ParameterDefinition.Builder

addReferencedFlows(String value)

public Playbook.Builder addReferencedFlows(String value)

Output only. The resource name of flows referenced by the current playbook in the instructions.

repeated string referenced_flows = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The referencedFlows to add.

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

addReferencedFlowsBytes(ByteString value)

public Playbook.Builder addReferencedFlowsBytes(ByteString value)

Output only. The resource name of flows referenced by the current playbook in the instructions.

repeated string referenced_flows = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes of the referencedFlows to add.

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

addReferencedPlaybooks(String value)

public Playbook.Builder addReferencedPlaybooks(String value)

Output only. The resource name of other playbooks referenced by the current playbook in the instructions.

repeated string referenced_playbooks = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The referencedPlaybooks to add.

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

addReferencedPlaybooksBytes(ByteString value)

public Playbook.Builder addReferencedPlaybooksBytes(ByteString value)

Output only. The resource name of other playbooks referenced by the current playbook in the instructions.

repeated string referenced_playbooks = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes of the referencedPlaybooks to add.

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

addReferencedTools(String value)

public Playbook.Builder addReferencedTools(String value)

Optional. The resource name of tools referenced by the current playbook in the instructions. If not provided explicitly, they are will be implied using the tool being referenced in goal and steps.

repeated string referenced_tools = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The referencedTools to add.

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

addReferencedToolsBytes(ByteString value)

public Playbook.Builder addReferencedToolsBytes(ByteString value)

Optional. The resource name of tools referenced by the current playbook in the instructions. If not provided explicitly, they are will be implied using the tool being referenced in goal and steps.

repeated string referenced_tools = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes of the referencedTools to add.

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Playbook.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Playbook.Builder
Overrides

addSteps(Playbook.Step value)

public Playbook.Builder addSteps(Playbook.Step value)

Ordered list of step by step execution instructions to accomplish target goal.

repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4;

Parameter
NameDescription
valuePlaybook.Step
Returns
TypeDescription
Playbook.Builder

addSteps(Playbook.Step.Builder builderForValue)

public Playbook.Builder addSteps(Playbook.Step.Builder builderForValue)

Ordered list of step by step execution instructions to accomplish target goal.

repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4;

Parameter
NameDescription
builderForValuePlaybook.Step.Builder
Returns
TypeDescription
Playbook.Builder

addSteps(int index, Playbook.Step value)

public Playbook.Builder addSteps(int index, Playbook.Step value)

Ordered list of step by step execution instructions to accomplish target goal.

repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4;

Parameters
NameDescription
indexint
valuePlaybook.Step
Returns
TypeDescription
Playbook.Builder

addSteps(int index, Playbook.Step.Builder builderForValue)

public Playbook.Builder addSteps(int index, Playbook.Step.Builder builderForValue)

Ordered list of step by step execution instructions to accomplish target goal.

repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4;

Parameters
NameDescription
indexint
builderForValuePlaybook.Step.Builder
Returns
TypeDescription
Playbook.Builder

addStepsBuilder()

public Playbook.Step.Builder addStepsBuilder()

Ordered list of step by step execution instructions to accomplish target goal.

repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4;

Returns
TypeDescription
Playbook.Step.Builder

addStepsBuilder(int index)

public Playbook.Step.Builder addStepsBuilder(int index)

Ordered list of step by step execution instructions to accomplish target goal.

repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Playbook.Step.Builder

build()

public Playbook build()
Returns
TypeDescription
Playbook

buildPartial()

public Playbook buildPartial()
Returns
TypeDescription
Playbook

clear()

public Playbook.Builder clear()
Returns
TypeDescription
Playbook.Builder
Overrides

clearCreateTime()

public Playbook.Builder clearCreateTime()

Output only. The timestamp of initial playbook creation.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Playbook.Builder

clearDisplayName()

public Playbook.Builder clearDisplayName()

Required. The human-readable name of the playbook, unique within an agent.

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

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Playbook.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Playbook.Builder
Overrides

clearGoal()

public Playbook.Builder clearGoal()

Required. High level description of the goal the playbook intend to accomplish.

string goal = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

clearInputParameterDefinitions()

public Playbook.Builder clearInputParameterDefinitions()

Optional. Defined structured input parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition input_parameter_definitions = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Playbook.Builder

clearLlmModelSettings()

public Playbook.Builder clearLlmModelSettings()

Optional. Llm model settings for the playbook.

.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Playbook.Builder

clearName()

public Playbook.Builder clearName()

The unique identifier of the playbook. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/playbooks/<Playbook ID>.

string name = 1;

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Playbook.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Playbook.Builder
Overrides

clearOutputParameterDefinitions()

public Playbook.Builder clearOutputParameterDefinitions()

Optional. Defined structured output parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition output_parameter_definitions = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Playbook.Builder

clearReferencedFlows()

public Playbook.Builder clearReferencedFlows()

Output only. The resource name of flows referenced by the current playbook in the instructions.

repeated string referenced_flows = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

clearReferencedPlaybooks()

public Playbook.Builder clearReferencedPlaybooks()

Output only. The resource name of other playbooks referenced by the current playbook in the instructions.

repeated string referenced_playbooks = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

clearReferencedTools()

public Playbook.Builder clearReferencedTools()

Optional. The resource name of tools referenced by the current playbook in the instructions. If not provided explicitly, they are will be implied using the tool being referenced in goal and steps.

repeated string referenced_tools = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

clearSteps()

public Playbook.Builder clearSteps()

Ordered list of step by step execution instructions to accomplish target goal.

repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4;

Returns
TypeDescription
Playbook.Builder

clearTokenCount()

public Playbook.Builder clearTokenCount()

Output only. Estimated number of tokes current playbook takes when sent to the LLM.

int64 token_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

clearUpdateTime()

public Playbook.Builder clearUpdateTime()

Output only. Last time the playbook version was updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Playbook.Builder

clone()

public Playbook.Builder clone()
Returns
TypeDescription
Playbook.Builder
Overrides

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp of initial playbook creation.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The timestamp of initial playbook creation.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp of initial playbook creation.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Playbook getDefaultInstanceForType()
Returns
TypeDescription
Playbook

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Required. The human-readable name of the playbook, unique within an agent.

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

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Required. The human-readable name of the playbook, unique within an agent.

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

Returns
TypeDescription
ByteString

The bytes for displayName.

getGoal()

public String getGoal()

Required. High level description of the goal the playbook intend to accomplish.

string goal = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The goal.

getGoalBytes()

public ByteString getGoalBytes()

Required. High level description of the goal the playbook intend to accomplish.

string goal = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for goal.

getInputParameterDefinitions(int index)

public ParameterDefinition getInputParameterDefinitions(int index)

Optional. Defined structured input parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition input_parameter_definitions = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ParameterDefinition

getInputParameterDefinitionsBuilder(int index)

public ParameterDefinition.Builder getInputParameterDefinitionsBuilder(int index)

Optional. Defined structured input parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition input_parameter_definitions = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ParameterDefinition.Builder

getInputParameterDefinitionsBuilderList()

public List<ParameterDefinition.Builder> getInputParameterDefinitionsBuilderList()

Optional. Defined structured input parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition input_parameter_definitions = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Builder>

getInputParameterDefinitionsCount()

public int getInputParameterDefinitionsCount()

Optional. Defined structured input parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition input_parameter_definitions = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getInputParameterDefinitionsList()

public List<ParameterDefinition> getInputParameterDefinitionsList()

Optional. Defined structured input parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition input_parameter_definitions = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<ParameterDefinition>

getInputParameterDefinitionsOrBuilder(int index)

public ParameterDefinitionOrBuilder getInputParameterDefinitionsOrBuilder(int index)

Optional. Defined structured input parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition input_parameter_definitions = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ParameterDefinitionOrBuilder

getInputParameterDefinitionsOrBuilderList()

public List<? extends ParameterDefinitionOrBuilder> getInputParameterDefinitionsOrBuilderList()

Optional. Defined structured input parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition input_parameter_definitions = 5 [(.google.api.field_behavior) = OPTIONAL];

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

getLlmModelSettings()

public LlmModelSettings getLlmModelSettings()

Optional. Llm model settings for the playbook.

.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
LlmModelSettings

The llmModelSettings.

getLlmModelSettingsBuilder()

public LlmModelSettings.Builder getLlmModelSettingsBuilder()

Optional. Llm model settings for the playbook.

.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
LlmModelSettings.Builder

getLlmModelSettingsOrBuilder()

public LlmModelSettingsOrBuilder getLlmModelSettingsOrBuilder()

Optional. Llm model settings for the playbook.

.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
LlmModelSettingsOrBuilder

getName()

public String getName()

The unique identifier of the playbook. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/playbooks/<Playbook ID>.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The unique identifier of the playbook. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/playbooks/<Playbook ID>.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getOutputParameterDefinitions(int index)

public ParameterDefinition getOutputParameterDefinitions(int index)

Optional. Defined structured output parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition output_parameter_definitions = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ParameterDefinition

getOutputParameterDefinitionsBuilder(int index)

public ParameterDefinition.Builder getOutputParameterDefinitionsBuilder(int index)

Optional. Defined structured output parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition output_parameter_definitions = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ParameterDefinition.Builder

getOutputParameterDefinitionsBuilderList()

public List<ParameterDefinition.Builder> getOutputParameterDefinitionsBuilderList()

Optional. Defined structured output parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition output_parameter_definitions = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Builder>

getOutputParameterDefinitionsCount()

public int getOutputParameterDefinitionsCount()

Optional. Defined structured output parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition output_parameter_definitions = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getOutputParameterDefinitionsList()

public List<ParameterDefinition> getOutputParameterDefinitionsList()

Optional. Defined structured output parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition output_parameter_definitions = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<ParameterDefinition>

getOutputParameterDefinitionsOrBuilder(int index)

public ParameterDefinitionOrBuilder getOutputParameterDefinitionsOrBuilder(int index)

Optional. Defined structured output parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition output_parameter_definitions = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ParameterDefinitionOrBuilder

getOutputParameterDefinitionsOrBuilderList()

public List<? extends ParameterDefinitionOrBuilder> getOutputParameterDefinitionsOrBuilderList()

Optional. Defined structured output parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition output_parameter_definitions = 6 [(.google.api.field_behavior) = OPTIONAL];

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

getReferencedFlows(int index)

public String getReferencedFlows(int index)

Output only. The resource name of flows referenced by the current playbook in the instructions.

repeated string referenced_flows = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The referencedFlows at the given index.

getReferencedFlowsBytes(int index)

public ByteString getReferencedFlowsBytes(int index)

Output only. The resource name of flows referenced by the current playbook in the instructions.

repeated string referenced_flows = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the referencedFlows at the given index.

getReferencedFlowsCount()

public int getReferencedFlowsCount()

Output only. The resource name of flows referenced by the current playbook in the instructions.

repeated string referenced_flows = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
int

The count of referencedFlows.

getReferencedFlowsList()

public ProtocolStringList getReferencedFlowsList()

Output only. The resource name of flows referenced by the current playbook in the instructions.

repeated string referenced_flows = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ProtocolStringList

A list containing the referencedFlows.

getReferencedPlaybooks(int index)

public String getReferencedPlaybooks(int index)

Output only. The resource name of other playbooks referenced by the current playbook in the instructions.

repeated string referenced_playbooks = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The referencedPlaybooks at the given index.

getReferencedPlaybooksBytes(int index)

public ByteString getReferencedPlaybooksBytes(int index)

Output only. The resource name of other playbooks referenced by the current playbook in the instructions.

repeated string referenced_playbooks = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the referencedPlaybooks at the given index.

getReferencedPlaybooksCount()

public int getReferencedPlaybooksCount()

Output only. The resource name of other playbooks referenced by the current playbook in the instructions.

repeated string referenced_playbooks = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
int

The count of referencedPlaybooks.

getReferencedPlaybooksList()

public ProtocolStringList getReferencedPlaybooksList()

Output only. The resource name of other playbooks referenced by the current playbook in the instructions.

repeated string referenced_playbooks = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ProtocolStringList

A list containing the referencedPlaybooks.

getReferencedTools(int index)

public String getReferencedTools(int index)

Optional. The resource name of tools referenced by the current playbook in the instructions. If not provided explicitly, they are will be implied using the tool being referenced in goal and steps.

repeated string referenced_tools = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The referencedTools at the given index.

getReferencedToolsBytes(int index)

public ByteString getReferencedToolsBytes(int index)

Optional. The resource name of tools referenced by the current playbook in the instructions. If not provided explicitly, they are will be implied using the tool being referenced in goal and steps.

repeated string referenced_tools = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the referencedTools at the given index.

getReferencedToolsCount()

public int getReferencedToolsCount()

Optional. The resource name of tools referenced by the current playbook in the instructions. If not provided explicitly, they are will be implied using the tool being referenced in goal and steps.

repeated string referenced_tools = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
int

The count of referencedTools.

getReferencedToolsList()

public ProtocolStringList getReferencedToolsList()

Optional. The resource name of tools referenced by the current playbook in the instructions. If not provided explicitly, they are will be implied using the tool being referenced in goal and steps.

repeated string referenced_tools = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ProtocolStringList

A list containing the referencedTools.

getSteps(int index)

public Playbook.Step getSteps(int index)

Ordered list of step by step execution instructions to accomplish target goal.

repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Playbook.Step

getStepsBuilder(int index)

public Playbook.Step.Builder getStepsBuilder(int index)

Ordered list of step by step execution instructions to accomplish target goal.

repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Playbook.Step.Builder

getStepsBuilderList()

public List<Playbook.Step.Builder> getStepsBuilderList()

Ordered list of step by step execution instructions to accomplish target goal.

repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4;

Returns
TypeDescription
List<Builder>

getStepsCount()

public int getStepsCount()

Ordered list of step by step execution instructions to accomplish target goal.

repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4;

Returns
TypeDescription
int

getStepsList()

public List<Playbook.Step> getStepsList()

Ordered list of step by step execution instructions to accomplish target goal.

repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4;

Returns
TypeDescription
List<Step>

getStepsOrBuilder(int index)

public Playbook.StepOrBuilder getStepsOrBuilder(int index)

Ordered list of step by step execution instructions to accomplish target goal.

repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Playbook.StepOrBuilder

getStepsOrBuilderList()

public List<? extends Playbook.StepOrBuilder> getStepsOrBuilderList()

Ordered list of step by step execution instructions to accomplish target goal.

repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.cx.v3beta1.Playbook.StepOrBuilder>

getTokenCount()

public long getTokenCount()

Output only. Estimated number of tokes current playbook takes when sent to the LLM.

int64 token_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
long

The tokenCount.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Last time the playbook version was updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Last time the playbook version was updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Last time the playbook version was updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp of initial playbook creation.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasLlmModelSettings()

public boolean hasLlmModelSettings()

Optional. Llm model settings for the playbook.

.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the llmModelSettings field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. Last time the playbook version was updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Playbook.Builder mergeCreateTime(Timestamp value)

Output only. The timestamp of initial playbook creation.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Playbook.Builder

mergeFrom(Playbook other)

public Playbook.Builder mergeFrom(Playbook other)
Parameter
NameDescription
otherPlaybook
Returns
TypeDescription
Playbook.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Playbook.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Playbook.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Playbook.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Playbook.Builder
Overrides

mergeLlmModelSettings(LlmModelSettings value)

public Playbook.Builder mergeLlmModelSettings(LlmModelSettings value)

Optional. Llm model settings for the playbook.

.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueLlmModelSettings
Returns
TypeDescription
Playbook.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Playbook.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Playbook.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Playbook.Builder mergeUpdateTime(Timestamp value)

Output only. Last time the playbook version was updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Playbook.Builder

removeInputParameterDefinitions(int index)

public Playbook.Builder removeInputParameterDefinitions(int index)

Optional. Defined structured input parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition input_parameter_definitions = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
Playbook.Builder

removeOutputParameterDefinitions(int index)

public Playbook.Builder removeOutputParameterDefinitions(int index)

Optional. Defined structured output parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition output_parameter_definitions = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
Playbook.Builder

removeSteps(int index)

public Playbook.Builder removeSteps(int index)

Ordered list of step by step execution instructions to accomplish target goal.

repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Playbook.Builder

setCreateTime(Timestamp value)

public Playbook.Builder setCreateTime(Timestamp value)

Output only. The timestamp of initial playbook creation.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Playbook.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Playbook.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The timestamp of initial playbook creation.

.google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Playbook.Builder

setDisplayName(String value)

public Playbook.Builder setDisplayName(String value)

Required. The human-readable name of the playbook, unique within an agent.

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

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public Playbook.Builder setDisplayNameBytes(ByteString value)

Required. The human-readable name of the playbook, unique within an agent.

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

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Playbook.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Playbook.Builder
Overrides

setGoal(String value)

public Playbook.Builder setGoal(String value)

Required. High level description of the goal the playbook intend to accomplish.

string goal = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The goal to set.

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

setGoalBytes(ByteString value)

public Playbook.Builder setGoalBytes(ByteString value)

Required. High level description of the goal the playbook intend to accomplish.

string goal = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for goal to set.

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

setInputParameterDefinitions(int index, ParameterDefinition value)

public Playbook.Builder setInputParameterDefinitions(int index, ParameterDefinition value)

Optional. Defined structured input parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition input_parameter_definitions = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueParameterDefinition
Returns
TypeDescription
Playbook.Builder

setInputParameterDefinitions(int index, ParameterDefinition.Builder builderForValue)

public Playbook.Builder setInputParameterDefinitions(int index, ParameterDefinition.Builder builderForValue)

Optional. Defined structured input parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition input_parameter_definitions = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueParameterDefinition.Builder
Returns
TypeDescription
Playbook.Builder

setLlmModelSettings(LlmModelSettings value)

public Playbook.Builder setLlmModelSettings(LlmModelSettings value)

Optional. Llm model settings for the playbook.

.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueLlmModelSettings
Returns
TypeDescription
Playbook.Builder

setLlmModelSettings(LlmModelSettings.Builder builderForValue)

public Playbook.Builder setLlmModelSettings(LlmModelSettings.Builder builderForValue)

Optional. Llm model settings for the playbook.

.google.cloud.dialogflow.cx.v3beta1.LlmModelSettings llm_model_settings = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueLlmModelSettings.Builder
Returns
TypeDescription
Playbook.Builder

setName(String value)

public Playbook.Builder setName(String value)

The unique identifier of the playbook. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/playbooks/<Playbook ID>.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Playbook.Builder setNameBytes(ByteString value)

The unique identifier of the playbook. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/playbooks/<Playbook ID>.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

setOutputParameterDefinitions(int index, ParameterDefinition value)

public Playbook.Builder setOutputParameterDefinitions(int index, ParameterDefinition value)

Optional. Defined structured output parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition output_parameter_definitions = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueParameterDefinition
Returns
TypeDescription
Playbook.Builder

setOutputParameterDefinitions(int index, ParameterDefinition.Builder builderForValue)

public Playbook.Builder setOutputParameterDefinitions(int index, ParameterDefinition.Builder builderForValue)

Optional. Defined structured output parameters for this playbook.

repeated .google.cloud.dialogflow.cx.v3beta1.ParameterDefinition output_parameter_definitions = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueParameterDefinition.Builder
Returns
TypeDescription
Playbook.Builder

setReferencedFlows(int index, String value)

public Playbook.Builder setReferencedFlows(int index, String value)

Output only. The resource name of flows referenced by the current playbook in the instructions.

repeated string referenced_flows = 12 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The referencedFlows to set.

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

setReferencedPlaybooks(int index, String value)

public Playbook.Builder setReferencedPlaybooks(int index, String value)

Output only. The resource name of other playbooks referenced by the current playbook in the instructions.

repeated string referenced_playbooks = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The referencedPlaybooks to set.

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

setReferencedTools(int index, String value)

public Playbook.Builder setReferencedTools(int index, String value)

Optional. The resource name of tools referenced by the current playbook in the instructions. If not provided explicitly, they are will be implied using the tool being referenced in goal and steps.

repeated string referenced_tools = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The referencedTools to set.

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

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

public Playbook.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Playbook.Builder
Overrides

setSteps(int index, Playbook.Step value)

public Playbook.Builder setSteps(int index, Playbook.Step value)

Ordered list of step by step execution instructions to accomplish target goal.

repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4;

Parameters
NameDescription
indexint
valuePlaybook.Step
Returns
TypeDescription
Playbook.Builder

setSteps(int index, Playbook.Step.Builder builderForValue)

public Playbook.Builder setSteps(int index, Playbook.Step.Builder builderForValue)

Ordered list of step by step execution instructions to accomplish target goal.

repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 4;

Parameters
NameDescription
indexint
builderForValuePlaybook.Step.Builder
Returns
TypeDescription
Playbook.Builder

setTokenCount(long value)

public Playbook.Builder setTokenCount(long value)

Output only. Estimated number of tokes current playbook takes when sent to the LLM.

int64 token_count = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuelong

The tokenCount to set.

Returns
TypeDescription
Playbook.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Playbook.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Playbook.Builder
Overrides

setUpdateTime(Timestamp value)

public Playbook.Builder setUpdateTime(Timestamp value)

Output only. Last time the playbook version was updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Playbook.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Playbook.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Last time the playbook version was updated.

.google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Playbook.Builder