All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lark.oapi.service.aily.v1.model.AilyMessage Maven / Gradle / Ivy

Go to download

Larksuite open platform facilitates the integration of enterprise applications and larksuite, making collaboration and management more efficient

The newest version!
// Code generated by lark suite oapi sdk gen
/*
 * MIT License
 *
 * Copyright (c) 2022 Lark Technologies Pte. Ltd.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice, shall be included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

package com.lark.oapi.service.aily.v1.model;

import com.lark.oapi.core.response.EmptyData;
import com.lark.oapi.service.aily.v1.enums.*;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.SerializedName;
import com.lark.oapi.core.annotation.Body;
import com.lark.oapi.core.annotation.Path;
import com.lark.oapi.core.annotation.Query;

import java.io.ByteArrayOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;

import com.lark.oapi.core.utils.Strings;
import com.lark.oapi.core.response.BaseResponse;

public class AilyMessage {
    /**
     * 消息 ID
     * 

示例值:message_4df45f2xknvcc */ @SerializedName("id") private String id; /** * 会话 ID *

示例值:session_4dfunz7sp1g8m */ @SerializedName("session_id") private String sessionId; /** * 运行 ID *

示例值:run_4dfrxvctjqzzj */ @SerializedName("run_id") private String runId; /** * 消息内容类型 *

示例值:MDX */ @SerializedName("content_type") private String contentType; /** * 消息内容 *

示例值:你好 */ @SerializedName("content") private String content; /** * 消息中包含的文件 *

示例值: */ @SerializedName("files") private AilyMessageFile[] files; /** * 引用的消息 ID *

示例值:message_4de9bpg70qskh */ @SerializedName("quote_message_id") private String quoteMessageId; /** * 发送者 *

示例值: */ @SerializedName("sender") private AilySender sender; /** * 被@的实体 *

示例值: */ @SerializedName("mentions") private AilyMention[] mentions; /** * 消息体的纯文本表达 *

示例值:你好 */ @SerializedName("plain_text") private String plainText; /** * 消息的创建时间,毫秒时间戳 *

示例值:1711975665710 */ @SerializedName("created_at") private String createdAt; /** * 状态 *

示例值:IN_PROGRESS */ @SerializedName("status") private String status; // builder 开始 public AilyMessage() { } public AilyMessage(Builder builder) { /** * 消息 ID *

