From 4c79a8e5888afda9460f227205dc0527c46d9012 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 30 Jun 2022 03:22:45 +0000 Subject: [PATCH] Update ListFaceDbs. --- CHANGELOG | 3 + VERSION | 2 +- .../facebody/model/AddBodyTraceRequest.h | 99 ++++---- .../facebody/model/AddFaceEntityRequest.h | 89 +++---- .../model/AddFaceImageTemplateRequest.h | 92 ++++--- .../facebody/model/AddFaceRequest.h | 113 ++++----- .../facebody/model/BatchAddFacesRequest.h | 111 +++++---- .../facebody/model/BeautifyBodyRequest.h | 173 ++++++++------ .../facebody/model/BlurFaceRequest.h | 77 +++--- .../facebody/model/BodyPostureRequest.h | 77 +++--- .../facebody/model/CompareFaceRequest.h | 107 +++++---- .../facebody/model/CountCrowdRequest.h | 83 +++---- .../facebody/model/CreateBodyDbRequest.h | 77 +++--- .../facebody/model/CreateBodyPersonRequest.h | 83 +++---- .../facebody/model/CreateFaceDbRequest.h | 77 +++--- .../facebody/model/DeleteBodyDbRequest.h | 77 +++--- .../facebody/model/DeleteBodyPersonRequest.h | 83 +++---- .../facebody/model/DeleteFaceDbRequest.h | 77 +++--- .../facebody/model/DeleteFaceEntityRequest.h | 83 +++---- .../model/DeleteFaceImageTemplateRequest.h | 92 ++++--- .../facebody/model/DeleteFaceRequest.h | 83 +++---- .../facebody/model/DetectBodyCountRequest.h | 77 +++--- .../facebody/model/DetectCelebrityRequest.h | 77 +++--- .../facebody/model/DetectChefCapRequest.h | 77 +++--- .../facebody/model/DetectFaceRequest.h | 116 +++++---- .../model/DetectIPCPedestrianRequest.h | 107 +++++---- .../facebody/model/DetectLivingFaceRequest.h | 96 ++++---- .../model/DetectPedestrianIntrusionRequest.h | 105 ++++---- .../facebody/model/DetectPedestrianRequest.h | 77 +++--- .../facebody/model/DetectPedestrianResult.h | 2 +- .../model/DetectVideoLivingFaceRequest.h | 77 +++--- .../facebody/model/EnhanceFaceRequest.h | 77 +++--- .../model/ExtractFingerPrintRequest.h | 92 ++++--- .../ExtractPedestrianFeatureAttrRequest.h | 89 +++---- .../ExtractPedestrianFeatureAttrResult.h | 8 +- ...ExtractPedestrianFeatureAttributeRequest.h | 97 ++++---- .../ExtractPedestrianFeatureAttributeResult.h | 8 +- .../facebody/model/FaceBeautyRequest.h | 95 ++++---- .../facebody/model/FaceFilterRequest.h | 89 +++---- .../facebody/model/FaceMakeupRequest.h | 95 ++++---- .../facebody/model/FaceTidyupRequest.h | 89 +++---- .../GenRealPersonVerificationTokenRequest.h | 89 +++---- .../model/GenerateHumanAnimeStyleRequest.h | 83 +++---- .../model/GenerateHumanSketchStyleRequest.h | 83 +++---- .../facebody/model/GetBodyPersonRequest.h | 83 +++---- .../facebody/model/GetBodyPersonResult.h | 2 +- .../facebody/model/GetFaceEntityRequest.h | 83 +++---- .../facebody/model/GetFaceEntityResult.h | 2 +- .../GetRealPersonVerificationResultRequest.h | 83 +++---- .../facebody/model/HandPostureRequest.h | 77 +++--- .../facebody/model/HandPostureResult.h | 24 +- .../facebody/model/LiquifyFaceRequest.h | 83 +++---- .../facebody/model/ListBodyDbsRequest.h | 83 +++---- .../facebody/model/ListBodyPersonRequest.h | 89 +++---- .../facebody/model/ListFaceDbsRequest.h | 77 +++--- .../facebody/model/ListFaceEntitiesRequest.h | 113 ++++----- .../facebody/model/ListFaceEntitiesResult.h | 4 +- .../facebody/model/MergeImageFaceRequest.h | 98 ++++---- .../model/MonitorExaminationRequest.h | 83 +++---- .../model/PedestrianDetectAttributeRequest.h | 77 +++--- .../model/QueryFaceImageTemplateRequest.h | 92 ++++--- .../facebody/model/RecognizeActionRequest.h | 105 ++++---- .../model/RecognizeExpressionRequest.h | 77 +++--- .../facebody/model/RecognizeFaceRequest.h | 137 +++++------ .../model/RecognizeHandGestureRequest.h | 89 +++---- .../model/RecognizePublicFaceRequest.h | 96 ++++---- .../facebody/model/RetouchBodyRequest.h | 89 +++---- .../facebody/model/RetouchSkinRequest.h | 89 +++---- .../facebody/model/SearchBodyTraceRequest.h | 99 ++++---- .../facebody/model/SearchBodyTraceResult.h | 2 +- .../facebody/model/SearchFaceRequest.h | 107 +++++---- .../model/SwapFacialFeaturesRequest.h | 101 ++++---- .../facebody/model/UpdateFaceEntityRequest.h | 89 +++---- .../facebody/model/VerifyFaceMaskRequest.h | 95 ++++---- facebody/src/model/AddBodyTraceRequest.cc | 112 +++++---- facebody/src/model/AddBodyTraceResult.cc | 4 +- facebody/src/model/AddFaceEntityRequest.cc | 97 +++++--- .../src/model/AddFaceImageTemplateRequest.cc | 94 ++++---- facebody/src/model/AddFaceRequest.cc | 145 ++++++------ facebody/src/model/BatchAddFacesRequest.cc | 136 ++++++----- facebody/src/model/BeautifyBodyRequest.cc | 224 ++++++++++-------- facebody/src/model/BlurFaceRequest.cc | 73 ++++-- facebody/src/model/BodyPostureRequest.cc | 73 ++++-- facebody/src/model/BodyPostureResult.cc | 4 +- facebody/src/model/CompareFaceRequest.cc | 133 ++++++----- facebody/src/model/CountCrowdRequest.cc | 85 ++++--- facebody/src/model/CreateBodyDbRequest.cc | 73 ++++-- facebody/src/model/CreateBodyDbResult.cc | 4 +- facebody/src/model/CreateBodyPersonRequest.cc | 85 ++++--- facebody/src/model/CreateBodyPersonResult.cc | 4 +- facebody/src/model/CreateFaceDbRequest.cc | 73 ++++-- facebody/src/model/DeleteBodyDbRequest.cc | 73 ++++-- facebody/src/model/DeleteBodyDbResult.cc | 4 +- facebody/src/model/DeleteBodyPersonRequest.cc | 85 ++++--- facebody/src/model/DeleteBodyPersonResult.cc | 4 +- facebody/src/model/DeleteFaceDbRequest.cc | 73 ++++-- facebody/src/model/DeleteFaceEntityRequest.cc | 85 ++++--- .../model/DeleteFaceImageTemplateRequest.cc | 94 ++++---- facebody/src/model/DeleteFaceRequest.cc | 85 ++++--- facebody/src/model/DetectBodyCountRequest.cc | 73 ++++-- facebody/src/model/DetectCelebrityRequest.cc | 73 ++++-- facebody/src/model/DetectChefCapRequest.cc | 73 ++++-- facebody/src/model/DetectChefCapResult.cc | 4 +- facebody/src/model/DetectFaceRequest.cc | 142 +++++------ .../src/model/DetectIPCPedestrianRequest.cc | 133 ++++++----- .../src/model/DetectIPCPedestrianResult.cc | 8 +- facebody/src/model/DetectLivingFaceRequest.cc | 92 ++++--- .../model/DetectPedestrianIntrusionRequest.cc | 106 ++++++--- facebody/src/model/DetectPedestrianRequest.cc | 73 ++++-- facebody/src/model/DetectPedestrianResult.cc | 8 +- .../src/model/DetectVideoLivingFaceRequest.cc | 73 ++++-- facebody/src/model/EnhanceFaceRequest.cc | 73 ++++-- .../src/model/ExtractFingerPrintRequest.cc | 94 ++++---- .../ExtractPedestrianFeatureAttrRequest.cc | 97 +++++--- .../ExtractPedestrianFeatureAttrResult.cc | 68 +++--- ...xtractPedestrianFeatureAttributeRequest.cc | 105 ++++---- ...ExtractPedestrianFeatureAttributeResult.cc | 112 ++++----- facebody/src/model/FaceBeautyRequest.cc | 109 +++++---- facebody/src/model/FaceFilterRequest.cc | 97 +++++--- facebody/src/model/FaceMakeupRequest.cc | 109 +++++---- facebody/src/model/FaceTidyupRequest.cc | 97 +++++--- .../GenRealPersonVerificationTokenRequest.cc | 97 +++++--- .../model/GenerateHumanAnimeStyleRequest.cc | 85 ++++--- .../model/GenerateHumanSketchStyleRequest.cc | 85 ++++--- facebody/src/model/GetBodyPersonRequest.cc | 85 ++++--- facebody/src/model/GetBodyPersonResult.cc | 12 +- facebody/src/model/GetFaceEntityRequest.cc | 85 ++++--- facebody/src/model/GetFaceEntityResult.cc | 4 +- .../GetRealPersonVerificationResultRequest.cc | 85 ++++--- facebody/src/model/HandPostureRequest.cc | 73 ++++-- facebody/src/model/HandPostureResult.cc | 42 ++-- facebody/src/model/LiquifyFaceRequest.cc | 85 ++++--- facebody/src/model/ListBodyDbsRequest.cc | 85 ++++--- facebody/src/model/ListBodyDbsResult.cc | 4 +- facebody/src/model/ListBodyPersonRequest.cc | 97 +++++--- facebody/src/model/ListBodyPersonResult.cc | 12 +- facebody/src/model/ListFaceDbsRequest.cc | 79 ++++-- facebody/src/model/ListFaceEntitiesRequest.cc | 145 ++++++------ facebody/src/model/ListFaceEntitiesResult.cc | 20 +- facebody/src/model/MergeImageFaceRequest.cc | 106 ++++----- .../src/model/MonitorExaminationRequest.cc | 85 ++++--- .../model/PedestrianDetectAttributeRequest.cc | 73 ++++-- .../model/QueryFaceImageTemplateRequest.cc | 94 ++++---- facebody/src/model/RecognizeActionRequest.cc | 119 ++++++---- .../src/model/RecognizeExpressionRequest.cc | 73 ++++-- .../src/model/RecognizeExpressionResult.cc | 8 +- facebody/src/model/RecognizeFaceRequest.cc | 193 +++++++-------- .../src/model/RecognizeHandGestureRequest.cc | 97 +++++--- .../src/model/RecognizePublicFaceRequest.cc | 92 ++++--- facebody/src/model/RetouchBodyRequest.cc | 97 +++++--- facebody/src/model/RetouchSkinRequest.cc | 97 +++++--- facebody/src/model/SearchBodyTraceRequest.cc | 112 +++++---- facebody/src/model/SearchBodyTraceResult.cc | 12 +- facebody/src/model/SearchFaceRequest.cc | 133 ++++++----- .../src/model/SwapFacialFeaturesRequest.cc | 121 +++++----- facebody/src/model/UpdateFaceEntityRequest.cc | 97 +++++--- facebody/src/model/VerifyFaceMaskRequest.cc | 109 +++++---- facebody/src/model/VerifyFaceMaskResult.cc | 4 +- 158 files changed, 6866 insertions(+), 5668 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 84a3137e7..914944d04 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-06-30 Version: 1.36.1163 +- Update ListFaceDbs. + 2022-06-28 Version: 1.36.1162 - Update QuerySavingsPlansDeductLog add field OwnerId. diff --git a/VERSION b/VERSION index c4b85caf8..e5c6c6479 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1162 \ No newline at end of file +1.36.1163 \ No newline at end of file diff --git a/facebody/include/alibabacloud/facebody/model/AddBodyTraceRequest.h b/facebody/include/alibabacloud/facebody/model/AddBodyTraceRequest.h index 984c524ea..da51dfe87 100644 --- a/facebody/include/alibabacloud/facebody/model/AddBodyTraceRequest.h +++ b/facebody/include/alibabacloud/facebody/model/AddBodyTraceRequest.h @@ -1,57 +1,64 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT AddBodyTraceRequest : public RpcServiceRequest - { - - public: - AddBodyTraceRequest(); - ~AddBodyTraceRequest(); - - std::string getExtraData()const; - void setExtraData(const std::string& extraData); - long getPersonId()const; - void setPersonId(long personId); - Array getImages()const; - void setImages(const Array& images); - long getDbId()const; - void setDbId(long dbId); - - private: - std::string extraData_; - long personId_; - Array images_; - long dbId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT AddBodyTraceRequest : public RpcServiceRequest { +public: + struct Images { + std::string imageURL; + std::string imageData; + }; + AddBodyTraceRequest(); + ~AddBodyTraceRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getExtraData() const; + void setExtraData(const std::string &extraData); + long getPersonId() const; + void setPersonId(long personId); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::vector getImages() const; + void setImages(const std::vector &images); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + long getDbId() const; + void setDbId(long dbId); + +private: + bool formatResultToJson_; + std::string extraData_; + long personId_; + std::string ossFile_; + std::vector images_; + std::string requestProxyBy_; + long dbId_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/AddFaceEntityRequest.h b/facebody/include/alibabacloud/facebody/model/AddFaceEntityRequest.h index dc7145b16..1102c34eb 100644 --- a/facebody/include/alibabacloud/facebody/model/AddFaceEntityRequest.h +++ b/facebody/include/alibabacloud/facebody/model/AddFaceEntityRequest.h @@ -1,54 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_ADDFACEENTITYREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_ADDFACEENTITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT AddFaceEntityRequest : public RpcServiceRequest - { - - public: - AddFaceEntityRequest(); - ~AddFaceEntityRequest(); - - std::string getEntityId()const; - void setEntityId(const std::string& entityId); - std::string getLabels()const; - void setLabels(const std::string& labels); - std::string getDbName()const; - void setDbName(const std::string& dbName); - - private: - std::string entityId_; - std::string labels_; - std::string dbName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_ADDFACEENTITYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_ADDFACEENTITYREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_ADDFACEENTITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT AddFaceEntityRequest : public RpcServiceRequest { +public: + AddFaceEntityRequest(); + ~AddFaceEntityRequest(); + std::string getEntityId() const; + void setEntityId(const std::string &entityId); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getLabels() const; + void setLabels(const std::string &labels); + std::string getDbName() const; + void setDbName(const std::string &dbName); + +private: + std::string entityId_; + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string labels_; + std::string dbName_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_ADDFACEENTITYREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/AddFaceImageTemplateRequest.h b/facebody/include/alibabacloud/facebody/model/AddFaceImageTemplateRequest.h index fc5b5ea51..117330809 100644 --- a/facebody/include/alibabacloud/facebody/model/AddFaceImageTemplateRequest.h +++ b/facebody/include/alibabacloud/facebody/model/AddFaceImageTemplateRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_ADDFACEIMAGETEMPLATEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_ADDFACEIMAGETEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT AddFaceImageTemplateRequest : public RpcServiceRequest - { - - public: - AddFaceImageTemplateRequest(); - ~AddFaceImageTemplateRequest(); - - bool getFormatResultToJson()const; - void setFormatResultToJson(bool formatResultToJson); - std::string getUserId()const; - void setUserId(const std::string& userId); - std::string getOssFile()const; - void setOssFile(const std::string& ossFile); - std::string getRequestProxyBy()const; - void setRequestProxyBy(const std::string& requestProxyBy); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - bool formatResultToJson_; - std::string userId_; - std::string ossFile_; - std::string requestProxyBy_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_ADDFACEIMAGETEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_ADDFACEIMAGETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_ADDFACEIMAGETEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT AddFaceImageTemplateRequest : public RpcServiceRequest { +public: + AddFaceImageTemplateRequest(); + ~AddFaceImageTemplateRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + std::string userId_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_ADDFACEIMAGETEMPLATEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/AddFaceRequest.h b/facebody/include/alibabacloud/facebody/model/AddFaceRequest.h index 0c39a8319..7d0116f26 100644 --- a/facebody/include/alibabacloud/facebody/model/AddFaceRequest.h +++ b/facebody/include/alibabacloud/facebody/model/AddFaceRequest.h @@ -1,66 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_ADDFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_ADDFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT AddFaceRequest : public RpcServiceRequest - { - - public: - AddFaceRequest(); - ~AddFaceRequest(); - - std::string getEntityId()const; - void setEntityId(const std::string& entityId); - float getQualityScoreThreshold()const; - void setQualityScoreThreshold(float qualityScoreThreshold); - float getSimilarityScoreThresholdBetweenEntity()const; - void setSimilarityScoreThresholdBetweenEntity(float similarityScoreThresholdBetweenEntity); - std::string getExtraData()const; - void setExtraData(const std::string& extraData); - float getSimilarityScoreThresholdInEntity()const; - void setSimilarityScoreThresholdInEntity(float similarityScoreThresholdInEntity); - std::string getDbName()const; - void setDbName(const std::string& dbName); - std::string getImageUrl()const; - void setImageUrl(const std::string& imageUrl); - - private: - std::string entityId_; - float qualityScoreThreshold_; - float similarityScoreThresholdBetweenEntity_; - std::string extraData_; - float similarityScoreThresholdInEntity_; - std::string dbName_; - std::string imageUrl_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_ADDFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_ADDFACEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_ADDFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT AddFaceRequest : public RpcServiceRequest { +public: + AddFaceRequest(); + ~AddFaceRequest(); + std::string getEntityId() const; + void setEntityId(const std::string &entityId); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + float getQualityScoreThreshold() const; + void setQualityScoreThreshold(float qualityScoreThreshold); + float getSimilarityScoreThresholdBetweenEntity() const; + void setSimilarityScoreThresholdBetweenEntity(float similarityScoreThresholdBetweenEntity); + std::string getExtraData() const; + void setExtraData(const std::string &extraData); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + float getSimilarityScoreThresholdInEntity() const; + void setSimilarityScoreThresholdInEntity(float similarityScoreThresholdInEntity); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getDbName() const; + void setDbName(const std::string &dbName); + std::string getImageUrl() const; + void setImageUrl(const std::string &imageUrl); + +private: + std::string entityId_; + bool formatResultToJson_; + float qualityScoreThreshold_; + float similarityScoreThresholdBetweenEntity_; + std::string extraData_; + std::string ossFile_; + float similarityScoreThresholdInEntity_; + std::string requestProxyBy_; + std::string dbName_; + std::string imageUrl_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_ADDFACEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/BatchAddFacesRequest.h b/facebody/include/alibabacloud/facebody/model/BatchAddFacesRequest.h index 60188bf7a..fe8e5706e 100644 --- a/facebody/include/alibabacloud/facebody/model/BatchAddFacesRequest.h +++ b/facebody/include/alibabacloud/facebody/model/BatchAddFacesRequest.h @@ -1,63 +1,70 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_BATCHADDFACESREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_BATCHADDFACESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT BatchAddFacesRequest : public RpcServiceRequest - { - - public: - BatchAddFacesRequest(); - ~BatchAddFacesRequest(); - - std::string getEntityId()const; - void setEntityId(const std::string& entityId); - float getQualityScoreThreshold()const; - void setQualityScoreThreshold(float qualityScoreThreshold); - float getSimilarityScoreThresholdBetweenEntity()const; - void setSimilarityScoreThresholdBetweenEntity(float similarityScoreThresholdBetweenEntity); - float getSimilarityScoreThresholdInEntity()const; - void setSimilarityScoreThresholdInEntity(float similarityScoreThresholdInEntity); - std::string getDbName()const; - void setDbName(const std::string& dbName); - Array getFaces()const; - void setFaces(const Array& faces); - - private: - std::string entityId_; - float qualityScoreThreshold_; - float similarityScoreThresholdBetweenEntity_; - float similarityScoreThresholdInEntity_; - std::string dbName_; - Array faces_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_BATCHADDFACESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_BATCHADDFACESREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_BATCHADDFACESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT BatchAddFacesRequest : public RpcServiceRequest { +public: + struct Faces { + std::string extraData; + std::string imageURL; + }; + BatchAddFacesRequest(); + ~BatchAddFacesRequest(); + std::string getEntityId() const; + void setEntityId(const std::string &entityId); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + float getQualityScoreThreshold() const; + void setQualityScoreThreshold(float qualityScoreThreshold); + float getSimilarityScoreThresholdBetweenEntity() const; + void setSimilarityScoreThresholdBetweenEntity(float similarityScoreThresholdBetweenEntity); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + float getSimilarityScoreThresholdInEntity() const; + void setSimilarityScoreThresholdInEntity(float similarityScoreThresholdInEntity); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getDbName() const; + void setDbName(const std::string &dbName); + std::vector getFaces() const; + void setFaces(const std::vector &faces); + +private: + std::string entityId_; + bool formatResultToJson_; + float qualityScoreThreshold_; + float similarityScoreThresholdBetweenEntity_; + std::string ossFile_; + float similarityScoreThresholdInEntity_; + std::string requestProxyBy_; + std::string dbName_; + std::vector faces_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_BATCHADDFACESREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/BeautifyBodyRequest.h b/facebody/include/alibabacloud/facebody/model/BeautifyBodyRequest.h index c33d416d2..3ca3e56d2 100644 --- a/facebody/include/alibabacloud/facebody/model/BeautifyBodyRequest.h +++ b/facebody/include/alibabacloud/facebody/model/BeautifyBodyRequest.h @@ -1,81 +1,114 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_BEAUTIFYBODYREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_BEAUTIFYBODYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT BeautifyBodyRequest : public RpcServiceRequest - { - - public: - BeautifyBodyRequest(); - ~BeautifyBodyRequest(); - - Array getBodyBoxes()const; - void setBodyBoxes(const Array& bodyBoxes); - float getLengthenDegree()const; - void setLengthenDegree(float lengthenDegree); - float getMaleLiquifyDegree()const; - void setMaleLiquifyDegree(float maleLiquifyDegree); - long getOriginalWidth()const; - void setOriginalWidth(long originalWidth); - bool getIsPregnant()const; - void setIsPregnant(bool isPregnant); - Array getFaceList()const; - void setFaceList(const Array& faceList); - Struct getAgeRange()const; - void setAgeRange(const Struct& ageRange); - long getCustom()const; - void setCustom(long custom); - long getOriginalHeight()const; - void setOriginalHeight(long originalHeight); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - float getFemaleLiquifyDegree()const; - void setFemaleLiquifyDegree(float femaleLiquifyDegree); - Array getPoseList()const; - void setPoseList(const Array& poseList); - - private: - Array bodyBoxes_; - float lengthenDegree_; - float maleLiquifyDegree_; - long originalWidth_; - bool isPregnant_; - Array faceList_; - Struct ageRange_; - long custom_; - long originalHeight_; - std::string imageURL_; - float femaleLiquifyDegree_; - Array poseList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_BEAUTIFYBODYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_BEAUTIFYBODYREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_BEAUTIFYBODYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT BeautifyBodyRequest : public RpcServiceRequest { +public: + struct BodyBoxes { + float x; + float width; + float y; + float height; + }; + struct FaceList { + long gender; + struct FaceBox { + float x; + float width; + float y; + float height; + }; + FaceBox faceBox; + long age; + }; + struct AgeRange { + long ageMax; + long ageMinimum; + }; + struct PoseList { + struct PoseItem { + float score; + long x; + long y; + }; + PoseItem poseItem; + std::vector pose; + }; + BeautifyBodyRequest(); + ~BeautifyBodyRequest(); + std::vector getBodyBoxes() const; + void setBodyBoxes(const std::vector &bodyBoxes); + float getLengthenDegree() const; + void setLengthenDegree(float lengthenDegree); + float getMaleLiquifyDegree() const; + void setMaleLiquifyDegree(float maleLiquifyDegree); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + long getOriginalWidth() const; + void setOriginalWidth(long originalWidth); + bool getIsPregnant() const; + void setIsPregnant(bool isPregnant); + std::vector getFaceList() const; + void setFaceList(const std::vector &faceList); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + AgeRange getAgeRange() const; + void setAgeRange(const AgeRange &ageRange); + long getCustom() const; + void setCustom(long custom); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + long getOriginalHeight() const; + void setOriginalHeight(long originalHeight); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + float getFemaleLiquifyDegree() const; + void setFemaleLiquifyDegree(float femaleLiquifyDegree); + std::vector getPoseList() const; + void setPoseList(const std::vector &poseList); + +private: + std::vector bodyBoxes_; + float lengthenDegree_; + float maleLiquifyDegree_; + bool formatResultToJson_; + long originalWidth_; + bool isPregnant_; + std::vector faceList_; + std::string ossFile_; + AgeRange ageRange_; + long custom_; + std::string requestProxyBy_; + long originalHeight_; + std::string imageURL_; + float femaleLiquifyDegree_; + std::vector poseList_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_BEAUTIFYBODYREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/BlurFaceRequest.h b/facebody/include/alibabacloud/facebody/model/BlurFaceRequest.h index 17aad411b..382d8a0bc 100644 --- a/facebody/include/alibabacloud/facebody/model/BlurFaceRequest.h +++ b/facebody/include/alibabacloud/facebody/model/BlurFaceRequest.h @@ -1,48 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_BLURFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_BLURFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT BlurFaceRequest : public RpcServiceRequest - { - - public: - BlurFaceRequest(); - ~BlurFaceRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_BLURFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_BLURFACEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_BLURFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT BlurFaceRequest : public RpcServiceRequest { +public: + BlurFaceRequest(); + ~BlurFaceRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_BLURFACEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/BodyPostureRequest.h b/facebody/include/alibabacloud/facebody/model/BodyPostureRequest.h index acedecd6a..ee3e2e028 100644 --- a/facebody/include/alibabacloud/facebody/model/BodyPostureRequest.h +++ b/facebody/include/alibabacloud/facebody/model/BodyPostureRequest.h @@ -1,48 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_BODYPOSTUREREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_BODYPOSTUREREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT BodyPostureRequest : public RpcServiceRequest - { - - public: - BodyPostureRequest(); - ~BodyPostureRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_BODYPOSTUREREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_BODYPOSTUREREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_BODYPOSTUREREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT BodyPostureRequest : public RpcServiceRequest { +public: + BodyPostureRequest(); + ~BodyPostureRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_BODYPOSTUREREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/CompareFaceRequest.h b/facebody/include/alibabacloud/facebody/model/CompareFaceRequest.h index 54f4d45be..853da3951 100644 --- a/facebody/include/alibabacloud/facebody/model/CompareFaceRequest.h +++ b/facebody/include/alibabacloud/facebody/model/CompareFaceRequest.h @@ -1,63 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_COMPAREFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_COMPAREFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT CompareFaceRequest : public RpcServiceRequest - { - - public: - CompareFaceRequest(); - ~CompareFaceRequest(); - - std::string getImageDataA()const; - void setImageDataA(const std::string& imageDataA); - std::string getImageDataB()const; - void setImageDataB(const std::string& imageDataB); - float getQualityScoreThreshold()const; - void setQualityScoreThreshold(float qualityScoreThreshold); - std::string getImageURLB()const; - void setImageURLB(const std::string& imageURLB); - std::string getImageURLA()const; - void setImageURLA(const std::string& imageURLA); - int getImageType()const; - void setImageType(int imageType); - - private: - std::string imageDataA_; - std::string imageDataB_; - float qualityScoreThreshold_; - std::string imageURLB_; - std::string imageURLA_; - int imageType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_COMPAREFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_COMPAREFACEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_COMPAREFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT CompareFaceRequest : public RpcServiceRequest { +public: + CompareFaceRequest(); + ~CompareFaceRequest(); + std::string getImageDataA() const; + void setImageDataA(const std::string &imageDataA); + std::string getImageDataB() const; + void setImageDataB(const std::string &imageDataB); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + float getQualityScoreThreshold() const; + void setQualityScoreThreshold(float qualityScoreThreshold); + std::string getImageURLB() const; + void setImageURLB(const std::string &imageURLB); + std::string getImageURLA() const; + void setImageURLA(const std::string &imageURLA); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + int getImageType() const; + void setImageType(int imageType); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + +private: + std::string imageDataA_; + std::string imageDataB_; + bool formatResultToJson_; + float qualityScoreThreshold_; + std::string imageURLB_; + std::string imageURLA_; + std::string ossFile_; + int imageType_; + std::string requestProxyBy_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_COMPAREFACEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/CountCrowdRequest.h b/facebody/include/alibabacloud/facebody/model/CountCrowdRequest.h index 4f8bec434..487623d29 100644 --- a/facebody/include/alibabacloud/facebody/model/CountCrowdRequest.h +++ b/facebody/include/alibabacloud/facebody/model/CountCrowdRequest.h @@ -1,51 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_COUNTCROWDREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_COUNTCROWDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT CountCrowdRequest : public RpcServiceRequest - { - - public: - CountCrowdRequest(); - ~CountCrowdRequest(); - - bool getIsShow()const; - void setIsShow(bool isShow); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - bool isShow_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_COUNTCROWDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_COUNTCROWDREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_COUNTCROWDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT CountCrowdRequest : public RpcServiceRequest { +public: + CountCrowdRequest(); + ~CountCrowdRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + bool getIsShow() const; + void setIsShow(bool isShow); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + bool isShow_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_COUNTCROWDREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/CreateBodyDbRequest.h b/facebody/include/alibabacloud/facebody/model/CreateBodyDbRequest.h index 7f13c0470..95260534c 100644 --- a/facebody/include/alibabacloud/facebody/model/CreateBodyDbRequest.h +++ b/facebody/include/alibabacloud/facebody/model/CreateBodyDbRequest.h @@ -1,48 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT CreateBodyDbRequest : public RpcServiceRequest - { - - public: - CreateBodyDbRequest(); - ~CreateBodyDbRequest(); - - std::string getName()const; - void setName(const std::string& name); - - private: - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT CreateBodyDbRequest : public RpcServiceRequest { +public: + CreateBodyDbRequest(); + ~CreateBodyDbRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getName() const; + void setName(const std::string &name); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string name_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/CreateBodyPersonRequest.h b/facebody/include/alibabacloud/facebody/model/CreateBodyPersonRequest.h index 1393af362..c372cb09d 100644 --- a/facebody/include/alibabacloud/facebody/model/CreateBodyPersonRequest.h +++ b/facebody/include/alibabacloud/facebody/model/CreateBodyPersonRequest.h @@ -1,51 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT CreateBodyPersonRequest : public RpcServiceRequest - { - - public: - CreateBodyPersonRequest(); - ~CreateBodyPersonRequest(); - - long getDbId()const; - void setDbId(long dbId); - std::string getName()const; - void setName(const std::string& name); - - private: - long dbId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT CreateBodyPersonRequest : public RpcServiceRequest { +public: + CreateBodyPersonRequest(); + ~CreateBodyPersonRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + long getDbId() const; + void setDbId(long dbId); + std::string getName() const; + void setName(const std::string &name); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + long dbId_; + std::string name_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/CreateFaceDbRequest.h b/facebody/include/alibabacloud/facebody/model/CreateFaceDbRequest.h index 386b64e85..2a8ba0075 100644 --- a/facebody/include/alibabacloud/facebody/model/CreateFaceDbRequest.h +++ b/facebody/include/alibabacloud/facebody/model/CreateFaceDbRequest.h @@ -1,48 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_CREATEFACEDBREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_CREATEFACEDBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT CreateFaceDbRequest : public RpcServiceRequest - { - - public: - CreateFaceDbRequest(); - ~CreateFaceDbRequest(); - - std::string getName()const; - void setName(const std::string& name); - - private: - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_CREATEFACEDBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_CREATEFACEDBREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_CREATEFACEDBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT CreateFaceDbRequest : public RpcServiceRequest { +public: + CreateFaceDbRequest(); + ~CreateFaceDbRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getName() const; + void setName(const std::string &name); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string name_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_CREATEFACEDBREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/DeleteBodyDbRequest.h b/facebody/include/alibabacloud/facebody/model/DeleteBodyDbRequest.h index a2cf9830e..dcf134425 100644 --- a/facebody/include/alibabacloud/facebody/model/DeleteBodyDbRequest.h +++ b/facebody/include/alibabacloud/facebody/model/DeleteBodyDbRequest.h @@ -1,48 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DeleteBodyDbRequest : public RpcServiceRequest - { - - public: - DeleteBodyDbRequest(); - ~DeleteBodyDbRequest(); - - long getId()const; - void setId(long id); - - private: - long id_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT DeleteBodyDbRequest : public RpcServiceRequest { +public: + DeleteBodyDbRequest(); + ~DeleteBodyDbRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + long getId() const; + void setId(long id); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + +private: + bool formatResultToJson_; + long id_; + std::string ossFile_; + std::string requestProxyBy_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/DeleteBodyPersonRequest.h b/facebody/include/alibabacloud/facebody/model/DeleteBodyPersonRequest.h index ec6e444e3..6d5e2fc72 100644 --- a/facebody/include/alibabacloud/facebody/model/DeleteBodyPersonRequest.h +++ b/facebody/include/alibabacloud/facebody/model/DeleteBodyPersonRequest.h @@ -1,51 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DeleteBodyPersonRequest : public RpcServiceRequest - { - - public: - DeleteBodyPersonRequest(); - ~DeleteBodyPersonRequest(); - - long getPersonId()const; - void setPersonId(long personId); - long getDbId()const; - void setDbId(long dbId); - - private: - long personId_; - long dbId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT DeleteBodyPersonRequest : public RpcServiceRequest { +public: + DeleteBodyPersonRequest(); + ~DeleteBodyPersonRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + long getPersonId() const; + void setPersonId(long personId); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + long getDbId() const; + void setDbId(long dbId); + +private: + bool formatResultToJson_; + long personId_; + std::string ossFile_; + std::string requestProxyBy_; + long dbId_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/DeleteFaceDbRequest.h b/facebody/include/alibabacloud/facebody/model/DeleteFaceDbRequest.h index 150abfafd..627192af2 100644 --- a/facebody/include/alibabacloud/facebody/model/DeleteFaceDbRequest.h +++ b/facebody/include/alibabacloud/facebody/model/DeleteFaceDbRequest.h @@ -1,48 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEDBREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEDBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DeleteFaceDbRequest : public RpcServiceRequest - { - - public: - DeleteFaceDbRequest(); - ~DeleteFaceDbRequest(); - - std::string getName()const; - void setName(const std::string& name); - - private: - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEDBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEDBREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEDBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT DeleteFaceDbRequest : public RpcServiceRequest { +public: + DeleteFaceDbRequest(); + ~DeleteFaceDbRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getName() const; + void setName(const std::string &name); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string name_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEDBREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/DeleteFaceEntityRequest.h b/facebody/include/alibabacloud/facebody/model/DeleteFaceEntityRequest.h index 95ccb61bd..5eceee86b 100644 --- a/facebody/include/alibabacloud/facebody/model/DeleteFaceEntityRequest.h +++ b/facebody/include/alibabacloud/facebody/model/DeleteFaceEntityRequest.h @@ -1,51 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEENTITYREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEENTITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DeleteFaceEntityRequest : public RpcServiceRequest - { - - public: - DeleteFaceEntityRequest(); - ~DeleteFaceEntityRequest(); - - std::string getEntityId()const; - void setEntityId(const std::string& entityId); - std::string getDbName()const; - void setDbName(const std::string& dbName); - - private: - std::string entityId_; - std::string dbName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEENTITYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEENTITYREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEENTITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT DeleteFaceEntityRequest : public RpcServiceRequest { +public: + DeleteFaceEntityRequest(); + ~DeleteFaceEntityRequest(); + std::string getEntityId() const; + void setEntityId(const std::string &entityId); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getDbName() const; + void setDbName(const std::string &dbName); + +private: + std::string entityId_; + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string dbName_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEENTITYREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/DeleteFaceImageTemplateRequest.h b/facebody/include/alibabacloud/facebody/model/DeleteFaceImageTemplateRequest.h index 99dfef01d..742c0d684 100644 --- a/facebody/include/alibabacloud/facebody/model/DeleteFaceImageTemplateRequest.h +++ b/facebody/include/alibabacloud/facebody/model/DeleteFaceImageTemplateRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEIMAGETEMPLATEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEIMAGETEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DeleteFaceImageTemplateRequest : public RpcServiceRequest - { - - public: - DeleteFaceImageTemplateRequest(); - ~DeleteFaceImageTemplateRequest(); - - bool getFormatResultToJson()const; - void setFormatResultToJson(bool formatResultToJson); - std::string getUserId()const; - void setUserId(const std::string& userId); - std::string getOssFile()const; - void setOssFile(const std::string& ossFile); - std::string getTemplateId()const; - void setTemplateId(const std::string& templateId); - std::string getRequestProxyBy()const; - void setRequestProxyBy(const std::string& requestProxyBy); - - private: - bool formatResultToJson_; - std::string userId_; - std::string ossFile_; - std::string templateId_; - std::string requestProxyBy_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEIMAGETEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEIMAGETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEIMAGETEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT DeleteFaceImageTemplateRequest : public RpcServiceRequest { +public: + DeleteFaceImageTemplateRequest(); + ~DeleteFaceImageTemplateRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + +private: + bool formatResultToJson_; + std::string userId_; + std::string ossFile_; + std::string templateId_; + std::string requestProxyBy_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEIMAGETEMPLATEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/DeleteFaceRequest.h b/facebody/include/alibabacloud/facebody/model/DeleteFaceRequest.h index 669706c59..21ffcf415 100644 --- a/facebody/include/alibabacloud/facebody/model/DeleteFaceRequest.h +++ b/facebody/include/alibabacloud/facebody/model/DeleteFaceRequest.h @@ -1,51 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DeleteFaceRequest : public RpcServiceRequest - { - - public: - DeleteFaceRequest(); - ~DeleteFaceRequest(); - - std::string getFaceId()const; - void setFaceId(const std::string& faceId); - std::string getDbName()const; - void setDbName(const std::string& dbName); - - private: - std::string faceId_; - std::string dbName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT DeleteFaceRequest : public RpcServiceRequest { +public: + DeleteFaceRequest(); + ~DeleteFaceRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getFaceId() const; + void setFaceId(const std::string &faceId); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getDbName() const; + void setDbName(const std::string &dbName); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::string faceId_; + std::string requestProxyBy_; + std::string dbName_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEFACEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/DetectBodyCountRequest.h b/facebody/include/alibabacloud/facebody/model/DetectBodyCountRequest.h index 7a7f97ff7..0daed2827 100644 --- a/facebody/include/alibabacloud/facebody/model/DetectBodyCountRequest.h +++ b/facebody/include/alibabacloud/facebody/model/DetectBodyCountRequest.h @@ -1,48 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTBODYCOUNTREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTBODYCOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectBodyCountRequest : public RpcServiceRequest - { - - public: - DetectBodyCountRequest(); - ~DetectBodyCountRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTBODYCOUNTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTBODYCOUNTREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DETECTBODYCOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT DetectBodyCountRequest : public RpcServiceRequest { +public: + DetectBodyCountRequest(); + ~DetectBodyCountRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTBODYCOUNTREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/DetectCelebrityRequest.h b/facebody/include/alibabacloud/facebody/model/DetectCelebrityRequest.h index 5b6ba4759..ec3dfd31f 100644 --- a/facebody/include/alibabacloud/facebody/model/DetectCelebrityRequest.h +++ b/facebody/include/alibabacloud/facebody/model/DetectCelebrityRequest.h @@ -1,48 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTCELEBRITYREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTCELEBRITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectCelebrityRequest : public RpcServiceRequest - { - - public: - DetectCelebrityRequest(); - ~DetectCelebrityRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTCELEBRITYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTCELEBRITYREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DETECTCELEBRITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT DetectCelebrityRequest : public RpcServiceRequest { +public: + DetectCelebrityRequest(); + ~DetectCelebrityRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTCELEBRITYREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/DetectChefCapRequest.h b/facebody/include/alibabacloud/facebody/model/DetectChefCapRequest.h index 4653ed6ba..60eb78a5e 100644 --- a/facebody/include/alibabacloud/facebody/model/DetectChefCapRequest.h +++ b/facebody/include/alibabacloud/facebody/model/DetectChefCapRequest.h @@ -1,48 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTCHEFCAPREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTCHEFCAPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectChefCapRequest : public RpcServiceRequest - { - - public: - DetectChefCapRequest(); - ~DetectChefCapRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTCHEFCAPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTCHEFCAPREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DETECTCHEFCAPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT DetectChefCapRequest : public RpcServiceRequest { +public: + DetectChefCapRequest(); + ~DetectChefCapRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTCHEFCAPREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/DetectFaceRequest.h b/facebody/include/alibabacloud/facebody/model/DetectFaceRequest.h index afb3389c2..0c00c6a2a 100644 --- a/facebody/include/alibabacloud/facebody/model/DetectFaceRequest.h +++ b/facebody/include/alibabacloud/facebody/model/DetectFaceRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectFaceRequest : public RpcServiceRequest - { - - public: - DetectFaceRequest(); - ~DetectFaceRequest(); - - long getMaxFaceNumber()const; - void setMaxFaceNumber(long maxFaceNumber); - bool getFormatResultToJson()const; - void setFormatResultToJson(bool formatResultToJson); - bool getLandmark()const; - void setLandmark(bool landmark); - std::string getOssFile()const; - void setOssFile(const std::string& ossFile); - int getImageType()const; - void setImageType(int imageType); - bool getPose()const; - void setPose(bool pose); - std::string getRequestProxyBy()const; - void setRequestProxyBy(const std::string& requestProxyBy); - bool getQuality()const; - void setQuality(bool quality); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - long maxFaceNumber_; - bool formatResultToJson_; - bool landmark_; - std::string ossFile_; - int imageType_; - bool pose_; - std::string requestProxyBy_; - bool quality_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTFACEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DETECTFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT DetectFaceRequest : public RpcServiceRequest { +public: + DetectFaceRequest(); + ~DetectFaceRequest(); + long getMaxFaceNumber() const; + void setMaxFaceNumber(long maxFaceNumber); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + bool getLandmark() const; + void setLandmark(bool landmark); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + int getImageType() const; + void setImageType(int imageType); + bool getPose() const; + void setPose(bool pose); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + bool getQuality() const; + void setQuality(bool quality); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + long maxFaceNumber_; + bool formatResultToJson_; + bool landmark_; + std::string ossFile_; + int imageType_; + bool pose_; + std::string requestProxyBy_; + bool quality_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTFACEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianRequest.h b/facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianRequest.h index 752082346..ca315c566 100644 --- a/facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianRequest.h +++ b/facebody/include/alibabacloud/facebody/model/DetectIPCPedestrianRequest.h @@ -1,63 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianRequest : public RpcServiceRequest - { - - public: - DetectIPCPedestrianRequest(); - ~DetectIPCPedestrianRequest(); - - bool getContinueOnError()const; - void setContinueOnError(bool continueOnError); - int getHeight()const; - void setHeight(int height); - std::string getImageData()const; - void setImageData(const std::string& imageData); - std::string getDataId()const; - void setDataId(const std::string& dataId); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - int getWidth()const; - void setWidth(int width); - - private: - bool continueOnError_; - int height_; - std::string imageData_; - std::string dataId_; - std::string imageURL_; - int width_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianRequest : public RpcServiceRequest { +public: + DetectIPCPedestrianRequest(); + ~DetectIPCPedestrianRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + bool getContinueOnError() const; + void setContinueOnError(bool continueOnError); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + int getHeight() const; + void setHeight(int height); + std::string getImageData() const; + void setImageData(const std::string &imageData); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getDataId() const; + void setDataId(const std::string &dataId); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + int getWidth() const; + void setWidth(int width); + +private: + bool formatResultToJson_; + bool continueOnError_; + std::string ossFile_; + int height_; + std::string imageData_; + std::string requestProxyBy_; + std::string dataId_; + std::string imageURL_; + int width_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/DetectLivingFaceRequest.h b/facebody/include/alibabacloud/facebody/model/DetectLivingFaceRequest.h index fb4f7aeac..e095a77de 100644 --- a/facebody/include/alibabacloud/facebody/model/DetectLivingFaceRequest.h +++ b/facebody/include/alibabacloud/facebody/model/DetectLivingFaceRequest.h @@ -1,63 +1,55 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTLIVINGFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTLIVINGFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectLivingFaceRequest : public RpcServiceRequest - { - public: - struct Tasks - { - std::string imageURL; - std::string imageData; - }; - - public: - DetectLivingFaceRequest(); - ~DetectLivingFaceRequest(); - - bool getFormatResultToJson()const; - void setFormatResultToJson(bool formatResultToJson); - std::string getOssFile()const; - void setOssFile(const std::string& ossFile); - std::vector getTasks()const; - void setTasks(const std::vector& tasks); - std::string getRequestProxyBy()const; - void setRequestProxyBy(const std::string& requestProxyBy); - - private: - bool formatResultToJson_; - std::string ossFile_; - std::vector tasks_; - std::string requestProxyBy_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTLIVINGFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTLIVINGFACEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DETECTLIVINGFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT DetectLivingFaceRequest : public RpcServiceRequest { +public: + struct Tasks { + std::string imageURL; + std::string imageData; + }; + DetectLivingFaceRequest(); + ~DetectLivingFaceRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::vector getTasks() const; + void setTasks(const std::vector &tasks); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::vector tasks_; + std::string requestProxyBy_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTLIVINGFACEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/DetectPedestrianIntrusionRequest.h b/facebody/include/alibabacloud/facebody/model/DetectPedestrianIntrusionRequest.h index 45bdd9246..0feaab477 100644 --- a/facebody/include/alibabacloud/facebody/model/DetectPedestrianIntrusionRequest.h +++ b/facebody/include/alibabacloud/facebody/model/DetectPedestrianIntrusionRequest.h @@ -1,54 +1,73 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTPEDESTRIANINTRUSIONREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTPEDESTRIANINTRUSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectPedestrianIntrusionRequest : public RpcServiceRequest - { - - public: - DetectPedestrianIntrusionRequest(); - ~DetectPedestrianIntrusionRequest(); - - Array getDetectRegion()const; - void setDetectRegion(const Array& detectRegion); - std::string getRegionType()const; - void setRegionType(const std::string& regionType); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - Array detectRegion_; - std::string regionType_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTPEDESTRIANINTRUSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTPEDESTRIANINTRUSIONREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DETECTPEDESTRIANINTRUSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT DetectPedestrianIntrusionRequest : public RpcServiceRequest { +public: + struct DetectRegion { + struct Rect { + long top; + long left; + long bottom; + long right; + }; + Rect rect; + struct Line { + long y1; + long x1; + long y2; + long x2; + }; + Line line; + }; + DetectPedestrianIntrusionRequest(); + ~DetectPedestrianIntrusionRequest(); + std::vector getDetectRegion() const; + void setDetectRegion(const std::vector &detectRegion); + std::string getRegionType() const; + void setRegionType(const std::string ®ionType); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + std::vector detectRegion_; + std::string regionType_; + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTPEDESTRIANINTRUSIONREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/DetectPedestrianRequest.h b/facebody/include/alibabacloud/facebody/model/DetectPedestrianRequest.h index 35815ed76..7af35e765 100644 --- a/facebody/include/alibabacloud/facebody/model/DetectPedestrianRequest.h +++ b/facebody/include/alibabacloud/facebody/model/DetectPedestrianRequest.h @@ -1,48 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTPEDESTRIANREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTPEDESTRIANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectPedestrianRequest : public RpcServiceRequest - { - - public: - DetectPedestrianRequest(); - ~DetectPedestrianRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTPEDESTRIANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTPEDESTRIANREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DETECTPEDESTRIANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT DetectPedestrianRequest : public RpcServiceRequest { +public: + DetectPedestrianRequest(); + ~DetectPedestrianRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTPEDESTRIANREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/DetectPedestrianResult.h b/facebody/include/alibabacloud/facebody/model/DetectPedestrianResult.h index 90b688b41..062cf7f79 100644 --- a/facebody/include/alibabacloud/facebody/model/DetectPedestrianResult.h +++ b/facebody/include/alibabacloud/facebody/model/DetectPedestrianResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { struct Element { - float score; std::string type; + float score; std::vector boxes; }; int height; diff --git a/facebody/include/alibabacloud/facebody/model/DetectVideoLivingFaceRequest.h b/facebody/include/alibabacloud/facebody/model/DetectVideoLivingFaceRequest.h index b806325bb..9338d3657 100644 --- a/facebody/include/alibabacloud/facebody/model/DetectVideoLivingFaceRequest.h +++ b/facebody/include/alibabacloud/facebody/model/DetectVideoLivingFaceRequest.h @@ -1,48 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTVIDEOLIVINGFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_DETECTVIDEOLIVINGFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT DetectVideoLivingFaceRequest : public RpcServiceRequest - { - - public: - DetectVideoLivingFaceRequest(); - ~DetectVideoLivingFaceRequest(); - - std::string getVideoUrl()const; - void setVideoUrl(const std::string& videoUrl); - - private: - std::string videoUrl_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTVIDEOLIVINGFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_DETECTVIDEOLIVINGFACEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_DETECTVIDEOLIVINGFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT DetectVideoLivingFaceRequest : public RpcServiceRequest { +public: + DetectVideoLivingFaceRequest(); + ~DetectVideoLivingFaceRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getVideoUrl() const; + void setVideoUrl(const std::string &videoUrl); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string videoUrl_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTVIDEOLIVINGFACEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/EnhanceFaceRequest.h b/facebody/include/alibabacloud/facebody/model/EnhanceFaceRequest.h index c3f336a39..c8f81e323 100644 --- a/facebody/include/alibabacloud/facebody/model/EnhanceFaceRequest.h +++ b/facebody/include/alibabacloud/facebody/model/EnhanceFaceRequest.h @@ -1,48 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_ENHANCEFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_ENHANCEFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT EnhanceFaceRequest : public RpcServiceRequest - { - - public: - EnhanceFaceRequest(); - ~EnhanceFaceRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_ENHANCEFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_ENHANCEFACEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_ENHANCEFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT EnhanceFaceRequest : public RpcServiceRequest { +public: + EnhanceFaceRequest(); + ~EnhanceFaceRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_ENHANCEFACEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/ExtractFingerPrintRequest.h b/facebody/include/alibabacloud/facebody/model/ExtractFingerPrintRequest.h index 76b8eace1..d3954354e 100644 --- a/facebody/include/alibabacloud/facebody/model/ExtractFingerPrintRequest.h +++ b/facebody/include/alibabacloud/facebody/model/ExtractFingerPrintRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_EXTRACTFINGERPRINTREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_EXTRACTFINGERPRINTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT ExtractFingerPrintRequest : public RpcServiceRequest - { - - public: - ExtractFingerPrintRequest(); - ~ExtractFingerPrintRequest(); - - bool getFormatResultToJson()const; - void setFormatResultToJson(bool formatResultToJson); - std::string getOssFile()const; - void setOssFile(const std::string& ossFile); - std::string getImageData()const; - void setImageData(const std::string& imageData); - std::string getRequestProxyBy()const; - void setRequestProxyBy(const std::string& requestProxyBy); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - bool formatResultToJson_; - std::string ossFile_; - std::string imageData_; - std::string requestProxyBy_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_EXTRACTFINGERPRINTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_EXTRACTFINGERPRINTREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_EXTRACTFINGERPRINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT ExtractFingerPrintRequest : public RpcServiceRequest { +public: + ExtractFingerPrintRequest(); + ~ExtractFingerPrintRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getImageData() const; + void setImageData(const std::string &imageData); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::string imageData_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_EXTRACTFINGERPRINTREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrRequest.h b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrRequest.h index cdcc7ba0b..e0096bd21 100644 --- a/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrRequest.h +++ b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrRequest.h @@ -1,54 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT ExtractPedestrianFeatureAttrRequest : public RpcServiceRequest - { - - public: - ExtractPedestrianFeatureAttrRequest(); - ~ExtractPedestrianFeatureAttrRequest(); - - std::string getMode()const; - void setMode(const std::string& mode); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - std::string getServiceVersion()const; - void setServiceVersion(const std::string& serviceVersion); - - private: - std::string mode_; - std::string imageURL_; - std::string serviceVersion_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT ExtractPedestrianFeatureAttrRequest : public RpcServiceRequest { +public: + ExtractPedestrianFeatureAttrRequest(); + ~ExtractPedestrianFeatureAttrRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getMode() const; + void setMode(const std::string &mode); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + std::string getServiceVersion() const; + void setServiceVersion(const std::string &serviceVersion); + +private: + bool formatResultToJson_; + std::string mode_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; + std::string serviceVersion_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrResult.h b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrResult.h index 8d97374ed..d0c54fb47 100644 --- a/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrResult.h +++ b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttrResult.h @@ -35,23 +35,23 @@ namespace AlibabaCloud struct Data { std::string hair; - std::string upperType; float upperTypeScore; - std::string lowerColor; + std::string upperType; float qualityScore; + std::string lowerColor; std::string gender; std::string orientation; std::string feature; float orientationScore; float upperColorScore; - float genderScore; float lowerColorScore; + float genderScore; std::string objType; float lowerTypeScore; float hairScore; std::string upperColor; - std::string lowerType; float ageScore; + std::string lowerType; float objTypeScore; std::string age; }; diff --git a/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeRequest.h b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeRequest.h index 377d895a6..c8d273c2d 100644 --- a/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeRequest.h +++ b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeRequest.h @@ -1,59 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT ExtractPedestrianFeatureAttributeRequest : public RpcServiceRequest - { - public: - struct UrlList - { - std::string url; - }; - - public: - ExtractPedestrianFeatureAttributeRequest(); - ~ExtractPedestrianFeatureAttributeRequest(); - - std::vector getUrlList()const; - void setUrlList(const std::vector& urlList); - std::string getMode()const; - void setMode(const std::string& mode); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::vector urlList_; - std::string mode_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT ExtractPedestrianFeatureAttributeRequest : public RpcServiceRequest { +public: + struct UrlList { + std::string url; + }; + ExtractPedestrianFeatureAttributeRequest(); + ~ExtractPedestrianFeatureAttributeRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getMode() const; + void setMode(const std::string &mode); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::vector getUrlList() const; + void setUrlList(const std::vector &urlList); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + std::string mode_; + std::string ossFile_; + std::vector urlList_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_EXTRACTPEDESTRIANFEATUREATTRIBUTEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeResult.h b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeResult.h index ca0b5fc9e..1463821a6 100644 --- a/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeResult.h +++ b/facebody/include/alibabacloud/facebody/model/ExtractPedestrianFeatureAttributeResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud struct Element { std::string hair; - std::string upperType; float upperTypeScore; + std::string upperType; float qualityScore; std::string lowerColor; std::string gender; @@ -50,14 +50,14 @@ namespace AlibabaCloud float lowerTypeScore; float hairScore; std::string upperColor; - std::string lowerType; float ageScore; + std::string lowerType; float objTypeScore; std::string age; }; std::string hair; - std::string upperType; float upperTypeScore; + std::string upperType; float qualityScore; std::string lowerColor; std::string gender; @@ -70,8 +70,8 @@ namespace AlibabaCloud float lowerTypeScore; float hairScore; std::string upperColor; - std::string lowerType; float ageScore; + std::string lowerType; float objTypeScore; std::string age; }; diff --git a/facebody/include/alibabacloud/facebody/model/FaceBeautyRequest.h b/facebody/include/alibabacloud/facebody/model/FaceBeautyRequest.h index 0c2a1f661..78d8a784a 100644 --- a/facebody/include/alibabacloud/facebody/model/FaceBeautyRequest.h +++ b/facebody/include/alibabacloud/facebody/model/FaceBeautyRequest.h @@ -1,57 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_FACEBEAUTYREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_FACEBEAUTYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT FaceBeautyRequest : public RpcServiceRequest - { - - public: - FaceBeautyRequest(); - ~FaceBeautyRequest(); - - float getWhite()const; - void setWhite(float white); - float getSmooth()const; - void setSmooth(float smooth); - float getSharp()const; - void setSharp(float sharp); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - float white_; - float smooth_; - float sharp_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_FACEBEAUTYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_FACEBEAUTYREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_FACEBEAUTYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT FaceBeautyRequest : public RpcServiceRequest { +public: + FaceBeautyRequest(); + ~FaceBeautyRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + float getWhite() const; + void setWhite(float white); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + float getSmooth() const; + void setSmooth(float smooth); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + float getSharp() const; + void setSharp(float sharp); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + float white_; + std::string ossFile_; + float smooth_; + std::string requestProxyBy_; + float sharp_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_FACEBEAUTYREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/FaceFilterRequest.h b/facebody/include/alibabacloud/facebody/model/FaceFilterRequest.h index 3d7a18aeb..4ad65ccd8 100644 --- a/facebody/include/alibabacloud/facebody/model/FaceFilterRequest.h +++ b/facebody/include/alibabacloud/facebody/model/FaceFilterRequest.h @@ -1,54 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_FACEFILTERREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_FACEFILTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT FaceFilterRequest : public RpcServiceRequest - { - - public: - FaceFilterRequest(); - ~FaceFilterRequest(); - - float getStrength()const; - void setStrength(float strength); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - float strength_; - std::string resourceType_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_FACEFILTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_FACEFILTERREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_FACEFILTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT FaceFilterRequest : public RpcServiceRequest { +public: + FaceFilterRequest(); + ~FaceFilterRequest(); + float getStrength() const; + void setStrength(float strength); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + float strength_; + bool formatResultToJson_; + std::string ossFile_; + std::string resourceType_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_FACEFILTERREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/FaceMakeupRequest.h b/facebody/include/alibabacloud/facebody/model/FaceMakeupRequest.h index a68b26585..204fa00fe 100644 --- a/facebody/include/alibabacloud/facebody/model/FaceMakeupRequest.h +++ b/facebody/include/alibabacloud/facebody/model/FaceMakeupRequest.h @@ -1,57 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_FACEMAKEUPREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_FACEMAKEUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT FaceMakeupRequest : public RpcServiceRequest - { - - public: - FaceMakeupRequest(); - ~FaceMakeupRequest(); - - float getStrength()const; - void setStrength(float strength); - std::string getMakeupType()const; - void setMakeupType(const std::string& makeupType); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - float strength_; - std::string makeupType_; - std::string resourceType_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_FACEMAKEUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_FACEMAKEUPREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_FACEMAKEUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT FaceMakeupRequest : public RpcServiceRequest { +public: + FaceMakeupRequest(); + ~FaceMakeupRequest(); + float getStrength() const; + void setStrength(float strength); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getMakeupType() const; + void setMakeupType(const std::string &makeupType); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + float strength_; + bool formatResultToJson_; + std::string ossFile_; + std::string makeupType_; + std::string resourceType_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_FACEMAKEUPREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/FaceTidyupRequest.h b/facebody/include/alibabacloud/facebody/model/FaceTidyupRequest.h index 4cf52cabf..f8c5f8ff7 100644 --- a/facebody/include/alibabacloud/facebody/model/FaceTidyupRequest.h +++ b/facebody/include/alibabacloud/facebody/model/FaceTidyupRequest.h @@ -1,54 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_FACETIDYUPREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_FACETIDYUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT FaceTidyupRequest : public RpcServiceRequest - { - - public: - FaceTidyupRequest(); - ~FaceTidyupRequest(); - - int getShapeType()const; - void setShapeType(int shapeType); - float getStrength()const; - void setStrength(float strength); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - int shapeType_; - float strength_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_FACETIDYUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_FACETIDYUPREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_FACETIDYUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT FaceTidyupRequest : public RpcServiceRequest { +public: + FaceTidyupRequest(); + ~FaceTidyupRequest(); + int getShapeType() const; + void setShapeType(int shapeType); + float getStrength() const; + void setStrength(float strength); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + int shapeType_; + float strength_; + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_FACETIDYUPREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/GenRealPersonVerificationTokenRequest.h b/facebody/include/alibabacloud/facebody/model/GenRealPersonVerificationTokenRequest.h index 0f6c16fb3..50a2564a5 100644 --- a/facebody/include/alibabacloud/facebody/model/GenRealPersonVerificationTokenRequest.h +++ b/facebody/include/alibabacloud/facebody/model/GenRealPersonVerificationTokenRequest.h @@ -1,54 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT GenRealPersonVerificationTokenRequest : public RpcServiceRequest - { - - public: - GenRealPersonVerificationTokenRequest(); - ~GenRealPersonVerificationTokenRequest(); - - std::string getMetaInfo()const; - void setMetaInfo(const std::string& metaInfo); - std::string getCertificateNumber()const; - void setCertificateNumber(const std::string& certificateNumber); - std::string getCertificateName()const; - void setCertificateName(const std::string& certificateName); - - private: - std::string metaInfo_; - std::string certificateNumber_; - std::string certificateName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT GenRealPersonVerificationTokenRequest : public RpcServiceRequest { +public: + GenRealPersonVerificationTokenRequest(); + ~GenRealPersonVerificationTokenRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getMetaInfo() const; + void setMetaInfo(const std::string &metaInfo); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getCertificateNumber() const; + void setCertificateNumber(const std::string &certificateNumber); + std::string getCertificateName() const; + void setCertificateName(const std::string &certificateName); + +private: + bool formatResultToJson_; + std::string metaInfo_; + std::string ossFile_; + std::string requestProxyBy_; + std::string certificateNumber_; + std::string certificateName_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/GenerateHumanAnimeStyleRequest.h b/facebody/include/alibabacloud/facebody/model/GenerateHumanAnimeStyleRequest.h index 14cc74a32..42ffd4cc5 100644 --- a/facebody/include/alibabacloud/facebody/model/GenerateHumanAnimeStyleRequest.h +++ b/facebody/include/alibabacloud/facebody/model/GenerateHumanAnimeStyleRequest.h @@ -1,51 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_GENERATEHUMANANIMESTYLEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_GENERATEHUMANANIMESTYLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT GenerateHumanAnimeStyleRequest : public RpcServiceRequest - { - - public: - GenerateHumanAnimeStyleRequest(); - ~GenerateHumanAnimeStyleRequest(); - - std::string getAlgoType()const; - void setAlgoType(const std::string& algoType); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string algoType_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_GENERATEHUMANANIMESTYLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_GENERATEHUMANANIMESTYLEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_GENERATEHUMANANIMESTYLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT GenerateHumanAnimeStyleRequest : public RpcServiceRequest { +public: + GenerateHumanAnimeStyleRequest(); + ~GenerateHumanAnimeStyleRequest(); + std::string getAlgoType() const; + void setAlgoType(const std::string &algoType); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + std::string algoType_; + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_GENERATEHUMANANIMESTYLEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/GenerateHumanSketchStyleRequest.h b/facebody/include/alibabacloud/facebody/model/GenerateHumanSketchStyleRequest.h index eec8b154a..364c06d0e 100644 --- a/facebody/include/alibabacloud/facebody/model/GenerateHumanSketchStyleRequest.h +++ b/facebody/include/alibabacloud/facebody/model/GenerateHumanSketchStyleRequest.h @@ -1,51 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_GENERATEHUMANSKETCHSTYLEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_GENERATEHUMANSKETCHSTYLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT GenerateHumanSketchStyleRequest : public RpcServiceRequest - { - - public: - GenerateHumanSketchStyleRequest(); - ~GenerateHumanSketchStyleRequest(); - - std::string getReturnType()const; - void setReturnType(const std::string& returnType); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string returnType_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_GENERATEHUMANSKETCHSTYLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_GENERATEHUMANSKETCHSTYLEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_GENERATEHUMANSKETCHSTYLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT GenerateHumanSketchStyleRequest : public RpcServiceRequest { +public: + GenerateHumanSketchStyleRequest(); + ~GenerateHumanSketchStyleRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getReturnType() const; + void setReturnType(const std::string &returnType); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::string returnType_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_GENERATEHUMANSKETCHSTYLEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/GetBodyPersonRequest.h b/facebody/include/alibabacloud/facebody/model/GetBodyPersonRequest.h index 5ac5f07bb..f8bd81000 100644 --- a/facebody/include/alibabacloud/facebody/model/GetBodyPersonRequest.h +++ b/facebody/include/alibabacloud/facebody/model/GetBodyPersonRequest.h @@ -1,51 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT GetBodyPersonRequest : public RpcServiceRequest - { - - public: - GetBodyPersonRequest(); - ~GetBodyPersonRequest(); - - long getPersonId()const; - void setPersonId(long personId); - long getDbId()const; - void setDbId(long dbId); - - private: - long personId_; - long dbId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT GetBodyPersonRequest : public RpcServiceRequest { +public: + GetBodyPersonRequest(); + ~GetBodyPersonRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + long getPersonId() const; + void setPersonId(long personId); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + long getDbId() const; + void setDbId(long dbId); + +private: + bool formatResultToJson_; + long personId_; + std::string ossFile_; + std::string requestProxyBy_; + long dbId_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/GetBodyPersonResult.h b/facebody/include/alibabacloud/facebody/model/GetBodyPersonResult.h index f8a6fae6f..6b95c1588 100644 --- a/facebody/include/alibabacloud/facebody/model/GetBodyPersonResult.h +++ b/facebody/include/alibabacloud/facebody/model/GetBodyPersonResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { struct Trace { - std::string extraData; long id; + std::string extraData; }; long traceCount; long instanceId; diff --git a/facebody/include/alibabacloud/facebody/model/GetFaceEntityRequest.h b/facebody/include/alibabacloud/facebody/model/GetFaceEntityRequest.h index 5e1610302..00ecde7ce 100644 --- a/facebody/include/alibabacloud/facebody/model/GetFaceEntityRequest.h +++ b/facebody/include/alibabacloud/facebody/model/GetFaceEntityRequest.h @@ -1,51 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_GETFACEENTITYREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_GETFACEENTITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT GetFaceEntityRequest : public RpcServiceRequest - { - - public: - GetFaceEntityRequest(); - ~GetFaceEntityRequest(); - - std::string getEntityId()const; - void setEntityId(const std::string& entityId); - std::string getDbName()const; - void setDbName(const std::string& dbName); - - private: - std::string entityId_; - std::string dbName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_GETFACEENTITYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_GETFACEENTITYREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_GETFACEENTITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT GetFaceEntityRequest : public RpcServiceRequest { +public: + GetFaceEntityRequest(); + ~GetFaceEntityRequest(); + std::string getEntityId() const; + void setEntityId(const std::string &entityId); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getDbName() const; + void setDbName(const std::string &dbName); + +private: + std::string entityId_; + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string dbName_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_GETFACEENTITYREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/GetFaceEntityResult.h b/facebody/include/alibabacloud/facebody/model/GetFaceEntityResult.h index 87ff7771a..9c5add64b 100644 --- a/facebody/include/alibabacloud/facebody/model/GetFaceEntityResult.h +++ b/facebody/include/alibabacloud/facebody/model/GetFaceEntityResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud std::string faceId; }; std::string entityId; - std::string labels; std::string dbName; + std::string labels; std::vector faces; }; diff --git a/facebody/include/alibabacloud/facebody/model/GetRealPersonVerificationResultRequest.h b/facebody/include/alibabacloud/facebody/model/GetRealPersonVerificationResultRequest.h index 46fd8b028..05a9fd20e 100644 --- a/facebody/include/alibabacloud/facebody/model/GetRealPersonVerificationResultRequest.h +++ b/facebody/include/alibabacloud/facebody/model/GetRealPersonVerificationResultRequest.h @@ -1,51 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_GETREALPERSONVERIFICATIONRESULTREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_GETREALPERSONVERIFICATIONRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT GetRealPersonVerificationResultRequest : public RpcServiceRequest - { - - public: - GetRealPersonVerificationResultRequest(); - ~GetRealPersonVerificationResultRequest(); - - std::string getMaterialHash()const; - void setMaterialHash(const std::string& materialHash); - std::string getVerificationToken()const; - void setVerificationToken(const std::string& verificationToken); - - private: - std::string materialHash_; - std::string verificationToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_GETREALPERSONVERIFICATIONRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_GETREALPERSONVERIFICATIONRESULTREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_GETREALPERSONVERIFICATIONRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT GetRealPersonVerificationResultRequest : public RpcServiceRequest { +public: + GetRealPersonVerificationResultRequest(); + ~GetRealPersonVerificationResultRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getMaterialHash() const; + void setMaterialHash(const std::string &materialHash); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getVerificationToken() const; + void setVerificationToken(const std::string &verificationToken); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + +private: + bool formatResultToJson_; + std::string materialHash_; + std::string ossFile_; + std::string verificationToken_; + std::string requestProxyBy_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_GETREALPERSONVERIFICATIONRESULTREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/HandPostureRequest.h b/facebody/include/alibabacloud/facebody/model/HandPostureRequest.h index 839fd19a0..a09187edd 100644 --- a/facebody/include/alibabacloud/facebody/model/HandPostureRequest.h +++ b/facebody/include/alibabacloud/facebody/model/HandPostureRequest.h @@ -1,48 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_HANDPOSTUREREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_HANDPOSTUREREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT HandPostureRequest : public RpcServiceRequest - { - - public: - HandPostureRequest(); - ~HandPostureRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_HANDPOSTUREREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_HANDPOSTUREREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_HANDPOSTUREREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT HandPostureRequest : public RpcServiceRequest { +public: + HandPostureRequest(); + ~HandPostureRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_HANDPOSTUREREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/HandPostureResult.h b/facebody/include/alibabacloud/facebody/model/HandPostureResult.h index 413c862c9..42d7c9fb5 100644 --- a/facebody/include/alibabacloud/facebody/model/HandPostureResult.h +++ b/facebody/include/alibabacloud/facebody/model/HandPostureResult.h @@ -43,29 +43,29 @@ namespace AlibabaCloud { struct Result { - struct Box - { - struct Position - { - std::vector points; - }; - float confident; - std::vector positions; - }; struct Hands { struct KeyPoint { - struct Position2 + struct Position { - std::vector points3; + std::vector points; }; - std::vector positions1; + std::vector positions; std::string label; }; float confident; std::vector keyPoints; }; + struct Box + { + struct Position2 + { + std::vector points3; + }; + float confident; + std::vector positions1; + }; Hands hands; Box box; }; diff --git a/facebody/include/alibabacloud/facebody/model/LiquifyFaceRequest.h b/facebody/include/alibabacloud/facebody/model/LiquifyFaceRequest.h index 5291d8d9a..8f5987156 100644 --- a/facebody/include/alibabacloud/facebody/model/LiquifyFaceRequest.h +++ b/facebody/include/alibabacloud/facebody/model/LiquifyFaceRequest.h @@ -1,51 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_LIQUIFYFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_LIQUIFYFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT LiquifyFaceRequest : public RpcServiceRequest - { - - public: - LiquifyFaceRequest(); - ~LiquifyFaceRequest(); - - float getSlimDegree()const; - void setSlimDegree(float slimDegree); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - float slimDegree_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_LIQUIFYFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_LIQUIFYFACEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_LIQUIFYFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT LiquifyFaceRequest : public RpcServiceRequest { +public: + LiquifyFaceRequest(); + ~LiquifyFaceRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + float getSlimDegree() const; + void setSlimDegree(float slimDegree); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + std::string ossFile_; + float slimDegree_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_LIQUIFYFACEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/ListBodyDbsRequest.h b/facebody/include/alibabacloud/facebody/model/ListBodyDbsRequest.h index 82ce3ccfc..c32ddd047 100644 --- a/facebody/include/alibabacloud/facebody/model/ListBodyDbsRequest.h +++ b/facebody/include/alibabacloud/facebody/model/ListBodyDbsRequest.h @@ -1,51 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT ListBodyDbsRequest : public RpcServiceRequest - { - - public: - ListBodyDbsRequest(); - ~ListBodyDbsRequest(); - - long getLimit()const; - void setLimit(long limit); - long getOffset()const; - void setOffset(long offset); - - private: - long limit_; - long offset_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT ListBodyDbsRequest : public RpcServiceRequest { +public: + ListBodyDbsRequest(); + ~ListBodyDbsRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + long getLimit() const; + void setLimit(long limit); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + long getOffset() const; + void setOffset(long offset); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + +private: + bool formatResultToJson_; + long limit_; + std::string ossFile_; + long offset_; + std::string requestProxyBy_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/ListBodyPersonRequest.h b/facebody/include/alibabacloud/facebody/model/ListBodyPersonRequest.h index a378e09a4..30472d597 100644 --- a/facebody/include/alibabacloud/facebody/model/ListBodyPersonRequest.h +++ b/facebody/include/alibabacloud/facebody/model/ListBodyPersonRequest.h @@ -1,54 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT ListBodyPersonRequest : public RpcServiceRequest - { - - public: - ListBodyPersonRequest(); - ~ListBodyPersonRequest(); - - long getLimit()const; - void setLimit(long limit); - long getOffset()const; - void setOffset(long offset); - long getDbId()const; - void setDbId(long dbId); - - private: - long limit_; - long offset_; - long dbId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT ListBodyPersonRequest : public RpcServiceRequest { +public: + ListBodyPersonRequest(); + ~ListBodyPersonRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + long getLimit() const; + void setLimit(long limit); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + long getOffset() const; + void setOffset(long offset); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + long getDbId() const; + void setDbId(long dbId); + +private: + bool formatResultToJson_; + long limit_; + std::string ossFile_; + long offset_; + std::string requestProxyBy_; + long dbId_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/ListFaceDbsRequest.h b/facebody/include/alibabacloud/facebody/model/ListFaceDbsRequest.h index ea047bec2..ba9832c92 100644 --- a/facebody/include/alibabacloud/facebody/model/ListFaceDbsRequest.h +++ b/facebody/include/alibabacloud/facebody/model/ListFaceDbsRequest.h @@ -1,45 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_LISTFACEDBSREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_LISTFACEDBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT ListFaceDbsRequest : public RpcServiceRequest - { - - public: - ListFaceDbsRequest(); - ~ListFaceDbsRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTFACEDBSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_LISTFACEDBSREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_LISTFACEDBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT ListFaceDbsRequest : public RpcServiceRequest { +public: + ListFaceDbsRequest(); + ~ListFaceDbsRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + long getLimit() const; + void setLimit(long limit); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + long getOffset() const; + void setOffset(long offset); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + +private: + bool formatResultToJson_; + long limit_; + std::string ossFile_; + long offset_; + std::string requestProxyBy_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTFACEDBSREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/ListFaceEntitiesRequest.h b/facebody/include/alibabacloud/facebody/model/ListFaceEntitiesRequest.h index 39bd6fefc..54837422f 100644 --- a/facebody/include/alibabacloud/facebody/model/ListFaceEntitiesRequest.h +++ b/facebody/include/alibabacloud/facebody/model/ListFaceEntitiesRequest.h @@ -1,66 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_LISTFACEENTITIESREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_LISTFACEENTITIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT ListFaceEntitiesRequest : public RpcServiceRequest - { - - public: - ListFaceEntitiesRequest(); - ~ListFaceEntitiesRequest(); - - std::string getEntityIdPrefix()const; - void setEntityIdPrefix(const std::string& entityIdPrefix); - int getLimit()const; - void setLimit(int limit); - std::string getOrder()const; - void setOrder(const std::string& order); - int getOffset()const; - void setOffset(int offset); - std::string getToken()const; - void setToken(const std::string& token); - std::string getLabels()const; - void setLabels(const std::string& labels); - std::string getDbName()const; - void setDbName(const std::string& dbName); - - private: - std::string entityIdPrefix_; - int limit_; - std::string order_; - int offset_; - std::string token_; - std::string labels_; - std::string dbName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTFACEENTITIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_LISTFACEENTITIESREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_LISTFACEENTITIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT ListFaceEntitiesRequest : public RpcServiceRequest { +public: + ListFaceEntitiesRequest(); + ~ListFaceEntitiesRequest(); + std::string getEntityIdPrefix() const; + void setEntityIdPrefix(const std::string &entityIdPrefix); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + int getLimit() const; + void setLimit(int limit); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getOrder() const; + void setOrder(const std::string &order); + int getOffset() const; + void setOffset(int offset); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getToken() const; + void setToken(const std::string &token); + std::string getLabels() const; + void setLabels(const std::string &labels); + std::string getDbName() const; + void setDbName(const std::string &dbName); + +private: + std::string entityIdPrefix_; + bool formatResultToJson_; + int limit_; + std::string ossFile_; + std::string order_; + int offset_; + std::string requestProxyBy_; + std::string token_; + std::string labels_; + std::string dbName_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTFACEENTITIESREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/ListFaceEntitiesResult.h b/facebody/include/alibabacloud/facebody/model/ListFaceEntitiesResult.h index f4ec986f9..8d0ff0adc 100644 --- a/facebody/include/alibabacloud/facebody/model/ListFaceEntitiesResult.h +++ b/facebody/include/alibabacloud/facebody/model/ListFaceEntitiesResult.h @@ -38,10 +38,10 @@ namespace AlibabaCloud { std::string entityId; long createdAt; - std::string labels; std::string dbName; - long updatedAt; + std::string labels; int faceCount; + long updatedAt; }; int totalCount; std::string token; diff --git a/facebody/include/alibabacloud/facebody/model/MergeImageFaceRequest.h b/facebody/include/alibabacloud/facebody/model/MergeImageFaceRequest.h index acb49d4fd..c1c9be2e2 100644 --- a/facebody/include/alibabacloud/facebody/model/MergeImageFaceRequest.h +++ b/facebody/include/alibabacloud/facebody/model/MergeImageFaceRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_MERGEIMAGEFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_MERGEIMAGEFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT MergeImageFaceRequest : public RpcServiceRequest - { - - public: - MergeImageFaceRequest(); - ~MergeImageFaceRequest(); - - bool getFormatResultToJson()const; - void setFormatResultToJson(bool formatResultToJson); - std::string getUserId()const; - void setUserId(const std::string& userId); - std::string getOssFile()const; - void setOssFile(const std::string& ossFile); - std::string getTemplateId()const; - void setTemplateId(const std::string& templateId); - std::string getRequestProxyBy()const; - void setRequestProxyBy(const std::string& requestProxyBy); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - bool formatResultToJson_; - std::string userId_; - std::string ossFile_; - std::string templateId_; - std::string requestProxyBy_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_MERGEIMAGEFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_MERGEIMAGEFACEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_MERGEIMAGEFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT MergeImageFaceRequest : public RpcServiceRequest { +public: + MergeImageFaceRequest(); + ~MergeImageFaceRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + std::string userId_; + std::string ossFile_; + std::string templateId_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_MERGEIMAGEFACEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/MonitorExaminationRequest.h b/facebody/include/alibabacloud/facebody/model/MonitorExaminationRequest.h index d9a1b89d9..bc8f571e8 100644 --- a/facebody/include/alibabacloud/facebody/model/MonitorExaminationRequest.h +++ b/facebody/include/alibabacloud/facebody/model/MonitorExaminationRequest.h @@ -1,51 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_MONITOREXAMINATIONREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_MONITOREXAMINATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT MonitorExaminationRequest : public RpcServiceRequest - { - - public: - MonitorExaminationRequest(); - ~MonitorExaminationRequest(); - - long getType()const; - void setType(long type); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - long type_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_MONITOREXAMINATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_MONITOREXAMINATIONREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_MONITOREXAMINATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT MonitorExaminationRequest : public RpcServiceRequest { +public: + MonitorExaminationRequest(); + ~MonitorExaminationRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + long getType() const; + void setType(long type); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + long type_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_MONITOREXAMINATIONREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/PedestrianDetectAttributeRequest.h b/facebody/include/alibabacloud/facebody/model/PedestrianDetectAttributeRequest.h index 7fc741091..bcdcb67d3 100644 --- a/facebody/include/alibabacloud/facebody/model/PedestrianDetectAttributeRequest.h +++ b/facebody/include/alibabacloud/facebody/model/PedestrianDetectAttributeRequest.h @@ -1,48 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_PEDESTRIANDETECTATTRIBUTEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_PEDESTRIANDETECTATTRIBUTEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT PedestrianDetectAttributeRequest : public RpcServiceRequest - { - - public: - PedestrianDetectAttributeRequest(); - ~PedestrianDetectAttributeRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_PEDESTRIANDETECTATTRIBUTEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_PEDESTRIANDETECTATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_PEDESTRIANDETECTATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT PedestrianDetectAttributeRequest : public RpcServiceRequest { +public: + PedestrianDetectAttributeRequest(); + ~PedestrianDetectAttributeRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_PEDESTRIANDETECTATTRIBUTEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/QueryFaceImageTemplateRequest.h b/facebody/include/alibabacloud/facebody/model/QueryFaceImageTemplateRequest.h index eb436eb5f..c433020dd 100644 --- a/facebody/include/alibabacloud/facebody/model/QueryFaceImageTemplateRequest.h +++ b/facebody/include/alibabacloud/facebody/model/QueryFaceImageTemplateRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_QUERYFACEIMAGETEMPLATEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_QUERYFACEIMAGETEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT QueryFaceImageTemplateRequest : public RpcServiceRequest - { - - public: - QueryFaceImageTemplateRequest(); - ~QueryFaceImageTemplateRequest(); - - bool getFormatResultToJson()const; - void setFormatResultToJson(bool formatResultToJson); - std::string getUserId()const; - void setUserId(const std::string& userId); - std::string getOssFile()const; - void setOssFile(const std::string& ossFile); - std::string getTemplateId()const; - void setTemplateId(const std::string& templateId); - std::string getRequestProxyBy()const; - void setRequestProxyBy(const std::string& requestProxyBy); - - private: - bool formatResultToJson_; - std::string userId_; - std::string ossFile_; - std::string templateId_; - std::string requestProxyBy_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_QUERYFACEIMAGETEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_QUERYFACEIMAGETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_QUERYFACEIMAGETEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT QueryFaceImageTemplateRequest : public RpcServiceRequest { +public: + QueryFaceImageTemplateRequest(); + ~QueryFaceImageTemplateRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + +private: + bool formatResultToJson_; + std::string userId_; + std::string ossFile_; + std::string templateId_; + std::string requestProxyBy_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_QUERYFACEIMAGETEMPLATEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/RecognizeActionRequest.h b/facebody/include/alibabacloud/facebody/model/RecognizeActionRequest.h index b7695e8f7..490156d66 100644 --- a/facebody/include/alibabacloud/facebody/model/RecognizeActionRequest.h +++ b/facebody/include/alibabacloud/facebody/model/RecognizeActionRequest.h @@ -1,63 +1,64 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEACTIONREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEACTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT RecognizeActionRequest : public RpcServiceRequest - { - public: - struct URLList - { - std::string imageData; - std::string uRL; - }; - - public: - RecognizeActionRequest(); - ~RecognizeActionRequest(); - - int getType()const; - void setType(int type); - std::string getVideoData()const; - void setVideoData(const std::string& videoData); - std::vector getURLList()const; - void setURLList(const std::vector& uRLList); - std::string getVideoUrl()const; - void setVideoUrl(const std::string& videoUrl); - - private: - int type_; - std::string videoData_; - std::vector uRLList_; - std::string videoUrl_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEACTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEACTIONREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEACTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT RecognizeActionRequest : public RpcServiceRequest { +public: + struct URLList { + std::string imageData; + std::string uRL; + }; + RecognizeActionRequest(); + ~RecognizeActionRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + int getType() const; + void setType(int type); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getVideoData() const; + void setVideoData(const std::string &videoData); + std::vector getURLList() const; + void setURLList(const std::vector &uRLList); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getVideoUrl() const; + void setVideoUrl(const std::string &videoUrl); + +private: + bool formatResultToJson_; + int type_; + std::string ossFile_; + std::string videoData_; + std::vector uRLList_; + std::string requestProxyBy_; + std::string videoUrl_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEACTIONREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/RecognizeExpressionRequest.h b/facebody/include/alibabacloud/facebody/model/RecognizeExpressionRequest.h index 84973c161..c14e76398 100644 --- a/facebody/include/alibabacloud/facebody/model/RecognizeExpressionRequest.h +++ b/facebody/include/alibabacloud/facebody/model/RecognizeExpressionRequest.h @@ -1,48 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEEXPRESSIONREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEEXPRESSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT RecognizeExpressionRequest : public RpcServiceRequest - { - - public: - RecognizeExpressionRequest(); - ~RecognizeExpressionRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEEXPRESSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEEXPRESSIONREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEEXPRESSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT RecognizeExpressionRequest : public RpcServiceRequest { +public: + RecognizeExpressionRequest(); + ~RecognizeExpressionRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEEXPRESSIONREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/RecognizeFaceRequest.h b/facebody/include/alibabacloud/facebody/model/RecognizeFaceRequest.h index 2d12e2b66..4af6e7704 100644 --- a/facebody/include/alibabacloud/facebody/model/RecognizeFaceRequest.h +++ b/facebody/include/alibabacloud/facebody/model/RecognizeFaceRequest.h @@ -1,78 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT RecognizeFaceRequest : public RpcServiceRequest - { - - public: - RecognizeFaceRequest(); - ~RecognizeFaceRequest(); - - bool getGender()const; - void setGender(bool gender); - bool getBeauty()const; - void setBeauty(bool beauty); - long getMaxFaceNumber()const; - void setMaxFaceNumber(long maxFaceNumber); - bool getHat()const; - void setHat(bool hat); - bool getMask()const; - void setMask(bool mask); - int getImageType()const; - void setImageType(int imageType); - bool getGlass()const; - void setGlass(bool glass); - bool getExpression()const; - void setExpression(bool expression); - bool getQuality()const; - void setQuality(bool quality); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - bool getAge()const; - void setAge(bool age); - - private: - bool gender_; - bool beauty_; - long maxFaceNumber_; - bool hat_; - bool mask_; - int imageType_; - bool glass_; - bool expression_; - bool quality_; - std::string imageURL_; - bool age_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEFACEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT RecognizeFaceRequest : public RpcServiceRequest { +public: + RecognizeFaceRequest(); + ~RecognizeFaceRequest(); + bool getGender() const; + void setGender(bool gender); + bool getBeauty() const; + void setBeauty(bool beauty); + long getMaxFaceNumber() const; + void setMaxFaceNumber(long maxFaceNumber); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + bool getHat() const; + void setHat(bool hat); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + bool getMask() const; + void setMask(bool mask); + int getImageType() const; + void setImageType(int imageType); + bool getGlass() const; + void setGlass(bool glass); + bool getExpression() const; + void setExpression(bool expression); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + bool getQuality() const; + void setQuality(bool quality); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + bool getAge() const; + void setAge(bool age); + +private: + bool gender_; + bool beauty_; + long maxFaceNumber_; + bool formatResultToJson_; + bool hat_; + std::string ossFile_; + bool mask_; + int imageType_; + bool glass_; + bool expression_; + std::string requestProxyBy_; + bool quality_; + std::string imageURL_; + bool age_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEFACEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/RecognizeHandGestureRequest.h b/facebody/include/alibabacloud/facebody/model/RecognizeHandGestureRequest.h index f8af5a0fa..08ce1ff52 100644 --- a/facebody/include/alibabacloud/facebody/model/RecognizeHandGestureRequest.h +++ b/facebody/include/alibabacloud/facebody/model/RecognizeHandGestureRequest.h @@ -1,54 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEHANDGESTUREREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEHANDGESTUREREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT RecognizeHandGestureRequest : public RpcServiceRequest - { - - public: - RecognizeHandGestureRequest(); - ~RecognizeHandGestureRequest(); - - std::string getGestureType()const; - void setGestureType(const std::string& gestureType); - std::string getAppId()const; - void setAppId(const std::string& appId); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string gestureType_; - std::string appId_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEHANDGESTUREREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEHANDGESTUREREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEHANDGESTUREREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT RecognizeHandGestureRequest : public RpcServiceRequest { +public: + RecognizeHandGestureRequest(); + ~RecognizeHandGestureRequest(); + std::string getGestureType() const; + void setGestureType(const std::string &gestureType); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getAppId() const; + void setAppId(const std::string &appId); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + std::string gestureType_; + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string appId_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEHANDGESTUREREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/RecognizePublicFaceRequest.h b/facebody/include/alibabacloud/facebody/model/RecognizePublicFaceRequest.h index 25be4cdc1..5b5d4ca9e 100644 --- a/facebody/include/alibabacloud/facebody/model/RecognizePublicFaceRequest.h +++ b/facebody/include/alibabacloud/facebody/model/RecognizePublicFaceRequest.h @@ -1,63 +1,55 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEPUBLICFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEPUBLICFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT RecognizePublicFaceRequest : public RpcServiceRequest - { - public: - struct Task - { - std::string imageURL; - std::string imageData; - }; - - public: - RecognizePublicFaceRequest(); - ~RecognizePublicFaceRequest(); - - bool getFormatResultToJson()const; - void setFormatResultToJson(bool formatResultToJson); - std::string getOssFile()const; - void setOssFile(const std::string& ossFile); - std::string getRequestProxyBy()const; - void setRequestProxyBy(const std::string& requestProxyBy); - std::vector getTask()const; - void setTask(const std::vector& task); - - private: - bool formatResultToJson_; - std::string ossFile_; - std::string requestProxyBy_; - std::vector task_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEPUBLICFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEPUBLICFACEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEPUBLICFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT RecognizePublicFaceRequest : public RpcServiceRequest { +public: + struct Task { + std::string imageURL; + std::string imageData; + }; + RecognizePublicFaceRequest(); + ~RecognizePublicFaceRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::vector getTask() const; + void setTask(const std::vector &task); + +private: + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::vector task_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_RECOGNIZEPUBLICFACEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/RetouchBodyRequest.h b/facebody/include/alibabacloud/facebody/model/RetouchBodyRequest.h index 109fdf773..1b47eca81 100644 --- a/facebody/include/alibabacloud/facebody/model/RetouchBodyRequest.h +++ b/facebody/include/alibabacloud/facebody/model/RetouchBodyRequest.h @@ -1,54 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_RETOUCHBODYREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_RETOUCHBODYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT RetouchBodyRequest : public RpcServiceRequest - { - - public: - RetouchBodyRequest(); - ~RetouchBodyRequest(); - - float getLengthenDegree()const; - void setLengthenDegree(float lengthenDegree); - float getSlimDegree()const; - void setSlimDegree(float slimDegree); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - float lengthenDegree_; - float slimDegree_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_RETOUCHBODYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_RETOUCHBODYREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_RETOUCHBODYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT RetouchBodyRequest : public RpcServiceRequest { +public: + RetouchBodyRequest(); + ~RetouchBodyRequest(); + float getLengthenDegree() const; + void setLengthenDegree(float lengthenDegree); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + float getSlimDegree() const; + void setSlimDegree(float slimDegree); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + float lengthenDegree_; + bool formatResultToJson_; + std::string ossFile_; + float slimDegree_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_RETOUCHBODYREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/RetouchSkinRequest.h b/facebody/include/alibabacloud/facebody/model/RetouchSkinRequest.h index 164547b86..675900d61 100644 --- a/facebody/include/alibabacloud/facebody/model/RetouchSkinRequest.h +++ b/facebody/include/alibabacloud/facebody/model/RetouchSkinRequest.h @@ -1,54 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_RETOUCHSKINREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_RETOUCHSKINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT RetouchSkinRequest : public RpcServiceRequest - { - - public: - RetouchSkinRequest(); - ~RetouchSkinRequest(); - - float getRetouchDegree()const; - void setRetouchDegree(float retouchDegree); - float getWhiteningDegree()const; - void setWhiteningDegree(float whiteningDegree); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - float retouchDegree_; - float whiteningDegree_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_RETOUCHSKINREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_RETOUCHSKINREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_RETOUCHSKINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT RetouchSkinRequest : public RpcServiceRequest { +public: + RetouchSkinRequest(); + ~RetouchSkinRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + float getRetouchDegree() const; + void setRetouchDegree(float retouchDegree); + float getWhiteningDegree() const; + void setWhiteningDegree(float whiteningDegree); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + bool formatResultToJson_; + float retouchDegree_; + float whiteningDegree_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_RETOUCHSKINREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/SearchBodyTraceRequest.h b/facebody/include/alibabacloud/facebody/model/SearchBodyTraceRequest.h index 5aea62fcd..58c768740 100644 --- a/facebody/include/alibabacloud/facebody/model/SearchBodyTraceRequest.h +++ b/facebody/include/alibabacloud/facebody/model/SearchBodyTraceRequest.h @@ -1,57 +1,64 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT SearchBodyTraceRequest : public RpcServiceRequest - { - - public: - SearchBodyTraceRequest(); - ~SearchBodyTraceRequest(); - - float getMinScore()const; - void setMinScore(float minScore); - long getLimit()const; - void setLimit(long limit); - Array getImages()const; - void setImages(const Array& images); - long getDbId()const; - void setDbId(long dbId); - - private: - float minScore_; - long limit_; - Array images_; - long dbId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT SearchBodyTraceRequest : public RpcServiceRequest { +public: + struct Images { + std::string imageURL; + std::string imageData; + }; + SearchBodyTraceRequest(); + ~SearchBodyTraceRequest(); + float getMinScore() const; + void setMinScore(float minScore); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + long getLimit() const; + void setLimit(long limit); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::vector getImages() const; + void setImages(const std::vector &images); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + long getDbId() const; + void setDbId(long dbId); + +private: + float minScore_; + bool formatResultToJson_; + long limit_; + std::string ossFile_; + std::vector images_; + std::string requestProxyBy_; + long dbId_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/SearchBodyTraceResult.h b/facebody/include/alibabacloud/facebody/model/SearchBodyTraceResult.h index 470c61ec6..4abc34755 100644 --- a/facebody/include/alibabacloud/facebody/model/SearchBodyTraceResult.h +++ b/facebody/include/alibabacloud/facebody/model/SearchBodyTraceResult.h @@ -38,8 +38,8 @@ namespace AlibabaCloud { float score; long personId; - long traceId; long dbId; + long traceId; std::string extraData; }; std::vector matchList; diff --git a/facebody/include/alibabacloud/facebody/model/SearchFaceRequest.h b/facebody/include/alibabacloud/facebody/model/SearchFaceRequest.h index d39687766..241ad75cd 100644 --- a/facebody/include/alibabacloud/facebody/model/SearchFaceRequest.h +++ b/facebody/include/alibabacloud/facebody/model/SearchFaceRequest.h @@ -1,63 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_SEARCHFACEREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_SEARCHFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT SearchFaceRequest : public RpcServiceRequest - { - - public: - SearchFaceRequest(); - ~SearchFaceRequest(); - - long getMaxFaceNum()const; - void setMaxFaceNum(long maxFaceNum); - float getQualityScoreThreshold()const; - void setQualityScoreThreshold(float qualityScoreThreshold); - int getLimit()const; - void setLimit(int limit); - std::string getDbNames()const; - void setDbNames(const std::string& dbNames); - std::string getDbName()const; - void setDbName(const std::string& dbName); - std::string getImageUrl()const; - void setImageUrl(const std::string& imageUrl); - - private: - long maxFaceNum_; - float qualityScoreThreshold_; - int limit_; - std::string dbNames_; - std::string dbName_; - std::string imageUrl_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_SEARCHFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_SEARCHFACEREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_SEARCHFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT SearchFaceRequest : public RpcServiceRequest { +public: + SearchFaceRequest(); + ~SearchFaceRequest(); + long getMaxFaceNum() const; + void setMaxFaceNum(long maxFaceNum); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + float getQualityScoreThreshold() const; + void setQualityScoreThreshold(float qualityScoreThreshold); + int getLimit() const; + void setLimit(int limit); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getDbNames() const; + void setDbNames(const std::string &dbNames); + std::string getDbName() const; + void setDbName(const std::string &dbName); + std::string getImageUrl() const; + void setImageUrl(const std::string &imageUrl); + +private: + long maxFaceNum_; + bool formatResultToJson_; + float qualityScoreThreshold_; + int limit_; + std::string ossFile_; + std::string requestProxyBy_; + std::string dbNames_; + std::string dbName_; + std::string imageUrl_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_SEARCHFACEREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/SwapFacialFeaturesRequest.h b/facebody/include/alibabacloud/facebody/model/SwapFacialFeaturesRequest.h index ce1645072..b56264204 100644 --- a/facebody/include/alibabacloud/facebody/model/SwapFacialFeaturesRequest.h +++ b/facebody/include/alibabacloud/facebody/model/SwapFacialFeaturesRequest.h @@ -1,60 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_SWAPFACIALFEATURESREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_SWAPFACIALFEATURESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT SwapFacialFeaturesRequest : public RpcServiceRequest - { - - public: - SwapFacialFeaturesRequest(); - ~SwapFacialFeaturesRequest(); - - std::string getTargetImageURL()const; - void setTargetImageURL(const std::string& targetImageURL); - std::string getSourceImageData()const; - void setSourceImageData(const std::string& sourceImageData); - std::string getSourceImageURL()const; - void setSourceImageURL(const std::string& sourceImageURL); - std::string getTargetImageData()const; - void setTargetImageData(const std::string& targetImageData); - std::string getEditPart()const; - void setEditPart(const std::string& editPart); - - private: - std::string targetImageURL_; - std::string sourceImageData_; - std::string sourceImageURL_; - std::string targetImageData_; - std::string editPart_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_SWAPFACIALFEATURESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_SWAPFACIALFEATURESREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_SWAPFACIALFEATURESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT SwapFacialFeaturesRequest : public RpcServiceRequest { +public: + SwapFacialFeaturesRequest(); + ~SwapFacialFeaturesRequest(); + std::string getTargetImageURL() const; + void setTargetImageURL(const std::string &targetImageURL); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getSourceImageData() const; + void setSourceImageData(const std::string &sourceImageData); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getSourceImageURL() const; + void setSourceImageURL(const std::string &sourceImageURL); + std::string getTargetImageData() const; + void setTargetImageData(const std::string &targetImageData); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getEditPart() const; + void setEditPart(const std::string &editPart); + +private: + std::string targetImageURL_; + bool formatResultToJson_; + std::string sourceImageData_; + std::string ossFile_; + std::string sourceImageURL_; + std::string targetImageData_; + std::string requestProxyBy_; + std::string editPart_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_SWAPFACIALFEATURESREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/UpdateFaceEntityRequest.h b/facebody/include/alibabacloud/facebody/model/UpdateFaceEntityRequest.h index e8e07e9b5..488cd8923 100644 --- a/facebody/include/alibabacloud/facebody/model/UpdateFaceEntityRequest.h +++ b/facebody/include/alibabacloud/facebody/model/UpdateFaceEntityRequest.h @@ -1,54 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_UPDATEFACEENTITYREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_UPDATEFACEENTITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT UpdateFaceEntityRequest : public RpcServiceRequest - { - - public: - UpdateFaceEntityRequest(); - ~UpdateFaceEntityRequest(); - - std::string getEntityId()const; - void setEntityId(const std::string& entityId); - std::string getLabels()const; - void setLabels(const std::string& labels); - std::string getDbName()const; - void setDbName(const std::string& dbName); - - private: - std::string entityId_; - std::string labels_; - std::string dbName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_UPDATEFACEENTITYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_UPDATEFACEENTITYREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_UPDATEFACEENTITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT UpdateFaceEntityRequest : public RpcServiceRequest { +public: + UpdateFaceEntityRequest(); + ~UpdateFaceEntityRequest(); + std::string getEntityId() const; + void setEntityId(const std::string &entityId); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getLabels() const; + void setLabels(const std::string &labels); + std::string getDbName() const; + void setDbName(const std::string &dbName); + +private: + std::string entityId_; + bool formatResultToJson_; + std::string ossFile_; + std::string requestProxyBy_; + std::string labels_; + std::string dbName_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_UPDATEFACEENTITYREQUEST_H_ diff --git a/facebody/include/alibabacloud/facebody/model/VerifyFaceMaskRequest.h b/facebody/include/alibabacloud/facebody/model/VerifyFaceMaskRequest.h index 274a51962..bd99be2d4 100644 --- a/facebody/include/alibabacloud/facebody/model/VerifyFaceMaskRequest.h +++ b/facebody/include/alibabacloud/facebody/model/VerifyFaceMaskRequest.h @@ -1,57 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#ifndef ALIBABACLOUD_FACEBODY_MODEL_VERIFYFACEMASKREQUEST_H_ -#define ALIBABACLOUD_FACEBODY_MODEL_VERIFYFACEMASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Facebody - { - namespace Model - { - class ALIBABACLOUD_FACEBODY_EXPORT VerifyFaceMaskRequest : public RpcServiceRequest - { - - public: - VerifyFaceMaskRequest(); - ~VerifyFaceMaskRequest(); - - std::string getRefData()const; - void setRefData(const std::string& refData); - std::string getImageData()const; - void setImageData(const std::string& imageData); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - std::string getRefUrl()const; - void setRefUrl(const std::string& refUrl); - - private: - std::string refData_; - std::string imageData_; - std::string imageURL_; - std::string refUrl_; - - }; - } - } -} -#endif // !ALIBABACLOUD_FACEBODY_MODEL_VERIFYFACEMASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_FACEBODY_MODEL_VERIFYFACEMASKREQUEST_H_ +#define ALIBABACLOUD_FACEBODY_MODEL_VERIFYFACEMASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Facebody { +namespace Model { +class ALIBABACLOUD_FACEBODY_EXPORT VerifyFaceMaskRequest : public RpcServiceRequest { +public: + VerifyFaceMaskRequest(); + ~VerifyFaceMaskRequest(); + bool getFormatResultToJson() const; + void setFormatResultToJson(bool formatResultToJson); + std::string getRefData() const; + void setRefData(const std::string &refData); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getImageData() const; + void setImageData(const std::string &imageData); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + std::string getRefUrl() const; + void setRefUrl(const std::string &refUrl); + +private: + bool formatResultToJson_; + std::string refData_; + std::string ossFile_; + std::string imageData_; + std::string requestProxyBy_; + std::string imageURL_; + std::string refUrl_; +}; +} // namespace Model +} // namespace Facebody +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_FACEBODY_MODEL_VERIFYFACEMASKREQUEST_H_ diff --git a/facebody/src/model/AddBodyTraceRequest.cc b/facebody/src/model/AddBodyTraceRequest.cc index 1588aa1c9..99a4c9984 100644 --- a/facebody/src/model/AddBodyTraceRequest.cc +++ b/facebody/src/model/AddBodyTraceRequest.cc @@ -1,73 +1,93 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::AddBodyTraceRequest; - -AddBodyTraceRequest::AddBodyTraceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "AddBodyTrace") -{ - setMethod(HttpRequest::Method::Post); -} - -AddBodyTraceRequest::~AddBodyTraceRequest() -{} - -std::string AddBodyTraceRequest::getExtraData()const -{ - return extraData_; + */ + +#include + +using AlibabaCloud::Facebody::Model::AddBodyTraceRequest; + +AddBodyTraceRequest::AddBodyTraceRequest() + : RpcServiceRequest("facebody", "2019-12-30", "AddBodyTrace") { + setMethod(HttpRequest::Method::Post); } -void AddBodyTraceRequest::setExtraData(const std::string& extraData) -{ - extraData_ = extraData; - setBodyParameter("ExtraData", extraData); +AddBodyTraceRequest::~AddBodyTraceRequest() {} + +bool AddBodyTraceRequest::getFormatResultToJson() const { + return formatResultToJson_; } -long AddBodyTraceRequest::getPersonId()const -{ - return personId_; +void AddBodyTraceRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void AddBodyTraceRequest::setPersonId(long personId) -{ - personId_ = personId; - setBodyParameter("PersonId", std::to_string(personId)); +std::string AddBodyTraceRequest::getExtraData() const { + return extraData_; } -Array AddBodyTraceRequest::getImages()const -{ - return images_; +void AddBodyTraceRequest::setExtraData(const std::string &extraData) { + extraData_ = extraData; + setBodyParameter(std::string("ExtraData"), extraData); } -void AddBodyTraceRequest::setImages(const Array& images) -{ - images_ = images; - setBodyParameter("Images", std::to_string(images)); +long AddBodyTraceRequest::getPersonId() const { + return personId_; } -long AddBodyTraceRequest::getDbId()const -{ - return dbId_; +void AddBodyTraceRequest::setPersonId(long personId) { + personId_ = personId; + setBodyParameter(std::string("PersonId"), std::to_string(personId)); } -void AddBodyTraceRequest::setDbId(long dbId) -{ - dbId_ = dbId; - setBodyParameter("DbId", std::to_string(dbId)); +std::string AddBodyTraceRequest::getOssFile() const { + return ossFile_; +} + +void AddBodyTraceRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::vector AddBodyTraceRequest::getImages() const { + return images_; +} + +void AddBodyTraceRequest::setImages(const std::vector &images) { + images_ = images; + for(int dep1 = 0; dep1 != images.size(); dep1++) { + setBodyParameter(std::string("Images") + "." + std::to_string(dep1 + 1) + ".ImageURL", images[dep1].imageURL); + setBodyParameter(std::string("Images") + "." + std::to_string(dep1 + 1) + ".ImageData", images[dep1].imageData); + } +} + +std::string AddBodyTraceRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void AddBodyTraceRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +long AddBodyTraceRequest::getDbId() const { + return dbId_; +} + +void AddBodyTraceRequest::setDbId(long dbId) { + dbId_ = dbId; + setBodyParameter(std::string("DbId"), std::to_string(dbId)); } diff --git a/facebody/src/model/AddBodyTraceResult.cc b/facebody/src/model/AddBodyTraceResult.cc index e43a59591..28a63a707 100644 --- a/facebody/src/model/AddBodyTraceResult.cc +++ b/facebody/src/model/AddBodyTraceResult.cc @@ -42,10 +42,10 @@ void AddBodyTraceResult::parse(const std::string &payload) auto dataNode = value["Data"]; if(!dataNode["Id"].isNull()) data_.id = std::stol(dataNode["Id"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } diff --git a/facebody/src/model/AddFaceEntityRequest.cc b/facebody/src/model/AddFaceEntityRequest.cc index a565865ac..950609791 100644 --- a/facebody/src/model/AddFaceEntityRequest.cc +++ b/facebody/src/model/AddFaceEntityRequest.cc @@ -1,62 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::AddFaceEntityRequest; - -AddFaceEntityRequest::AddFaceEntityRequest() : - RpcServiceRequest("facebody", "2019-12-30", "AddFaceEntity") -{ - setMethod(HttpRequest::Method::Post); -} - -AddFaceEntityRequest::~AddFaceEntityRequest() -{} - -std::string AddFaceEntityRequest::getEntityId()const -{ - return entityId_; + */ + +#include + +using AlibabaCloud::Facebody::Model::AddFaceEntityRequest; + +AddFaceEntityRequest::AddFaceEntityRequest() + : RpcServiceRequest("facebody", "2019-12-30", "AddFaceEntity") { + setMethod(HttpRequest::Method::Post); } -void AddFaceEntityRequest::setEntityId(const std::string& entityId) -{ - entityId_ = entityId; - setBodyParameter("EntityId", entityId); +AddFaceEntityRequest::~AddFaceEntityRequest() {} + +std::string AddFaceEntityRequest::getEntityId() const { + return entityId_; } -std::string AddFaceEntityRequest::getLabels()const -{ - return labels_; +void AddFaceEntityRequest::setEntityId(const std::string &entityId) { + entityId_ = entityId; + setBodyParameter(std::string("EntityId"), entityId); } -void AddFaceEntityRequest::setLabels(const std::string& labels) -{ - labels_ = labels; - setBodyParameter("Labels", labels); +bool AddFaceEntityRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string AddFaceEntityRequest::getDbName()const -{ - return dbName_; +void AddFaceEntityRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void AddFaceEntityRequest::setDbName(const std::string& dbName) -{ - dbName_ = dbName; - setBodyParameter("DbName", dbName); +std::string AddFaceEntityRequest::getOssFile() const { + return ossFile_; +} + +void AddFaceEntityRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string AddFaceEntityRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void AddFaceEntityRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string AddFaceEntityRequest::getLabels() const { + return labels_; +} + +void AddFaceEntityRequest::setLabels(const std::string &labels) { + labels_ = labels; + setBodyParameter(std::string("Labels"), labels); +} + +std::string AddFaceEntityRequest::getDbName() const { + return dbName_; +} + +void AddFaceEntityRequest::setDbName(const std::string &dbName) { + dbName_ = dbName; + setBodyParameter(std::string("DbName"), dbName); } diff --git a/facebody/src/model/AddFaceImageTemplateRequest.cc b/facebody/src/model/AddFaceImageTemplateRequest.cc index d1466a81b..d120e4fdd 100644 --- a/facebody/src/model/AddFaceImageTemplateRequest.cc +++ b/facebody/src/model/AddFaceImageTemplateRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::AddFaceImageTemplateRequest; - -AddFaceImageTemplateRequest::AddFaceImageTemplateRequest() : - RpcServiceRequest("facebody", "2019-12-30", "AddFaceImageTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -AddFaceImageTemplateRequest::~AddFaceImageTemplateRequest() -{} - -bool AddFaceImageTemplateRequest::getFormatResultToJson()const -{ - return formatResultToJson_; + */ + +#include + +using AlibabaCloud::Facebody::Model::AddFaceImageTemplateRequest; + +AddFaceImageTemplateRequest::AddFaceImageTemplateRequest() + : RpcServiceRequest("facebody", "2019-12-30", "AddFaceImageTemplate") { + setMethod(HttpRequest::Method::Post); } -void AddFaceImageTemplateRequest::setFormatResultToJson(bool formatResultToJson) -{ - formatResultToJson_ = formatResultToJson; - setParameter("FormatResultToJson", formatResultToJson ? "true" : "false"); +AddFaceImageTemplateRequest::~AddFaceImageTemplateRequest() {} + +bool AddFaceImageTemplateRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string AddFaceImageTemplateRequest::getUserId()const -{ - return userId_; +void AddFaceImageTemplateRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void AddFaceImageTemplateRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setBodyParameter("UserId", userId); +std::string AddFaceImageTemplateRequest::getUserId() const { + return userId_; } -std::string AddFaceImageTemplateRequest::getOssFile()const -{ - return ossFile_; +void AddFaceImageTemplateRequest::setUserId(const std::string &userId) { + userId_ = userId; + setBodyParameter(std::string("UserId"), userId); } -void AddFaceImageTemplateRequest::setOssFile(const std::string& ossFile) -{ - ossFile_ = ossFile; - setParameter("OssFile", ossFile); +std::string AddFaceImageTemplateRequest::getOssFile() const { + return ossFile_; } -std::string AddFaceImageTemplateRequest::getRequestProxyBy()const -{ - return requestProxyBy_; +void AddFaceImageTemplateRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void AddFaceImageTemplateRequest::setRequestProxyBy(const std::string& requestProxyBy) -{ - requestProxyBy_ = requestProxyBy; - setParameter("RequestProxyBy", requestProxyBy); +std::string AddFaceImageTemplateRequest::getRequestProxyBy() const { + return requestProxyBy_; } -std::string AddFaceImageTemplateRequest::getImageURL()const -{ - return imageURL_; +void AddFaceImageTemplateRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); } -void AddFaceImageTemplateRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +std::string AddFaceImageTemplateRequest::getImageURL() const { + return imageURL_; +} + +void AddFaceImageTemplateRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/AddFaceRequest.cc b/facebody/src/model/AddFaceRequest.cc index 451f31df2..61cd34fe4 100644 --- a/facebody/src/model/AddFaceRequest.cc +++ b/facebody/src/model/AddFaceRequest.cc @@ -1,106 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::AddFaceRequest; - -AddFaceRequest::AddFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "AddFace") -{ - setMethod(HttpRequest::Method::Post); -} - -AddFaceRequest::~AddFaceRequest() -{} - -std::string AddFaceRequest::getEntityId()const -{ - return entityId_; + */ + +#include + +using AlibabaCloud::Facebody::Model::AddFaceRequest; + +AddFaceRequest::AddFaceRequest() + : RpcServiceRequest("facebody", "2019-12-30", "AddFace") { + setMethod(HttpRequest::Method::Post); } -void AddFaceRequest::setEntityId(const std::string& entityId) -{ - entityId_ = entityId; - setBodyParameter("EntityId", entityId); +AddFaceRequest::~AddFaceRequest() {} + +std::string AddFaceRequest::getEntityId() const { + return entityId_; } -float AddFaceRequest::getQualityScoreThreshold()const -{ - return qualityScoreThreshold_; +void AddFaceRequest::setEntityId(const std::string &entityId) { + entityId_ = entityId; + setBodyParameter(std::string("EntityId"), entityId); } -void AddFaceRequest::setQualityScoreThreshold(float qualityScoreThreshold) -{ - qualityScoreThreshold_ = qualityScoreThreshold; - setBodyParameter("QualityScoreThreshold", std::to_string(qualityScoreThreshold)); +bool AddFaceRequest::getFormatResultToJson() const { + return formatResultToJson_; } -float AddFaceRequest::getSimilarityScoreThresholdBetweenEntity()const -{ - return similarityScoreThresholdBetweenEntity_; +void AddFaceRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void AddFaceRequest::setSimilarityScoreThresholdBetweenEntity(float similarityScoreThresholdBetweenEntity) -{ - similarityScoreThresholdBetweenEntity_ = similarityScoreThresholdBetweenEntity; - setBodyParameter("SimilarityScoreThresholdBetweenEntity", std::to_string(similarityScoreThresholdBetweenEntity)); +float AddFaceRequest::getQualityScoreThreshold() const { + return qualityScoreThreshold_; } -std::string AddFaceRequest::getExtraData()const -{ - return extraData_; +void AddFaceRequest::setQualityScoreThreshold(float qualityScoreThreshold) { + qualityScoreThreshold_ = qualityScoreThreshold; + setBodyParameter(std::string("QualityScoreThreshold"), std::to_string(qualityScoreThreshold)); } -void AddFaceRequest::setExtraData(const std::string& extraData) -{ - extraData_ = extraData; - setBodyParameter("ExtraData", extraData); +float AddFaceRequest::getSimilarityScoreThresholdBetweenEntity() const { + return similarityScoreThresholdBetweenEntity_; } -float AddFaceRequest::getSimilarityScoreThresholdInEntity()const -{ - return similarityScoreThresholdInEntity_; +void AddFaceRequest::setSimilarityScoreThresholdBetweenEntity(float similarityScoreThresholdBetweenEntity) { + similarityScoreThresholdBetweenEntity_ = similarityScoreThresholdBetweenEntity; + setBodyParameter(std::string("SimilarityScoreThresholdBetweenEntity"), std::to_string(similarityScoreThresholdBetweenEntity)); } -void AddFaceRequest::setSimilarityScoreThresholdInEntity(float similarityScoreThresholdInEntity) -{ - similarityScoreThresholdInEntity_ = similarityScoreThresholdInEntity; - setBodyParameter("SimilarityScoreThresholdInEntity", std::to_string(similarityScoreThresholdInEntity)); +std::string AddFaceRequest::getExtraData() const { + return extraData_; } -std::string AddFaceRequest::getDbName()const -{ - return dbName_; +void AddFaceRequest::setExtraData(const std::string &extraData) { + extraData_ = extraData; + setBodyParameter(std::string("ExtraData"), extraData); } -void AddFaceRequest::setDbName(const std::string& dbName) -{ - dbName_ = dbName; - setBodyParameter("DbName", dbName); +std::string AddFaceRequest::getOssFile() const { + return ossFile_; } -std::string AddFaceRequest::getImageUrl()const -{ - return imageUrl_; +void AddFaceRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void AddFaceRequest::setImageUrl(const std::string& imageUrl) -{ - imageUrl_ = imageUrl; - setBodyParameter("ImageUrl", imageUrl); +float AddFaceRequest::getSimilarityScoreThresholdInEntity() const { + return similarityScoreThresholdInEntity_; +} + +void AddFaceRequest::setSimilarityScoreThresholdInEntity(float similarityScoreThresholdInEntity) { + similarityScoreThresholdInEntity_ = similarityScoreThresholdInEntity; + setBodyParameter(std::string("SimilarityScoreThresholdInEntity"), std::to_string(similarityScoreThresholdInEntity)); +} + +std::string AddFaceRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void AddFaceRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string AddFaceRequest::getDbName() const { + return dbName_; +} + +void AddFaceRequest::setDbName(const std::string &dbName) { + dbName_ = dbName; + setBodyParameter(std::string("DbName"), dbName); +} + +std::string AddFaceRequest::getImageUrl() const { + return imageUrl_; +} + +void AddFaceRequest::setImageUrl(const std::string &imageUrl) { + imageUrl_ = imageUrl; + setBodyParameter(std::string("ImageUrl"), imageUrl); } diff --git a/facebody/src/model/BatchAddFacesRequest.cc b/facebody/src/model/BatchAddFacesRequest.cc index 903e61cb0..a5611f4af 100644 --- a/facebody/src/model/BatchAddFacesRequest.cc +++ b/facebody/src/model/BatchAddFacesRequest.cc @@ -1,95 +1,111 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::BatchAddFacesRequest; - -BatchAddFacesRequest::BatchAddFacesRequest() : - RpcServiceRequest("facebody", "2019-12-30", "BatchAddFaces") -{ - setMethod(HttpRequest::Method::Post); -} - -BatchAddFacesRequest::~BatchAddFacesRequest() -{} - -std::string BatchAddFacesRequest::getEntityId()const -{ - return entityId_; + */ + +#include + +using AlibabaCloud::Facebody::Model::BatchAddFacesRequest; + +BatchAddFacesRequest::BatchAddFacesRequest() + : RpcServiceRequest("facebody", "2019-12-30", "BatchAddFaces") { + setMethod(HttpRequest::Method::Post); } -void BatchAddFacesRequest::setEntityId(const std::string& entityId) -{ - entityId_ = entityId; - setBodyParameter("EntityId", entityId); +BatchAddFacesRequest::~BatchAddFacesRequest() {} + +std::string BatchAddFacesRequest::getEntityId() const { + return entityId_; } -float BatchAddFacesRequest::getQualityScoreThreshold()const -{ - return qualityScoreThreshold_; +void BatchAddFacesRequest::setEntityId(const std::string &entityId) { + entityId_ = entityId; + setBodyParameter(std::string("EntityId"), entityId); } -void BatchAddFacesRequest::setQualityScoreThreshold(float qualityScoreThreshold) -{ - qualityScoreThreshold_ = qualityScoreThreshold; - setBodyParameter("QualityScoreThreshold", std::to_string(qualityScoreThreshold)); +bool BatchAddFacesRequest::getFormatResultToJson() const { + return formatResultToJson_; } -float BatchAddFacesRequest::getSimilarityScoreThresholdBetweenEntity()const -{ - return similarityScoreThresholdBetweenEntity_; +void BatchAddFacesRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void BatchAddFacesRequest::setSimilarityScoreThresholdBetweenEntity(float similarityScoreThresholdBetweenEntity) -{ - similarityScoreThresholdBetweenEntity_ = similarityScoreThresholdBetweenEntity; - setBodyParameter("SimilarityScoreThresholdBetweenEntity", std::to_string(similarityScoreThresholdBetweenEntity)); +float BatchAddFacesRequest::getQualityScoreThreshold() const { + return qualityScoreThreshold_; } -float BatchAddFacesRequest::getSimilarityScoreThresholdInEntity()const -{ - return similarityScoreThresholdInEntity_; +void BatchAddFacesRequest::setQualityScoreThreshold(float qualityScoreThreshold) { + qualityScoreThreshold_ = qualityScoreThreshold; + setBodyParameter(std::string("QualityScoreThreshold"), std::to_string(qualityScoreThreshold)); } -void BatchAddFacesRequest::setSimilarityScoreThresholdInEntity(float similarityScoreThresholdInEntity) -{ - similarityScoreThresholdInEntity_ = similarityScoreThresholdInEntity; - setBodyParameter("SimilarityScoreThresholdInEntity", std::to_string(similarityScoreThresholdInEntity)); +float BatchAddFacesRequest::getSimilarityScoreThresholdBetweenEntity() const { + return similarityScoreThresholdBetweenEntity_; } -std::string BatchAddFacesRequest::getDbName()const -{ - return dbName_; +void BatchAddFacesRequest::setSimilarityScoreThresholdBetweenEntity(float similarityScoreThresholdBetweenEntity) { + similarityScoreThresholdBetweenEntity_ = similarityScoreThresholdBetweenEntity; + setBodyParameter(std::string("SimilarityScoreThresholdBetweenEntity"), std::to_string(similarityScoreThresholdBetweenEntity)); } -void BatchAddFacesRequest::setDbName(const std::string& dbName) -{ - dbName_ = dbName; - setBodyParameter("DbName", dbName); +std::string BatchAddFacesRequest::getOssFile() const { + return ossFile_; } -Array BatchAddFacesRequest::getFaces()const -{ - return faces_; +void BatchAddFacesRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void BatchAddFacesRequest::setFaces(const Array& faces) -{ - faces_ = faces; - setBodyParameter("Faces", std::to_string(faces)); +float BatchAddFacesRequest::getSimilarityScoreThresholdInEntity() const { + return similarityScoreThresholdInEntity_; +} + +void BatchAddFacesRequest::setSimilarityScoreThresholdInEntity(float similarityScoreThresholdInEntity) { + similarityScoreThresholdInEntity_ = similarityScoreThresholdInEntity; + setBodyParameter(std::string("SimilarityScoreThresholdInEntity"), std::to_string(similarityScoreThresholdInEntity)); +} + +std::string BatchAddFacesRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void BatchAddFacesRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string BatchAddFacesRequest::getDbName() const { + return dbName_; +} + +void BatchAddFacesRequest::setDbName(const std::string &dbName) { + dbName_ = dbName; + setBodyParameter(std::string("DbName"), dbName); +} + +std::vector BatchAddFacesRequest::getFaces() const { + return faces_; +} + +void BatchAddFacesRequest::setFaces(const std::vector &faces) { + faces_ = faces; + for(int dep1 = 0; dep1 != faces.size(); dep1++) { + setBodyParameter(std::string("Faces") + "." + std::to_string(dep1 + 1) + ".ExtraData", faces[dep1].extraData); + setBodyParameter(std::string("Faces") + "." + std::to_string(dep1 + 1) + ".ImageURL", faces[dep1].imageURL); + } } diff --git a/facebody/src/model/BeautifyBodyRequest.cc b/facebody/src/model/BeautifyBodyRequest.cc index c78983d4e..637561102 100644 --- a/facebody/src/model/BeautifyBodyRequest.cc +++ b/facebody/src/model/BeautifyBodyRequest.cc @@ -1,161 +1,181 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::BeautifyBodyRequest; - -BeautifyBodyRequest::BeautifyBodyRequest() : - RpcServiceRequest("facebody", "2019-12-30", "BeautifyBody") -{ - setMethod(HttpRequest::Method::Post); -} - -BeautifyBodyRequest::~BeautifyBodyRequest() -{} - -Array BeautifyBodyRequest::getBodyBoxes()const -{ - return bodyBoxes_; + */ + +#include + +using AlibabaCloud::Facebody::Model::BeautifyBodyRequest; + +BeautifyBodyRequest::BeautifyBodyRequest() + : RpcServiceRequest("facebody", "2019-12-30", "BeautifyBody") { + setMethod(HttpRequest::Method::Post); } -void BeautifyBodyRequest::setBodyBoxes(const Array& bodyBoxes) -{ - bodyBoxes_ = bodyBoxes; - setBodyParameter("BodyBoxes", std::to_string(bodyBoxes)); +BeautifyBodyRequest::~BeautifyBodyRequest() {} + +std::vector BeautifyBodyRequest::getBodyBoxes() const { + return bodyBoxes_; } -float BeautifyBodyRequest::getLengthenDegree()const -{ - return lengthenDegree_; +void BeautifyBodyRequest::setBodyBoxes(const std::vector &bodyBoxes) { + bodyBoxes_ = bodyBoxes; + for(int dep1 = 0; dep1 != bodyBoxes.size(); dep1++) { + setBodyParameter(std::string("BodyBoxes") + "." + std::to_string(dep1 + 1) + ".X", std::to_string(bodyBoxes[dep1].x)); + setBodyParameter(std::string("BodyBoxes") + "." + std::to_string(dep1 + 1) + ".Width", std::to_string(bodyBoxes[dep1].width)); + setBodyParameter(std::string("BodyBoxes") + "." + std::to_string(dep1 + 1) + ".Y", std::to_string(bodyBoxes[dep1].y)); + setBodyParameter(std::string("BodyBoxes") + "." + std::to_string(dep1 + 1) + ".Height", std::to_string(bodyBoxes[dep1].height)); + } } -void BeautifyBodyRequest::setLengthenDegree(float lengthenDegree) -{ - lengthenDegree_ = lengthenDegree; - setBodyParameter("LengthenDegree", std::to_string(lengthenDegree)); +float BeautifyBodyRequest::getLengthenDegree() const { + return lengthenDegree_; } -float BeautifyBodyRequest::getMaleLiquifyDegree()const -{ - return maleLiquifyDegree_; +void BeautifyBodyRequest::setLengthenDegree(float lengthenDegree) { + lengthenDegree_ = lengthenDegree; + setBodyParameter(std::string("LengthenDegree"), std::to_string(lengthenDegree)); } -void BeautifyBodyRequest::setMaleLiquifyDegree(float maleLiquifyDegree) -{ - maleLiquifyDegree_ = maleLiquifyDegree; - setBodyParameter("MaleLiquifyDegree", std::to_string(maleLiquifyDegree)); +float BeautifyBodyRequest::getMaleLiquifyDegree() const { + return maleLiquifyDegree_; } -long BeautifyBodyRequest::getOriginalWidth()const -{ - return originalWidth_; +void BeautifyBodyRequest::setMaleLiquifyDegree(float maleLiquifyDegree) { + maleLiquifyDegree_ = maleLiquifyDegree; + setBodyParameter(std::string("MaleLiquifyDegree"), std::to_string(maleLiquifyDegree)); } -void BeautifyBodyRequest::setOriginalWidth(long originalWidth) -{ - originalWidth_ = originalWidth; - setBodyParameter("OriginalWidth", std::to_string(originalWidth)); +bool BeautifyBodyRequest::getFormatResultToJson() const { + return formatResultToJson_; } -bool BeautifyBodyRequest::getIsPregnant()const -{ - return isPregnant_; +void BeautifyBodyRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void BeautifyBodyRequest::setIsPregnant(bool isPregnant) -{ - isPregnant_ = isPregnant; - setBodyParameter("IsPregnant", isPregnant ? "true" : "false"); +long BeautifyBodyRequest::getOriginalWidth() const { + return originalWidth_; } -Array BeautifyBodyRequest::getFaceList()const -{ - return faceList_; +void BeautifyBodyRequest::setOriginalWidth(long originalWidth) { + originalWidth_ = originalWidth; + setBodyParameter(std::string("OriginalWidth"), std::to_string(originalWidth)); } -void BeautifyBodyRequest::setFaceList(const Array& faceList) -{ - faceList_ = faceList; - setBodyParameter("FaceList", std::to_string(faceList)); +bool BeautifyBodyRequest::getIsPregnant() const { + return isPregnant_; } -Struct BeautifyBodyRequest::getAgeRange()const -{ - return ageRange_; +void BeautifyBodyRequest::setIsPregnant(bool isPregnant) { + isPregnant_ = isPregnant; + setBodyParameter(std::string("IsPregnant"), isPregnant ? "true" : "false"); } -void BeautifyBodyRequest::setAgeRange(const Struct& ageRange) -{ - ageRange_ = ageRange; - setBodyParameter("AgeRange", std::to_string(ageRange)); +std::vector BeautifyBodyRequest::getFaceList() const { + return faceList_; } -long BeautifyBodyRequest::getCustom()const -{ - return custom_; +void BeautifyBodyRequest::setFaceList(const std::vector &faceList) { + faceList_ = faceList; + for(int dep1 = 0; dep1 != faceList.size(); dep1++) { + setBodyParameter(std::string("FaceList") + "." + std::to_string(dep1 + 1) + ".Gender", std::to_string(faceList[dep1].gender)); + setBodyParameter(std::string("FaceList") + "." + std::to_string(dep1 + 1) + ".FaceBox.X", std::to_string(faceList[dep1].faceBox.x)); + setBodyParameter(std::string("FaceList") + "." + std::to_string(dep1 + 1) + ".FaceBox.Width", std::to_string(faceList[dep1].faceBox.width)); + setBodyParameter(std::string("FaceList") + "." + std::to_string(dep1 + 1) + ".FaceBox.Y", std::to_string(faceList[dep1].faceBox.y)); + setBodyParameter(std::string("FaceList") + "." + std::to_string(dep1 + 1) + ".FaceBox.Height", std::to_string(faceList[dep1].faceBox.height)); + setBodyParameter(std::string("FaceList") + "." + std::to_string(dep1 + 1) + ".Age", std::to_string(faceList[dep1].age)); + } } -void BeautifyBodyRequest::setCustom(long custom) -{ - custom_ = custom; - setBodyParameter("Custom", std::to_string(custom)); +std::string BeautifyBodyRequest::getOssFile() const { + return ossFile_; } -long BeautifyBodyRequest::getOriginalHeight()const -{ - return originalHeight_; +void BeautifyBodyRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void BeautifyBodyRequest::setOriginalHeight(long originalHeight) -{ - originalHeight_ = originalHeight; - setBodyParameter("OriginalHeight", std::to_string(originalHeight)); +BeautifyBodyRequest::AgeRange BeautifyBodyRequest::getAgeRange() const { + return ageRange_; } -std::string BeautifyBodyRequest::getImageURL()const -{ - return imageURL_; +void BeautifyBodyRequest::setAgeRange(const BeautifyBodyRequest::AgeRange &ageRange) { + ageRange_ = ageRange; + setBodyParameter(std::string("AgeRange") + ".AgeMax", std::to_string(ageRange.ageMax)); + setBodyParameter(std::string("AgeRange") + ".AgeMinimum", std::to_string(ageRange.ageMinimum)); } -void BeautifyBodyRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +long BeautifyBodyRequest::getCustom() const { + return custom_; } -float BeautifyBodyRequest::getFemaleLiquifyDegree()const -{ - return femaleLiquifyDegree_; +void BeautifyBodyRequest::setCustom(long custom) { + custom_ = custom; + setBodyParameter(std::string("Custom"), std::to_string(custom)); } -void BeautifyBodyRequest::setFemaleLiquifyDegree(float femaleLiquifyDegree) -{ - femaleLiquifyDegree_ = femaleLiquifyDegree; - setBodyParameter("FemaleLiquifyDegree", std::to_string(femaleLiquifyDegree)); +std::string BeautifyBodyRequest::getRequestProxyBy() const { + return requestProxyBy_; } -Array BeautifyBodyRequest::getPoseList()const -{ - return poseList_; +void BeautifyBodyRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); } -void BeautifyBodyRequest::setPoseList(const Array& poseList) -{ - poseList_ = poseList; - setBodyParameter("PoseList", std::to_string(poseList)); +long BeautifyBodyRequest::getOriginalHeight() const { + return originalHeight_; +} + +void BeautifyBodyRequest::setOriginalHeight(long originalHeight) { + originalHeight_ = originalHeight; + setBodyParameter(std::string("OriginalHeight"), std::to_string(originalHeight)); +} + +std::string BeautifyBodyRequest::getImageURL() const { + return imageURL_; +} + +void BeautifyBodyRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); +} + +float BeautifyBodyRequest::getFemaleLiquifyDegree() const { + return femaleLiquifyDegree_; +} + +void BeautifyBodyRequest::setFemaleLiquifyDegree(float femaleLiquifyDegree) { + femaleLiquifyDegree_ = femaleLiquifyDegree; + setBodyParameter(std::string("FemaleLiquifyDegree"), std::to_string(femaleLiquifyDegree)); +} + +std::vector BeautifyBodyRequest::getPoseList() const { + return poseList_; +} + +void BeautifyBodyRequest::setPoseList(const std::vector &poseList) { + poseList_ = poseList; + for(int dep1 = 0; dep1 != poseList.size(); dep1++) { + for(int dep2 = 0; dep2 != poseList[dep1].pose.size(); dep2++) { + setBodyParameter(std::string("PoseList") + "." + std::to_string(dep1 + 1) + ".Pose." + std::to_string(dep2 + 1) + ".Score", std::to_string(poseList[dep1].pose[dep2].score)); + setBodyParameter(std::string("PoseList") + "." + std::to_string(dep1 + 1) + ".Pose." + std::to_string(dep2 + 1) + ".X", std::to_string(poseList[dep1].pose[dep2].x)); + setBodyParameter(std::string("PoseList") + "." + std::to_string(dep1 + 1) + ".Pose." + std::to_string(dep2 + 1) + ".Y", std::to_string(poseList[dep1].pose[dep2].y)); + } + } } diff --git a/facebody/src/model/BlurFaceRequest.cc b/facebody/src/model/BlurFaceRequest.cc index 04961d83c..7f87ee77c 100644 --- a/facebody/src/model/BlurFaceRequest.cc +++ b/facebody/src/model/BlurFaceRequest.cc @@ -1,40 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::BlurFaceRequest; - -BlurFaceRequest::BlurFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "BlurFace") -{ - setMethod(HttpRequest::Method::Post); -} - -BlurFaceRequest::~BlurFaceRequest() -{} - -std::string BlurFaceRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Facebody::Model::BlurFaceRequest; + +BlurFaceRequest::BlurFaceRequest() + : RpcServiceRequest("facebody", "2019-12-30", "BlurFace") { + setMethod(HttpRequest::Method::Post); } -void BlurFaceRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +BlurFaceRequest::~BlurFaceRequest() {} + +bool BlurFaceRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void BlurFaceRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +std::string BlurFaceRequest::getOssFile() const { + return ossFile_; +} + +void BlurFaceRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string BlurFaceRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void BlurFaceRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string BlurFaceRequest::getImageURL() const { + return imageURL_; +} + +void BlurFaceRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/BodyPostureRequest.cc b/facebody/src/model/BodyPostureRequest.cc index 705b18e3a..7cc797fef 100644 --- a/facebody/src/model/BodyPostureRequest.cc +++ b/facebody/src/model/BodyPostureRequest.cc @@ -1,40 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::BodyPostureRequest; - -BodyPostureRequest::BodyPostureRequest() : - RpcServiceRequest("facebody", "2019-12-30", "BodyPosture") -{ - setMethod(HttpRequest::Method::Post); -} - -BodyPostureRequest::~BodyPostureRequest() -{} - -std::string BodyPostureRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Facebody::Model::BodyPostureRequest; + +BodyPostureRequest::BodyPostureRequest() + : RpcServiceRequest("facebody", "2019-12-30", "BodyPosture") { + setMethod(HttpRequest::Method::Post); } -void BodyPostureRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +BodyPostureRequest::~BodyPostureRequest() {} + +bool BodyPostureRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void BodyPostureRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +std::string BodyPostureRequest::getOssFile() const { + return ossFile_; +} + +void BodyPostureRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string BodyPostureRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void BodyPostureRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string BodyPostureRequest::getImageURL() const { + return imageURL_; +} + +void BodyPostureRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/BodyPostureResult.cc b/facebody/src/model/BodyPostureResult.cc index dfa28f3c4..7f7090d61 100644 --- a/facebody/src/model/BodyPostureResult.cc +++ b/facebody/src/model/BodyPostureResult.cc @@ -74,10 +74,10 @@ void BodyPostureResult::parse(const std::string &payload) data_.outputs.push_back(outputObject); } auto metaObjectNode = dataNode["MetaObject"]; - if(!metaObjectNode["Height"].isNull()) - data_.metaObject.height = std::stoi(metaObjectNode["Height"].asString()); if(!metaObjectNode["Width"].isNull()) data_.metaObject.width = std::stoi(metaObjectNode["Width"].asString()); + if(!metaObjectNode["Height"].isNull()) + data_.metaObject.height = std::stoi(metaObjectNode["Height"].asString()); } diff --git a/facebody/src/model/CompareFaceRequest.cc b/facebody/src/model/CompareFaceRequest.cc index 43ddf8d1d..0f15f312b 100644 --- a/facebody/src/model/CompareFaceRequest.cc +++ b/facebody/src/model/CompareFaceRequest.cc @@ -1,95 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::CompareFaceRequest; - -CompareFaceRequest::CompareFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "CompareFace") -{ - setMethod(HttpRequest::Method::Post); -} - -CompareFaceRequest::~CompareFaceRequest() -{} - -std::string CompareFaceRequest::getImageDataA()const -{ - return imageDataA_; + */ + +#include + +using AlibabaCloud::Facebody::Model::CompareFaceRequest; + +CompareFaceRequest::CompareFaceRequest() + : RpcServiceRequest("facebody", "2019-12-30", "CompareFace") { + setMethod(HttpRequest::Method::Post); } -void CompareFaceRequest::setImageDataA(const std::string& imageDataA) -{ - imageDataA_ = imageDataA; - setBodyParameter("ImageDataA", imageDataA); +CompareFaceRequest::~CompareFaceRequest() {} + +std::string CompareFaceRequest::getImageDataA() const { + return imageDataA_; } -std::string CompareFaceRequest::getImageDataB()const -{ - return imageDataB_; +void CompareFaceRequest::setImageDataA(const std::string &imageDataA) { + imageDataA_ = imageDataA; + setBodyParameter(std::string("ImageDataA"), imageDataA); } -void CompareFaceRequest::setImageDataB(const std::string& imageDataB) -{ - imageDataB_ = imageDataB; - setBodyParameter("ImageDataB", imageDataB); +std::string CompareFaceRequest::getImageDataB() const { + return imageDataB_; } -float CompareFaceRequest::getQualityScoreThreshold()const -{ - return qualityScoreThreshold_; +void CompareFaceRequest::setImageDataB(const std::string &imageDataB) { + imageDataB_ = imageDataB; + setBodyParameter(std::string("ImageDataB"), imageDataB); } -void CompareFaceRequest::setQualityScoreThreshold(float qualityScoreThreshold) -{ - qualityScoreThreshold_ = qualityScoreThreshold; - setBodyParameter("QualityScoreThreshold", std::to_string(qualityScoreThreshold)); +bool CompareFaceRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string CompareFaceRequest::getImageURLB()const -{ - return imageURLB_; +void CompareFaceRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void CompareFaceRequest::setImageURLB(const std::string& imageURLB) -{ - imageURLB_ = imageURLB; - setBodyParameter("ImageURLB", imageURLB); +float CompareFaceRequest::getQualityScoreThreshold() const { + return qualityScoreThreshold_; } -std::string CompareFaceRequest::getImageURLA()const -{ - return imageURLA_; +void CompareFaceRequest::setQualityScoreThreshold(float qualityScoreThreshold) { + qualityScoreThreshold_ = qualityScoreThreshold; + setBodyParameter(std::string("QualityScoreThreshold"), std::to_string(qualityScoreThreshold)); } -void CompareFaceRequest::setImageURLA(const std::string& imageURLA) -{ - imageURLA_ = imageURLA; - setBodyParameter("ImageURLA", imageURLA); +std::string CompareFaceRequest::getImageURLB() const { + return imageURLB_; } -int CompareFaceRequest::getImageType()const -{ - return imageType_; +void CompareFaceRequest::setImageURLB(const std::string &imageURLB) { + imageURLB_ = imageURLB; + setBodyParameter(std::string("ImageURLB"), imageURLB); } -void CompareFaceRequest::setImageType(int imageType) -{ - imageType_ = imageType; - setBodyParameter("ImageType", std::to_string(imageType)); +std::string CompareFaceRequest::getImageURLA() const { + return imageURLA_; +} + +void CompareFaceRequest::setImageURLA(const std::string &imageURLA) { + imageURLA_ = imageURLA; + setBodyParameter(std::string("ImageURLA"), imageURLA); +} + +std::string CompareFaceRequest::getOssFile() const { + return ossFile_; +} + +void CompareFaceRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +int CompareFaceRequest::getImageType() const { + return imageType_; +} + +void CompareFaceRequest::setImageType(int imageType) { + imageType_ = imageType; + setBodyParameter(std::string("ImageType"), std::to_string(imageType)); +} + +std::string CompareFaceRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void CompareFaceRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); } diff --git a/facebody/src/model/CountCrowdRequest.cc b/facebody/src/model/CountCrowdRequest.cc index d8bc30ce7..ce33feab4 100644 --- a/facebody/src/model/CountCrowdRequest.cc +++ b/facebody/src/model/CountCrowdRequest.cc @@ -1,51 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::CountCrowdRequest; - -CountCrowdRequest::CountCrowdRequest() : - RpcServiceRequest("facebody", "2019-12-30", "CountCrowd") -{ - setMethod(HttpRequest::Method::Post); -} - -CountCrowdRequest::~CountCrowdRequest() -{} - -bool CountCrowdRequest::getIsShow()const -{ - return isShow_; + */ + +#include + +using AlibabaCloud::Facebody::Model::CountCrowdRequest; + +CountCrowdRequest::CountCrowdRequest() + : RpcServiceRequest("facebody", "2019-12-30", "CountCrowd") { + setMethod(HttpRequest::Method::Post); } -void CountCrowdRequest::setIsShow(bool isShow) -{ - isShow_ = isShow; - setBodyParameter("IsShow", isShow ? "true" : "false"); +CountCrowdRequest::~CountCrowdRequest() {} + +bool CountCrowdRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string CountCrowdRequest::getImageURL()const -{ - return imageURL_; +void CountCrowdRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void CountCrowdRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +bool CountCrowdRequest::getIsShow() const { + return isShow_; +} + +void CountCrowdRequest::setIsShow(bool isShow) { + isShow_ = isShow; + setBodyParameter(std::string("IsShow"), isShow ? "true" : "false"); +} + +std::string CountCrowdRequest::getOssFile() const { + return ossFile_; +} + +void CountCrowdRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string CountCrowdRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void CountCrowdRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string CountCrowdRequest::getImageURL() const { + return imageURL_; +} + +void CountCrowdRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/CreateBodyDbRequest.cc b/facebody/src/model/CreateBodyDbRequest.cc index 60c0f487d..b616a06f8 100644 --- a/facebody/src/model/CreateBodyDbRequest.cc +++ b/facebody/src/model/CreateBodyDbRequest.cc @@ -1,40 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::CreateBodyDbRequest; - -CreateBodyDbRequest::CreateBodyDbRequest() : - RpcServiceRequest("facebody", "2019-12-30", "CreateBodyDb") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateBodyDbRequest::~CreateBodyDbRequest() -{} - -std::string CreateBodyDbRequest::getName()const -{ - return name_; + */ + +#include + +using AlibabaCloud::Facebody::Model::CreateBodyDbRequest; + +CreateBodyDbRequest::CreateBodyDbRequest() + : RpcServiceRequest("facebody", "2019-12-30", "CreateBodyDb") { + setMethod(HttpRequest::Method::Post); } -void CreateBodyDbRequest::setName(const std::string& name) -{ - name_ = name; - setBodyParameter("Name", name); +CreateBodyDbRequest::~CreateBodyDbRequest() {} + +bool CreateBodyDbRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void CreateBodyDbRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +std::string CreateBodyDbRequest::getOssFile() const { + return ossFile_; +} + +void CreateBodyDbRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string CreateBodyDbRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void CreateBodyDbRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string CreateBodyDbRequest::getName() const { + return name_; +} + +void CreateBodyDbRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); } diff --git a/facebody/src/model/CreateBodyDbResult.cc b/facebody/src/model/CreateBodyDbResult.cc index dcb879aa6..c5180ff2f 100644 --- a/facebody/src/model/CreateBodyDbResult.cc +++ b/facebody/src/model/CreateBodyDbResult.cc @@ -42,10 +42,10 @@ void CreateBodyDbResult::parse(const std::string &payload) auto dataNode = value["Data"]; if(!dataNode["Id"].isNull()) data_.id = std::stol(dataNode["Id"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } diff --git a/facebody/src/model/CreateBodyPersonRequest.cc b/facebody/src/model/CreateBodyPersonRequest.cc index 015304f56..55429d1cc 100644 --- a/facebody/src/model/CreateBodyPersonRequest.cc +++ b/facebody/src/model/CreateBodyPersonRequest.cc @@ -1,51 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::CreateBodyPersonRequest; - -CreateBodyPersonRequest::CreateBodyPersonRequest() : - RpcServiceRequest("facebody", "2019-12-30", "CreateBodyPerson") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateBodyPersonRequest::~CreateBodyPersonRequest() -{} - -long CreateBodyPersonRequest::getDbId()const -{ - return dbId_; + */ + +#include + +using AlibabaCloud::Facebody::Model::CreateBodyPersonRequest; + +CreateBodyPersonRequest::CreateBodyPersonRequest() + : RpcServiceRequest("facebody", "2019-12-30", "CreateBodyPerson") { + setMethod(HttpRequest::Method::Post); } -void CreateBodyPersonRequest::setDbId(long dbId) -{ - dbId_ = dbId; - setBodyParameter("DbId", std::to_string(dbId)); +CreateBodyPersonRequest::~CreateBodyPersonRequest() {} + +bool CreateBodyPersonRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string CreateBodyPersonRequest::getName()const -{ - return name_; +void CreateBodyPersonRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void CreateBodyPersonRequest::setName(const std::string& name) -{ - name_ = name; - setBodyParameter("Name", name); +std::string CreateBodyPersonRequest::getOssFile() const { + return ossFile_; +} + +void CreateBodyPersonRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string CreateBodyPersonRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void CreateBodyPersonRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +long CreateBodyPersonRequest::getDbId() const { + return dbId_; +} + +void CreateBodyPersonRequest::setDbId(long dbId) { + dbId_ = dbId; + setBodyParameter(std::string("DbId"), std::to_string(dbId)); +} + +std::string CreateBodyPersonRequest::getName() const { + return name_; +} + +void CreateBodyPersonRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); } diff --git a/facebody/src/model/CreateBodyPersonResult.cc b/facebody/src/model/CreateBodyPersonResult.cc index 8a5c1ab31..073e2bcde 100644 --- a/facebody/src/model/CreateBodyPersonResult.cc +++ b/facebody/src/model/CreateBodyPersonResult.cc @@ -42,10 +42,10 @@ void CreateBodyPersonResult::parse(const std::string &payload) auto dataNode = value["Data"]; if(!dataNode["Id"].isNull()) data_.id = std::stol(dataNode["Id"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } diff --git a/facebody/src/model/CreateFaceDbRequest.cc b/facebody/src/model/CreateFaceDbRequest.cc index 85bb96563..c1ad59d85 100644 --- a/facebody/src/model/CreateFaceDbRequest.cc +++ b/facebody/src/model/CreateFaceDbRequest.cc @@ -1,40 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::CreateFaceDbRequest; - -CreateFaceDbRequest::CreateFaceDbRequest() : - RpcServiceRequest("facebody", "2019-12-30", "CreateFaceDb") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateFaceDbRequest::~CreateFaceDbRequest() -{} - -std::string CreateFaceDbRequest::getName()const -{ - return name_; + */ + +#include + +using AlibabaCloud::Facebody::Model::CreateFaceDbRequest; + +CreateFaceDbRequest::CreateFaceDbRequest() + : RpcServiceRequest("facebody", "2019-12-30", "CreateFaceDb") { + setMethod(HttpRequest::Method::Post); } -void CreateFaceDbRequest::setName(const std::string& name) -{ - name_ = name; - setBodyParameter("Name", name); +CreateFaceDbRequest::~CreateFaceDbRequest() {} + +bool CreateFaceDbRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void CreateFaceDbRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +std::string CreateFaceDbRequest::getOssFile() const { + return ossFile_; +} + +void CreateFaceDbRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string CreateFaceDbRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void CreateFaceDbRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string CreateFaceDbRequest::getName() const { + return name_; +} + +void CreateFaceDbRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); } diff --git a/facebody/src/model/DeleteBodyDbRequest.cc b/facebody/src/model/DeleteBodyDbRequest.cc index 4726f3b71..b192944f9 100644 --- a/facebody/src/model/DeleteBodyDbRequest.cc +++ b/facebody/src/model/DeleteBodyDbRequest.cc @@ -1,40 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::DeleteBodyDbRequest; - -DeleteBodyDbRequest::DeleteBodyDbRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DeleteBodyDb") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteBodyDbRequest::~DeleteBodyDbRequest() -{} - -long DeleteBodyDbRequest::getId()const -{ - return id_; + */ + +#include + +using AlibabaCloud::Facebody::Model::DeleteBodyDbRequest; + +DeleteBodyDbRequest::DeleteBodyDbRequest() + : RpcServiceRequest("facebody", "2019-12-30", "DeleteBodyDb") { + setMethod(HttpRequest::Method::Post); } -void DeleteBodyDbRequest::setId(long id) -{ - id_ = id; - setBodyParameter("Id", std::to_string(id)); +DeleteBodyDbRequest::~DeleteBodyDbRequest() {} + +bool DeleteBodyDbRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void DeleteBodyDbRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +long DeleteBodyDbRequest::getId() const { + return id_; +} + +void DeleteBodyDbRequest::setId(long id) { + id_ = id; + setBodyParameter(std::string("Id"), std::to_string(id)); +} + +std::string DeleteBodyDbRequest::getOssFile() const { + return ossFile_; +} + +void DeleteBodyDbRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string DeleteBodyDbRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void DeleteBodyDbRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); } diff --git a/facebody/src/model/DeleteBodyDbResult.cc b/facebody/src/model/DeleteBodyDbResult.cc index 94d65b836..d5c3e9066 100644 --- a/facebody/src/model/DeleteBodyDbResult.cc +++ b/facebody/src/model/DeleteBodyDbResult.cc @@ -39,10 +39,10 @@ void DeleteBodyDbResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } diff --git a/facebody/src/model/DeleteBodyPersonRequest.cc b/facebody/src/model/DeleteBodyPersonRequest.cc index b59ab8d3b..e48abd2f2 100644 --- a/facebody/src/model/DeleteBodyPersonRequest.cc +++ b/facebody/src/model/DeleteBodyPersonRequest.cc @@ -1,51 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::DeleteBodyPersonRequest; - -DeleteBodyPersonRequest::DeleteBodyPersonRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DeleteBodyPerson") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteBodyPersonRequest::~DeleteBodyPersonRequest() -{} - -long DeleteBodyPersonRequest::getPersonId()const -{ - return personId_; + */ + +#include + +using AlibabaCloud::Facebody::Model::DeleteBodyPersonRequest; + +DeleteBodyPersonRequest::DeleteBodyPersonRequest() + : RpcServiceRequest("facebody", "2019-12-30", "DeleteBodyPerson") { + setMethod(HttpRequest::Method::Post); } -void DeleteBodyPersonRequest::setPersonId(long personId) -{ - personId_ = personId; - setBodyParameter("PersonId", std::to_string(personId)); +DeleteBodyPersonRequest::~DeleteBodyPersonRequest() {} + +bool DeleteBodyPersonRequest::getFormatResultToJson() const { + return formatResultToJson_; } -long DeleteBodyPersonRequest::getDbId()const -{ - return dbId_; +void DeleteBodyPersonRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void DeleteBodyPersonRequest::setDbId(long dbId) -{ - dbId_ = dbId; - setBodyParameter("DbId", std::to_string(dbId)); +long DeleteBodyPersonRequest::getPersonId() const { + return personId_; +} + +void DeleteBodyPersonRequest::setPersonId(long personId) { + personId_ = personId; + setBodyParameter(std::string("PersonId"), std::to_string(personId)); +} + +std::string DeleteBodyPersonRequest::getOssFile() const { + return ossFile_; +} + +void DeleteBodyPersonRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string DeleteBodyPersonRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void DeleteBodyPersonRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +long DeleteBodyPersonRequest::getDbId() const { + return dbId_; +} + +void DeleteBodyPersonRequest::setDbId(long dbId) { + dbId_ = dbId; + setBodyParameter(std::string("DbId"), std::to_string(dbId)); } diff --git a/facebody/src/model/DeleteBodyPersonResult.cc b/facebody/src/model/DeleteBodyPersonResult.cc index ec69cb42e..17008cd62 100644 --- a/facebody/src/model/DeleteBodyPersonResult.cc +++ b/facebody/src/model/DeleteBodyPersonResult.cc @@ -39,10 +39,10 @@ void DeleteBodyPersonResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } diff --git a/facebody/src/model/DeleteFaceDbRequest.cc b/facebody/src/model/DeleteFaceDbRequest.cc index b69be5050..2d1c7cbff 100644 --- a/facebody/src/model/DeleteFaceDbRequest.cc +++ b/facebody/src/model/DeleteFaceDbRequest.cc @@ -1,40 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::DeleteFaceDbRequest; - -DeleteFaceDbRequest::DeleteFaceDbRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DeleteFaceDb") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteFaceDbRequest::~DeleteFaceDbRequest() -{} - -std::string DeleteFaceDbRequest::getName()const -{ - return name_; + */ + +#include + +using AlibabaCloud::Facebody::Model::DeleteFaceDbRequest; + +DeleteFaceDbRequest::DeleteFaceDbRequest() + : RpcServiceRequest("facebody", "2019-12-30", "DeleteFaceDb") { + setMethod(HttpRequest::Method::Post); } -void DeleteFaceDbRequest::setName(const std::string& name) -{ - name_ = name; - setBodyParameter("Name", name); +DeleteFaceDbRequest::~DeleteFaceDbRequest() {} + +bool DeleteFaceDbRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void DeleteFaceDbRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +std::string DeleteFaceDbRequest::getOssFile() const { + return ossFile_; +} + +void DeleteFaceDbRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string DeleteFaceDbRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void DeleteFaceDbRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string DeleteFaceDbRequest::getName() const { + return name_; +} + +void DeleteFaceDbRequest::setName(const std::string &name) { + name_ = name; + setBodyParameter(std::string("Name"), name); } diff --git a/facebody/src/model/DeleteFaceEntityRequest.cc b/facebody/src/model/DeleteFaceEntityRequest.cc index 0ae7e9493..4cfba9d78 100644 --- a/facebody/src/model/DeleteFaceEntityRequest.cc +++ b/facebody/src/model/DeleteFaceEntityRequest.cc @@ -1,51 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::DeleteFaceEntityRequest; - -DeleteFaceEntityRequest::DeleteFaceEntityRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DeleteFaceEntity") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteFaceEntityRequest::~DeleteFaceEntityRequest() -{} - -std::string DeleteFaceEntityRequest::getEntityId()const -{ - return entityId_; + */ + +#include + +using AlibabaCloud::Facebody::Model::DeleteFaceEntityRequest; + +DeleteFaceEntityRequest::DeleteFaceEntityRequest() + : RpcServiceRequest("facebody", "2019-12-30", "DeleteFaceEntity") { + setMethod(HttpRequest::Method::Post); } -void DeleteFaceEntityRequest::setEntityId(const std::string& entityId) -{ - entityId_ = entityId; - setBodyParameter("EntityId", entityId); +DeleteFaceEntityRequest::~DeleteFaceEntityRequest() {} + +std::string DeleteFaceEntityRequest::getEntityId() const { + return entityId_; } -std::string DeleteFaceEntityRequest::getDbName()const -{ - return dbName_; +void DeleteFaceEntityRequest::setEntityId(const std::string &entityId) { + entityId_ = entityId; + setBodyParameter(std::string("EntityId"), entityId); } -void DeleteFaceEntityRequest::setDbName(const std::string& dbName) -{ - dbName_ = dbName; - setBodyParameter("DbName", dbName); +bool DeleteFaceEntityRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void DeleteFaceEntityRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +std::string DeleteFaceEntityRequest::getOssFile() const { + return ossFile_; +} + +void DeleteFaceEntityRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string DeleteFaceEntityRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void DeleteFaceEntityRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string DeleteFaceEntityRequest::getDbName() const { + return dbName_; +} + +void DeleteFaceEntityRequest::setDbName(const std::string &dbName) { + dbName_ = dbName; + setBodyParameter(std::string("DbName"), dbName); } diff --git a/facebody/src/model/DeleteFaceImageTemplateRequest.cc b/facebody/src/model/DeleteFaceImageTemplateRequest.cc index cbff00ce3..247cf7749 100644 --- a/facebody/src/model/DeleteFaceImageTemplateRequest.cc +++ b/facebody/src/model/DeleteFaceImageTemplateRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::DeleteFaceImageTemplateRequest; - -DeleteFaceImageTemplateRequest::DeleteFaceImageTemplateRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DeleteFaceImageTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteFaceImageTemplateRequest::~DeleteFaceImageTemplateRequest() -{} - -bool DeleteFaceImageTemplateRequest::getFormatResultToJson()const -{ - return formatResultToJson_; + */ + +#include + +using AlibabaCloud::Facebody::Model::DeleteFaceImageTemplateRequest; + +DeleteFaceImageTemplateRequest::DeleteFaceImageTemplateRequest() + : RpcServiceRequest("facebody", "2019-12-30", "DeleteFaceImageTemplate") { + setMethod(HttpRequest::Method::Post); } -void DeleteFaceImageTemplateRequest::setFormatResultToJson(bool formatResultToJson) -{ - formatResultToJson_ = formatResultToJson; - setParameter("FormatResultToJson", formatResultToJson ? "true" : "false"); +DeleteFaceImageTemplateRequest::~DeleteFaceImageTemplateRequest() {} + +bool DeleteFaceImageTemplateRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string DeleteFaceImageTemplateRequest::getUserId()const -{ - return userId_; +void DeleteFaceImageTemplateRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void DeleteFaceImageTemplateRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setBodyParameter("UserId", userId); +std::string DeleteFaceImageTemplateRequest::getUserId() const { + return userId_; } -std::string DeleteFaceImageTemplateRequest::getOssFile()const -{ - return ossFile_; +void DeleteFaceImageTemplateRequest::setUserId(const std::string &userId) { + userId_ = userId; + setBodyParameter(std::string("UserId"), userId); } -void DeleteFaceImageTemplateRequest::setOssFile(const std::string& ossFile) -{ - ossFile_ = ossFile; - setParameter("OssFile", ossFile); +std::string DeleteFaceImageTemplateRequest::getOssFile() const { + return ossFile_; } -std::string DeleteFaceImageTemplateRequest::getTemplateId()const -{ - return templateId_; +void DeleteFaceImageTemplateRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void DeleteFaceImageTemplateRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setBodyParameter("TemplateId", templateId); +std::string DeleteFaceImageTemplateRequest::getTemplateId() const { + return templateId_; } -std::string DeleteFaceImageTemplateRequest::getRequestProxyBy()const -{ - return requestProxyBy_; +void DeleteFaceImageTemplateRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setBodyParameter(std::string("TemplateId"), templateId); } -void DeleteFaceImageTemplateRequest::setRequestProxyBy(const std::string& requestProxyBy) -{ - requestProxyBy_ = requestProxyBy; - setParameter("RequestProxyBy", requestProxyBy); +std::string DeleteFaceImageTemplateRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void DeleteFaceImageTemplateRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); } diff --git a/facebody/src/model/DeleteFaceRequest.cc b/facebody/src/model/DeleteFaceRequest.cc index e6f572eca..929fa2269 100644 --- a/facebody/src/model/DeleteFaceRequest.cc +++ b/facebody/src/model/DeleteFaceRequest.cc @@ -1,51 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::DeleteFaceRequest; - -DeleteFaceRequest::DeleteFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DeleteFace") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteFaceRequest::~DeleteFaceRequest() -{} - -std::string DeleteFaceRequest::getFaceId()const -{ - return faceId_; + */ + +#include + +using AlibabaCloud::Facebody::Model::DeleteFaceRequest; + +DeleteFaceRequest::DeleteFaceRequest() + : RpcServiceRequest("facebody", "2019-12-30", "DeleteFace") { + setMethod(HttpRequest::Method::Post); } -void DeleteFaceRequest::setFaceId(const std::string& faceId) -{ - faceId_ = faceId; - setBodyParameter("FaceId", faceId); +DeleteFaceRequest::~DeleteFaceRequest() {} + +bool DeleteFaceRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string DeleteFaceRequest::getDbName()const -{ - return dbName_; +void DeleteFaceRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void DeleteFaceRequest::setDbName(const std::string& dbName) -{ - dbName_ = dbName; - setBodyParameter("DbName", dbName); +std::string DeleteFaceRequest::getOssFile() const { + return ossFile_; +} + +void DeleteFaceRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string DeleteFaceRequest::getFaceId() const { + return faceId_; +} + +void DeleteFaceRequest::setFaceId(const std::string &faceId) { + faceId_ = faceId; + setBodyParameter(std::string("FaceId"), faceId); +} + +std::string DeleteFaceRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void DeleteFaceRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string DeleteFaceRequest::getDbName() const { + return dbName_; +} + +void DeleteFaceRequest::setDbName(const std::string &dbName) { + dbName_ = dbName; + setBodyParameter(std::string("DbName"), dbName); } diff --git a/facebody/src/model/DetectBodyCountRequest.cc b/facebody/src/model/DetectBodyCountRequest.cc index 7fd63560a..e4befd0f4 100644 --- a/facebody/src/model/DetectBodyCountRequest.cc +++ b/facebody/src/model/DetectBodyCountRequest.cc @@ -1,40 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::DetectBodyCountRequest; - -DetectBodyCountRequest::DetectBodyCountRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DetectBodyCount") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectBodyCountRequest::~DetectBodyCountRequest() -{} - -std::string DetectBodyCountRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Facebody::Model::DetectBodyCountRequest; + +DetectBodyCountRequest::DetectBodyCountRequest() + : RpcServiceRequest("facebody", "2019-12-30", "DetectBodyCount") { + setMethod(HttpRequest::Method::Post); } -void DetectBodyCountRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +DetectBodyCountRequest::~DetectBodyCountRequest() {} + +bool DetectBodyCountRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void DetectBodyCountRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +std::string DetectBodyCountRequest::getOssFile() const { + return ossFile_; +} + +void DetectBodyCountRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string DetectBodyCountRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void DetectBodyCountRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string DetectBodyCountRequest::getImageURL() const { + return imageURL_; +} + +void DetectBodyCountRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/DetectCelebrityRequest.cc b/facebody/src/model/DetectCelebrityRequest.cc index 1025c913d..13ab7481d 100644 --- a/facebody/src/model/DetectCelebrityRequest.cc +++ b/facebody/src/model/DetectCelebrityRequest.cc @@ -1,40 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::DetectCelebrityRequest; - -DetectCelebrityRequest::DetectCelebrityRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DetectCelebrity") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectCelebrityRequest::~DetectCelebrityRequest() -{} - -std::string DetectCelebrityRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Facebody::Model::DetectCelebrityRequest; + +DetectCelebrityRequest::DetectCelebrityRequest() + : RpcServiceRequest("facebody", "2019-12-30", "DetectCelebrity") { + setMethod(HttpRequest::Method::Post); } -void DetectCelebrityRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +DetectCelebrityRequest::~DetectCelebrityRequest() {} + +bool DetectCelebrityRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void DetectCelebrityRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +std::string DetectCelebrityRequest::getOssFile() const { + return ossFile_; +} + +void DetectCelebrityRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string DetectCelebrityRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void DetectCelebrityRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string DetectCelebrityRequest::getImageURL() const { + return imageURL_; +} + +void DetectCelebrityRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/DetectChefCapRequest.cc b/facebody/src/model/DetectChefCapRequest.cc index 973e8a89b..465473f1a 100644 --- a/facebody/src/model/DetectChefCapRequest.cc +++ b/facebody/src/model/DetectChefCapRequest.cc @@ -1,40 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::DetectChefCapRequest; - -DetectChefCapRequest::DetectChefCapRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DetectChefCap") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectChefCapRequest::~DetectChefCapRequest() -{} - -std::string DetectChefCapRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Facebody::Model::DetectChefCapRequest; + +DetectChefCapRequest::DetectChefCapRequest() + : RpcServiceRequest("facebody", "2019-12-30", "DetectChefCap") { + setMethod(HttpRequest::Method::Post); } -void DetectChefCapRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +DetectChefCapRequest::~DetectChefCapRequest() {} + +bool DetectChefCapRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void DetectChefCapRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +std::string DetectChefCapRequest::getOssFile() const { + return ossFile_; +} + +void DetectChefCapRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string DetectChefCapRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void DetectChefCapRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string DetectChefCapRequest::getImageURL() const { + return imageURL_; +} + +void DetectChefCapRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/DetectChefCapResult.cc b/facebody/src/model/DetectChefCapResult.cc index b9196ef4e..91e6cbc31 100644 --- a/facebody/src/model/DetectChefCapResult.cc +++ b/facebody/src/model/DetectChefCapResult.cc @@ -44,10 +44,10 @@ void DetectChefCapResult::parse(const std::string &payload) for (auto dataNodeElementsElementsItem : allElementsNode) { Data::ElementsItem elementsItemObject; - if(!dataNodeElementsElementsItem["Category"].isNull()) - elementsItemObject.category = dataNodeElementsElementsItem["Category"].asString(); if(!dataNodeElementsElementsItem["Confidence"].isNull()) elementsItemObject.confidence = std::stof(dataNodeElementsElementsItem["Confidence"].asString()); + if(!dataNodeElementsElementsItem["Category"].isNull()) + elementsItemObject.category = dataNodeElementsElementsItem["Category"].asString(); auto allBox = value["Box"]["Box"]; for (auto value : allBox) elementsItemObject.box.push_back(value.asString()); diff --git a/facebody/src/model/DetectFaceRequest.cc b/facebody/src/model/DetectFaceRequest.cc index 3759d21d3..3c3fc2ea0 100644 --- a/facebody/src/model/DetectFaceRequest.cc +++ b/facebody/src/model/DetectFaceRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::DetectFaceRequest; - -DetectFaceRequest::DetectFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DetectFace") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectFaceRequest::~DetectFaceRequest() -{} - -long DetectFaceRequest::getMaxFaceNumber()const -{ - return maxFaceNumber_; + */ + +#include + +using AlibabaCloud::Facebody::Model::DetectFaceRequest; + +DetectFaceRequest::DetectFaceRequest() + : RpcServiceRequest("facebody", "2019-12-30", "DetectFace") { + setMethod(HttpRequest::Method::Post); } -void DetectFaceRequest::setMaxFaceNumber(long maxFaceNumber) -{ - maxFaceNumber_ = maxFaceNumber; - setBodyParameter("MaxFaceNumber", std::to_string(maxFaceNumber)); +DetectFaceRequest::~DetectFaceRequest() {} + +long DetectFaceRequest::getMaxFaceNumber() const { + return maxFaceNumber_; } -bool DetectFaceRequest::getFormatResultToJson()const -{ - return formatResultToJson_; +void DetectFaceRequest::setMaxFaceNumber(long maxFaceNumber) { + maxFaceNumber_ = maxFaceNumber; + setBodyParameter(std::string("MaxFaceNumber"), std::to_string(maxFaceNumber)); } -void DetectFaceRequest::setFormatResultToJson(bool formatResultToJson) -{ - formatResultToJson_ = formatResultToJson; - setParameter("FormatResultToJson", formatResultToJson ? "true" : "false"); +bool DetectFaceRequest::getFormatResultToJson() const { + return formatResultToJson_; } -bool DetectFaceRequest::getLandmark()const -{ - return landmark_; +void DetectFaceRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void DetectFaceRequest::setLandmark(bool landmark) -{ - landmark_ = landmark; - setBodyParameter("Landmark", landmark ? "true" : "false"); +bool DetectFaceRequest::getLandmark() const { + return landmark_; } -std::string DetectFaceRequest::getOssFile()const -{ - return ossFile_; +void DetectFaceRequest::setLandmark(bool landmark) { + landmark_ = landmark; + setBodyParameter(std::string("Landmark"), landmark ? "true" : "false"); } -void DetectFaceRequest::setOssFile(const std::string& ossFile) -{ - ossFile_ = ossFile; - setParameter("OssFile", ossFile); +std::string DetectFaceRequest::getOssFile() const { + return ossFile_; } -int DetectFaceRequest::getImageType()const -{ - return imageType_; +void DetectFaceRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void DetectFaceRequest::setImageType(int imageType) -{ - imageType_ = imageType; - setBodyParameter("ImageType", std::to_string(imageType)); +int DetectFaceRequest::getImageType() const { + return imageType_; } -bool DetectFaceRequest::getPose()const -{ - return pose_; +void DetectFaceRequest::setImageType(int imageType) { + imageType_ = imageType; + setBodyParameter(std::string("ImageType"), std::to_string(imageType)); } -void DetectFaceRequest::setPose(bool pose) -{ - pose_ = pose; - setBodyParameter("Pose", pose ? "true" : "false"); +bool DetectFaceRequest::getPose() const { + return pose_; } -std::string DetectFaceRequest::getRequestProxyBy()const -{ - return requestProxyBy_; +void DetectFaceRequest::setPose(bool pose) { + pose_ = pose; + setBodyParameter(std::string("Pose"), pose ? "true" : "false"); } -void DetectFaceRequest::setRequestProxyBy(const std::string& requestProxyBy) -{ - requestProxyBy_ = requestProxyBy; - setParameter("RequestProxyBy", requestProxyBy); +std::string DetectFaceRequest::getRequestProxyBy() const { + return requestProxyBy_; } -bool DetectFaceRequest::getQuality()const -{ - return quality_; +void DetectFaceRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); } -void DetectFaceRequest::setQuality(bool quality) -{ - quality_ = quality; - setBodyParameter("Quality", quality ? "true" : "false"); +bool DetectFaceRequest::getQuality() const { + return quality_; } -std::string DetectFaceRequest::getImageURL()const -{ - return imageURL_; +void DetectFaceRequest::setQuality(bool quality) { + quality_ = quality; + setBodyParameter(std::string("Quality"), quality ? "true" : "false"); } -void DetectFaceRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +std::string DetectFaceRequest::getImageURL() const { + return imageURL_; +} + +void DetectFaceRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/DetectIPCPedestrianRequest.cc b/facebody/src/model/DetectIPCPedestrianRequest.cc index 6a544d88e..36b19ccdd 100644 --- a/facebody/src/model/DetectIPCPedestrianRequest.cc +++ b/facebody/src/model/DetectIPCPedestrianRequest.cc @@ -1,95 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::DetectIPCPedestrianRequest; - -DetectIPCPedestrianRequest::DetectIPCPedestrianRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DetectIPCPedestrian") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectIPCPedestrianRequest::~DetectIPCPedestrianRequest() -{} - -bool DetectIPCPedestrianRequest::getContinueOnError()const -{ - return continueOnError_; + */ + +#include + +using AlibabaCloud::Facebody::Model::DetectIPCPedestrianRequest; + +DetectIPCPedestrianRequest::DetectIPCPedestrianRequest() + : RpcServiceRequest("facebody", "2019-12-30", "DetectIPCPedestrian") { + setMethod(HttpRequest::Method::Post); } -void DetectIPCPedestrianRequest::setContinueOnError(bool continueOnError) -{ - continueOnError_ = continueOnError; - setBodyParameter("ContinueOnError", continueOnError ? "true" : "false"); +DetectIPCPedestrianRequest::~DetectIPCPedestrianRequest() {} + +bool DetectIPCPedestrianRequest::getFormatResultToJson() const { + return formatResultToJson_; } -int DetectIPCPedestrianRequest::getHeight()const -{ - return height_; +void DetectIPCPedestrianRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void DetectIPCPedestrianRequest::setHeight(int height) -{ - height_ = height; - setBodyParameter("Height", std::to_string(height)); +bool DetectIPCPedestrianRequest::getContinueOnError() const { + return continueOnError_; } -std::string DetectIPCPedestrianRequest::getImageData()const -{ - return imageData_; +void DetectIPCPedestrianRequest::setContinueOnError(bool continueOnError) { + continueOnError_ = continueOnError; + setBodyParameter(std::string("ContinueOnError"), continueOnError ? "true" : "false"); } -void DetectIPCPedestrianRequest::setImageData(const std::string& imageData) -{ - imageData_ = imageData; - setBodyParameter("ImageData", imageData); +std::string DetectIPCPedestrianRequest::getOssFile() const { + return ossFile_; } -std::string DetectIPCPedestrianRequest::getDataId()const -{ - return dataId_; +void DetectIPCPedestrianRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void DetectIPCPedestrianRequest::setDataId(const std::string& dataId) -{ - dataId_ = dataId; - setBodyParameter("DataId", dataId); +int DetectIPCPedestrianRequest::getHeight() const { + return height_; } -std::string DetectIPCPedestrianRequest::getImageURL()const -{ - return imageURL_; +void DetectIPCPedestrianRequest::setHeight(int height) { + height_ = height; + setBodyParameter(std::string("Height"), std::to_string(height)); } -void DetectIPCPedestrianRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +std::string DetectIPCPedestrianRequest::getImageData() const { + return imageData_; } -int DetectIPCPedestrianRequest::getWidth()const -{ - return width_; +void DetectIPCPedestrianRequest::setImageData(const std::string &imageData) { + imageData_ = imageData; + setBodyParameter(std::string("ImageData"), imageData); } -void DetectIPCPedestrianRequest::setWidth(int width) -{ - width_ = width; - setBodyParameter("Width", std::to_string(width)); +std::string DetectIPCPedestrianRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void DetectIPCPedestrianRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string DetectIPCPedestrianRequest::getDataId() const { + return dataId_; +} + +void DetectIPCPedestrianRequest::setDataId(const std::string &dataId) { + dataId_ = dataId; + setBodyParameter(std::string("DataId"), dataId); +} + +std::string DetectIPCPedestrianRequest::getImageURL() const { + return imageURL_; +} + +void DetectIPCPedestrianRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); +} + +int DetectIPCPedestrianRequest::getWidth() const { + return width_; +} + +void DetectIPCPedestrianRequest::setWidth(int width) { + width_ = width; + setBodyParameter(std::string("Width"), std::to_string(width)); } diff --git a/facebody/src/model/DetectIPCPedestrianResult.cc b/facebody/src/model/DetectIPCPedestrianResult.cc index 3cc79a26b..d084680cf 100644 --- a/facebody/src/model/DetectIPCPedestrianResult.cc +++ b/facebody/src/model/DetectIPCPedestrianResult.cc @@ -44,12 +44,12 @@ void DetectIPCPedestrianResult::parse(const std::string &payload) for (auto dataNodeImageInfoListImageInfoListItem : allImageInfoListNode) { Data::ImageInfoListItem imageInfoListItemObject; - if(!dataNodeImageInfoListImageInfoListItem["DataId"].isNull()) - imageInfoListItemObject.dataId = dataNodeImageInfoListImageInfoListItem["DataId"].asString(); - if(!dataNodeImageInfoListImageInfoListItem["ErrorCode"].isNull()) - imageInfoListItemObject.errorCode = dataNodeImageInfoListImageInfoListItem["ErrorCode"].asString(); if(!dataNodeImageInfoListImageInfoListItem["ErrorMessage"].isNull()) imageInfoListItemObject.errorMessage = dataNodeImageInfoListImageInfoListItem["ErrorMessage"].asString(); + if(!dataNodeImageInfoListImageInfoListItem["ErrorCode"].isNull()) + imageInfoListItemObject.errorCode = dataNodeImageInfoListImageInfoListItem["ErrorCode"].asString(); + if(!dataNodeImageInfoListImageInfoListItem["DataId"].isNull()) + imageInfoListItemObject.dataId = dataNodeImageInfoListImageInfoListItem["DataId"].asString(); auto allElementsNode = dataNodeImageInfoListImageInfoListItem["Elements"]["Element"]; for (auto dataNodeImageInfoListImageInfoListItemElementsElement : allElementsNode) { diff --git a/facebody/src/model/DetectLivingFaceRequest.cc b/facebody/src/model/DetectLivingFaceRequest.cc index 49df051f5..541b7897c 100644 --- a/facebody/src/model/DetectLivingFaceRequest.cc +++ b/facebody/src/model/DetectLivingFaceRequest.cc @@ -1,78 +1,68 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::DetectLivingFaceRequest; - -DetectLivingFaceRequest::DetectLivingFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DetectLivingFace") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectLivingFaceRequest::~DetectLivingFaceRequest() -{} - -bool DetectLivingFaceRequest::getFormatResultToJson()const -{ - return formatResultToJson_; + */ + +#include + +using AlibabaCloud::Facebody::Model::DetectLivingFaceRequest; + +DetectLivingFaceRequest::DetectLivingFaceRequest() + : RpcServiceRequest("facebody", "2019-12-30", "DetectLivingFace") { + setMethod(HttpRequest::Method::Post); } -void DetectLivingFaceRequest::setFormatResultToJson(bool formatResultToJson) -{ - formatResultToJson_ = formatResultToJson; - setParameter("FormatResultToJson", formatResultToJson ? "true" : "false"); +DetectLivingFaceRequest::~DetectLivingFaceRequest() {} + +bool DetectLivingFaceRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string DetectLivingFaceRequest::getOssFile()const -{ - return ossFile_; +void DetectLivingFaceRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void DetectLivingFaceRequest::setOssFile(const std::string& ossFile) -{ - ossFile_ = ossFile; - setParameter("OssFile", ossFile); +std::string DetectLivingFaceRequest::getOssFile() const { + return ossFile_; } -std::vector DetectLivingFaceRequest::getTasks()const -{ - return tasks_; +void DetectLivingFaceRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void DetectLivingFaceRequest::setTasks(const std::vector& tasks) -{ - tasks_ = tasks; - for(int dep1 = 0; dep1!= tasks.size(); dep1++) { - auto tasksObj = tasks.at(dep1); - std::string tasksObjStr = "Tasks." + std::to_string(dep1 + 1); - setParameter(tasksObjStr + ".ImageURL", tasksObj.imageURL); - setParameter(tasksObjStr + ".ImageData", tasksObj.imageData); - } +std::vector DetectLivingFaceRequest::getTasks() const { + return tasks_; } -std::string DetectLivingFaceRequest::getRequestProxyBy()const -{ - return requestProxyBy_; +void DetectLivingFaceRequest::setTasks(const std::vector &tasks) { + tasks_ = tasks; + for(int dep1 = 0; dep1 != tasks.size(); dep1++) { + auto tasksObj = tasks.at(dep1); + std::string tasksObjStr = std::string("Tasks") + "." + std::to_string(dep1 + 1); + setBodyParameter(tasksObjStr + ".ImageURL", tasksObj.imageURL); + setBodyParameter(tasksObjStr + ".ImageData", tasksObj.imageData); + } } -void DetectLivingFaceRequest::setRequestProxyBy(const std::string& requestProxyBy) -{ - requestProxyBy_ = requestProxyBy; - setParameter("RequestProxyBy", requestProxyBy); +std::string DetectLivingFaceRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void DetectLivingFaceRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); } diff --git a/facebody/src/model/DetectPedestrianIntrusionRequest.cc b/facebody/src/model/DetectPedestrianIntrusionRequest.cc index 4cae56c8e..7d96c30c6 100644 --- a/facebody/src/model/DetectPedestrianIntrusionRequest.cc +++ b/facebody/src/model/DetectPedestrianIntrusionRequest.cc @@ -1,62 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::DetectPedestrianIntrusionRequest; - -DetectPedestrianIntrusionRequest::DetectPedestrianIntrusionRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DetectPedestrianIntrusion") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectPedestrianIntrusionRequest::~DetectPedestrianIntrusionRequest() -{} - -Array DetectPedestrianIntrusionRequest::getDetectRegion()const -{ - return detectRegion_; + */ + +#include + +using AlibabaCloud::Facebody::Model::DetectPedestrianIntrusionRequest; + +DetectPedestrianIntrusionRequest::DetectPedestrianIntrusionRequest() + : RpcServiceRequest("facebody", "2019-12-30", "DetectPedestrianIntrusion") { + setMethod(HttpRequest::Method::Post); } -void DetectPedestrianIntrusionRequest::setDetectRegion(const Array& detectRegion) -{ - detectRegion_ = detectRegion; - setBodyParameter("DetectRegion", std::to_string(detectRegion)); +DetectPedestrianIntrusionRequest::~DetectPedestrianIntrusionRequest() {} + +std::vector DetectPedestrianIntrusionRequest::getDetectRegion() const { + return detectRegion_; } -std::string DetectPedestrianIntrusionRequest::getRegionType()const -{ - return regionType_; +void DetectPedestrianIntrusionRequest::setDetectRegion(const std::vector &detectRegion) { + detectRegion_ = detectRegion; + for(int dep1 = 0; dep1 != detectRegion.size(); dep1++) { + setBodyParameter(std::string("DetectRegion") + "." + std::to_string(dep1 + 1) + ".Rect.Top", std::to_string(detectRegion[dep1].rect.top)); + setBodyParameter(std::string("DetectRegion") + "." + std::to_string(dep1 + 1) + ".Rect.Left", std::to_string(detectRegion[dep1].rect.left)); + setBodyParameter(std::string("DetectRegion") + "." + std::to_string(dep1 + 1) + ".Rect.Bottom", std::to_string(detectRegion[dep1].rect.bottom)); + setBodyParameter(std::string("DetectRegion") + "." + std::to_string(dep1 + 1) + ".Rect.Right", std::to_string(detectRegion[dep1].rect.right)); + setBodyParameter(std::string("DetectRegion") + "." + std::to_string(dep1 + 1) + ".Line.Y1", std::to_string(detectRegion[dep1].line.y1)); + setBodyParameter(std::string("DetectRegion") + "." + std::to_string(dep1 + 1) + ".Line.X1", std::to_string(detectRegion[dep1].line.x1)); + setBodyParameter(std::string("DetectRegion") + "." + std::to_string(dep1 + 1) + ".Line.Y2", std::to_string(detectRegion[dep1].line.y2)); + setBodyParameter(std::string("DetectRegion") + "." + std::to_string(dep1 + 1) + ".Line.X2", std::to_string(detectRegion[dep1].line.x2)); + } } -void DetectPedestrianIntrusionRequest::setRegionType(const std::string& regionType) -{ - regionType_ = regionType; - setBodyParameter("RegionType", regionType); +std::string DetectPedestrianIntrusionRequest::getRegionType() const { + return regionType_; } -std::string DetectPedestrianIntrusionRequest::getImageURL()const -{ - return imageURL_; +void DetectPedestrianIntrusionRequest::setRegionType(const std::string ®ionType) { + regionType_ = regionType; + setBodyParameter(std::string("RegionType"), regionType); } -void DetectPedestrianIntrusionRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +bool DetectPedestrianIntrusionRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void DetectPedestrianIntrusionRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +std::string DetectPedestrianIntrusionRequest::getOssFile() const { + return ossFile_; +} + +void DetectPedestrianIntrusionRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string DetectPedestrianIntrusionRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void DetectPedestrianIntrusionRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string DetectPedestrianIntrusionRequest::getImageURL() const { + return imageURL_; +} + +void DetectPedestrianIntrusionRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/DetectPedestrianRequest.cc b/facebody/src/model/DetectPedestrianRequest.cc index 3f3248a55..730e437f2 100644 --- a/facebody/src/model/DetectPedestrianRequest.cc +++ b/facebody/src/model/DetectPedestrianRequest.cc @@ -1,40 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::DetectPedestrianRequest; - -DetectPedestrianRequest::DetectPedestrianRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DetectPedestrian") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectPedestrianRequest::~DetectPedestrianRequest() -{} - -std::string DetectPedestrianRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Facebody::Model::DetectPedestrianRequest; + +DetectPedestrianRequest::DetectPedestrianRequest() + : RpcServiceRequest("facebody", "2019-12-30", "DetectPedestrian") { + setMethod(HttpRequest::Method::Post); } -void DetectPedestrianRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +DetectPedestrianRequest::~DetectPedestrianRequest() {} + +bool DetectPedestrianRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void DetectPedestrianRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +std::string DetectPedestrianRequest::getOssFile() const { + return ossFile_; +} + +void DetectPedestrianRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string DetectPedestrianRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void DetectPedestrianRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string DetectPedestrianRequest::getImageURL() const { + return imageURL_; +} + +void DetectPedestrianRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/DetectPedestrianResult.cc b/facebody/src/model/DetectPedestrianResult.cc index 710c04e91..ad932cbf7 100644 --- a/facebody/src/model/DetectPedestrianResult.cc +++ b/facebody/src/model/DetectPedestrianResult.cc @@ -40,18 +40,18 @@ void DetectPedestrianResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["Height"].isNull()) - data_.height = std::stoi(dataNode["Height"].asString()); if(!dataNode["Width"].isNull()) data_.width = std::stoi(dataNode["Width"].asString()); + if(!dataNode["Height"].isNull()) + data_.height = std::stoi(dataNode["Height"].asString()); auto allElementsNode = dataNode["Elements"]["Element"]; for (auto dataNodeElementsElement : allElementsNode) { Data::Element elementObject; - if(!dataNodeElementsElement["Score"].isNull()) - elementObject.score = std::stof(dataNodeElementsElement["Score"].asString()); if(!dataNodeElementsElement["Type"].isNull()) elementObject.type = dataNodeElementsElement["Type"].asString(); + if(!dataNodeElementsElement["Score"].isNull()) + elementObject.score = std::stof(dataNodeElementsElement["Score"].asString()); auto allBoxes = value["Boxes"]["Box"]; for (auto value : allBoxes) elementObject.boxes.push_back(value.asString()); diff --git a/facebody/src/model/DetectVideoLivingFaceRequest.cc b/facebody/src/model/DetectVideoLivingFaceRequest.cc index 586f3cbf9..b24ebb4ec 100644 --- a/facebody/src/model/DetectVideoLivingFaceRequest.cc +++ b/facebody/src/model/DetectVideoLivingFaceRequest.cc @@ -1,40 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::DetectVideoLivingFaceRequest; - -DetectVideoLivingFaceRequest::DetectVideoLivingFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "DetectVideoLivingFace") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectVideoLivingFaceRequest::~DetectVideoLivingFaceRequest() -{} - -std::string DetectVideoLivingFaceRequest::getVideoUrl()const -{ - return videoUrl_; + */ + +#include + +using AlibabaCloud::Facebody::Model::DetectVideoLivingFaceRequest; + +DetectVideoLivingFaceRequest::DetectVideoLivingFaceRequest() + : RpcServiceRequest("facebody", "2019-12-30", "DetectVideoLivingFace") { + setMethod(HttpRequest::Method::Post); } -void DetectVideoLivingFaceRequest::setVideoUrl(const std::string& videoUrl) -{ - videoUrl_ = videoUrl; - setBodyParameter("VideoUrl", videoUrl); +DetectVideoLivingFaceRequest::~DetectVideoLivingFaceRequest() {} + +bool DetectVideoLivingFaceRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void DetectVideoLivingFaceRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +std::string DetectVideoLivingFaceRequest::getOssFile() const { + return ossFile_; +} + +void DetectVideoLivingFaceRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string DetectVideoLivingFaceRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void DetectVideoLivingFaceRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string DetectVideoLivingFaceRequest::getVideoUrl() const { + return videoUrl_; +} + +void DetectVideoLivingFaceRequest::setVideoUrl(const std::string &videoUrl) { + videoUrl_ = videoUrl; + setBodyParameter(std::string("VideoUrl"), videoUrl); } diff --git a/facebody/src/model/EnhanceFaceRequest.cc b/facebody/src/model/EnhanceFaceRequest.cc index 524559ffc..73e45d6a4 100644 --- a/facebody/src/model/EnhanceFaceRequest.cc +++ b/facebody/src/model/EnhanceFaceRequest.cc @@ -1,40 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::EnhanceFaceRequest; - -EnhanceFaceRequest::EnhanceFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "EnhanceFace") -{ - setMethod(HttpRequest::Method::Post); -} - -EnhanceFaceRequest::~EnhanceFaceRequest() -{} - -std::string EnhanceFaceRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Facebody::Model::EnhanceFaceRequest; + +EnhanceFaceRequest::EnhanceFaceRequest() + : RpcServiceRequest("facebody", "2019-12-30", "EnhanceFace") { + setMethod(HttpRequest::Method::Post); } -void EnhanceFaceRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +EnhanceFaceRequest::~EnhanceFaceRequest() {} + +bool EnhanceFaceRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void EnhanceFaceRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +std::string EnhanceFaceRequest::getOssFile() const { + return ossFile_; +} + +void EnhanceFaceRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string EnhanceFaceRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void EnhanceFaceRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string EnhanceFaceRequest::getImageURL() const { + return imageURL_; +} + +void EnhanceFaceRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/ExtractFingerPrintRequest.cc b/facebody/src/model/ExtractFingerPrintRequest.cc index c33ef3523..248e16c2f 100644 --- a/facebody/src/model/ExtractFingerPrintRequest.cc +++ b/facebody/src/model/ExtractFingerPrintRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::ExtractFingerPrintRequest; - -ExtractFingerPrintRequest::ExtractFingerPrintRequest() : - RpcServiceRequest("facebody", "2019-12-30", "ExtractFingerPrint") -{ - setMethod(HttpRequest::Method::Post); -} - -ExtractFingerPrintRequest::~ExtractFingerPrintRequest() -{} - -bool ExtractFingerPrintRequest::getFormatResultToJson()const -{ - return formatResultToJson_; + */ + +#include + +using AlibabaCloud::Facebody::Model::ExtractFingerPrintRequest; + +ExtractFingerPrintRequest::ExtractFingerPrintRequest() + : RpcServiceRequest("facebody", "2019-12-30", "ExtractFingerPrint") { + setMethod(HttpRequest::Method::Post); } -void ExtractFingerPrintRequest::setFormatResultToJson(bool formatResultToJson) -{ - formatResultToJson_ = formatResultToJson; - setParameter("FormatResultToJson", formatResultToJson ? "true" : "false"); +ExtractFingerPrintRequest::~ExtractFingerPrintRequest() {} + +bool ExtractFingerPrintRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string ExtractFingerPrintRequest::getOssFile()const -{ - return ossFile_; +void ExtractFingerPrintRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void ExtractFingerPrintRequest::setOssFile(const std::string& ossFile) -{ - ossFile_ = ossFile; - setParameter("OssFile", ossFile); +std::string ExtractFingerPrintRequest::getOssFile() const { + return ossFile_; } -std::string ExtractFingerPrintRequest::getImageData()const -{ - return imageData_; +void ExtractFingerPrintRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void ExtractFingerPrintRequest::setImageData(const std::string& imageData) -{ - imageData_ = imageData; - setBodyParameter("ImageData", imageData); +std::string ExtractFingerPrintRequest::getImageData() const { + return imageData_; } -std::string ExtractFingerPrintRequest::getRequestProxyBy()const -{ - return requestProxyBy_; +void ExtractFingerPrintRequest::setImageData(const std::string &imageData) { + imageData_ = imageData; + setBodyParameter(std::string("ImageData"), imageData); } -void ExtractFingerPrintRequest::setRequestProxyBy(const std::string& requestProxyBy) -{ - requestProxyBy_ = requestProxyBy; - setParameter("RequestProxyBy", requestProxyBy); +std::string ExtractFingerPrintRequest::getRequestProxyBy() const { + return requestProxyBy_; } -std::string ExtractFingerPrintRequest::getImageURL()const -{ - return imageURL_; +void ExtractFingerPrintRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); } -void ExtractFingerPrintRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +std::string ExtractFingerPrintRequest::getImageURL() const { + return imageURL_; +} + +void ExtractFingerPrintRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/ExtractPedestrianFeatureAttrRequest.cc b/facebody/src/model/ExtractPedestrianFeatureAttrRequest.cc index 6e25c9767..feca907f8 100644 --- a/facebody/src/model/ExtractPedestrianFeatureAttrRequest.cc +++ b/facebody/src/model/ExtractPedestrianFeatureAttrRequest.cc @@ -1,62 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::ExtractPedestrianFeatureAttrRequest; - -ExtractPedestrianFeatureAttrRequest::ExtractPedestrianFeatureAttrRequest() : - RpcServiceRequest("facebody", "2019-12-30", "ExtractPedestrianFeatureAttr") -{ - setMethod(HttpRequest::Method::Post); -} - -ExtractPedestrianFeatureAttrRequest::~ExtractPedestrianFeatureAttrRequest() -{} - -std::string ExtractPedestrianFeatureAttrRequest::getMode()const -{ - return mode_; + */ + +#include + +using AlibabaCloud::Facebody::Model::ExtractPedestrianFeatureAttrRequest; + +ExtractPedestrianFeatureAttrRequest::ExtractPedestrianFeatureAttrRequest() + : RpcServiceRequest("facebody", "2019-12-30", "ExtractPedestrianFeatureAttr") { + setMethod(HttpRequest::Method::Post); } -void ExtractPedestrianFeatureAttrRequest::setMode(const std::string& mode) -{ - mode_ = mode; - setBodyParameter("Mode", mode); +ExtractPedestrianFeatureAttrRequest::~ExtractPedestrianFeatureAttrRequest() {} + +bool ExtractPedestrianFeatureAttrRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string ExtractPedestrianFeatureAttrRequest::getImageURL()const -{ - return imageURL_; +void ExtractPedestrianFeatureAttrRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void ExtractPedestrianFeatureAttrRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +std::string ExtractPedestrianFeatureAttrRequest::getMode() const { + return mode_; } -std::string ExtractPedestrianFeatureAttrRequest::getServiceVersion()const -{ - return serviceVersion_; +void ExtractPedestrianFeatureAttrRequest::setMode(const std::string &mode) { + mode_ = mode; + setBodyParameter(std::string("Mode"), mode); } -void ExtractPedestrianFeatureAttrRequest::setServiceVersion(const std::string& serviceVersion) -{ - serviceVersion_ = serviceVersion; - setBodyParameter("ServiceVersion", serviceVersion); +std::string ExtractPedestrianFeatureAttrRequest::getOssFile() const { + return ossFile_; +} + +void ExtractPedestrianFeatureAttrRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string ExtractPedestrianFeatureAttrRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void ExtractPedestrianFeatureAttrRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string ExtractPedestrianFeatureAttrRequest::getImageURL() const { + return imageURL_; +} + +void ExtractPedestrianFeatureAttrRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); +} + +std::string ExtractPedestrianFeatureAttrRequest::getServiceVersion() const { + return serviceVersion_; +} + +void ExtractPedestrianFeatureAttrRequest::setServiceVersion(const std::string &serviceVersion) { + serviceVersion_ = serviceVersion; + setBodyParameter(std::string("ServiceVersion"), serviceVersion); } diff --git a/facebody/src/model/ExtractPedestrianFeatureAttrResult.cc b/facebody/src/model/ExtractPedestrianFeatureAttrResult.cc index 98f3f3002..9f4fce4a9 100644 --- a/facebody/src/model/ExtractPedestrianFeatureAttrResult.cc +++ b/facebody/src/model/ExtractPedestrianFeatureAttrResult.cc @@ -40,50 +40,50 @@ void ExtractPedestrianFeatureAttrResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["Hair"].isNull()) - data_.hair = dataNode["Hair"].asString(); - if(!dataNode["UpperType"].isNull()) - data_.upperType = dataNode["UpperType"].asString(); - if(!dataNode["UpperTypeScore"].isNull()) - data_.upperTypeScore = std::stof(dataNode["UpperTypeScore"].asString()); - if(!dataNode["LowerColor"].isNull()) - data_.lowerColor = dataNode["LowerColor"].asString(); if(!dataNode["QualityScore"].isNull()) data_.qualityScore = std::stof(dataNode["QualityScore"].asString()); - if(!dataNode["Gender"].isNull()) - data_.gender = dataNode["Gender"].asString(); - if(!dataNode["Orientation"].isNull()) - data_.orientation = dataNode["Orientation"].asString(); - if(!dataNode["Feature"].isNull()) - data_.feature = dataNode["Feature"].asString(); - if(!dataNode["OrientationScore"].isNull()) - data_.orientationScore = std::stof(dataNode["OrientationScore"].asString()); - if(!dataNode["UpperColorScore"].isNull()) - data_.upperColorScore = std::stof(dataNode["UpperColorScore"].asString()); - if(!dataNode["GenderScore"].isNull()) - data_.genderScore = std::stof(dataNode["GenderScore"].asString()); - if(!dataNode["LowerColorScore"].isNull()) - data_.lowerColorScore = std::stof(dataNode["LowerColorScore"].asString()); if(!dataNode["ObjType"].isNull()) data_.objType = dataNode["ObjType"].asString(); - if(!dataNode["LowerTypeScore"].isNull()) - data_.lowerTypeScore = std::stof(dataNode["LowerTypeScore"].asString()); - if(!dataNode["HairScore"].isNull()) - data_.hairScore = std::stof(dataNode["HairScore"].asString()); - if(!dataNode["UpperColor"].isNull()) - data_.upperColor = dataNode["UpperColor"].asString(); - if(!dataNode["LowerType"].isNull()) - data_.lowerType = dataNode["LowerType"].asString(); - if(!dataNode["AgeScore"].isNull()) - data_.ageScore = std::stof(dataNode["AgeScore"].asString()); + if(!dataNode["Feature"].isNull()) + data_.feature = dataNode["Feature"].asString(); + if(!dataNode["Gender"].isNull()) + data_.gender = dataNode["Gender"].asString(); + if(!dataNode["LowerColorScore"].isNull()) + data_.lowerColorScore = std::stof(dataNode["LowerColorScore"].asString()); if(!dataNode["ObjTypeScore"].isNull()) data_.objTypeScore = std::stof(dataNode["ObjTypeScore"].asString()); if(!dataNode["Age"].isNull()) data_.age = dataNode["Age"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!dataNode["AgeScore"].isNull()) + data_.ageScore = std::stof(dataNode["AgeScore"].asString()); + if(!dataNode["UpperTypeScore"].isNull()) + data_.upperTypeScore = std::stof(dataNode["UpperTypeScore"].asString()); + if(!dataNode["LowerTypeScore"].isNull()) + data_.lowerTypeScore = std::stof(dataNode["LowerTypeScore"].asString()); + if(!dataNode["LowerColor"].isNull()) + data_.lowerColor = dataNode["LowerColor"].asString(); + if(!dataNode["Hair"].isNull()) + data_.hair = dataNode["Hair"].asString(); + if(!dataNode["UpperColor"].isNull()) + data_.upperColor = dataNode["UpperColor"].asString(); + if(!dataNode["GenderScore"].isNull()) + data_.genderScore = std::stof(dataNode["GenderScore"].asString()); + if(!dataNode["UpperType"].isNull()) + data_.upperType = dataNode["UpperType"].asString(); + if(!dataNode["HairScore"].isNull()) + data_.hairScore = std::stof(dataNode["HairScore"].asString()); + if(!dataNode["LowerType"].isNull()) + data_.lowerType = dataNode["LowerType"].asString(); + if(!dataNode["UpperColorScore"].isNull()) + data_.upperColorScore = std::stof(dataNode["UpperColorScore"].asString()); + if(!dataNode["Orientation"].isNull()) + data_.orientation = dataNode["Orientation"].asString(); + if(!dataNode["OrientationScore"].isNull()) + data_.orientationScore = std::stof(dataNode["OrientationScore"].asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } diff --git a/facebody/src/model/ExtractPedestrianFeatureAttributeRequest.cc b/facebody/src/model/ExtractPedestrianFeatureAttributeRequest.cc index d0dd6c2b7..d59bbeeb8 100644 --- a/facebody/src/model/ExtractPedestrianFeatureAttributeRequest.cc +++ b/facebody/src/model/ExtractPedestrianFeatureAttributeRequest.cc @@ -1,66 +1,85 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::ExtractPedestrianFeatureAttributeRequest; - -ExtractPedestrianFeatureAttributeRequest::ExtractPedestrianFeatureAttributeRequest() : - RpcServiceRequest("facebody", "2019-12-30", "ExtractPedestrianFeatureAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -ExtractPedestrianFeatureAttributeRequest::~ExtractPedestrianFeatureAttributeRequest() -{} - -std::vector ExtractPedestrianFeatureAttributeRequest::getUrlList()const -{ - return urlList_; + */ + +#include + +using AlibabaCloud::Facebody::Model::ExtractPedestrianFeatureAttributeRequest; + +ExtractPedestrianFeatureAttributeRequest::ExtractPedestrianFeatureAttributeRequest() + : RpcServiceRequest("facebody", "2019-12-30", "ExtractPedestrianFeatureAttribute") { + setMethod(HttpRequest::Method::Post); } -void ExtractPedestrianFeatureAttributeRequest::setUrlList(const std::vector& urlList) -{ - urlList_ = urlList; - for(int dep1 = 0; dep1!= urlList.size(); dep1++) { - auto urlListObj = urlList.at(dep1); - std::string urlListObjStr = "UrlList." + std::to_string(dep1 + 1); - setParameter(urlListObjStr + ".Url", urlListObj.url); - } +ExtractPedestrianFeatureAttributeRequest::~ExtractPedestrianFeatureAttributeRequest() {} + +bool ExtractPedestrianFeatureAttributeRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string ExtractPedestrianFeatureAttributeRequest::getMode()const -{ - return mode_; +void ExtractPedestrianFeatureAttributeRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void ExtractPedestrianFeatureAttributeRequest::setMode(const std::string& mode) -{ - mode_ = mode; - setBodyParameter("Mode", mode); +std::string ExtractPedestrianFeatureAttributeRequest::getMode() const { + return mode_; } -std::string ExtractPedestrianFeatureAttributeRequest::getImageURL()const -{ - return imageURL_; +void ExtractPedestrianFeatureAttributeRequest::setMode(const std::string &mode) { + mode_ = mode; + setBodyParameter(std::string("Mode"), mode); } -void ExtractPedestrianFeatureAttributeRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +std::string ExtractPedestrianFeatureAttributeRequest::getOssFile() const { + return ossFile_; +} + +void ExtractPedestrianFeatureAttributeRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::vector ExtractPedestrianFeatureAttributeRequest::getUrlList() const { + return urlList_; +} + +void ExtractPedestrianFeatureAttributeRequest::setUrlList(const std::vector &urlList) { + urlList_ = urlList; + for(int dep1 = 0; dep1 != urlList.size(); dep1++) { + auto urlListObj = urlList.at(dep1); + std::string urlListObjStr = std::string("UrlList") + "." + std::to_string(dep1 + 1); + setBodyParameter(urlListObjStr + ".Url", urlListObj.url); + } +} + +std::string ExtractPedestrianFeatureAttributeRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void ExtractPedestrianFeatureAttributeRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string ExtractPedestrianFeatureAttributeRequest::getImageURL() const { + return imageURL_; +} + +void ExtractPedestrianFeatureAttributeRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/ExtractPedestrianFeatureAttributeResult.cc b/facebody/src/model/ExtractPedestrianFeatureAttributeResult.cc index 83697b0ea..dd2ee01dc 100644 --- a/facebody/src/model/ExtractPedestrianFeatureAttributeResult.cc +++ b/facebody/src/model/ExtractPedestrianFeatureAttributeResult.cc @@ -40,82 +40,82 @@ void ExtractPedestrianFeatureAttributeResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["ObjType"].isNull()) - data_.objType = dataNode["ObjType"].asString(); - if(!dataNode["ObjTypeScore"].isNull()) - data_.objTypeScore = std::stof(dataNode["ObjTypeScore"].asString()); - if(!dataNode["Feature"].isNull()) - data_.feature = dataNode["Feature"].asString(); if(!dataNode["QualityScore"].isNull()) data_.qualityScore = std::stof(dataNode["QualityScore"].asString()); - if(!dataNode["UpperColor"].isNull()) - data_.upperColor = dataNode["UpperColor"].asString(); - if(!dataNode["UpperColorScore"].isNull()) - data_.upperColorScore = std::stof(dataNode["UpperColorScore"].asString()); - if(!dataNode["UpperType"].isNull()) - data_.upperType = dataNode["UpperType"].asString(); - if(!dataNode["UpperTypeScore"].isNull()) - data_.upperTypeScore = std::stof(dataNode["UpperTypeScore"].asString()); - if(!dataNode["LowerColor"].isNull()) - data_.lowerColor = dataNode["LowerColor"].asString(); - if(!dataNode["LowerColorScore"].isNull()) - data_.lowerColorScore = std::stof(dataNode["LowerColorScore"].asString()); - if(!dataNode["LowerType"].isNull()) - data_.lowerType = dataNode["LowerType"].asString(); - if(!dataNode["LowerTypeScore"].isNull()) - data_.lowerTypeScore = std::stof(dataNode["LowerTypeScore"].asString()); + if(!dataNode["ObjType"].isNull()) + data_.objType = dataNode["ObjType"].asString(); + if(!dataNode["Feature"].isNull()) + data_.feature = dataNode["Feature"].asString(); if(!dataNode["Gender"].isNull()) data_.gender = dataNode["Gender"].asString(); - if(!dataNode["GenderScore"].isNull()) - data_.genderScore = std::stof(dataNode["GenderScore"].asString()); - if(!dataNode["Hair"].isNull()) - data_.hair = dataNode["Hair"].asString(); - if(!dataNode["HairScore"].isNull()) - data_.hairScore = std::stof(dataNode["HairScore"].asString()); + if(!dataNode["LowerColorScore"].isNull()) + data_.lowerColorScore = std::stof(dataNode["LowerColorScore"].asString()); + if(!dataNode["ObjTypeScore"].isNull()) + data_.objTypeScore = std::stof(dataNode["ObjTypeScore"].asString()); if(!dataNode["Age"].isNull()) data_.age = dataNode["Age"].asString(); if(!dataNode["AgeScore"].isNull()) data_.ageScore = std::stof(dataNode["AgeScore"].asString()); + if(!dataNode["UpperTypeScore"].isNull()) + data_.upperTypeScore = std::stof(dataNode["UpperTypeScore"].asString()); + if(!dataNode["LowerTypeScore"].isNull()) + data_.lowerTypeScore = std::stof(dataNode["LowerTypeScore"].asString()); + if(!dataNode["LowerColor"].isNull()) + data_.lowerColor = dataNode["LowerColor"].asString(); + if(!dataNode["Hair"].isNull()) + data_.hair = dataNode["Hair"].asString(); + if(!dataNode["UpperColor"].isNull()) + data_.upperColor = dataNode["UpperColor"].asString(); + if(!dataNode["GenderScore"].isNull()) + data_.genderScore = std::stof(dataNode["GenderScore"].asString()); + if(!dataNode["UpperType"].isNull()) + data_.upperType = dataNode["UpperType"].asString(); + if(!dataNode["HairScore"].isNull()) + data_.hairScore = std::stof(dataNode["HairScore"].asString()); + if(!dataNode["LowerType"].isNull()) + data_.lowerType = dataNode["LowerType"].asString(); + if(!dataNode["UpperColorScore"].isNull()) + data_.upperColorScore = std::stof(dataNode["UpperColorScore"].asString()); auto allElementsNode = dataNode["Elements"]["Element"]; for (auto dataNodeElementsElement : allElementsNode) { Data::Element elementObject; - if(!dataNodeElementsElement["ObjType"].isNull()) - elementObject.objType = dataNodeElementsElement["ObjType"].asString(); - if(!dataNodeElementsElement["ObjTypeScore"].isNull()) - elementObject.objTypeScore = std::stof(dataNodeElementsElement["ObjTypeScore"].asString()); - if(!dataNodeElementsElement["Feature"].isNull()) - elementObject.feature = dataNodeElementsElement["Feature"].asString(); if(!dataNodeElementsElement["QualityScore"].isNull()) elementObject.qualityScore = std::stof(dataNodeElementsElement["QualityScore"].asString()); - if(!dataNodeElementsElement["UpperColor"].isNull()) - elementObject.upperColor = dataNodeElementsElement["UpperColor"].asString(); - if(!dataNodeElementsElement["UpperColorScore"].isNull()) - elementObject.upperColorScore = std::stof(dataNodeElementsElement["UpperColorScore"].asString()); - if(!dataNodeElementsElement["UpperType"].isNull()) - elementObject.upperType = dataNodeElementsElement["UpperType"].asString(); - if(!dataNodeElementsElement["UpperTypeScore"].isNull()) - elementObject.upperTypeScore = std::stof(dataNodeElementsElement["UpperTypeScore"].asString()); - if(!dataNodeElementsElement["LowerColor"].isNull()) - elementObject.lowerColor = dataNodeElementsElement["LowerColor"].asString(); - if(!dataNodeElementsElement["LowerColorScore"].isNull()) - elementObject.lowerColorScore = std::stof(dataNodeElementsElement["LowerColorScore"].asString()); - if(!dataNodeElementsElement["LowerType"].isNull()) - elementObject.lowerType = dataNodeElementsElement["LowerType"].asString(); - if(!dataNodeElementsElement["LowerTypeScore"].isNull()) - elementObject.lowerTypeScore = std::stof(dataNodeElementsElement["LowerTypeScore"].asString()); + if(!dataNodeElementsElement["ObjType"].isNull()) + elementObject.objType = dataNodeElementsElement["ObjType"].asString(); + if(!dataNodeElementsElement["Feature"].isNull()) + elementObject.feature = dataNodeElementsElement["Feature"].asString(); if(!dataNodeElementsElement["Gender"].isNull()) elementObject.gender = dataNodeElementsElement["Gender"].asString(); - if(!dataNodeElementsElement["GenderScore"].isNull()) - elementObject.genderScore = std::stof(dataNodeElementsElement["GenderScore"].asString()); - if(!dataNodeElementsElement["Hair"].isNull()) - elementObject.hair = dataNodeElementsElement["Hair"].asString(); - if(!dataNodeElementsElement["HairScore"].isNull()) - elementObject.hairScore = std::stof(dataNodeElementsElement["HairScore"].asString()); + if(!dataNodeElementsElement["LowerColorScore"].isNull()) + elementObject.lowerColorScore = std::stof(dataNodeElementsElement["LowerColorScore"].asString()); + if(!dataNodeElementsElement["ObjTypeScore"].isNull()) + elementObject.objTypeScore = std::stof(dataNodeElementsElement["ObjTypeScore"].asString()); if(!dataNodeElementsElement["Age"].isNull()) elementObject.age = dataNodeElementsElement["Age"].asString(); if(!dataNodeElementsElement["AgeScore"].isNull()) elementObject.ageScore = std::stof(dataNodeElementsElement["AgeScore"].asString()); + if(!dataNodeElementsElement["UpperTypeScore"].isNull()) + elementObject.upperTypeScore = std::stof(dataNodeElementsElement["UpperTypeScore"].asString()); + if(!dataNodeElementsElement["LowerTypeScore"].isNull()) + elementObject.lowerTypeScore = std::stof(dataNodeElementsElement["LowerTypeScore"].asString()); + if(!dataNodeElementsElement["LowerColor"].isNull()) + elementObject.lowerColor = dataNodeElementsElement["LowerColor"].asString(); + if(!dataNodeElementsElement["Hair"].isNull()) + elementObject.hair = dataNodeElementsElement["Hair"].asString(); + if(!dataNodeElementsElement["UpperColor"].isNull()) + elementObject.upperColor = dataNodeElementsElement["UpperColor"].asString(); + if(!dataNodeElementsElement["GenderScore"].isNull()) + elementObject.genderScore = std::stof(dataNodeElementsElement["GenderScore"].asString()); + if(!dataNodeElementsElement["UpperType"].isNull()) + elementObject.upperType = dataNodeElementsElement["UpperType"].asString(); + if(!dataNodeElementsElement["HairScore"].isNull()) + elementObject.hairScore = std::stof(dataNodeElementsElement["HairScore"].asString()); + if(!dataNodeElementsElement["LowerType"].isNull()) + elementObject.lowerType = dataNodeElementsElement["LowerType"].asString(); + if(!dataNodeElementsElement["UpperColorScore"].isNull()) + elementObject.upperColorScore = std::stof(dataNodeElementsElement["UpperColorScore"].asString()); data_.elements.push_back(elementObject); } diff --git a/facebody/src/model/FaceBeautyRequest.cc b/facebody/src/model/FaceBeautyRequest.cc index 47e750324..9b48c4547 100644 --- a/facebody/src/model/FaceBeautyRequest.cc +++ b/facebody/src/model/FaceBeautyRequest.cc @@ -1,73 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::FaceBeautyRequest; - -FaceBeautyRequest::FaceBeautyRequest() : - RpcServiceRequest("facebody", "2019-12-30", "FaceBeauty") -{ - setMethod(HttpRequest::Method::Post); -} - -FaceBeautyRequest::~FaceBeautyRequest() -{} - -float FaceBeautyRequest::getWhite()const -{ - return white_; + */ + +#include + +using AlibabaCloud::Facebody::Model::FaceBeautyRequest; + +FaceBeautyRequest::FaceBeautyRequest() + : RpcServiceRequest("facebody", "2019-12-30", "FaceBeauty") { + setMethod(HttpRequest::Method::Post); } -void FaceBeautyRequest::setWhite(float white) -{ - white_ = white; - setBodyParameter("White", std::to_string(white)); +FaceBeautyRequest::~FaceBeautyRequest() {} + +bool FaceBeautyRequest::getFormatResultToJson() const { + return formatResultToJson_; } -float FaceBeautyRequest::getSmooth()const -{ - return smooth_; +void FaceBeautyRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void FaceBeautyRequest::setSmooth(float smooth) -{ - smooth_ = smooth; - setBodyParameter("Smooth", std::to_string(smooth)); +float FaceBeautyRequest::getWhite() const { + return white_; } -float FaceBeautyRequest::getSharp()const -{ - return sharp_; +void FaceBeautyRequest::setWhite(float white) { + white_ = white; + setBodyParameter(std::string("White"), std::to_string(white)); } -void FaceBeautyRequest::setSharp(float sharp) -{ - sharp_ = sharp; - setBodyParameter("Sharp", std::to_string(sharp)); +std::string FaceBeautyRequest::getOssFile() const { + return ossFile_; } -std::string FaceBeautyRequest::getImageURL()const -{ - return imageURL_; +void FaceBeautyRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void FaceBeautyRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +float FaceBeautyRequest::getSmooth() const { + return smooth_; +} + +void FaceBeautyRequest::setSmooth(float smooth) { + smooth_ = smooth; + setBodyParameter(std::string("Smooth"), std::to_string(smooth)); +} + +std::string FaceBeautyRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void FaceBeautyRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +float FaceBeautyRequest::getSharp() const { + return sharp_; +} + +void FaceBeautyRequest::setSharp(float sharp) { + sharp_ = sharp; + setBodyParameter(std::string("Sharp"), std::to_string(sharp)); +} + +std::string FaceBeautyRequest::getImageURL() const { + return imageURL_; +} + +void FaceBeautyRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/FaceFilterRequest.cc b/facebody/src/model/FaceFilterRequest.cc index f0608936c..9c9eaea39 100644 --- a/facebody/src/model/FaceFilterRequest.cc +++ b/facebody/src/model/FaceFilterRequest.cc @@ -1,62 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::FaceFilterRequest; - -FaceFilterRequest::FaceFilterRequest() : - RpcServiceRequest("facebody", "2019-12-30", "FaceFilter") -{ - setMethod(HttpRequest::Method::Post); -} - -FaceFilterRequest::~FaceFilterRequest() -{} - -float FaceFilterRequest::getStrength()const -{ - return strength_; + */ + +#include + +using AlibabaCloud::Facebody::Model::FaceFilterRequest; + +FaceFilterRequest::FaceFilterRequest() + : RpcServiceRequest("facebody", "2019-12-30", "FaceFilter") { + setMethod(HttpRequest::Method::Post); } -void FaceFilterRequest::setStrength(float strength) -{ - strength_ = strength; - setBodyParameter("Strength", std::to_string(strength)); +FaceFilterRequest::~FaceFilterRequest() {} + +float FaceFilterRequest::getStrength() const { + return strength_; } -std::string FaceFilterRequest::getResourceType()const -{ - return resourceType_; +void FaceFilterRequest::setStrength(float strength) { + strength_ = strength; + setBodyParameter(std::string("Strength"), std::to_string(strength)); } -void FaceFilterRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setBodyParameter("ResourceType", resourceType); +bool FaceFilterRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string FaceFilterRequest::getImageURL()const -{ - return imageURL_; +void FaceFilterRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void FaceFilterRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +std::string FaceFilterRequest::getOssFile() const { + return ossFile_; +} + +void FaceFilterRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string FaceFilterRequest::getResourceType() const { + return resourceType_; +} + +void FaceFilterRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setBodyParameter(std::string("ResourceType"), resourceType); +} + +std::string FaceFilterRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void FaceFilterRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string FaceFilterRequest::getImageURL() const { + return imageURL_; +} + +void FaceFilterRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/FaceMakeupRequest.cc b/facebody/src/model/FaceMakeupRequest.cc index 42ec7fe2d..90d54c051 100644 --- a/facebody/src/model/FaceMakeupRequest.cc +++ b/facebody/src/model/FaceMakeupRequest.cc @@ -1,73 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::FaceMakeupRequest; - -FaceMakeupRequest::FaceMakeupRequest() : - RpcServiceRequest("facebody", "2019-12-30", "FaceMakeup") -{ - setMethod(HttpRequest::Method::Post); -} - -FaceMakeupRequest::~FaceMakeupRequest() -{} - -float FaceMakeupRequest::getStrength()const -{ - return strength_; + */ + +#include + +using AlibabaCloud::Facebody::Model::FaceMakeupRequest; + +FaceMakeupRequest::FaceMakeupRequest() + : RpcServiceRequest("facebody", "2019-12-30", "FaceMakeup") { + setMethod(HttpRequest::Method::Post); } -void FaceMakeupRequest::setStrength(float strength) -{ - strength_ = strength; - setBodyParameter("Strength", std::to_string(strength)); +FaceMakeupRequest::~FaceMakeupRequest() {} + +float FaceMakeupRequest::getStrength() const { + return strength_; } -std::string FaceMakeupRequest::getMakeupType()const -{ - return makeupType_; +void FaceMakeupRequest::setStrength(float strength) { + strength_ = strength; + setBodyParameter(std::string("Strength"), std::to_string(strength)); } -void FaceMakeupRequest::setMakeupType(const std::string& makeupType) -{ - makeupType_ = makeupType; - setBodyParameter("MakeupType", makeupType); +bool FaceMakeupRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string FaceMakeupRequest::getResourceType()const -{ - return resourceType_; +void FaceMakeupRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void FaceMakeupRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setBodyParameter("ResourceType", resourceType); +std::string FaceMakeupRequest::getOssFile() const { + return ossFile_; } -std::string FaceMakeupRequest::getImageURL()const -{ - return imageURL_; +void FaceMakeupRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void FaceMakeupRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +std::string FaceMakeupRequest::getMakeupType() const { + return makeupType_; +} + +void FaceMakeupRequest::setMakeupType(const std::string &makeupType) { + makeupType_ = makeupType; + setBodyParameter(std::string("MakeupType"), makeupType); +} + +std::string FaceMakeupRequest::getResourceType() const { + return resourceType_; +} + +void FaceMakeupRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setBodyParameter(std::string("ResourceType"), resourceType); +} + +std::string FaceMakeupRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void FaceMakeupRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string FaceMakeupRequest::getImageURL() const { + return imageURL_; +} + +void FaceMakeupRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/FaceTidyupRequest.cc b/facebody/src/model/FaceTidyupRequest.cc index d31425485..6b9a6b737 100644 --- a/facebody/src/model/FaceTidyupRequest.cc +++ b/facebody/src/model/FaceTidyupRequest.cc @@ -1,62 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::FaceTidyupRequest; - -FaceTidyupRequest::FaceTidyupRequest() : - RpcServiceRequest("facebody", "2019-12-30", "FaceTidyup") -{ - setMethod(HttpRequest::Method::Post); -} - -FaceTidyupRequest::~FaceTidyupRequest() -{} - -int FaceTidyupRequest::getShapeType()const -{ - return shapeType_; + */ + +#include + +using AlibabaCloud::Facebody::Model::FaceTidyupRequest; + +FaceTidyupRequest::FaceTidyupRequest() + : RpcServiceRequest("facebody", "2019-12-30", "FaceTidyup") { + setMethod(HttpRequest::Method::Post); } -void FaceTidyupRequest::setShapeType(int shapeType) -{ - shapeType_ = shapeType; - setBodyParameter("ShapeType", std::to_string(shapeType)); +FaceTidyupRequest::~FaceTidyupRequest() {} + +int FaceTidyupRequest::getShapeType() const { + return shapeType_; } -float FaceTidyupRequest::getStrength()const -{ - return strength_; +void FaceTidyupRequest::setShapeType(int shapeType) { + shapeType_ = shapeType; + setBodyParameter(std::string("ShapeType"), std::to_string(shapeType)); } -void FaceTidyupRequest::setStrength(float strength) -{ - strength_ = strength; - setBodyParameter("Strength", std::to_string(strength)); +float FaceTidyupRequest::getStrength() const { + return strength_; } -std::string FaceTidyupRequest::getImageURL()const -{ - return imageURL_; +void FaceTidyupRequest::setStrength(float strength) { + strength_ = strength; + setBodyParameter(std::string("Strength"), std::to_string(strength)); } -void FaceTidyupRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +bool FaceTidyupRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void FaceTidyupRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +std::string FaceTidyupRequest::getOssFile() const { + return ossFile_; +} + +void FaceTidyupRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string FaceTidyupRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void FaceTidyupRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string FaceTidyupRequest::getImageURL() const { + return imageURL_; +} + +void FaceTidyupRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/GenRealPersonVerificationTokenRequest.cc b/facebody/src/model/GenRealPersonVerificationTokenRequest.cc index 35db11cb7..9694df7f8 100644 --- a/facebody/src/model/GenRealPersonVerificationTokenRequest.cc +++ b/facebody/src/model/GenRealPersonVerificationTokenRequest.cc @@ -1,62 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::GenRealPersonVerificationTokenRequest; - -GenRealPersonVerificationTokenRequest::GenRealPersonVerificationTokenRequest() : - RpcServiceRequest("facebody", "2019-12-30", "GenRealPersonVerificationToken") -{ - setMethod(HttpRequest::Method::Post); -} - -GenRealPersonVerificationTokenRequest::~GenRealPersonVerificationTokenRequest() -{} - -std::string GenRealPersonVerificationTokenRequest::getMetaInfo()const -{ - return metaInfo_; + */ + +#include + +using AlibabaCloud::Facebody::Model::GenRealPersonVerificationTokenRequest; + +GenRealPersonVerificationTokenRequest::GenRealPersonVerificationTokenRequest() + : RpcServiceRequest("facebody", "2019-12-30", "GenRealPersonVerificationToken") { + setMethod(HttpRequest::Method::Post); } -void GenRealPersonVerificationTokenRequest::setMetaInfo(const std::string& metaInfo) -{ - metaInfo_ = metaInfo; - setBodyParameter("MetaInfo", metaInfo); +GenRealPersonVerificationTokenRequest::~GenRealPersonVerificationTokenRequest() {} + +bool GenRealPersonVerificationTokenRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string GenRealPersonVerificationTokenRequest::getCertificateNumber()const -{ - return certificateNumber_; +void GenRealPersonVerificationTokenRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void GenRealPersonVerificationTokenRequest::setCertificateNumber(const std::string& certificateNumber) -{ - certificateNumber_ = certificateNumber; - setBodyParameter("CertificateNumber", certificateNumber); +std::string GenRealPersonVerificationTokenRequest::getMetaInfo() const { + return metaInfo_; } -std::string GenRealPersonVerificationTokenRequest::getCertificateName()const -{ - return certificateName_; +void GenRealPersonVerificationTokenRequest::setMetaInfo(const std::string &metaInfo) { + metaInfo_ = metaInfo; + setBodyParameter(std::string("MetaInfo"), metaInfo); } -void GenRealPersonVerificationTokenRequest::setCertificateName(const std::string& certificateName) -{ - certificateName_ = certificateName; - setBodyParameter("CertificateName", certificateName); +std::string GenRealPersonVerificationTokenRequest::getOssFile() const { + return ossFile_; +} + +void GenRealPersonVerificationTokenRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string GenRealPersonVerificationTokenRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void GenRealPersonVerificationTokenRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string GenRealPersonVerificationTokenRequest::getCertificateNumber() const { + return certificateNumber_; +} + +void GenRealPersonVerificationTokenRequest::setCertificateNumber(const std::string &certificateNumber) { + certificateNumber_ = certificateNumber; + setBodyParameter(std::string("CertificateNumber"), certificateNumber); +} + +std::string GenRealPersonVerificationTokenRequest::getCertificateName() const { + return certificateName_; +} + +void GenRealPersonVerificationTokenRequest::setCertificateName(const std::string &certificateName) { + certificateName_ = certificateName; + setBodyParameter(std::string("CertificateName"), certificateName); } diff --git a/facebody/src/model/GenerateHumanAnimeStyleRequest.cc b/facebody/src/model/GenerateHumanAnimeStyleRequest.cc index 262a577fa..eebfbeaae 100644 --- a/facebody/src/model/GenerateHumanAnimeStyleRequest.cc +++ b/facebody/src/model/GenerateHumanAnimeStyleRequest.cc @@ -1,51 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::GenerateHumanAnimeStyleRequest; - -GenerateHumanAnimeStyleRequest::GenerateHumanAnimeStyleRequest() : - RpcServiceRequest("facebody", "2019-12-30", "GenerateHumanAnimeStyle") -{ - setMethod(HttpRequest::Method::Post); -} - -GenerateHumanAnimeStyleRequest::~GenerateHumanAnimeStyleRequest() -{} - -std::string GenerateHumanAnimeStyleRequest::getAlgoType()const -{ - return algoType_; + */ + +#include + +using AlibabaCloud::Facebody::Model::GenerateHumanAnimeStyleRequest; + +GenerateHumanAnimeStyleRequest::GenerateHumanAnimeStyleRequest() + : RpcServiceRequest("facebody", "2019-12-30", "GenerateHumanAnimeStyle") { + setMethod(HttpRequest::Method::Post); } -void GenerateHumanAnimeStyleRequest::setAlgoType(const std::string& algoType) -{ - algoType_ = algoType; - setParameter("AlgoType", algoType); +GenerateHumanAnimeStyleRequest::~GenerateHumanAnimeStyleRequest() {} + +std::string GenerateHumanAnimeStyleRequest::getAlgoType() const { + return algoType_; } -std::string GenerateHumanAnimeStyleRequest::getImageURL()const -{ - return imageURL_; +void GenerateHumanAnimeStyleRequest::setAlgoType(const std::string &algoType) { + algoType_ = algoType; + setParameter(std::string("AlgoType"), algoType); } -void GenerateHumanAnimeStyleRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setParameter("ImageURL", imageURL); +bool GenerateHumanAnimeStyleRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void GenerateHumanAnimeStyleRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +std::string GenerateHumanAnimeStyleRequest::getOssFile() const { + return ossFile_; +} + +void GenerateHumanAnimeStyleRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string GenerateHumanAnimeStyleRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void GenerateHumanAnimeStyleRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string GenerateHumanAnimeStyleRequest::getImageURL() const { + return imageURL_; +} + +void GenerateHumanAnimeStyleRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/GenerateHumanSketchStyleRequest.cc b/facebody/src/model/GenerateHumanSketchStyleRequest.cc index 978d4b0d9..10bf38825 100644 --- a/facebody/src/model/GenerateHumanSketchStyleRequest.cc +++ b/facebody/src/model/GenerateHumanSketchStyleRequest.cc @@ -1,51 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::GenerateHumanSketchStyleRequest; - -GenerateHumanSketchStyleRequest::GenerateHumanSketchStyleRequest() : - RpcServiceRequest("facebody", "2019-12-30", "GenerateHumanSketchStyle") -{ - setMethod(HttpRequest::Method::Post); -} - -GenerateHumanSketchStyleRequest::~GenerateHumanSketchStyleRequest() -{} - -std::string GenerateHumanSketchStyleRequest::getReturnType()const -{ - return returnType_; + */ + +#include + +using AlibabaCloud::Facebody::Model::GenerateHumanSketchStyleRequest; + +GenerateHumanSketchStyleRequest::GenerateHumanSketchStyleRequest() + : RpcServiceRequest("facebody", "2019-12-30", "GenerateHumanSketchStyle") { + setMethod(HttpRequest::Method::Post); } -void GenerateHumanSketchStyleRequest::setReturnType(const std::string& returnType) -{ - returnType_ = returnType; - setBodyParameter("ReturnType", returnType); +GenerateHumanSketchStyleRequest::~GenerateHumanSketchStyleRequest() {} + +bool GenerateHumanSketchStyleRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string GenerateHumanSketchStyleRequest::getImageURL()const -{ - return imageURL_; +void GenerateHumanSketchStyleRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void GenerateHumanSketchStyleRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +std::string GenerateHumanSketchStyleRequest::getOssFile() const { + return ossFile_; +} + +void GenerateHumanSketchStyleRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string GenerateHumanSketchStyleRequest::getReturnType() const { + return returnType_; +} + +void GenerateHumanSketchStyleRequest::setReturnType(const std::string &returnType) { + returnType_ = returnType; + setBodyParameter(std::string("ReturnType"), returnType); +} + +std::string GenerateHumanSketchStyleRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void GenerateHumanSketchStyleRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string GenerateHumanSketchStyleRequest::getImageURL() const { + return imageURL_; +} + +void GenerateHumanSketchStyleRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/GetBodyPersonRequest.cc b/facebody/src/model/GetBodyPersonRequest.cc index 057422597..104fee381 100644 --- a/facebody/src/model/GetBodyPersonRequest.cc +++ b/facebody/src/model/GetBodyPersonRequest.cc @@ -1,51 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::GetBodyPersonRequest; - -GetBodyPersonRequest::GetBodyPersonRequest() : - RpcServiceRequest("facebody", "2019-12-30", "GetBodyPerson") -{ - setMethod(HttpRequest::Method::Get); -} - -GetBodyPersonRequest::~GetBodyPersonRequest() -{} - -long GetBodyPersonRequest::getPersonId()const -{ - return personId_; + */ + +#include + +using AlibabaCloud::Facebody::Model::GetBodyPersonRequest; + +GetBodyPersonRequest::GetBodyPersonRequest() + : RpcServiceRequest("facebody", "2019-12-30", "GetBodyPerson") { + setMethod(HttpRequest::Method::Get); } -void GetBodyPersonRequest::setPersonId(long personId) -{ - personId_ = personId; - setParameter("PersonId", std::to_string(personId)); +GetBodyPersonRequest::~GetBodyPersonRequest() {} + +bool GetBodyPersonRequest::getFormatResultToJson() const { + return formatResultToJson_; } -long GetBodyPersonRequest::getDbId()const -{ - return dbId_; +void GetBodyPersonRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void GetBodyPersonRequest::setDbId(long dbId) -{ - dbId_ = dbId; - setParameter("DbId", std::to_string(dbId)); +long GetBodyPersonRequest::getPersonId() const { + return personId_; +} + +void GetBodyPersonRequest::setPersonId(long personId) { + personId_ = personId; + setParameter(std::string("PersonId"), std::to_string(personId)); +} + +std::string GetBodyPersonRequest::getOssFile() const { + return ossFile_; +} + +void GetBodyPersonRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string GetBodyPersonRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void GetBodyPersonRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +long GetBodyPersonRequest::getDbId() const { + return dbId_; +} + +void GetBodyPersonRequest::setDbId(long dbId) { + dbId_ = dbId; + setParameter(std::string("DbId"), std::to_string(dbId)); } diff --git a/facebody/src/model/GetBodyPersonResult.cc b/facebody/src/model/GetBodyPersonResult.cc index 8e89751c3..0aaa04b9a 100644 --- a/facebody/src/model/GetBodyPersonResult.cc +++ b/facebody/src/model/GetBodyPersonResult.cc @@ -40,8 +40,6 @@ void GetBodyPersonResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["TraceCount"].isNull()) - data_.traceCount = std::stol(dataNode["TraceCount"].asString()); if(!dataNode["InstanceId"].isNull()) data_.instanceId = std::stol(dataNode["InstanceId"].asString()); if(!dataNode["DbId"].isNull()) @@ -50,20 +48,22 @@ void GetBodyPersonResult::parse(const std::string &payload) data_.id = std::stol(dataNode["Id"].asString()); if(!dataNode["Name"].isNull()) data_.name = dataNode["Name"].asString(); + if(!dataNode["TraceCount"].isNull()) + data_.traceCount = std::stol(dataNode["TraceCount"].asString()); auto allTraceListNode = dataNode["TraceList"]["Trace"]; for (auto dataNodeTraceListTrace : allTraceListNode) { Data::Trace traceObject; - if(!dataNodeTraceListTrace["ExtraData"].isNull()) - traceObject.extraData = dataNodeTraceListTrace["ExtraData"].asString(); if(!dataNodeTraceListTrace["Id"].isNull()) traceObject.id = std::stol(dataNodeTraceListTrace["Id"].asString()); + if(!dataNodeTraceListTrace["ExtraData"].isNull()) + traceObject.extraData = dataNodeTraceListTrace["ExtraData"].asString(); data_.traceList.push_back(traceObject); } - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } diff --git a/facebody/src/model/GetFaceEntityRequest.cc b/facebody/src/model/GetFaceEntityRequest.cc index 74c421552..93f1f79cf 100644 --- a/facebody/src/model/GetFaceEntityRequest.cc +++ b/facebody/src/model/GetFaceEntityRequest.cc @@ -1,51 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::GetFaceEntityRequest; - -GetFaceEntityRequest::GetFaceEntityRequest() : - RpcServiceRequest("facebody", "2019-12-30", "GetFaceEntity") -{ - setMethod(HttpRequest::Method::Post); -} - -GetFaceEntityRequest::~GetFaceEntityRequest() -{} - -std::string GetFaceEntityRequest::getEntityId()const -{ - return entityId_; + */ + +#include + +using AlibabaCloud::Facebody::Model::GetFaceEntityRequest; + +GetFaceEntityRequest::GetFaceEntityRequest() + : RpcServiceRequest("facebody", "2019-12-30", "GetFaceEntity") { + setMethod(HttpRequest::Method::Post); } -void GetFaceEntityRequest::setEntityId(const std::string& entityId) -{ - entityId_ = entityId; - setBodyParameter("EntityId", entityId); +GetFaceEntityRequest::~GetFaceEntityRequest() {} + +std::string GetFaceEntityRequest::getEntityId() const { + return entityId_; } -std::string GetFaceEntityRequest::getDbName()const -{ - return dbName_; +void GetFaceEntityRequest::setEntityId(const std::string &entityId) { + entityId_ = entityId; + setBodyParameter(std::string("EntityId"), entityId); } -void GetFaceEntityRequest::setDbName(const std::string& dbName) -{ - dbName_ = dbName; - setBodyParameter("DbName", dbName); +bool GetFaceEntityRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void GetFaceEntityRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +std::string GetFaceEntityRequest::getOssFile() const { + return ossFile_; +} + +void GetFaceEntityRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string GetFaceEntityRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void GetFaceEntityRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string GetFaceEntityRequest::getDbName() const { + return dbName_; +} + +void GetFaceEntityRequest::setDbName(const std::string &dbName) { + dbName_ = dbName; + setBodyParameter(std::string("DbName"), dbName); } diff --git a/facebody/src/model/GetFaceEntityResult.cc b/facebody/src/model/GetFaceEntityResult.cc index 8104991a4..10b4ebb73 100644 --- a/facebody/src/model/GetFaceEntityResult.cc +++ b/facebody/src/model/GetFaceEntityResult.cc @@ -40,12 +40,12 @@ void GetFaceEntityResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; + if(!dataNode["DbName"].isNull()) + data_.dbName = dataNode["DbName"].asString(); if(!dataNode["EntityId"].isNull()) data_.entityId = dataNode["EntityId"].asString(); if(!dataNode["Labels"].isNull()) data_.labels = dataNode["Labels"].asString(); - if(!dataNode["DbName"].isNull()) - data_.dbName = dataNode["DbName"].asString(); auto allFacesNode = dataNode["Faces"]["Face"]; for (auto dataNodeFacesFace : allFacesNode) { diff --git a/facebody/src/model/GetRealPersonVerificationResultRequest.cc b/facebody/src/model/GetRealPersonVerificationResultRequest.cc index e1ab5d9c0..c9a34cf1c 100644 --- a/facebody/src/model/GetRealPersonVerificationResultRequest.cc +++ b/facebody/src/model/GetRealPersonVerificationResultRequest.cc @@ -1,51 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::GetRealPersonVerificationResultRequest; - -GetRealPersonVerificationResultRequest::GetRealPersonVerificationResultRequest() : - RpcServiceRequest("facebody", "2019-12-30", "GetRealPersonVerificationResult") -{ - setMethod(HttpRequest::Method::Post); -} - -GetRealPersonVerificationResultRequest::~GetRealPersonVerificationResultRequest() -{} - -std::string GetRealPersonVerificationResultRequest::getMaterialHash()const -{ - return materialHash_; + */ + +#include + +using AlibabaCloud::Facebody::Model::GetRealPersonVerificationResultRequest; + +GetRealPersonVerificationResultRequest::GetRealPersonVerificationResultRequest() + : RpcServiceRequest("facebody", "2019-12-30", "GetRealPersonVerificationResult") { + setMethod(HttpRequest::Method::Post); } -void GetRealPersonVerificationResultRequest::setMaterialHash(const std::string& materialHash) -{ - materialHash_ = materialHash; - setBodyParameter("MaterialHash", materialHash); +GetRealPersonVerificationResultRequest::~GetRealPersonVerificationResultRequest() {} + +bool GetRealPersonVerificationResultRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string GetRealPersonVerificationResultRequest::getVerificationToken()const -{ - return verificationToken_; +void GetRealPersonVerificationResultRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void GetRealPersonVerificationResultRequest::setVerificationToken(const std::string& verificationToken) -{ - verificationToken_ = verificationToken; - setBodyParameter("VerificationToken", verificationToken); +std::string GetRealPersonVerificationResultRequest::getMaterialHash() const { + return materialHash_; +} + +void GetRealPersonVerificationResultRequest::setMaterialHash(const std::string &materialHash) { + materialHash_ = materialHash; + setBodyParameter(std::string("MaterialHash"), materialHash); +} + +std::string GetRealPersonVerificationResultRequest::getOssFile() const { + return ossFile_; +} + +void GetRealPersonVerificationResultRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string GetRealPersonVerificationResultRequest::getVerificationToken() const { + return verificationToken_; +} + +void GetRealPersonVerificationResultRequest::setVerificationToken(const std::string &verificationToken) { + verificationToken_ = verificationToken; + setBodyParameter(std::string("VerificationToken"), verificationToken); +} + +std::string GetRealPersonVerificationResultRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void GetRealPersonVerificationResultRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); } diff --git a/facebody/src/model/HandPostureRequest.cc b/facebody/src/model/HandPostureRequest.cc index 1a8a6a8b3..2424f81c6 100644 --- a/facebody/src/model/HandPostureRequest.cc +++ b/facebody/src/model/HandPostureRequest.cc @@ -1,40 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::HandPostureRequest; - -HandPostureRequest::HandPostureRequest() : - RpcServiceRequest("facebody", "2019-12-30", "HandPosture") -{ - setMethod(HttpRequest::Method::Post); -} - -HandPostureRequest::~HandPostureRequest() -{} - -std::string HandPostureRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Facebody::Model::HandPostureRequest; + +HandPostureRequest::HandPostureRequest() + : RpcServiceRequest("facebody", "2019-12-30", "HandPosture") { + setMethod(HttpRequest::Method::Post); } -void HandPostureRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +HandPostureRequest::~HandPostureRequest() {} + +bool HandPostureRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void HandPostureRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +std::string HandPostureRequest::getOssFile() const { + return ossFile_; +} + +void HandPostureRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string HandPostureRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void HandPostureRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string HandPostureRequest::getImageURL() const { + return imageURL_; +} + +void HandPostureRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/HandPostureResult.cc b/facebody/src/model/HandPostureResult.cc index f97670f50..db7efc3ce 100644 --- a/facebody/src/model/HandPostureResult.cc +++ b/facebody/src/model/HandPostureResult.cc @@ -50,18 +50,6 @@ void HandPostureResult::parse(const std::string &payload) for (auto dataNodeOutputsOutputResultsResult : allResultsNode) { Data::Output::Result resultsObject; - auto boxNode = value["Box"]; - if(!boxNode["Confident"].isNull()) - resultsObject.box.confident = std::stof(boxNode["Confident"].asString()); - auto allPositionsNode = boxNode["Positions"]["Position"]; - for (auto boxNodePositionsPosition : allPositionsNode) - { - Data::Output::Result::Box::Position positionObject; - auto allPoints = value["Points"]["Point"]; - for (auto value : allPoints) - positionObject.points.push_back(value.asString()); - resultsObject.box.positions.push_back(positionObject); - } auto handsNode = value["Hands"]; if(!handsNode["Confident"].isNull()) resultsObject.hands.confident = std::stof(handsNode["Confident"].asString()); @@ -71,26 +59,38 @@ void HandPostureResult::parse(const std::string &payload) Data::Output::Result::Hands::KeyPoint keyPointObject; if(!handsNodeKeyPointsKeyPoint["Label"].isNull()) keyPointObject.label = handsNodeKeyPointsKeyPoint["Label"].asString(); - auto allPositions1Node = handsNodeKeyPointsKeyPoint["Positions"]["Position"]; - for (auto handsNodeKeyPointsKeyPointPositionsPosition : allPositions1Node) + auto allPositionsNode = handsNodeKeyPointsKeyPoint["Positions"]["Position"]; + for (auto handsNodeKeyPointsKeyPointPositionsPosition : allPositionsNode) { - Data::Output::Result::Hands::KeyPoint::Position2 positions1Object; - auto allPoints3 = value["Points"]["Point"]; - for (auto value : allPoints3) - positions1Object.points3.push_back(value.asString()); - keyPointObject.positions1.push_back(positions1Object); + Data::Output::Result::Hands::KeyPoint::Position positionsObject; + auto allPoints = value["Points"]["Point"]; + for (auto value : allPoints) + positionsObject.points.push_back(value.asString()); + keyPointObject.positions.push_back(positionsObject); } resultsObject.hands.keyPoints.push_back(keyPointObject); } + auto boxNode = value["Box"]; + if(!boxNode["Confident"].isNull()) + resultsObject.box.confident = std::stof(boxNode["Confident"].asString()); + auto allPositions1Node = boxNode["Positions"]["Position"]; + for (auto boxNodePositionsPosition : allPositions1Node) + { + Data::Output::Result::Box::Position2 position2Object; + auto allPoints3 = value["Points"]["Point"]; + for (auto value : allPoints3) + position2Object.points3.push_back(value.asString()); + resultsObject.box.positions1.push_back(position2Object); + } outputObject.results.push_back(resultsObject); } data_.outputs.push_back(outputObject); } auto metaObjectNode = dataNode["MetaObject"]; - if(!metaObjectNode["Height"].isNull()) - data_.metaObject.height = std::stoi(metaObjectNode["Height"].asString()); if(!metaObjectNode["Width"].isNull()) data_.metaObject.width = std::stoi(metaObjectNode["Width"].asString()); + if(!metaObjectNode["Height"].isNull()) + data_.metaObject.height = std::stoi(metaObjectNode["Height"].asString()); } diff --git a/facebody/src/model/LiquifyFaceRequest.cc b/facebody/src/model/LiquifyFaceRequest.cc index 372c594f9..2e2c51973 100644 --- a/facebody/src/model/LiquifyFaceRequest.cc +++ b/facebody/src/model/LiquifyFaceRequest.cc @@ -1,51 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::LiquifyFaceRequest; - -LiquifyFaceRequest::LiquifyFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "LiquifyFace") -{ - setMethod(HttpRequest::Method::Post); -} - -LiquifyFaceRequest::~LiquifyFaceRequest() -{} - -float LiquifyFaceRequest::getSlimDegree()const -{ - return slimDegree_; + */ + +#include + +using AlibabaCloud::Facebody::Model::LiquifyFaceRequest; + +LiquifyFaceRequest::LiquifyFaceRequest() + : RpcServiceRequest("facebody", "2019-12-30", "LiquifyFace") { + setMethod(HttpRequest::Method::Post); } -void LiquifyFaceRequest::setSlimDegree(float slimDegree) -{ - slimDegree_ = slimDegree; - setBodyParameter("SlimDegree", std::to_string(slimDegree)); +LiquifyFaceRequest::~LiquifyFaceRequest() {} + +bool LiquifyFaceRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string LiquifyFaceRequest::getImageURL()const -{ - return imageURL_; +void LiquifyFaceRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void LiquifyFaceRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +std::string LiquifyFaceRequest::getOssFile() const { + return ossFile_; +} + +void LiquifyFaceRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +float LiquifyFaceRequest::getSlimDegree() const { + return slimDegree_; +} + +void LiquifyFaceRequest::setSlimDegree(float slimDegree) { + slimDegree_ = slimDegree; + setBodyParameter(std::string("SlimDegree"), std::to_string(slimDegree)); +} + +std::string LiquifyFaceRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void LiquifyFaceRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string LiquifyFaceRequest::getImageURL() const { + return imageURL_; +} + +void LiquifyFaceRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/ListBodyDbsRequest.cc b/facebody/src/model/ListBodyDbsRequest.cc index e57e3f905..f4a129292 100644 --- a/facebody/src/model/ListBodyDbsRequest.cc +++ b/facebody/src/model/ListBodyDbsRequest.cc @@ -1,51 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::ListBodyDbsRequest; - -ListBodyDbsRequest::ListBodyDbsRequest() : - RpcServiceRequest("facebody", "2019-12-30", "ListBodyDbs") -{ - setMethod(HttpRequest::Method::Get); -} - -ListBodyDbsRequest::~ListBodyDbsRequest() -{} - -long ListBodyDbsRequest::getLimit()const -{ - return limit_; + */ + +#include + +using AlibabaCloud::Facebody::Model::ListBodyDbsRequest; + +ListBodyDbsRequest::ListBodyDbsRequest() + : RpcServiceRequest("facebody", "2019-12-30", "ListBodyDbs") { + setMethod(HttpRequest::Method::Get); } -void ListBodyDbsRequest::setLimit(long limit) -{ - limit_ = limit; - setParameter("Limit", std::to_string(limit)); +ListBodyDbsRequest::~ListBodyDbsRequest() {} + +bool ListBodyDbsRequest::getFormatResultToJson() const { + return formatResultToJson_; } -long ListBodyDbsRequest::getOffset()const -{ - return offset_; +void ListBodyDbsRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void ListBodyDbsRequest::setOffset(long offset) -{ - offset_ = offset; - setParameter("Offset", std::to_string(offset)); +long ListBodyDbsRequest::getLimit() const { + return limit_; +} + +void ListBodyDbsRequest::setLimit(long limit) { + limit_ = limit; + setParameter(std::string("Limit"), std::to_string(limit)); +} + +std::string ListBodyDbsRequest::getOssFile() const { + return ossFile_; +} + +void ListBodyDbsRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +long ListBodyDbsRequest::getOffset() const { + return offset_; +} + +void ListBodyDbsRequest::setOffset(long offset) { + offset_ = offset; + setParameter(std::string("Offset"), std::to_string(offset)); +} + +std::string ListBodyDbsRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void ListBodyDbsRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); } diff --git a/facebody/src/model/ListBodyDbsResult.cc b/facebody/src/model/ListBodyDbsResult.cc index 8ac6c880f..d70d1b411 100644 --- a/facebody/src/model/ListBodyDbsResult.cc +++ b/facebody/src/model/ListBodyDbsResult.cc @@ -52,10 +52,10 @@ void ListBodyDbsResult::parse(const std::string &payload) dbListItemObject.name = dataNodeDbListDbListItem["Name"].asString(); data_.dbList.push_back(dbListItemObject); } - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } diff --git a/facebody/src/model/ListBodyPersonRequest.cc b/facebody/src/model/ListBodyPersonRequest.cc index 07897724b..db23ddd61 100644 --- a/facebody/src/model/ListBodyPersonRequest.cc +++ b/facebody/src/model/ListBodyPersonRequest.cc @@ -1,62 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::ListBodyPersonRequest; - -ListBodyPersonRequest::ListBodyPersonRequest() : - RpcServiceRequest("facebody", "2019-12-30", "ListBodyPerson") -{ - setMethod(HttpRequest::Method::Get); -} - -ListBodyPersonRequest::~ListBodyPersonRequest() -{} - -long ListBodyPersonRequest::getLimit()const -{ - return limit_; + */ + +#include + +using AlibabaCloud::Facebody::Model::ListBodyPersonRequest; + +ListBodyPersonRequest::ListBodyPersonRequest() + : RpcServiceRequest("facebody", "2019-12-30", "ListBodyPerson") { + setMethod(HttpRequest::Method::Get); } -void ListBodyPersonRequest::setLimit(long limit) -{ - limit_ = limit; - setParameter("Limit", std::to_string(limit)); +ListBodyPersonRequest::~ListBodyPersonRequest() {} + +bool ListBodyPersonRequest::getFormatResultToJson() const { + return formatResultToJson_; } -long ListBodyPersonRequest::getOffset()const -{ - return offset_; +void ListBodyPersonRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void ListBodyPersonRequest::setOffset(long offset) -{ - offset_ = offset; - setParameter("Offset", std::to_string(offset)); +long ListBodyPersonRequest::getLimit() const { + return limit_; } -long ListBodyPersonRequest::getDbId()const -{ - return dbId_; +void ListBodyPersonRequest::setLimit(long limit) { + limit_ = limit; + setParameter(std::string("Limit"), std::to_string(limit)); } -void ListBodyPersonRequest::setDbId(long dbId) -{ - dbId_ = dbId; - setParameter("DbId", std::to_string(dbId)); +std::string ListBodyPersonRequest::getOssFile() const { + return ossFile_; +} + +void ListBodyPersonRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +long ListBodyPersonRequest::getOffset() const { + return offset_; +} + +void ListBodyPersonRequest::setOffset(long offset) { + offset_ = offset; + setParameter(std::string("Offset"), std::to_string(offset)); +} + +std::string ListBodyPersonRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void ListBodyPersonRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +long ListBodyPersonRequest::getDbId() const { + return dbId_; +} + +void ListBodyPersonRequest::setDbId(long dbId) { + dbId_ = dbId; + setParameter(std::string("DbId"), std::to_string(dbId)); } diff --git a/facebody/src/model/ListBodyPersonResult.cc b/facebody/src/model/ListBodyPersonResult.cc index d0c49d676..0c487ab8e 100644 --- a/facebody/src/model/ListBodyPersonResult.cc +++ b/facebody/src/model/ListBodyPersonResult.cc @@ -46,22 +46,22 @@ void ListBodyPersonResult::parse(const std::string &payload) for (auto dataNodePersonListPerson : allPersonListNode) { Data::Person personObject; - if(!dataNodePersonListPerson["TraceCount"].isNull()) - personObject.traceCount = std::stol(dataNodePersonListPerson["TraceCount"].asString()); if(!dataNodePersonListPerson["InstanceId"].isNull()) personObject.instanceId = std::stol(dataNodePersonListPerson["InstanceId"].asString()); if(!dataNodePersonListPerson["DbId"].isNull()) personObject.dbId = std::stol(dataNodePersonListPerson["DbId"].asString()); - if(!dataNodePersonListPerson["Id"].isNull()) - personObject.id = std::stol(dataNodePersonListPerson["Id"].asString()); if(!dataNodePersonListPerson["Name"].isNull()) personObject.name = dataNodePersonListPerson["Name"].asString(); + if(!dataNodePersonListPerson["TraceCount"].isNull()) + personObject.traceCount = std::stol(dataNodePersonListPerson["TraceCount"].asString()); + if(!dataNodePersonListPerson["Id"].isNull()) + personObject.id = std::stol(dataNodePersonListPerson["Id"].asString()); data_.personList.push_back(personObject); } - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } diff --git a/facebody/src/model/ListFaceDbsRequest.cc b/facebody/src/model/ListFaceDbsRequest.cc index 092d1e7e3..fc58e68b9 100644 --- a/facebody/src/model/ListFaceDbsRequest.cc +++ b/facebody/src/model/ListFaceDbsRequest.cc @@ -1,29 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::ListFaceDbsRequest; - -ListFaceDbsRequest::ListFaceDbsRequest() : - RpcServiceRequest("facebody", "2019-12-30", "ListFaceDbs") -{ - setMethod(HttpRequest::Method::Post); -} - -ListFaceDbsRequest::~ListFaceDbsRequest() -{} - + */ + +#include + +using AlibabaCloud::Facebody::Model::ListFaceDbsRequest; + +ListFaceDbsRequest::ListFaceDbsRequest() + : RpcServiceRequest("facebody", "2019-12-30", "ListFaceDbs") { + setMethod(HttpRequest::Method::Post); +} + +ListFaceDbsRequest::~ListFaceDbsRequest() {} + +bool ListFaceDbsRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void ListFaceDbsRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +long ListFaceDbsRequest::getLimit() const { + return limit_; +} + +void ListFaceDbsRequest::setLimit(long limit) { + limit_ = limit; + setBodyParameter(std::string("Limit"), std::to_string(limit)); +} + +std::string ListFaceDbsRequest::getOssFile() const { + return ossFile_; +} + +void ListFaceDbsRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +long ListFaceDbsRequest::getOffset() const { + return offset_; +} + +void ListFaceDbsRequest::setOffset(long offset) { + offset_ = offset; + setBodyParameter(std::string("Offset"), std::to_string(offset)); +} + +std::string ListFaceDbsRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void ListFaceDbsRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + diff --git a/facebody/src/model/ListFaceEntitiesRequest.cc b/facebody/src/model/ListFaceEntitiesRequest.cc index edaa1698f..8b974d3d4 100644 --- a/facebody/src/model/ListFaceEntitiesRequest.cc +++ b/facebody/src/model/ListFaceEntitiesRequest.cc @@ -1,106 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::ListFaceEntitiesRequest; - -ListFaceEntitiesRequest::ListFaceEntitiesRequest() : - RpcServiceRequest("facebody", "2019-12-30", "ListFaceEntities") -{ - setMethod(HttpRequest::Method::Post); -} - -ListFaceEntitiesRequest::~ListFaceEntitiesRequest() -{} - -std::string ListFaceEntitiesRequest::getEntityIdPrefix()const -{ - return entityIdPrefix_; + */ + +#include + +using AlibabaCloud::Facebody::Model::ListFaceEntitiesRequest; + +ListFaceEntitiesRequest::ListFaceEntitiesRequest() + : RpcServiceRequest("facebody", "2019-12-30", "ListFaceEntities") { + setMethod(HttpRequest::Method::Post); } -void ListFaceEntitiesRequest::setEntityIdPrefix(const std::string& entityIdPrefix) -{ - entityIdPrefix_ = entityIdPrefix; - setBodyParameter("EntityIdPrefix", entityIdPrefix); +ListFaceEntitiesRequest::~ListFaceEntitiesRequest() {} + +std::string ListFaceEntitiesRequest::getEntityIdPrefix() const { + return entityIdPrefix_; } -int ListFaceEntitiesRequest::getLimit()const -{ - return limit_; +void ListFaceEntitiesRequest::setEntityIdPrefix(const std::string &entityIdPrefix) { + entityIdPrefix_ = entityIdPrefix; + setBodyParameter(std::string("EntityIdPrefix"), entityIdPrefix); } -void ListFaceEntitiesRequest::setLimit(int limit) -{ - limit_ = limit; - setBodyParameter("Limit", std::to_string(limit)); +bool ListFaceEntitiesRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string ListFaceEntitiesRequest::getOrder()const -{ - return order_; +void ListFaceEntitiesRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void ListFaceEntitiesRequest::setOrder(const std::string& order) -{ - order_ = order; - setBodyParameter("Order", order); +int ListFaceEntitiesRequest::getLimit() const { + return limit_; } -int ListFaceEntitiesRequest::getOffset()const -{ - return offset_; +void ListFaceEntitiesRequest::setLimit(int limit) { + limit_ = limit; + setBodyParameter(std::string("Limit"), std::to_string(limit)); } -void ListFaceEntitiesRequest::setOffset(int offset) -{ - offset_ = offset; - setBodyParameter("Offset", std::to_string(offset)); +std::string ListFaceEntitiesRequest::getOssFile() const { + return ossFile_; } -std::string ListFaceEntitiesRequest::getToken()const -{ - return token_; +void ListFaceEntitiesRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void ListFaceEntitiesRequest::setToken(const std::string& token) -{ - token_ = token; - setBodyParameter("Token", token); +std::string ListFaceEntitiesRequest::getOrder() const { + return order_; } -std::string ListFaceEntitiesRequest::getLabels()const -{ - return labels_; +void ListFaceEntitiesRequest::setOrder(const std::string &order) { + order_ = order; + setBodyParameter(std::string("Order"), order); } -void ListFaceEntitiesRequest::setLabels(const std::string& labels) -{ - labels_ = labels; - setBodyParameter("Labels", labels); +int ListFaceEntitiesRequest::getOffset() const { + return offset_; } -std::string ListFaceEntitiesRequest::getDbName()const -{ - return dbName_; +void ListFaceEntitiesRequest::setOffset(int offset) { + offset_ = offset; + setBodyParameter(std::string("Offset"), std::to_string(offset)); } -void ListFaceEntitiesRequest::setDbName(const std::string& dbName) -{ - dbName_ = dbName; - setBodyParameter("DbName", dbName); +std::string ListFaceEntitiesRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void ListFaceEntitiesRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string ListFaceEntitiesRequest::getToken() const { + return token_; +} + +void ListFaceEntitiesRequest::setToken(const std::string &token) { + token_ = token; + setBodyParameter(std::string("Token"), token); +} + +std::string ListFaceEntitiesRequest::getLabels() const { + return labels_; +} + +void ListFaceEntitiesRequest::setLabels(const std::string &labels) { + labels_ = labels; + setBodyParameter(std::string("Labels"), labels); +} + +std::string ListFaceEntitiesRequest::getDbName() const { + return dbName_; +} + +void ListFaceEntitiesRequest::setDbName(const std::string &dbName) { + dbName_ = dbName; + setBodyParameter(std::string("DbName"), dbName); } diff --git a/facebody/src/model/ListFaceEntitiesResult.cc b/facebody/src/model/ListFaceEntitiesResult.cc index 2508daf4b..df6046bb4 100644 --- a/facebody/src/model/ListFaceEntitiesResult.cc +++ b/facebody/src/model/ListFaceEntitiesResult.cc @@ -40,26 +40,26 @@ void ListFaceEntitiesResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["TotalCount"].isNull()) - data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); if(!dataNode["Token"].isNull()) data_.token = dataNode["Token"].asString(); + if(!dataNode["TotalCount"].isNull()) + data_.totalCount = std::stoi(dataNode["TotalCount"].asString()); auto allEntitiesNode = dataNode["Entities"]["Entity"]; for (auto dataNodeEntitiesEntity : allEntitiesNode) { Data::Entity entityObject; - if(!dataNodeEntitiesEntity["EntityId"].isNull()) - entityObject.entityId = dataNodeEntitiesEntity["EntityId"].asString(); - if(!dataNodeEntitiesEntity["CreatedAt"].isNull()) - entityObject.createdAt = std::stol(dataNodeEntitiesEntity["CreatedAt"].asString()); - if(!dataNodeEntitiesEntity["Labels"].isNull()) - entityObject.labels = dataNodeEntitiesEntity["Labels"].asString(); if(!dataNodeEntitiesEntity["DbName"].isNull()) entityObject.dbName = dataNodeEntitiesEntity["DbName"].asString(); - if(!dataNodeEntitiesEntity["UpdatedAt"].isNull()) - entityObject.updatedAt = std::stol(dataNodeEntitiesEntity["UpdatedAt"].asString()); + if(!dataNodeEntitiesEntity["EntityId"].isNull()) + entityObject.entityId = dataNodeEntitiesEntity["EntityId"].asString(); + if(!dataNodeEntitiesEntity["Labels"].isNull()) + entityObject.labels = dataNodeEntitiesEntity["Labels"].asString(); + if(!dataNodeEntitiesEntity["CreatedAt"].isNull()) + entityObject.createdAt = std::stol(dataNodeEntitiesEntity["CreatedAt"].asString()); if(!dataNodeEntitiesEntity["FaceCount"].isNull()) entityObject.faceCount = std::stoi(dataNodeEntitiesEntity["FaceCount"].asString()); + if(!dataNodeEntitiesEntity["UpdatedAt"].isNull()) + entityObject.updatedAt = std::stol(dataNodeEntitiesEntity["UpdatedAt"].asString()); data_.entities.push_back(entityObject); } diff --git a/facebody/src/model/MergeImageFaceRequest.cc b/facebody/src/model/MergeImageFaceRequest.cc index 787cfa211..d55d69164 100644 --- a/facebody/src/model/MergeImageFaceRequest.cc +++ b/facebody/src/model/MergeImageFaceRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::MergeImageFaceRequest; - -MergeImageFaceRequest::MergeImageFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "MergeImageFace") -{ - setMethod(HttpRequest::Method::Post); -} - -MergeImageFaceRequest::~MergeImageFaceRequest() -{} - -bool MergeImageFaceRequest::getFormatResultToJson()const -{ - return formatResultToJson_; + */ + +#include + +using AlibabaCloud::Facebody::Model::MergeImageFaceRequest; + +MergeImageFaceRequest::MergeImageFaceRequest() + : RpcServiceRequest("facebody", "2019-12-30", "MergeImageFace") { + setMethod(HttpRequest::Method::Post); } -void MergeImageFaceRequest::setFormatResultToJson(bool formatResultToJson) -{ - formatResultToJson_ = formatResultToJson; - setParameter("FormatResultToJson", formatResultToJson ? "true" : "false"); +MergeImageFaceRequest::~MergeImageFaceRequest() {} + +bool MergeImageFaceRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string MergeImageFaceRequest::getUserId()const -{ - return userId_; +void MergeImageFaceRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void MergeImageFaceRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setBodyParameter("UserId", userId); +std::string MergeImageFaceRequest::getUserId() const { + return userId_; } -std::string MergeImageFaceRequest::getOssFile()const -{ - return ossFile_; +void MergeImageFaceRequest::setUserId(const std::string &userId) { + userId_ = userId; + setBodyParameter(std::string("UserId"), userId); } -void MergeImageFaceRequest::setOssFile(const std::string& ossFile) -{ - ossFile_ = ossFile; - setParameter("OssFile", ossFile); +std::string MergeImageFaceRequest::getOssFile() const { + return ossFile_; } -std::string MergeImageFaceRequest::getTemplateId()const -{ - return templateId_; +void MergeImageFaceRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void MergeImageFaceRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setBodyParameter("TemplateId", templateId); +std::string MergeImageFaceRequest::getTemplateId() const { + return templateId_; } -std::string MergeImageFaceRequest::getRequestProxyBy()const -{ - return requestProxyBy_; +void MergeImageFaceRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setBodyParameter(std::string("TemplateId"), templateId); } -void MergeImageFaceRequest::setRequestProxyBy(const std::string& requestProxyBy) -{ - requestProxyBy_ = requestProxyBy; - setParameter("RequestProxyBy", requestProxyBy); +std::string MergeImageFaceRequest::getRequestProxyBy() const { + return requestProxyBy_; } -std::string MergeImageFaceRequest::getImageURL()const -{ - return imageURL_; +void MergeImageFaceRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); } -void MergeImageFaceRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +std::string MergeImageFaceRequest::getImageURL() const { + return imageURL_; +} + +void MergeImageFaceRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/MonitorExaminationRequest.cc b/facebody/src/model/MonitorExaminationRequest.cc index f5ae3afd6..39789fcf4 100644 --- a/facebody/src/model/MonitorExaminationRequest.cc +++ b/facebody/src/model/MonitorExaminationRequest.cc @@ -1,51 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::MonitorExaminationRequest; - -MonitorExaminationRequest::MonitorExaminationRequest() : - RpcServiceRequest("facebody", "2019-12-30", "MonitorExamination") -{ - setMethod(HttpRequest::Method::Post); -} - -MonitorExaminationRequest::~MonitorExaminationRequest() -{} - -long MonitorExaminationRequest::getType()const -{ - return type_; + */ + +#include + +using AlibabaCloud::Facebody::Model::MonitorExaminationRequest; + +MonitorExaminationRequest::MonitorExaminationRequest() + : RpcServiceRequest("facebody", "2019-12-30", "MonitorExamination") { + setMethod(HttpRequest::Method::Post); } -void MonitorExaminationRequest::setType(long type) -{ - type_ = type; - setBodyParameter("Type", std::to_string(type)); +MonitorExaminationRequest::~MonitorExaminationRequest() {} + +bool MonitorExaminationRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string MonitorExaminationRequest::getImageURL()const -{ - return imageURL_; +void MonitorExaminationRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void MonitorExaminationRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +long MonitorExaminationRequest::getType() const { + return type_; +} + +void MonitorExaminationRequest::setType(long type) { + type_ = type; + setBodyParameter(std::string("Type"), std::to_string(type)); +} + +std::string MonitorExaminationRequest::getOssFile() const { + return ossFile_; +} + +void MonitorExaminationRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string MonitorExaminationRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void MonitorExaminationRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string MonitorExaminationRequest::getImageURL() const { + return imageURL_; +} + +void MonitorExaminationRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/PedestrianDetectAttributeRequest.cc b/facebody/src/model/PedestrianDetectAttributeRequest.cc index 689ec5763..6fb37613d 100644 --- a/facebody/src/model/PedestrianDetectAttributeRequest.cc +++ b/facebody/src/model/PedestrianDetectAttributeRequest.cc @@ -1,40 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::PedestrianDetectAttributeRequest; - -PedestrianDetectAttributeRequest::PedestrianDetectAttributeRequest() : - RpcServiceRequest("facebody", "2019-12-30", "PedestrianDetectAttribute") -{ - setMethod(HttpRequest::Method::Post); -} - -PedestrianDetectAttributeRequest::~PedestrianDetectAttributeRequest() -{} - -std::string PedestrianDetectAttributeRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Facebody::Model::PedestrianDetectAttributeRequest; + +PedestrianDetectAttributeRequest::PedestrianDetectAttributeRequest() + : RpcServiceRequest("facebody", "2019-12-30", "PedestrianDetectAttribute") { + setMethod(HttpRequest::Method::Post); } -void PedestrianDetectAttributeRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +PedestrianDetectAttributeRequest::~PedestrianDetectAttributeRequest() {} + +bool PedestrianDetectAttributeRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void PedestrianDetectAttributeRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +std::string PedestrianDetectAttributeRequest::getOssFile() const { + return ossFile_; +} + +void PedestrianDetectAttributeRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string PedestrianDetectAttributeRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void PedestrianDetectAttributeRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string PedestrianDetectAttributeRequest::getImageURL() const { + return imageURL_; +} + +void PedestrianDetectAttributeRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/QueryFaceImageTemplateRequest.cc b/facebody/src/model/QueryFaceImageTemplateRequest.cc index 8eccf3064..0a8c4bcff 100644 --- a/facebody/src/model/QueryFaceImageTemplateRequest.cc +++ b/facebody/src/model/QueryFaceImageTemplateRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::QueryFaceImageTemplateRequest; - -QueryFaceImageTemplateRequest::QueryFaceImageTemplateRequest() : - RpcServiceRequest("facebody", "2019-12-30", "QueryFaceImageTemplate") -{ - setMethod(HttpRequest::Method::Get); -} - -QueryFaceImageTemplateRequest::~QueryFaceImageTemplateRequest() -{} - -bool QueryFaceImageTemplateRequest::getFormatResultToJson()const -{ - return formatResultToJson_; + */ + +#include + +using AlibabaCloud::Facebody::Model::QueryFaceImageTemplateRequest; + +QueryFaceImageTemplateRequest::QueryFaceImageTemplateRequest() + : RpcServiceRequest("facebody", "2019-12-30", "QueryFaceImageTemplate") { + setMethod(HttpRequest::Method::Get); } -void QueryFaceImageTemplateRequest::setFormatResultToJson(bool formatResultToJson) -{ - formatResultToJson_ = formatResultToJson; - setParameter("FormatResultToJson", formatResultToJson ? "true" : "false"); +QueryFaceImageTemplateRequest::~QueryFaceImageTemplateRequest() {} + +bool QueryFaceImageTemplateRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string QueryFaceImageTemplateRequest::getUserId()const -{ - return userId_; +void QueryFaceImageTemplateRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void QueryFaceImageTemplateRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setParameter("UserId", userId); +std::string QueryFaceImageTemplateRequest::getUserId() const { + return userId_; } -std::string QueryFaceImageTemplateRequest::getOssFile()const -{ - return ossFile_; +void QueryFaceImageTemplateRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); } -void QueryFaceImageTemplateRequest::setOssFile(const std::string& ossFile) -{ - ossFile_ = ossFile; - setParameter("OssFile", ossFile); +std::string QueryFaceImageTemplateRequest::getOssFile() const { + return ossFile_; } -std::string QueryFaceImageTemplateRequest::getTemplateId()const -{ - return templateId_; +void QueryFaceImageTemplateRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void QueryFaceImageTemplateRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", templateId); +std::string QueryFaceImageTemplateRequest::getTemplateId() const { + return templateId_; } -std::string QueryFaceImageTemplateRequest::getRequestProxyBy()const -{ - return requestProxyBy_; +void QueryFaceImageTemplateRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); } -void QueryFaceImageTemplateRequest::setRequestProxyBy(const std::string& requestProxyBy) -{ - requestProxyBy_ = requestProxyBy; - setParameter("RequestProxyBy", requestProxyBy); +std::string QueryFaceImageTemplateRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void QueryFaceImageTemplateRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); } diff --git a/facebody/src/model/RecognizeActionRequest.cc b/facebody/src/model/RecognizeActionRequest.cc index 8851d614b..b7a332623 100644 --- a/facebody/src/model/RecognizeActionRequest.cc +++ b/facebody/src/model/RecognizeActionRequest.cc @@ -1,78 +1,95 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::RecognizeActionRequest; - -RecognizeActionRequest::RecognizeActionRequest() : - RpcServiceRequest("facebody", "2019-12-30", "RecognizeAction") -{ - setMethod(HttpRequest::Method::Post); -} - -RecognizeActionRequest::~RecognizeActionRequest() -{} - -int RecognizeActionRequest::getType()const -{ - return type_; + */ + +#include + +using AlibabaCloud::Facebody::Model::RecognizeActionRequest; + +RecognizeActionRequest::RecognizeActionRequest() + : RpcServiceRequest("facebody", "2019-12-30", "RecognizeAction") { + setMethod(HttpRequest::Method::Post); } -void RecognizeActionRequest::setType(int type) -{ - type_ = type; - setBodyParameter("Type", std::to_string(type)); +RecognizeActionRequest::~RecognizeActionRequest() {} + +bool RecognizeActionRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string RecognizeActionRequest::getVideoData()const -{ - return videoData_; +void RecognizeActionRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void RecognizeActionRequest::setVideoData(const std::string& videoData) -{ - videoData_ = videoData; - setBodyParameter("VideoData", videoData); +int RecognizeActionRequest::getType() const { + return type_; } -std::vector RecognizeActionRequest::getURLList()const -{ - return uRLList_; +void RecognizeActionRequest::setType(int type) { + type_ = type; + setBodyParameter(std::string("Type"), std::to_string(type)); } -void RecognizeActionRequest::setURLList(const std::vector& uRLList) -{ - uRLList_ = uRLList; - for(int dep1 = 0; dep1!= uRLList.size(); dep1++) { - auto uRLListObj = uRLList.at(dep1); - std::string uRLListObjStr = "URLList." + std::to_string(dep1 + 1); - setParameter(uRLListObjStr + ".ImageData", uRLListObj.imageData); - setParameter(uRLListObjStr + ".URL", uRLListObj.uRL); - } +std::string RecognizeActionRequest::getOssFile() const { + return ossFile_; } -std::string RecognizeActionRequest::getVideoUrl()const -{ - return videoUrl_; +void RecognizeActionRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void RecognizeActionRequest::setVideoUrl(const std::string& videoUrl) -{ - videoUrl_ = videoUrl; - setBodyParameter("VideoUrl", videoUrl); +std::string RecognizeActionRequest::getVideoData() const { + return videoData_; +} + +void RecognizeActionRequest::setVideoData(const std::string &videoData) { + videoData_ = videoData; + setBodyParameter(std::string("VideoData"), videoData); +} + +std::vector RecognizeActionRequest::getURLList() const { + return uRLList_; +} + +void RecognizeActionRequest::setURLList(const std::vector &uRLList) { + uRLList_ = uRLList; + for(int dep1 = 0; dep1 != uRLList.size(); dep1++) { + auto uRLListObj = uRLList.at(dep1); + std::string uRLListObjStr = std::string("URLList") + "." + std::to_string(dep1 + 1); + setBodyParameter(uRLListObjStr + ".imageData", uRLListObj.imageData); + setBodyParameter(uRLListObjStr + ".URL", uRLListObj.uRL); + } +} + +std::string RecognizeActionRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void RecognizeActionRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string RecognizeActionRequest::getVideoUrl() const { + return videoUrl_; +} + +void RecognizeActionRequest::setVideoUrl(const std::string &videoUrl) { + videoUrl_ = videoUrl; + setBodyParameter(std::string("VideoUrl"), videoUrl); } diff --git a/facebody/src/model/RecognizeExpressionRequest.cc b/facebody/src/model/RecognizeExpressionRequest.cc index dd54286aa..f5d605740 100644 --- a/facebody/src/model/RecognizeExpressionRequest.cc +++ b/facebody/src/model/RecognizeExpressionRequest.cc @@ -1,40 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::RecognizeExpressionRequest; - -RecognizeExpressionRequest::RecognizeExpressionRequest() : - RpcServiceRequest("facebody", "2019-12-30", "RecognizeExpression") -{ - setMethod(HttpRequest::Method::Post); -} - -RecognizeExpressionRequest::~RecognizeExpressionRequest() -{} - -std::string RecognizeExpressionRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Facebody::Model::RecognizeExpressionRequest; + +RecognizeExpressionRequest::RecognizeExpressionRequest() + : RpcServiceRequest("facebody", "2019-12-30", "RecognizeExpression") { + setMethod(HttpRequest::Method::Post); } -void RecognizeExpressionRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +RecognizeExpressionRequest::~RecognizeExpressionRequest() {} + +bool RecognizeExpressionRequest::getFormatResultToJson() const { + return formatResultToJson_; +} + +void RecognizeExpressionRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); +} + +std::string RecognizeExpressionRequest::getOssFile() const { + return ossFile_; +} + +void RecognizeExpressionRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string RecognizeExpressionRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void RecognizeExpressionRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string RecognizeExpressionRequest::getImageURL() const { + return imageURL_; +} + +void RecognizeExpressionRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/RecognizeExpressionResult.cc b/facebody/src/model/RecognizeExpressionResult.cc index 1ff794b80..74eecaa86 100644 --- a/facebody/src/model/RecognizeExpressionResult.cc +++ b/facebody/src/model/RecognizeExpressionResult.cc @@ -49,14 +49,14 @@ void RecognizeExpressionResult::parse(const std::string &payload) if(!dataNodeElementsElement["FaceProbability"].isNull()) elementObject.faceProbability = std::stof(dataNodeElementsElement["FaceProbability"].asString()); auto faceRectangleNode = value["FaceRectangle"]; - if(!faceRectangleNode["Height"].isNull()) - elementObject.faceRectangle.height = std::stoi(faceRectangleNode["Height"].asString()); - if(!faceRectangleNode["Left"].isNull()) - elementObject.faceRectangle.left = std::stoi(faceRectangleNode["Left"].asString()); if(!faceRectangleNode["Top"].isNull()) elementObject.faceRectangle.top = std::stoi(faceRectangleNode["Top"].asString()); if(!faceRectangleNode["Width"].isNull()) elementObject.faceRectangle.width = std::stoi(faceRectangleNode["Width"].asString()); + if(!faceRectangleNode["Height"].isNull()) + elementObject.faceRectangle.height = std::stoi(faceRectangleNode["Height"].asString()); + if(!faceRectangleNode["Left"].isNull()) + elementObject.faceRectangle.left = std::stoi(faceRectangleNode["Left"].asString()); data_.elements.push_back(elementObject); } diff --git a/facebody/src/model/RecognizeFaceRequest.cc b/facebody/src/model/RecognizeFaceRequest.cc index 8766552fb..2588e5d74 100644 --- a/facebody/src/model/RecognizeFaceRequest.cc +++ b/facebody/src/model/RecognizeFaceRequest.cc @@ -1,150 +1,153 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::RecognizeFaceRequest; - -RecognizeFaceRequest::RecognizeFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "RecognizeFace") -{ - setMethod(HttpRequest::Method::Post); -} - -RecognizeFaceRequest::~RecognizeFaceRequest() -{} - -bool RecognizeFaceRequest::getGender()const -{ - return gender_; + */ + +#include + +using AlibabaCloud::Facebody::Model::RecognizeFaceRequest; + +RecognizeFaceRequest::RecognizeFaceRequest() + : RpcServiceRequest("facebody", "2019-12-30", "RecognizeFace") { + setMethod(HttpRequest::Method::Post); } -void RecognizeFaceRequest::setGender(bool gender) -{ - gender_ = gender; - setBodyParameter("Gender", gender ? "true" : "false"); +RecognizeFaceRequest::~RecognizeFaceRequest() {} + +bool RecognizeFaceRequest::getGender() const { + return gender_; } -bool RecognizeFaceRequest::getBeauty()const -{ - return beauty_; +void RecognizeFaceRequest::setGender(bool gender) { + gender_ = gender; + setBodyParameter(std::string("Gender"), gender ? "true" : "false"); } -void RecognizeFaceRequest::setBeauty(bool beauty) -{ - beauty_ = beauty; - setBodyParameter("Beauty", beauty ? "true" : "false"); +bool RecognizeFaceRequest::getBeauty() const { + return beauty_; } -long RecognizeFaceRequest::getMaxFaceNumber()const -{ - return maxFaceNumber_; +void RecognizeFaceRequest::setBeauty(bool beauty) { + beauty_ = beauty; + setBodyParameter(std::string("Beauty"), beauty ? "true" : "false"); } -void RecognizeFaceRequest::setMaxFaceNumber(long maxFaceNumber) -{ - maxFaceNumber_ = maxFaceNumber; - setBodyParameter("MaxFaceNumber", std::to_string(maxFaceNumber)); +long RecognizeFaceRequest::getMaxFaceNumber() const { + return maxFaceNumber_; } -bool RecognizeFaceRequest::getHat()const -{ - return hat_; +void RecognizeFaceRequest::setMaxFaceNumber(long maxFaceNumber) { + maxFaceNumber_ = maxFaceNumber; + setBodyParameter(std::string("MaxFaceNumber"), std::to_string(maxFaceNumber)); } -void RecognizeFaceRequest::setHat(bool hat) -{ - hat_ = hat; - setBodyParameter("Hat", hat ? "true" : "false"); +bool RecognizeFaceRequest::getFormatResultToJson() const { + return formatResultToJson_; } -bool RecognizeFaceRequest::getMask()const -{ - return mask_; +void RecognizeFaceRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void RecognizeFaceRequest::setMask(bool mask) -{ - mask_ = mask; - setBodyParameter("Mask", mask ? "true" : "false"); +bool RecognizeFaceRequest::getHat() const { + return hat_; } -int RecognizeFaceRequest::getImageType()const -{ - return imageType_; +void RecognizeFaceRequest::setHat(bool hat) { + hat_ = hat; + setBodyParameter(std::string("Hat"), hat ? "true" : "false"); } -void RecognizeFaceRequest::setImageType(int imageType) -{ - imageType_ = imageType; - setBodyParameter("ImageType", std::to_string(imageType)); +std::string RecognizeFaceRequest::getOssFile() const { + return ossFile_; } -bool RecognizeFaceRequest::getGlass()const -{ - return glass_; +void RecognizeFaceRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void RecognizeFaceRequest::setGlass(bool glass) -{ - glass_ = glass; - setBodyParameter("Glass", glass ? "true" : "false"); +bool RecognizeFaceRequest::getMask() const { + return mask_; } -bool RecognizeFaceRequest::getExpression()const -{ - return expression_; +void RecognizeFaceRequest::setMask(bool mask) { + mask_ = mask; + setBodyParameter(std::string("Mask"), mask ? "true" : "false"); } -void RecognizeFaceRequest::setExpression(bool expression) -{ - expression_ = expression; - setBodyParameter("Expression", expression ? "true" : "false"); +int RecognizeFaceRequest::getImageType() const { + return imageType_; } -bool RecognizeFaceRequest::getQuality()const -{ - return quality_; +void RecognizeFaceRequest::setImageType(int imageType) { + imageType_ = imageType; + setBodyParameter(std::string("ImageType"), std::to_string(imageType)); } -void RecognizeFaceRequest::setQuality(bool quality) -{ - quality_ = quality; - setBodyParameter("Quality", quality ? "true" : "false"); +bool RecognizeFaceRequest::getGlass() const { + return glass_; } -std::string RecognizeFaceRequest::getImageURL()const -{ - return imageURL_; +void RecognizeFaceRequest::setGlass(bool glass) { + glass_ = glass; + setBodyParameter(std::string("Glass"), glass ? "true" : "false"); } -void RecognizeFaceRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +bool RecognizeFaceRequest::getExpression() const { + return expression_; } -bool RecognizeFaceRequest::getAge()const -{ - return age_; +void RecognizeFaceRequest::setExpression(bool expression) { + expression_ = expression; + setBodyParameter(std::string("Expression"), expression ? "true" : "false"); } -void RecognizeFaceRequest::setAge(bool age) -{ - age_ = age; - setBodyParameter("Age", age ? "true" : "false"); +std::string RecognizeFaceRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void RecognizeFaceRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +bool RecognizeFaceRequest::getQuality() const { + return quality_; +} + +void RecognizeFaceRequest::setQuality(bool quality) { + quality_ = quality; + setBodyParameter(std::string("Quality"), quality ? "true" : "false"); +} + +std::string RecognizeFaceRequest::getImageURL() const { + return imageURL_; +} + +void RecognizeFaceRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); +} + +bool RecognizeFaceRequest::getAge() const { + return age_; +} + +void RecognizeFaceRequest::setAge(bool age) { + age_ = age; + setBodyParameter(std::string("Age"), age ? "true" : "false"); } diff --git a/facebody/src/model/RecognizeHandGestureRequest.cc b/facebody/src/model/RecognizeHandGestureRequest.cc index 016814773..483e7dc80 100644 --- a/facebody/src/model/RecognizeHandGestureRequest.cc +++ b/facebody/src/model/RecognizeHandGestureRequest.cc @@ -1,62 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::RecognizeHandGestureRequest; - -RecognizeHandGestureRequest::RecognizeHandGestureRequest() : - RpcServiceRequest("facebody", "2019-12-30", "RecognizeHandGesture") -{ - setMethod(HttpRequest::Method::Post); -} - -RecognizeHandGestureRequest::~RecognizeHandGestureRequest() -{} - -std::string RecognizeHandGestureRequest::getGestureType()const -{ - return gestureType_; + */ + +#include + +using AlibabaCloud::Facebody::Model::RecognizeHandGestureRequest; + +RecognizeHandGestureRequest::RecognizeHandGestureRequest() + : RpcServiceRequest("facebody", "2019-12-30", "RecognizeHandGesture") { + setMethod(HttpRequest::Method::Post); } -void RecognizeHandGestureRequest::setGestureType(const std::string& gestureType) -{ - gestureType_ = gestureType; - setBodyParameter("GestureType", gestureType); +RecognizeHandGestureRequest::~RecognizeHandGestureRequest() {} + +std::string RecognizeHandGestureRequest::getGestureType() const { + return gestureType_; } -std::string RecognizeHandGestureRequest::getAppId()const -{ - return appId_; +void RecognizeHandGestureRequest::setGestureType(const std::string &gestureType) { + gestureType_ = gestureType; + setBodyParameter(std::string("GestureType"), gestureType); } -void RecognizeHandGestureRequest::setAppId(const std::string& appId) -{ - appId_ = appId; - setBodyParameter("AppId", appId); +bool RecognizeHandGestureRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string RecognizeHandGestureRequest::getImageURL()const -{ - return imageURL_; +void RecognizeHandGestureRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void RecognizeHandGestureRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +std::string RecognizeHandGestureRequest::getOssFile() const { + return ossFile_; +} + +void RecognizeHandGestureRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string RecognizeHandGestureRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void RecognizeHandGestureRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string RecognizeHandGestureRequest::getAppId() const { + return appId_; +} + +void RecognizeHandGestureRequest::setAppId(const std::string &appId) { + appId_ = appId; + setBodyParameter(std::string("AppId"), appId); +} + +std::string RecognizeHandGestureRequest::getImageURL() const { + return imageURL_; +} + +void RecognizeHandGestureRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/RecognizePublicFaceRequest.cc b/facebody/src/model/RecognizePublicFaceRequest.cc index d4ab95da4..338402f51 100644 --- a/facebody/src/model/RecognizePublicFaceRequest.cc +++ b/facebody/src/model/RecognizePublicFaceRequest.cc @@ -1,78 +1,68 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::RecognizePublicFaceRequest; - -RecognizePublicFaceRequest::RecognizePublicFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "RecognizePublicFace") -{ - setMethod(HttpRequest::Method::Post); -} - -RecognizePublicFaceRequest::~RecognizePublicFaceRequest() -{} - -bool RecognizePublicFaceRequest::getFormatResultToJson()const -{ - return formatResultToJson_; + */ + +#include + +using AlibabaCloud::Facebody::Model::RecognizePublicFaceRequest; + +RecognizePublicFaceRequest::RecognizePublicFaceRequest() + : RpcServiceRequest("facebody", "2019-12-30", "RecognizePublicFace") { + setMethod(HttpRequest::Method::Post); } -void RecognizePublicFaceRequest::setFormatResultToJson(bool formatResultToJson) -{ - formatResultToJson_ = formatResultToJson; - setParameter("FormatResultToJson", formatResultToJson ? "true" : "false"); +RecognizePublicFaceRequest::~RecognizePublicFaceRequest() {} + +bool RecognizePublicFaceRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string RecognizePublicFaceRequest::getOssFile()const -{ - return ossFile_; +void RecognizePublicFaceRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void RecognizePublicFaceRequest::setOssFile(const std::string& ossFile) -{ - ossFile_ = ossFile; - setParameter("OssFile", ossFile); +std::string RecognizePublicFaceRequest::getOssFile() const { + return ossFile_; } -std::string RecognizePublicFaceRequest::getRequestProxyBy()const -{ - return requestProxyBy_; +void RecognizePublicFaceRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void RecognizePublicFaceRequest::setRequestProxyBy(const std::string& requestProxyBy) -{ - requestProxyBy_ = requestProxyBy; - setParameter("RequestProxyBy", requestProxyBy); +std::string RecognizePublicFaceRequest::getRequestProxyBy() const { + return requestProxyBy_; } -std::vector RecognizePublicFaceRequest::getTask()const -{ - return task_; +void RecognizePublicFaceRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); } -void RecognizePublicFaceRequest::setTask(const std::vector& task) -{ - task_ = task; - for(int dep1 = 0; dep1!= task.size(); dep1++) { - auto taskObj = task.at(dep1); - std::string taskObjStr = "Task." + std::to_string(dep1 + 1); - setParameter(taskObjStr + ".ImageURL", taskObj.imageURL); - setParameter(taskObjStr + ".ImageData", taskObj.imageData); - } +std::vector RecognizePublicFaceRequest::getTask() const { + return task_; +} + +void RecognizePublicFaceRequest::setTask(const std::vector &task) { + task_ = task; + for(int dep1 = 0; dep1 != task.size(); dep1++) { + auto taskObj = task.at(dep1); + std::string taskObjStr = std::string("Task") + "." + std::to_string(dep1 + 1); + setBodyParameter(taskObjStr + ".ImageURL", taskObj.imageURL); + setBodyParameter(taskObjStr + ".ImageData", taskObj.imageData); + } } diff --git a/facebody/src/model/RetouchBodyRequest.cc b/facebody/src/model/RetouchBodyRequest.cc index ec7d57ddd..e02489613 100644 --- a/facebody/src/model/RetouchBodyRequest.cc +++ b/facebody/src/model/RetouchBodyRequest.cc @@ -1,62 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::RetouchBodyRequest; - -RetouchBodyRequest::RetouchBodyRequest() : - RpcServiceRequest("facebody", "2019-12-30", "RetouchBody") -{ - setMethod(HttpRequest::Method::Post); -} - -RetouchBodyRequest::~RetouchBodyRequest() -{} - -float RetouchBodyRequest::getLengthenDegree()const -{ - return lengthenDegree_; + */ + +#include + +using AlibabaCloud::Facebody::Model::RetouchBodyRequest; + +RetouchBodyRequest::RetouchBodyRequest() + : RpcServiceRequest("facebody", "2019-12-30", "RetouchBody") { + setMethod(HttpRequest::Method::Post); } -void RetouchBodyRequest::setLengthenDegree(float lengthenDegree) -{ - lengthenDegree_ = lengthenDegree; - setBodyParameter("LengthenDegree", std::to_string(lengthenDegree)); +RetouchBodyRequest::~RetouchBodyRequest() {} + +float RetouchBodyRequest::getLengthenDegree() const { + return lengthenDegree_; } -float RetouchBodyRequest::getSlimDegree()const -{ - return slimDegree_; +void RetouchBodyRequest::setLengthenDegree(float lengthenDegree) { + lengthenDegree_ = lengthenDegree; + setBodyParameter(std::string("LengthenDegree"), std::to_string(lengthenDegree)); } -void RetouchBodyRequest::setSlimDegree(float slimDegree) -{ - slimDegree_ = slimDegree; - setBodyParameter("SlimDegree", std::to_string(slimDegree)); +bool RetouchBodyRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string RetouchBodyRequest::getImageURL()const -{ - return imageURL_; +void RetouchBodyRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void RetouchBodyRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +std::string RetouchBodyRequest::getOssFile() const { + return ossFile_; +} + +void RetouchBodyRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +float RetouchBodyRequest::getSlimDegree() const { + return slimDegree_; +} + +void RetouchBodyRequest::setSlimDegree(float slimDegree) { + slimDegree_ = slimDegree; + setBodyParameter(std::string("SlimDegree"), std::to_string(slimDegree)); +} + +std::string RetouchBodyRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void RetouchBodyRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string RetouchBodyRequest::getImageURL() const { + return imageURL_; +} + +void RetouchBodyRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/RetouchSkinRequest.cc b/facebody/src/model/RetouchSkinRequest.cc index 5e3e919d5..93ca23fd0 100644 --- a/facebody/src/model/RetouchSkinRequest.cc +++ b/facebody/src/model/RetouchSkinRequest.cc @@ -1,62 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::RetouchSkinRequest; - -RetouchSkinRequest::RetouchSkinRequest() : - RpcServiceRequest("facebody", "2019-12-30", "RetouchSkin") -{ - setMethod(HttpRequest::Method::Post); -} - -RetouchSkinRequest::~RetouchSkinRequest() -{} - -float RetouchSkinRequest::getRetouchDegree()const -{ - return retouchDegree_; + */ + +#include + +using AlibabaCloud::Facebody::Model::RetouchSkinRequest; + +RetouchSkinRequest::RetouchSkinRequest() + : RpcServiceRequest("facebody", "2019-12-30", "RetouchSkin") { + setMethod(HttpRequest::Method::Post); } -void RetouchSkinRequest::setRetouchDegree(float retouchDegree) -{ - retouchDegree_ = retouchDegree; - setBodyParameter("RetouchDegree", std::to_string(retouchDegree)); +RetouchSkinRequest::~RetouchSkinRequest() {} + +bool RetouchSkinRequest::getFormatResultToJson() const { + return formatResultToJson_; } -float RetouchSkinRequest::getWhiteningDegree()const -{ - return whiteningDegree_; +void RetouchSkinRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void RetouchSkinRequest::setWhiteningDegree(float whiteningDegree) -{ - whiteningDegree_ = whiteningDegree; - setBodyParameter("WhiteningDegree", std::to_string(whiteningDegree)); +float RetouchSkinRequest::getRetouchDegree() const { + return retouchDegree_; } -std::string RetouchSkinRequest::getImageURL()const -{ - return imageURL_; +void RetouchSkinRequest::setRetouchDegree(float retouchDegree) { + retouchDegree_ = retouchDegree; + setBodyParameter(std::string("RetouchDegree"), std::to_string(retouchDegree)); } -void RetouchSkinRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +float RetouchSkinRequest::getWhiteningDegree() const { + return whiteningDegree_; +} + +void RetouchSkinRequest::setWhiteningDegree(float whiteningDegree) { + whiteningDegree_ = whiteningDegree; + setBodyParameter(std::string("WhiteningDegree"), std::to_string(whiteningDegree)); +} + +std::string RetouchSkinRequest::getOssFile() const { + return ossFile_; +} + +void RetouchSkinRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string RetouchSkinRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void RetouchSkinRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string RetouchSkinRequest::getImageURL() const { + return imageURL_; +} + +void RetouchSkinRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/facebody/src/model/SearchBodyTraceRequest.cc b/facebody/src/model/SearchBodyTraceRequest.cc index 126784bb6..48e222d05 100644 --- a/facebody/src/model/SearchBodyTraceRequest.cc +++ b/facebody/src/model/SearchBodyTraceRequest.cc @@ -1,73 +1,93 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::SearchBodyTraceRequest; - -SearchBodyTraceRequest::SearchBodyTraceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "SearchBodyTrace") -{ - setMethod(HttpRequest::Method::Post); -} - -SearchBodyTraceRequest::~SearchBodyTraceRequest() -{} - -float SearchBodyTraceRequest::getMinScore()const -{ - return minScore_; + */ + +#include + +using AlibabaCloud::Facebody::Model::SearchBodyTraceRequest; + +SearchBodyTraceRequest::SearchBodyTraceRequest() + : RpcServiceRequest("facebody", "2019-12-30", "SearchBodyTrace") { + setMethod(HttpRequest::Method::Post); } -void SearchBodyTraceRequest::setMinScore(float minScore) -{ - minScore_ = minScore; - setBodyParameter("MinScore", std::to_string(minScore)); +SearchBodyTraceRequest::~SearchBodyTraceRequest() {} + +float SearchBodyTraceRequest::getMinScore() const { + return minScore_; } -long SearchBodyTraceRequest::getLimit()const -{ - return limit_; +void SearchBodyTraceRequest::setMinScore(float minScore) { + minScore_ = minScore; + setBodyParameter(std::string("MinScore"), std::to_string(minScore)); } -void SearchBodyTraceRequest::setLimit(long limit) -{ - limit_ = limit; - setBodyParameter("Limit", std::to_string(limit)); +bool SearchBodyTraceRequest::getFormatResultToJson() const { + return formatResultToJson_; } -Array SearchBodyTraceRequest::getImages()const -{ - return images_; +void SearchBodyTraceRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void SearchBodyTraceRequest::setImages(const Array& images) -{ - images_ = images; - setBodyParameter("Images", std::to_string(images)); +long SearchBodyTraceRequest::getLimit() const { + return limit_; } -long SearchBodyTraceRequest::getDbId()const -{ - return dbId_; +void SearchBodyTraceRequest::setLimit(long limit) { + limit_ = limit; + setBodyParameter(std::string("Limit"), std::to_string(limit)); } -void SearchBodyTraceRequest::setDbId(long dbId) -{ - dbId_ = dbId; - setBodyParameter("DbId", std::to_string(dbId)); +std::string SearchBodyTraceRequest::getOssFile() const { + return ossFile_; +} + +void SearchBodyTraceRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::vector SearchBodyTraceRequest::getImages() const { + return images_; +} + +void SearchBodyTraceRequest::setImages(const std::vector &images) { + images_ = images; + for(int dep1 = 0; dep1 != images.size(); dep1++) { + setBodyParameter(std::string("Images") + "." + std::to_string(dep1 + 1) + ".ImageURL", images[dep1].imageURL); + setBodyParameter(std::string("Images") + "." + std::to_string(dep1 + 1) + ".ImageData", images[dep1].imageData); + } +} + +std::string SearchBodyTraceRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SearchBodyTraceRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +long SearchBodyTraceRequest::getDbId() const { + return dbId_; +} + +void SearchBodyTraceRequest::setDbId(long dbId) { + dbId_ = dbId; + setBodyParameter(std::string("DbId"), std::to_string(dbId)); } diff --git a/facebody/src/model/SearchBodyTraceResult.cc b/facebody/src/model/SearchBodyTraceResult.cc index 71f3a1709..315ea50c4 100644 --- a/facebody/src/model/SearchBodyTraceResult.cc +++ b/facebody/src/model/SearchBodyTraceResult.cc @@ -44,22 +44,22 @@ void SearchBodyTraceResult::parse(const std::string &payload) for (auto dataNodeMatchListTrace : allMatchListNode) { Data::Trace traceObject; - if(!dataNodeMatchListTrace["Score"].isNull()) - traceObject.score = std::stof(dataNodeMatchListTrace["Score"].asString()); + if(!dataNodeMatchListTrace["DbId"].isNull()) + traceObject.dbId = std::stol(dataNodeMatchListTrace["DbId"].asString()); if(!dataNodeMatchListTrace["PersonId"].isNull()) traceObject.personId = std::stol(dataNodeMatchListTrace["PersonId"].asString()); if(!dataNodeMatchListTrace["TraceId"].isNull()) traceObject.traceId = std::stol(dataNodeMatchListTrace["TraceId"].asString()); - if(!dataNodeMatchListTrace["DbId"].isNull()) - traceObject.dbId = std::stol(dataNodeMatchListTrace["DbId"].asString()); + if(!dataNodeMatchListTrace["Score"].isNull()) + traceObject.score = std::stof(dataNodeMatchListTrace["Score"].asString()); if(!dataNodeMatchListTrace["ExtraData"].isNull()) traceObject.extraData = dataNodeMatchListTrace["ExtraData"].asString(); data_.matchList.push_back(traceObject); } - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } diff --git a/facebody/src/model/SearchFaceRequest.cc b/facebody/src/model/SearchFaceRequest.cc index da9bd7b5a..f7b5330ca 100644 --- a/facebody/src/model/SearchFaceRequest.cc +++ b/facebody/src/model/SearchFaceRequest.cc @@ -1,95 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::SearchFaceRequest; - -SearchFaceRequest::SearchFaceRequest() : - RpcServiceRequest("facebody", "2019-12-30", "SearchFace") -{ - setMethod(HttpRequest::Method::Post); -} - -SearchFaceRequest::~SearchFaceRequest() -{} - -long SearchFaceRequest::getMaxFaceNum()const -{ - return maxFaceNum_; + */ + +#include + +using AlibabaCloud::Facebody::Model::SearchFaceRequest; + +SearchFaceRequest::SearchFaceRequest() + : RpcServiceRequest("facebody", "2019-12-30", "SearchFace") { + setMethod(HttpRequest::Method::Post); } -void SearchFaceRequest::setMaxFaceNum(long maxFaceNum) -{ - maxFaceNum_ = maxFaceNum; - setBodyParameter("MaxFaceNum", std::to_string(maxFaceNum)); +SearchFaceRequest::~SearchFaceRequest() {} + +long SearchFaceRequest::getMaxFaceNum() const { + return maxFaceNum_; } -float SearchFaceRequest::getQualityScoreThreshold()const -{ - return qualityScoreThreshold_; +void SearchFaceRequest::setMaxFaceNum(long maxFaceNum) { + maxFaceNum_ = maxFaceNum; + setBodyParameter(std::string("MaxFaceNum"), std::to_string(maxFaceNum)); } -void SearchFaceRequest::setQualityScoreThreshold(float qualityScoreThreshold) -{ - qualityScoreThreshold_ = qualityScoreThreshold; - setBodyParameter("QualityScoreThreshold", std::to_string(qualityScoreThreshold)); +bool SearchFaceRequest::getFormatResultToJson() const { + return formatResultToJson_; } -int SearchFaceRequest::getLimit()const -{ - return limit_; +void SearchFaceRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void SearchFaceRequest::setLimit(int limit) -{ - limit_ = limit; - setBodyParameter("Limit", std::to_string(limit)); +float SearchFaceRequest::getQualityScoreThreshold() const { + return qualityScoreThreshold_; } -std::string SearchFaceRequest::getDbNames()const -{ - return dbNames_; +void SearchFaceRequest::setQualityScoreThreshold(float qualityScoreThreshold) { + qualityScoreThreshold_ = qualityScoreThreshold; + setBodyParameter(std::string("QualityScoreThreshold"), std::to_string(qualityScoreThreshold)); } -void SearchFaceRequest::setDbNames(const std::string& dbNames) -{ - dbNames_ = dbNames; - setBodyParameter("DbNames", dbNames); +int SearchFaceRequest::getLimit() const { + return limit_; } -std::string SearchFaceRequest::getDbName()const -{ - return dbName_; +void SearchFaceRequest::setLimit(int limit) { + limit_ = limit; + setBodyParameter(std::string("Limit"), std::to_string(limit)); } -void SearchFaceRequest::setDbName(const std::string& dbName) -{ - dbName_ = dbName; - setBodyParameter("DbName", dbName); +std::string SearchFaceRequest::getOssFile() const { + return ossFile_; } -std::string SearchFaceRequest::getImageUrl()const -{ - return imageUrl_; +void SearchFaceRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void SearchFaceRequest::setImageUrl(const std::string& imageUrl) -{ - imageUrl_ = imageUrl; - setBodyParameter("ImageUrl", imageUrl); +std::string SearchFaceRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SearchFaceRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string SearchFaceRequest::getDbNames() const { + return dbNames_; +} + +void SearchFaceRequest::setDbNames(const std::string &dbNames) { + dbNames_ = dbNames; + setBodyParameter(std::string("DbNames"), dbNames); +} + +std::string SearchFaceRequest::getDbName() const { + return dbName_; +} + +void SearchFaceRequest::setDbName(const std::string &dbName) { + dbName_ = dbName; + setBodyParameter(std::string("DbName"), dbName); +} + +std::string SearchFaceRequest::getImageUrl() const { + return imageUrl_; +} + +void SearchFaceRequest::setImageUrl(const std::string &imageUrl) { + imageUrl_ = imageUrl; + setBodyParameter(std::string("ImageUrl"), imageUrl); } diff --git a/facebody/src/model/SwapFacialFeaturesRequest.cc b/facebody/src/model/SwapFacialFeaturesRequest.cc index d3a67513f..e5b4d1c47 100644 --- a/facebody/src/model/SwapFacialFeaturesRequest.cc +++ b/facebody/src/model/SwapFacialFeaturesRequest.cc @@ -1,84 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::SwapFacialFeaturesRequest; - -SwapFacialFeaturesRequest::SwapFacialFeaturesRequest() : - RpcServiceRequest("facebody", "2019-12-30", "SwapFacialFeatures") -{ - setMethod(HttpRequest::Method::Post); -} - -SwapFacialFeaturesRequest::~SwapFacialFeaturesRequest() -{} - -std::string SwapFacialFeaturesRequest::getTargetImageURL()const -{ - return targetImageURL_; + */ + +#include + +using AlibabaCloud::Facebody::Model::SwapFacialFeaturesRequest; + +SwapFacialFeaturesRequest::SwapFacialFeaturesRequest() + : RpcServiceRequest("facebody", "2019-12-30", "SwapFacialFeatures") { + setMethod(HttpRequest::Method::Post); } -void SwapFacialFeaturesRequest::setTargetImageURL(const std::string& targetImageURL) -{ - targetImageURL_ = targetImageURL; - setBodyParameter("TargetImageURL", targetImageURL); +SwapFacialFeaturesRequest::~SwapFacialFeaturesRequest() {} + +std::string SwapFacialFeaturesRequest::getTargetImageURL() const { + return targetImageURL_; } -std::string SwapFacialFeaturesRequest::getSourceImageData()const -{ - return sourceImageData_; +void SwapFacialFeaturesRequest::setTargetImageURL(const std::string &targetImageURL) { + targetImageURL_ = targetImageURL; + setBodyParameter(std::string("TargetImageURL"), targetImageURL); } -void SwapFacialFeaturesRequest::setSourceImageData(const std::string& sourceImageData) -{ - sourceImageData_ = sourceImageData; - setBodyParameter("SourceImageData", sourceImageData); +bool SwapFacialFeaturesRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string SwapFacialFeaturesRequest::getSourceImageURL()const -{ - return sourceImageURL_; +void SwapFacialFeaturesRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void SwapFacialFeaturesRequest::setSourceImageURL(const std::string& sourceImageURL) -{ - sourceImageURL_ = sourceImageURL; - setBodyParameter("SourceImageURL", sourceImageURL); +std::string SwapFacialFeaturesRequest::getSourceImageData() const { + return sourceImageData_; } -std::string SwapFacialFeaturesRequest::getTargetImageData()const -{ - return targetImageData_; +void SwapFacialFeaturesRequest::setSourceImageData(const std::string &sourceImageData) { + sourceImageData_ = sourceImageData; + setBodyParameter(std::string("SourceImageData"), sourceImageData); } -void SwapFacialFeaturesRequest::setTargetImageData(const std::string& targetImageData) -{ - targetImageData_ = targetImageData; - setBodyParameter("TargetImageData", targetImageData); +std::string SwapFacialFeaturesRequest::getOssFile() const { + return ossFile_; } -std::string SwapFacialFeaturesRequest::getEditPart()const -{ - return editPart_; +void SwapFacialFeaturesRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void SwapFacialFeaturesRequest::setEditPart(const std::string& editPart) -{ - editPart_ = editPart; - setBodyParameter("EditPart", editPart); +std::string SwapFacialFeaturesRequest::getSourceImageURL() const { + return sourceImageURL_; +} + +void SwapFacialFeaturesRequest::setSourceImageURL(const std::string &sourceImageURL) { + sourceImageURL_ = sourceImageURL; + setBodyParameter(std::string("SourceImageURL"), sourceImageURL); +} + +std::string SwapFacialFeaturesRequest::getTargetImageData() const { + return targetImageData_; +} + +void SwapFacialFeaturesRequest::setTargetImageData(const std::string &targetImageData) { + targetImageData_ = targetImageData; + setBodyParameter(std::string("TargetImageData"), targetImageData); +} + +std::string SwapFacialFeaturesRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SwapFacialFeaturesRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string SwapFacialFeaturesRequest::getEditPart() const { + return editPart_; +} + +void SwapFacialFeaturesRequest::setEditPart(const std::string &editPart) { + editPart_ = editPart; + setBodyParameter(std::string("EditPart"), editPart); } diff --git a/facebody/src/model/UpdateFaceEntityRequest.cc b/facebody/src/model/UpdateFaceEntityRequest.cc index c0c8f1315..fc286db8a 100644 --- a/facebody/src/model/UpdateFaceEntityRequest.cc +++ b/facebody/src/model/UpdateFaceEntityRequest.cc @@ -1,62 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::UpdateFaceEntityRequest; - -UpdateFaceEntityRequest::UpdateFaceEntityRequest() : - RpcServiceRequest("facebody", "2019-12-30", "UpdateFaceEntity") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateFaceEntityRequest::~UpdateFaceEntityRequest() -{} - -std::string UpdateFaceEntityRequest::getEntityId()const -{ - return entityId_; + */ + +#include + +using AlibabaCloud::Facebody::Model::UpdateFaceEntityRequest; + +UpdateFaceEntityRequest::UpdateFaceEntityRequest() + : RpcServiceRequest("facebody", "2019-12-30", "UpdateFaceEntity") { + setMethod(HttpRequest::Method::Post); } -void UpdateFaceEntityRequest::setEntityId(const std::string& entityId) -{ - entityId_ = entityId; - setBodyParameter("EntityId", entityId); +UpdateFaceEntityRequest::~UpdateFaceEntityRequest() {} + +std::string UpdateFaceEntityRequest::getEntityId() const { + return entityId_; } -std::string UpdateFaceEntityRequest::getLabels()const -{ - return labels_; +void UpdateFaceEntityRequest::setEntityId(const std::string &entityId) { + entityId_ = entityId; + setBodyParameter(std::string("EntityId"), entityId); } -void UpdateFaceEntityRequest::setLabels(const std::string& labels) -{ - labels_ = labels; - setBodyParameter("Labels", labels); +bool UpdateFaceEntityRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string UpdateFaceEntityRequest::getDbName()const -{ - return dbName_; +void UpdateFaceEntityRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void UpdateFaceEntityRequest::setDbName(const std::string& dbName) -{ - dbName_ = dbName; - setBodyParameter("DbName", dbName); +std::string UpdateFaceEntityRequest::getOssFile() const { + return ossFile_; +} + +void UpdateFaceEntityRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string UpdateFaceEntityRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void UpdateFaceEntityRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string UpdateFaceEntityRequest::getLabels() const { + return labels_; +} + +void UpdateFaceEntityRequest::setLabels(const std::string &labels) { + labels_ = labels; + setBodyParameter(std::string("Labels"), labels); +} + +std::string UpdateFaceEntityRequest::getDbName() const { + return dbName_; +} + +void UpdateFaceEntityRequest::setDbName(const std::string &dbName) { + dbName_ = dbName; + setBodyParameter(std::string("DbName"), dbName); } diff --git a/facebody/src/model/VerifyFaceMaskRequest.cc b/facebody/src/model/VerifyFaceMaskRequest.cc index e3c944bc0..0ca16776c 100644 --- a/facebody/src/model/VerifyFaceMaskRequest.cc +++ b/facebody/src/model/VerifyFaceMaskRequest.cc @@ -1,73 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud 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. - */ - -#include - -using AlibabaCloud::Facebody::Model::VerifyFaceMaskRequest; - -VerifyFaceMaskRequest::VerifyFaceMaskRequest() : - RpcServiceRequest("facebody", "2019-12-30", "VerifyFaceMask") -{ - setMethod(HttpRequest::Method::Post); -} - -VerifyFaceMaskRequest::~VerifyFaceMaskRequest() -{} - -std::string VerifyFaceMaskRequest::getRefData()const -{ - return refData_; + */ + +#include + +using AlibabaCloud::Facebody::Model::VerifyFaceMaskRequest; + +VerifyFaceMaskRequest::VerifyFaceMaskRequest() + : RpcServiceRequest("facebody", "2019-12-30", "VerifyFaceMask") { + setMethod(HttpRequest::Method::Post); } -void VerifyFaceMaskRequest::setRefData(const std::string& refData) -{ - refData_ = refData; - setBodyParameter("RefData", refData); +VerifyFaceMaskRequest::~VerifyFaceMaskRequest() {} + +bool VerifyFaceMaskRequest::getFormatResultToJson() const { + return formatResultToJson_; } -std::string VerifyFaceMaskRequest::getImageData()const -{ - return imageData_; +void VerifyFaceMaskRequest::setFormatResultToJson(bool formatResultToJson) { + formatResultToJson_ = formatResultToJson; + setParameter(std::string("FormatResultToJson"), formatResultToJson ? "true" : "false"); } -void VerifyFaceMaskRequest::setImageData(const std::string& imageData) -{ - imageData_ = imageData; - setBodyParameter("ImageData", imageData); +std::string VerifyFaceMaskRequest::getRefData() const { + return refData_; } -std::string VerifyFaceMaskRequest::getImageURL()const -{ - return imageURL_; +void VerifyFaceMaskRequest::setRefData(const std::string &refData) { + refData_ = refData; + setBodyParameter(std::string("RefData"), refData); } -void VerifyFaceMaskRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +std::string VerifyFaceMaskRequest::getOssFile() const { + return ossFile_; } -std::string VerifyFaceMaskRequest::getRefUrl()const -{ - return refUrl_; +void VerifyFaceMaskRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void VerifyFaceMaskRequest::setRefUrl(const std::string& refUrl) -{ - refUrl_ = refUrl; - setBodyParameter("RefUrl", refUrl); +std::string VerifyFaceMaskRequest::getImageData() const { + return imageData_; +} + +void VerifyFaceMaskRequest::setImageData(const std::string &imageData) { + imageData_ = imageData; + setBodyParameter(std::string("ImageData"), imageData); +} + +std::string VerifyFaceMaskRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void VerifyFaceMaskRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string VerifyFaceMaskRequest::getImageURL() const { + return imageURL_; +} + +void VerifyFaceMaskRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); +} + +std::string VerifyFaceMaskRequest::getRefUrl() const { + return refUrl_; +} + +void VerifyFaceMaskRequest::setRefUrl(const std::string &refUrl) { + refUrl_ = refUrl; + setBodyParameter(std::string("RefUrl"), refUrl); } diff --git a/facebody/src/model/VerifyFaceMaskResult.cc b/facebody/src/model/VerifyFaceMaskResult.cc index f5d877d0a..4b43ec0bd 100644 --- a/facebody/src/model/VerifyFaceMaskResult.cc +++ b/facebody/src/model/VerifyFaceMaskResult.cc @@ -40,10 +40,10 @@ void VerifyFaceMaskResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["Confidence"].isNull()) - data_.confidence = std::stof(dataNode["Confidence"].asString()); if(!dataNode["Mask"].isNull()) data_.mask = std::stoi(dataNode["Mask"].asString()); + if(!dataNode["Confidence"].isNull()) + data_.confidence = std::stof(dataNode["Confidence"].asString()); if(!dataNode["MaskRef"].isNull()) data_.maskRef = std::stoi(dataNode["MaskRef"].asString()); auto allThresholds = dataNode["Thresholds"]["Thresholds"];