Class Playbook.Instruction.Builder (0.71.0)

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

Message of the Instruction of the playbook.

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

Static Methods

getDescriptor()

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

Methods

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

public Playbook.Instruction.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 = 2;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSteps(Playbook.Step value)

public Playbook.Instruction.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 = 2;

Parameter
NameDescription
valuePlaybook.Step
Returns
TypeDescription
Playbook.Instruction.Builder

addSteps(Playbook.Step.Builder builderForValue)

public Playbook.Instruction.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 = 2;

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

addSteps(int index, Playbook.Step value)

public Playbook.Instruction.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 = 2;

Parameters
NameDescription
indexint
valuePlaybook.Step
Returns
TypeDescription
Playbook.Instruction.Builder

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

public Playbook.Instruction.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 = 2;

Parameters
NameDescription
indexint
builderForValuePlaybook.Step.Builder
Returns
TypeDescription
Playbook.Instruction.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 = 2;

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 = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Playbook.Step.Builder

build()

public Playbook.Instruction build()
Returns
TypeDescription
Playbook.Instruction

buildPartial()

public Playbook.Instruction buildPartial()
Returns
TypeDescription
Playbook.Instruction

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGuidelines()

public Playbook.Instruction.Builder clearGuidelines()

General guidelines for the playbook. These are unstructured instructions that are not directly part of the goal, e.g. "Always be polite". It's valid for this text to be long and used instead of steps altogether.

string guidelines = 1;

Returns
TypeDescription
Playbook.Instruction.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSteps()

public Playbook.Instruction.Builder clearSteps()

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

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

Returns
TypeDescription
Playbook.Instruction.Builder

clone()

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

getDefaultInstanceForType()

public Playbook.Instruction getDefaultInstanceForType()
Returns
TypeDescription
Playbook.Instruction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGuidelines()

public String getGuidelines()

General guidelines for the playbook. These are unstructured instructions that are not directly part of the goal, e.g. "Always be polite". It's valid for this text to be long and used instead of steps altogether.

string guidelines = 1;

Returns
TypeDescription
String

The guidelines.

getGuidelinesBytes()

public ByteString getGuidelinesBytes()

General guidelines for the playbook. These are unstructured instructions that are not directly part of the goal, e.g. "Always be polite". It's valid for this text to be long and used instead of steps altogether.

string guidelines = 1;

Returns
TypeDescription
ByteString

The bytes for guidelines.

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 = 2;

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 = 2;

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 = 2;

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 = 2;

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 = 2;

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 = 2;

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 = 2;

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Playbook.Instruction other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSteps(int index)

public Playbook.Instruction.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 = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
Playbook.Instruction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGuidelines(String value)

public Playbook.Instruction.Builder setGuidelines(String value)

General guidelines for the playbook. These are unstructured instructions that are not directly part of the goal, e.g. "Always be polite". It's valid for this text to be long and used instead of steps altogether.

string guidelines = 1;

Parameter
NameDescription
valueString

The guidelines to set.

Returns
TypeDescription
Playbook.Instruction.Builder

This builder for chaining.

setGuidelinesBytes(ByteString value)

public Playbook.Instruction.Builder setGuidelinesBytes(ByteString value)

General guidelines for the playbook. These are unstructured instructions that are not directly part of the goal, e.g. "Always be polite". It's valid for this text to be long and used instead of steps altogether.

string guidelines = 1;

Parameter
NameDescription
valueByteString

The bytes for guidelines to set.

Returns
TypeDescription
Playbook.Instruction.Builder

This builder for chaining.

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

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

setSteps(int index, Playbook.Step value)

public Playbook.Instruction.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 = 2;

Parameters
NameDescription
indexint
valuePlaybook.Step
Returns
TypeDescription
Playbook.Instruction.Builder

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

public Playbook.Instruction.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 = 2;

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

setUnknownFields(UnknownFieldSet unknownFields)

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