类 Block.Builder

java.lang.Object
com.lark.oapi.service.docx.v1.model.Block.Builder
封闭类:
Block

public static class Block.Builder extends Object
  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • blockId

      public Block.Builder blockId(String blockId)
      Block 唯一标识

      示例值:doxcnSS4ouQkQEouGSUkTg9NJPe

      参数:
      blockId -
      返回:
    • parentId

      public Block.Builder parentId(String parentId)
      block 的父亲 id

      示例值:doxcnePuYufKa49ISjhD8Ih0ikh

      参数:
      parentId -
      返回:
    • children

      public Block.Builder children(String[] children)
      block 的孩子 id 列表

      示例值:[doxcnO6UW6wAw2qIcYf4hZpFIth]

      参数:
      children -
      返回:
    • blockType

      public Block.Builder blockType(Integer blockType)
      block 类型

      示例值:1

      参数:
      blockType -
      返回:
    • blockType

      public Block.Builder blockType(BlockBlockTypeEnum blockType)
      block 类型

      示例值:1

      参数:
      blockType - BlockBlockTypeEnum
      返回:
    • page

      public Block.Builder page(Text page)
      文档 Block

      示例值:

      参数:
      page -
      返回:
    • text

      public Block.Builder text(Text text)
      文本 Block

      示例值:

      参数:
      text -
      返回:
    • heading1

      public Block.Builder heading1(Text heading1)
      一级标题 Block

      示例值:

      参数:
      heading1 -
      返回:
    • heading2

      public Block.Builder heading2(Text heading2)
      二级标题 Block

      示例值:

      参数:
      heading2 -
      返回:
    • heading3

      public Block.Builder heading3(Text heading3)
      三级标题 Block

      示例值:

      参数:
      heading3 -
      返回:
    • heading4

      public Block.Builder heading4(Text heading4)
      四级标题 Block

      示例值:

      参数:
      heading4 -
      返回:
    • heading5

      public Block.Builder heading5(Text heading5)
      五级标题 Block

      示例值:

      参数:
      heading5 -
      返回:
    • heading6

      public Block.Builder heading6(Text heading6)
      六级标题 Block

      示例值:

      参数:
      heading6 -
      返回:
    • heading7

      public Block.Builder heading7(Text heading7)
      七级标题 Block

      示例值:

      参数:
      heading7 -
      返回:
    • heading8

      public Block.Builder heading8(Text heading8)
      八级标题 Block

      示例值:

      参数:
      heading8 -
      返回:
    • heading9

      public Block.Builder heading9(Text heading9)
      九级标题 Block

      示例值:

      参数:
      heading9 -
      返回:
    • bullet

      public Block.Builder bullet(Text bullet)
      无序列表 Block

      示例值:

      参数:
      bullet -
      返回:
    • ordered

      public Block.Builder ordered(Text ordered)
      有序列表 Block

      示例值:

      参数:
      ordered -
      返回:
    • code

      public Block.Builder code(Text code)
      代码块 Block

      示例值:

      参数:
      code -
      返回:
    • quote

      public Block.Builder quote(Text quote)
      引用 Block

      示例值:

      参数:
      quote -
      返回:
    • equation

      public Block.Builder equation(Text equation)
      公式 Block

      示例值:

      参数:
      equation -
      返回:
    • todo

      public Block.Builder todo(Text todo)
      待办事项 Block

      示例值:

      参数:
      todo -
      返回:
    • bitable

      public Block.Builder bitable(Bitable bitable)
      多维表格 Block

      示例值:

      参数:
      bitable -
      返回:
    • callout

      public Block.Builder callout(Callout callout)
      高亮块 Block

      示例值:

      参数:
      callout -
      返回:
    • chatCard

      public Block.Builder chatCard(ChatCard chatCard)
      群聊卡片 Block

      示例值:

      参数:
      chatCard -
      返回:
    • diagram

      public Block.Builder diagram(Diagram diagram)
      流程图/UML Block

      示例值:

      参数:
      diagram -
      返回:
    • divider

      public Block.Builder divider(Divider divider)
      分割线 Block

      示例值:

      参数:
      divider -
      返回:
    • file

      public Block.Builder file(File file)
      文件 Block

      示例值:

      参数:
      file -
      返回:
    • grid

      public Block.Builder grid(Grid grid)
      分栏 Block

      示例值:

      参数:
      grid -
      返回:
    • gridColumn

      public Block.Builder gridColumn(GridColumn gridColumn)
      分栏列 Block

      示例值:

      参数:
      gridColumn -
      返回:
    • iframe

      public Block.Builder iframe(Iframe iframe)
      内嵌 Block

      示例值:

      参数:
      iframe -
      返回:
    • image

      public Block.Builder image(Image image)
      图片 Block

      示例值:

      参数:
      image -
      返回:
    • isv

      public Block.Builder isv(Isv isv)
      三方 Block

      示例值:

      参数:
      isv -
      返回:
    • addOns

      public Block.Builder addOns(AddOns addOns)
      Add-ons

      示例值:

      参数:
      addOns -
      返回:
    • mindnote

      public Block.Builder mindnote(Mindnote mindnote)
      思维笔记 Block

      示例值:

      参数:
      mindnote -
      返回:
    • sheet

      public Block.Builder sheet(Sheet sheet)
      电子表格 Block

      示例值:

      参数:
      sheet -
      返回:
    • table

      public Block.Builder table(Table table)
      表格 Block

      示例值:

      参数:
      table -
      返回:
    • tableCell

      public Block.Builder tableCell(TableCell tableCell)
      单元格 Block

      示例值:

      参数:
      tableCell -
      返回:
    • view

      public Block.Builder view(View view)
      视图 Block

      示例值:

      参数:
      view -
      返回:
    • undefined

      public Block.Builder undefined(Undefined undefined)
      未支持 Block

      示例值:

      参数:
      undefined -
      返回:
    • quoteContainer

      public Block.Builder quoteContainer(QuoteContainer quoteContainer)
      引用容器 Block

      示例值:

      参数:
      quoteContainer -
      返回:
    • task

      public Block.Builder task(Task task)
      任务 Block

      示例值:

      参数:
      task -
      返回:
    • okr

      public Block.Builder okr(Okr okr)
      OKR Block,仅可在使用 `user_access_token` 时创建

      示例值:

      参数:
      okr -
      返回:
    • okrObjective

      public Block.Builder okrObjective(OkrObjective okrObjective)
      OKR Objective Block

      示例值:

      参数:
      okrObjective -
      返回:
    • okrKeyResult

      public Block.Builder okrKeyResult(OkrKeyResult okrKeyResult)
      OKR Key Result

      示例值:

      参数:
      okrKeyResult -
      返回:
    • okrProgress

      public Block.Builder okrProgress(OkrProgress okrProgress)
      OKR 进展信息

      示例值:

      参数:
      okrProgress -
      返回:
    • commentIds

      public Block.Builder commentIds(String[] commentIds)
      评论 id 列表

      示例值:["1660030311959965796"]

      参数:
      commentIds -
      返回:
    • jiraIssue

      public Block.Builder jiraIssue(JiraIssue jiraIssue)
      Jira Issue

      示例值:

      参数:
      jiraIssue -
      返回:
    • wikiCatalog

      public Block.Builder wikiCatalog(WikiCatalog wikiCatalog)
      Wiki 子目录 Block

      示例值:

      参数:
      wikiCatalog -
      返回:
    • board

      public Block.Builder board(Board board)
      画板 Block

      示例值:

      参数:
      board -
      返回:
    • agenda

      public Block.Builder agenda(Agenda agenda)
      议程 Block

      示例值:

      参数:
      agenda -
      返回:
    • agendaItem

      public Block.Builder agendaItem(AgendaItem agendaItem)
      议程项 Block

      示例值:

      参数:
      agendaItem -
      返回:
    • agendaItemTitle

      public Block.Builder agendaItemTitle(AgendaItemTitle agendaItemTitle)
      议程项标题 Block

      示例值:

      参数:
      agendaItemTitle -
      返回:
    • agendaItemContent

      public Block.Builder agendaItemContent(AgendaItemContent agendaItemContent)
      议程项内容 Block

      示例值:

      参数:
      agendaItemContent -
      返回:
    • build

      public Block build()