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

com.lark.oapi.service.lingo.v1.model.GetEntityReq Maven / Gradle / Ivy

// 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.lingo.v1.model;

import com.lark.oapi.core.response.EmptyData;
import com.lark.oapi.service.lingo.v1.enums.*;
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 GetEntityReq {
    /**
     * 数据提供方(使用时需要将路径中的实体词 ID 固定为:enterprise_0,且提供 provider 和 outer_id)
     * 

示例值:星云 */ @Query @SerializedName("provider") private String provider; /** * 外部唯一 id(使用时需要将路径中的实体词 ID 固定为:enterprise_0,且提供 provider 和 outer_id) *

示例值:123aaa */ @Query @SerializedName("outer_id") private String outerId; /** * 此次调用中使用的用户ID的类型 *

示例值: */ @Query @SerializedName("user_id_type") private String userIdType; /** * 实体词 id *

示例值:enterprise_0 */ @Path @SerializedName("entity_id") private String entityId; // builder 开始 public GetEntityReq() { } public GetEntityReq(Builder builder) { /** * 数据提供方(使用时需要将路径中的实体词 ID 固定为:enterprise_0,且提供 provider 和 outer_id) *

示例值:星云 */ this.provider = builder.provider; /** * 外部唯一 id(使用时需要将路径中的实体词 ID 固定为:enterprise_0,且提供 provider 和 outer_id) *

示例值:123aaa */ this.outerId = builder.outerId; /** * 此次调用中使用的用户ID的类型 *

示例值: */ this.userIdType = builder.userIdType; /** * 实体词 id *

示例值:enterprise_0 */ this.entityId = builder.entityId; } public static Builder newBuilder() { return new Builder(); } public String getProvider() { return this.provider; } public void setProvider(String provider) { this.provider = provider; } public String getOuterId() { return this.outerId; } public void setOuterId(String outerId) { this.outerId = outerId; } public String getUserIdType() { return this.userIdType; } public void setUserIdType(String userIdType) { this.userIdType = userIdType; } public String getEntityId() { return this.entityId; } public void setEntityId(String entityId) { this.entityId = entityId; } public static class Builder { private String provider; // 数据提供方(使用时需要将路径中的实体词 ID 固定为:enterprise_0,且提供 provider 和 outer_id) private String outerId; // 外部唯一 id(使用时需要将路径中的实体词 ID 固定为:enterprise_0,且提供 provider 和 outer_id) private String userIdType; // 此次调用中使用的用户ID的类型 private String entityId; // 实体词 id /** * 数据提供方(使用时需要将路径中的实体词 ID 固定为:enterprise_0,且提供 provider 和 outer_id) *

示例值:星云 * * @param provider * @return */ public Builder provider(String provider) { this.provider = provider; return this; } /** * 外部唯一 id(使用时需要将路径中的实体词 ID 固定为:enterprise_0,且提供 provider 和 outer_id) *

示例值:123aaa * * @param outerId * @return */ public Builder outerId(String outerId) { this.outerId = outerId; return this; } /** * 此次调用中使用的用户ID的类型 *

示例值: * * @param userIdType * @return */ public Builder userIdType(String userIdType) { this.userIdType = userIdType; return this; } /** * 此次调用中使用的用户ID的类型 *

示例值: * * @param userIdType {@link com.lark.oapi.service.lingo.v1.enums.GetEntityUserIdTypeEnum} * @return */ public Builder userIdType(com.lark.oapi.service.lingo.v1.enums.GetEntityUserIdTypeEnum userIdType) { this.userIdType = userIdType.getValue(); return this; } /** * 实体词 id *

示例值:enterprise_0 * * @param entityId * @return */ public Builder entityId(String entityId) { this.entityId = entityId; return this; } public GetEntityReq build() { return new GetEntityReq(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy