com.tencentcloudapi.mps.v20190612.models.CreatePersonSampleRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.mps.v20190612.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class CreatePersonSampleRequest extends AbstractModel{
/**
* Name of an image. Length limit: 20 characters
*/
@SerializedName("Name")
@Expose
private String Name;
/**
* Image usage. Valid values:
1. Recognition: used for content recognition; equivalent to `Recognition.Face`
2. Review: used for inappropriate information recognition; equivalent to `Review.Face`
3. All: equivalent to 1+2
*/
@SerializedName("Usages")
@Expose
private String [] Usages;
/**
* Image description. Length limit: 1,024 characters
*/
@SerializedName("Description")
@Expose
private String Description;
/**
* [Base64](https://tools.ietf.org/html/rfc4648) string converted from an image. Only JPEG and PNG images are supported. Array length limit: 5 images
Note: the image must be a relatively clear facial feature photo of one person with a size of at least 200 x 200 pixels.
*/
@SerializedName("FaceContents")
@Expose
private String [] FaceContents;
/**
* Image tag
Array length limit: 20 tags
Tag length limit: 128 characters
*/
@SerializedName("Tags")
@Expose
private String [] Tags;
/**
* Get Name of an image. Length limit: 20 characters
* @return Name Name of an image. Length limit: 20 characters
*/
public String getName() {
return this.Name;
}
/**
* Set Name of an image. Length limit: 20 characters
* @param Name Name of an image. Length limit: 20 characters
*/
public void setName(String Name) {
this.Name = Name;
}
/**
* Get Image usage. Valid values:
1. Recognition: used for content recognition; equivalent to `Recognition.Face`
2. Review: used for inappropriate information recognition; equivalent to `Review.Face`
3. All: equivalent to 1+2
* @return Usages Image usage. Valid values:
1. Recognition: used for content recognition; equivalent to `Recognition.Face`
2. Review: used for inappropriate information recognition; equivalent to `Review.Face`
3. All: equivalent to 1+2
*/
public String [] getUsages() {
return this.Usages;
}
/**
* Set Image usage. Valid values:
1. Recognition: used for content recognition; equivalent to `Recognition.Face`
2. Review: used for inappropriate information recognition; equivalent to `Review.Face`
3. All: equivalent to 1+2
* @param Usages Image usage. Valid values:
1. Recognition: used for content recognition; equivalent to `Recognition.Face`
2. Review: used for inappropriate information recognition; equivalent to `Review.Face`
3. All: equivalent to 1+2
*/
public void setUsages(String [] Usages) {
this.Usages = Usages;
}
/**
* Get Image description. Length limit: 1,024 characters
* @return Description Image description. Length limit: 1,024 characters
*/
public String getDescription() {
return this.Description;
}
/**
* Set Image description. Length limit: 1,024 characters
* @param Description Image description. Length limit: 1,024 characters
*/
public void setDescription(String Description) {
this.Description = Description;
}
/**
* Get [Base64](https://tools.ietf.org/html/rfc4648) string converted from an image. Only JPEG and PNG images are supported. Array length limit: 5 images
Note: the image must be a relatively clear facial feature photo of one person with a size of at least 200 x 200 pixels.
* @return FaceContents [Base64](https://tools.ietf.org/html/rfc4648) string converted from an image. Only JPEG and PNG images are supported. Array length limit: 5 images
Note: the image must be a relatively clear facial feature photo of one person with a size of at least 200 x 200 pixels.
*/
public String [] getFaceContents() {
return this.FaceContents;
}
/**
* Set [Base64](https://tools.ietf.org/html/rfc4648) string converted from an image. Only JPEG and PNG images are supported. Array length limit: 5 images
Note: the image must be a relatively clear facial feature photo of one person with a size of at least 200 x 200 pixels.
* @param FaceContents [Base64](https://tools.ietf.org/html/rfc4648) string converted from an image. Only JPEG and PNG images are supported. Array length limit: 5 images
Note: the image must be a relatively clear facial feature photo of one person with a size of at least 200 x 200 pixels.
*/
public void setFaceContents(String [] FaceContents) {
this.FaceContents = FaceContents;
}
/**
* Get Image tag
Array length limit: 20 tags
Tag length limit: 128 characters
* @return Tags Image tag
Array length limit: 20 tags
Tag length limit: 128 characters
*/
public String [] getTags() {
return this.Tags;
}
/**
* Set Image tag
Array length limit: 20 tags
Tag length limit: 128 characters
* @param Tags Image tag
Array length limit: 20 tags
Tag length limit: 128 characters
*/
public void setTags(String [] Tags) {
this.Tags = Tags;
}
public CreatePersonSampleRequest() {
}
/**
* NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
* and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
*/
public CreatePersonSampleRequest(CreatePersonSampleRequest source) {
if (source.Name != null) {
this.Name = new String(source.Name);
}
if (source.Usages != null) {
this.Usages = new String[source.Usages.length];
for (int i = 0; i < source.Usages.length; i++) {
this.Usages[i] = new String(source.Usages[i]);
}
}
if (source.Description != null) {
this.Description = new String(source.Description);
}
if (source.FaceContents != null) {
this.FaceContents = new String[source.FaceContents.length];
for (int i = 0; i < source.FaceContents.length; i++) {
this.FaceContents[i] = new String(source.FaceContents[i]);
}
}
if (source.Tags != null) {
this.Tags = new String[source.Tags.length];
for (int i = 0; i < source.Tags.length; i++) {
this.Tags[i] = new String(source.Tags[i]);
}
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "Name", this.Name);
this.setParamArraySimple(map, prefix + "Usages.", this.Usages);
this.setParamSimple(map, prefix + "Description", this.Description);
this.setParamArraySimple(map, prefix + "FaceContents.", this.FaceContents);
this.setParamArraySimple(map, prefix + "Tags.", this.Tags);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy