Class Playbook.Instruction.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Playbook.Instruction.Builder>
com.google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction.Builder
All Implemented Interfaces:
Playbook.InstructionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Playbook.Instruction

public static final class Playbook.Instruction.Builder extends com.google.protobuf.GeneratedMessage.Builder<Playbook.Instruction.Builder> implements Playbook.InstructionOrBuilder
 Message of the Instruction of the playbook.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.Playbook.Instruction
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Playbook.Instruction.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Playbook.Instruction.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Playbook.Instruction.Builder>
    • getDefaultInstanceForType

      public Playbook.Instruction getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Playbook.Instruction build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Playbook.Instruction buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Playbook.Instruction.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Playbook.Instruction.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Playbook.Instruction.Builder>
    • mergeFrom

      public Playbook.Instruction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Playbook.Instruction.Builder>
      Throws:
      IOException
    • 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;
      Specified by:
      getGuidelines in interface Playbook.InstructionOrBuilder
      Returns:
      The guidelines.
    • getGuidelinesBytes

      public com.google.protobuf.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;
      Specified by:
      getGuidelinesBytes in interface Playbook.InstructionOrBuilder
      Returns:
      The bytes for guidelines.
    • setGuidelines

      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;
      Parameters:
      value - The guidelines to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setGuidelinesBytes

      public Playbook.Instruction.Builder setGuidelinesBytes(com.google.protobuf.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;
      Parameters:
      value - The bytes for guidelines to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getStepsList in interface Playbook.InstructionOrBuilder
    • 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;
      Specified by:
      getStepsCount in interface Playbook.InstructionOrBuilder
    • getSteps

      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;
      Specified by:
      getSteps in interface Playbook.InstructionOrBuilder
    • setSteps

      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;
    • setSteps

      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;
    • addSteps

       Ordered list of step by step execution instructions to accomplish
       target goal.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Playbook.Step steps = 2;
    • addSteps

      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;
    • addSteps

      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;
    • addSteps

      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;
    • addAllSteps

      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;
    • 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;
    • removeSteps

      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;
    • getStepsBuilder

      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;
    • getStepsOrBuilder

      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;
      Specified by:
      getStepsOrBuilder in interface Playbook.InstructionOrBuilder
    • 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;
      Specified by:
      getStepsOrBuilderList in interface Playbook.InstructionOrBuilder
    • 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;
    • addStepsBuilder

      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;
    • 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;