示例值:message_4df45f2xknvcc */ this.id = builder.id; /** * 会话 ID *

示例值:session_4dfunz7sp1g8m */ this.sessionId = builder.sessionId; /** * 运行 ID *

示例值:run_4dfrxvctjqzzj */ this.runId = builder.runId; /** * 消息内容类型 *

示例值:MDX */ this.contentType = builder.contentType; /** * 消息内容 *

示例值:你好 */ this.content = builder.content; /** * 消息中包含的文件 *

示例值: */ this.files = builder.files; /** * 引用的消息 ID *

示例值:message_4de9bpg70qskh */ this.quoteMessageId = builder.quoteMessageId; /** * 发送者 *

示例值: */ this.sender = builder.sender; /** * 被@的实体 *

示例值: */ this.mentions = builder.mentions; /** * 消息体的纯文本表达 *

示例值:你好 */ this.plainText = builder.plainText; /** * 消息的创建时间,毫秒时间戳 *

示例值:1711975665710 */ this.createdAt = builder.createdAt; /** * 状态 *

示例值:IN_PROGRESS */ this.status = builder.status; } public static Builder newBuilder() { return new Builder(); } public String getId() { return this.id; } public void setId(String id) { this.id = id; } public String getSessionId() { return this.sessionId; } public void setSessionId(String sessionId) { this.sessionId = sessionId; } public String getRunId() { return this.runId; } public void setRunId(String runId) { this.runId = runId; } public String getContentType() { return this.contentType; } public void setContentType(String contentType) { this.contentType = contentType; } public String getContent() { return this.content; } public void setContent(String content) { this.content = content; } public AilyMessageFile[] getFiles() { return this.files; } public void setFiles(AilyMessageFile[] files) { this.files = files; } public String getQuoteMessageId() { return this.quoteMessageId; } public void setQuoteMessageId(String quoteMessageId) { this.quoteMessageId = quoteMessageId; } public AilySender getSender() { return this.sender; } public void setSender(AilySender sender) { this.sender = sender; } public AilyMention[] getMentions() { return this.mentions; } public void setMentions(AilyMention[] mentions) { this.mentions = mentions; } public String getPlainText() { return this.plainText; } public void setPlainText(String plainText) { this.plainText = plainText; } public String getCreatedAt() { return this.createdAt; } public void setCreatedAt(String createdAt) { this.createdAt = createdAt; } public String getStatus() { return this.status; } public void setStatus(String status) { this.status = status; } public static class Builder { /** * 消息 ID *

示例值:message_4df45f2xknvcc */ private String id; /** * 会话 ID *

示例值:session_4dfunz7sp1g8m */ private String sessionId; /** * 运行 ID *

示例值:run_4dfrxvctjqzzj */ private String runId; /** * 消息内容类型 *

示例值:MDX */ private String contentType; /** * 消息内容 *

示例值:你好 */ private String content; /** * 消息中包含的文件 *

示例值: */ private AilyMessageFile[] files; /** * 引用的消息 ID *

示例值:message_4de9bpg70qskh */ private String quoteMessageId; /** * 发送者 *

示例值: */ private AilySender sender; /** * 被@的实体 *

示例值: */ private AilyMention[] mentions; /** * 消息体的纯文本表达 *

示例值:你好 */ private String plainText; /** * 消息的创建时间,毫秒时间戳 *

示例值:1711975665710 */ private String createdAt; /** * 状态 *

示例值:IN_PROGRESS */ private String status; /** * 消息 ID *

示例值:message_4df45f2xknvcc * * @param id * @return */ public Builder id(String id) { this.id = id; return this; } /** * 会话 ID *

示例值:session_4dfunz7sp1g8m * * @param sessionId * @return */ public Builder sessionId(String sessionId) { this.sessionId = sessionId; return this; } /** * 运行 ID *

示例值:run_4dfrxvctjqzzj * * @param runId * @return */ public Builder runId(String runId) { this.runId = runId; return this; } /** * 消息内容类型 *

示例值:MDX * * @param contentType * @return */ public Builder contentType(String contentType) { this.contentType = contentType; return this; } /** * 消息内容 *

示例值:你好 * * @param content * @return */ public Builder content(String content) { this.content = content; return this; } /** * 消息中包含的文件 *

示例值: * * @param files * @return */ public Builder files(AilyMessageFile[] files) { this.files = files; return this; } /** * 引用的消息 ID *

示例值:message_4de9bpg70qskh * * @param quoteMessageId * @return */ public Builder quoteMessageId(String quoteMessageId) { this.quoteMessageId = quoteMessageId; return this; } /** * 发送者 *

示例值: * * @param sender * @return */ public Builder sender(AilySender sender) { this.sender = sender; return this; } /** * 被@的实体 *

示例值: * * @param mentions * @return */ public Builder mentions(AilyMention[] mentions) { this.mentions = mentions; return this; } /** * 消息体的纯文本表达 *

示例值:你好 * * @param plainText * @return */ public Builder plainText(String plainText) { this.plainText = plainText; return this; } /** * 消息的创建时间,毫秒时间戳 *

示例值:1711975665710 * * @param createdAt * @return */ public Builder createdAt(String createdAt) { this.createdAt = createdAt; return this; } /** * 状态 *

示例值:IN_PROGRESS * * @param status * @return */ public Builder status(String status) { this.status = status; return this; } public AilyMessage build() { return new AilyMessage(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy