com.lark.oapi.service.face_detection.v1.model.AttributeItem 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.face_detection.v1.model;
import com.google.gson.annotations.SerializedName;
public class AttributeItem {
/**
* 属性
* 示例值:0
*/
@SerializedName("type")
private Integer type;
/**
* 识别置信度,[0, 1],代表判断正确的概率
*
示例值:0.95566
*/
@SerializedName("probability")
private Double probability;
// builder 开始
public AttributeItem() {
}
public AttributeItem(Builder builder) {
/**
* 属性
*
示例值:0
*/
this.type = builder.type;
/**
* 识别置信度,[0, 1],代表判断正确的概率
*
示例值:0.95566
*/
this.probability = builder.probability;
}
public static Builder newBuilder() {
return new Builder();
}
public Integer getType() {
return this.type;
}
public void setType(Integer type) {
this.type = type;
}
public Double getProbability() {
return this.probability;
}
public void setProbability(Double probability) {
this.probability = probability;
}
public static class Builder {
/**
* 属性
*
示例值:0
*/
private Integer type;
/**
* 识别置信度,[0, 1],代表判断正确的概率
*
示例值:0.95566
*/
private Double probability;
/**
* 属性
*
示例值:0
*
* @param type
* @return
*/
public Builder type(Integer type) {
this.type = type;
return this;
}
/**
* 识别置信度,[0, 1],代表判断正确的概率
*
示例值:0.95566
*
* @param probability
* @return
*/
public Builder probability(Double probability) {
this.probability = probability;
return this;
}
public AttributeItem build() {
return new AttributeItem(this);
}
}
}