Class PlaybookVersion.Builder

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

public static final class PlaybookVersion.Builder extends com.google.protobuf.GeneratedMessage.Builder<PlaybookVersion.Builder> implements PlaybookVersionOrBuilder
 Playbook version is a snapshot of the playbook at certain timestamp.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.PlaybookVersion
  • 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<PlaybookVersion.Builder>
    • clear

      public PlaybookVersion.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<PlaybookVersion.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<PlaybookVersion.Builder>
    • getDefaultInstanceForType

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

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

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

      public PlaybookVersion.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<PlaybookVersion.Builder>
    • mergeFrom

      public PlaybookVersion.Builder mergeFrom(PlaybookVersion other)
    • isInitialized

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

      public PlaybookVersion.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<PlaybookVersion.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The unique identifier of the playbook version.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`.
       
      string name = 1;
      Specified by:
      getName in interface PlaybookVersionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The unique identifier of the playbook version.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`.
       
      string name = 1;
      Specified by:
      getNameBytes in interface PlaybookVersionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public PlaybookVersion.Builder setName(String value)
       The unique identifier of the playbook version.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public PlaybookVersion.Builder clearName()
       The unique identifier of the playbook version.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public PlaybookVersion.Builder setNameBytes(com.google.protobuf.ByteString value)
       The unique identifier of the playbook version.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>`.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. The description of the playbook version.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface PlaybookVersionOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. The description of the playbook version.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface PlaybookVersionOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public PlaybookVersion.Builder setDescription(String value)
       Optional. The description of the playbook version.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public PlaybookVersion.Builder clearDescription()
       Optional. The description of the playbook version.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public PlaybookVersion.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. The description of the playbook version.
       
      string description = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasPlaybook

      public boolean hasPlaybook()
       Output only. Snapshot of the playbook when the playbook version is created.
       
      .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasPlaybook in interface PlaybookVersionOrBuilder
      Returns:
      Whether the playbook field is set.
    • getPlaybook

      public Playbook getPlaybook()
       Output only. Snapshot of the playbook when the playbook version is created.
       
      .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPlaybook in interface PlaybookVersionOrBuilder
      Returns:
      The playbook.
    • setPlaybook

      public PlaybookVersion.Builder setPlaybook(Playbook value)
       Output only. Snapshot of the playbook when the playbook version is created.
       
      .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setPlaybook

      public PlaybookVersion.Builder setPlaybook(Playbook.Builder builderForValue)
       Output only. Snapshot of the playbook when the playbook version is created.
       
      .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergePlaybook

      public PlaybookVersion.Builder mergePlaybook(Playbook value)
       Output only. Snapshot of the playbook when the playbook version is created.
       
      .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearPlaybook

      public PlaybookVersion.Builder clearPlaybook()
       Output only. Snapshot of the playbook when the playbook version is created.
       
      .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPlaybookBuilder

      public Playbook.Builder getPlaybookBuilder()
       Output only. Snapshot of the playbook when the playbook version is created.
       
      .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getPlaybookOrBuilder

      public PlaybookOrBuilder getPlaybookOrBuilder()
       Output only. Snapshot of the playbook when the playbook version is created.
       
      .google.cloud.dialogflow.cx.v3beta1.Playbook playbook = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPlaybookOrBuilder in interface PlaybookVersionOrBuilder
    • getExamplesList

      public List<Example> getExamplesList()
       Output only. Snapshot of the examples belonging to the playbook when the
       playbook version is created.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExamplesList in interface PlaybookVersionOrBuilder
    • getExamplesCount

      public int getExamplesCount()
       Output only. Snapshot of the examples belonging to the playbook when the
       playbook version is created.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExamplesCount in interface PlaybookVersionOrBuilder
    • getExamples

      public Example getExamples(int index)
       Output only. Snapshot of the examples belonging to the playbook when the
       playbook version is created.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExamples in interface PlaybookVersionOrBuilder
    • setExamples

      public PlaybookVersion.Builder setExamples(int index, Example value)
       Output only. Snapshot of the examples belonging to the playbook when the
       playbook version is created.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setExamples

      public PlaybookVersion.Builder setExamples(int index, Example.Builder builderForValue)
       Output only. Snapshot of the examples belonging to the playbook when the
       playbook version is created.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addExamples

      public PlaybookVersion.Builder addExamples(Example value)
       Output only. Snapshot of the examples belonging to the playbook when the
       playbook version is created.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addExamples

      public PlaybookVersion.Builder addExamples(int index, Example value)
       Output only. Snapshot of the examples belonging to the playbook when the
       playbook version is created.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addExamples

      public PlaybookVersion.Builder addExamples(Example.Builder builderForValue)
       Output only. Snapshot of the examples belonging to the playbook when the
       playbook version is created.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addExamples

      public PlaybookVersion.Builder addExamples(int index, Example.Builder builderForValue)
       Output only. Snapshot of the examples belonging to the playbook when the
       playbook version is created.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addAllExamples

      public PlaybookVersion.Builder addAllExamples(Iterable<? extends Example> values)
       Output only. Snapshot of the examples belonging to the playbook when the
       playbook version is created.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearExamples

      public PlaybookVersion.Builder clearExamples()
       Output only. Snapshot of the examples belonging to the playbook when the
       playbook version is created.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • removeExamples

      public PlaybookVersion.Builder removeExamples(int index)
       Output only. Snapshot of the examples belonging to the playbook when the
       playbook version is created.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getExamplesBuilder

      public Example.Builder getExamplesBuilder(int index)
       Output only. Snapshot of the examples belonging to the playbook when the
       playbook version is created.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getExamplesOrBuilder

      public ExampleOrBuilder getExamplesOrBuilder(int index)
       Output only. Snapshot of the examples belonging to the playbook when the
       playbook version is created.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExamplesOrBuilder in interface PlaybookVersionOrBuilder
    • getExamplesOrBuilderList

      public List<? extends ExampleOrBuilder> getExamplesOrBuilderList()
       Output only. Snapshot of the examples belonging to the playbook when the
       playbook version is created.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExamplesOrBuilderList in interface PlaybookVersionOrBuilder
    • addExamplesBuilder

      public Example.Builder addExamplesBuilder()
       Output only. Snapshot of the examples belonging to the playbook when the
       playbook version is created.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • addExamplesBuilder

      public Example.Builder addExamplesBuilder(int index)
       Output only. Snapshot of the examples belonging to the playbook when the
       playbook version is created.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getExamplesBuilderList

      public List<Example.Builder> getExamplesBuilderList()
       Output only. Snapshot of the examples belonging to the playbook when the
       playbook version is created.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.Example examples = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Last time the playbook version was created or modified.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface PlaybookVersionOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Last time the playbook version was created or modified.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface PlaybookVersionOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public PlaybookVersion.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last time the playbook version was created or modified.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public PlaybookVersion.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Last time the playbook version was created or modified.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public PlaybookVersion.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last time the playbook version was created or modified.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public PlaybookVersion.Builder clearUpdateTime()
       Output only. Last time the playbook version was created or modified.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Last time the playbook version was created or modified.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Last time the playbook version was created or modified.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface PlaybookVersionOrBuilder