diff --git a/VERSION b/VERSION index c16940272..d7569c86a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1284 \ No newline at end of file +1.36.1285 \ No newline at end of file diff --git a/imageseg/include/alibabacloud/imageseg/model/ChangeSkyRequest.h b/imageseg/include/alibabacloud/imageseg/model/ChangeSkyRequest.h index 26da67648..33e964107 100644 --- a/imageseg/include/alibabacloud/imageseg/model/ChangeSkyRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/ChangeSkyRequest.h @@ -1,51 +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_IMAGESEG_MODEL_CHANGESKYREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_CHANGESKYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT ChangeSkyRequest : public RpcServiceRequest - { - - public: - ChangeSkyRequest(); - ~ChangeSkyRequest(); - - std::string getReplaceImageURL()const; - void setReplaceImageURL(const std::string& replaceImageURL); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string replaceImageURL_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_CHANGESKYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_CHANGESKYREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_CHANGESKYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT ChangeSkyRequest : public RpcServiceRequest { +public: + ChangeSkyRequest(); + ~ChangeSkyRequest(); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getReplaceImageURL() const; + void setReplaceImageURL(const std::string &replaceImageURL); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + std::string ossFile_; + std::string replaceImageURL_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_CHANGESKYREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/GetAsyncJobResultRequest.h b/imageseg/include/alibabacloud/imageseg/model/GetAsyncJobResultRequest.h index 21f455ff0..6bc54e074 100644 --- a/imageseg/include/alibabacloud/imageseg/model/GetAsyncJobResultRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/GetAsyncJobResultRequest.h @@ -1,51 +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_IMAGESEG_MODEL_GETASYNCJOBRESULTREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_GETASYNCJOBRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT GetAsyncJobResultRequest : public RpcServiceRequest - { - - public: - GetAsyncJobResultRequest(); - ~GetAsyncJobResultRequest(); - - bool getAsync()const; - void setAsync(bool async); - std::string getJobId()const; - void setJobId(const std::string& jobId); - - private: - bool async_; - std::string jobId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_GETASYNCJOBRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_GETASYNCJOBRESULTREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_GETASYNCJOBRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT GetAsyncJobResultRequest : public RpcServiceRequest { +public: + GetAsyncJobResultRequest(); + ~GetAsyncJobResultRequest(); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + bool getAsync() const; + void setAsync(bool async); + +private: + std::string jobId_; + std::string ossFile_; + std::string requestProxyBy_; + bool async_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_GETASYNCJOBRESULTREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/ParseFaceRequest.h b/imageseg/include/alibabacloud/imageseg/model/ParseFaceRequest.h index 700d04c08..c4ea1f1a8 100644 --- a/imageseg/include/alibabacloud/imageseg/model/ParseFaceRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/ParseFaceRequest.h @@ -1,48 +1,48 @@ /* * 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_IMAGESEG_MODEL_PARSEFACEREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_PARSEFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT ParseFaceRequest : public RpcServiceRequest - { - - public: - ParseFaceRequest(); - ~ParseFaceRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_PARSEFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_PARSEFACEREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_PARSEFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT ParseFaceRequest : public RpcServiceRequest { +public: + ParseFaceRequest(); + ~ParseFaceRequest(); + 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 ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_PARSEFACEREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/RefineMaskRequest.h b/imageseg/include/alibabacloud/imageseg/model/RefineMaskRequest.h index c8afbf278..6e2267e2c 100644 --- a/imageseg/include/alibabacloud/imageseg/model/RefineMaskRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/RefineMaskRequest.h @@ -1,51 +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_IMAGESEG_MODEL_REFINEMASKREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_REFINEMASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT RefineMaskRequest : public RpcServiceRequest - { - - public: - RefineMaskRequest(); - ~RefineMaskRequest(); - - std::string getMaskImageURL()const; - void setMaskImageURL(const std::string& maskImageURL); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string maskImageURL_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_REFINEMASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_REFINEMASKREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_REFINEMASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT RefineMaskRequest : public RpcServiceRequest { +public: + RefineMaskRequest(); + ~RefineMaskRequest(); + std::string getMaskImageURL() const; + void setMaskImageURL(const std::string &maskImageURL); + 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 maskImageURL_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_REFINEMASKREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/SegmentAnimalRequest.h b/imageseg/include/alibabacloud/imageseg/model/SegmentAnimalRequest.h index 2de67d014..8a95ab287 100644 --- a/imageseg/include/alibabacloud/imageseg/model/SegmentAnimalRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/SegmentAnimalRequest.h @@ -1,51 +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_IMAGESEG_MODEL_SEGMENTANIMALREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTANIMALREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT SegmentAnimalRequest : public RpcServiceRequest - { - - public: - SegmentAnimalRequest(); - ~SegmentAnimalRequest(); - - std::string getReturnForm()const; - void setReturnForm(const std::string& returnForm); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string returnForm_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTANIMALREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTANIMALREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTANIMALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT SegmentAnimalRequest : public RpcServiceRequest { +public: + SegmentAnimalRequest(); + ~SegmentAnimalRequest(); + std::string getReturnForm() const; + void setReturnForm(const std::string &returnForm); + 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 returnForm_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTANIMALREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/SegmentBodyRequest.h b/imageseg/include/alibabacloud/imageseg/model/SegmentBodyRequest.h index 6a9f4ff8d..8a3de2753 100644 --- a/imageseg/include/alibabacloud/imageseg/model/SegmentBodyRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/SegmentBodyRequest.h @@ -1,54 +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_IMAGESEG_MODEL_SEGMENTBODYREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTBODYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT SegmentBodyRequest : public RpcServiceRequest - { - - public: - SegmentBodyRequest(); - ~SegmentBodyRequest(); - - std::string getReturnForm()const; - void setReturnForm(const std::string& returnForm); - bool getAsync()const; - void setAsync(bool async); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string returnForm_; - bool async_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTBODYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTBODYREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTBODYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT SegmentBodyRequest : public RpcServiceRequest { +public: + SegmentBodyRequest(); + ~SegmentBodyRequest(); + std::string getReturnForm() const; + void setReturnForm(const std::string &returnForm); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + bool getAsync() const; + void setAsync(bool async); + std::string getImageURL() const; + void setImageURL(const std::string &imageURL); + +private: + std::string returnForm_; + std::string ossFile_; + std::string requestProxyBy_; + bool async_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTBODYREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/SegmentClothRequest.h b/imageseg/include/alibabacloud/imageseg/model/SegmentClothRequest.h index d9f3f42b2..f588dd56b 100644 --- a/imageseg/include/alibabacloud/imageseg/model/SegmentClothRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/SegmentClothRequest.h @@ -1,48 +1,48 @@ /* * 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_IMAGESEG_MODEL_SEGMENTCLOTHREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTCLOTHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT SegmentClothRequest : public RpcServiceRequest - { - - public: - SegmentClothRequest(); - ~SegmentClothRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTCLOTHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTCLOTHREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTCLOTHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT SegmentClothRequest : public RpcServiceRequest { +public: + SegmentClothRequest(); + ~SegmentClothRequest(); + 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 ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTCLOTHREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/SegmentCommodityRequest.h b/imageseg/include/alibabacloud/imageseg/model/SegmentCommodityRequest.h index 5b1e39616..8a04b162c 100644 --- a/imageseg/include/alibabacloud/imageseg/model/SegmentCommodityRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/SegmentCommodityRequest.h @@ -1,51 +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_IMAGESEG_MODEL_SEGMENTCOMMODITYREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTCOMMODITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT SegmentCommodityRequest : public RpcServiceRequest - { - - public: - SegmentCommodityRequest(); - ~SegmentCommodityRequest(); - - std::string getReturnForm()const; - void setReturnForm(const std::string& returnForm); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string returnForm_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTCOMMODITYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTCOMMODITYREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTCOMMODITYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT SegmentCommodityRequest : public RpcServiceRequest { +public: + SegmentCommodityRequest(); + ~SegmentCommodityRequest(); + std::string getReturnForm() const; + void setReturnForm(const std::string &returnForm); + 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 returnForm_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTCOMMODITYREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/SegmentCommonImageRequest.h b/imageseg/include/alibabacloud/imageseg/model/SegmentCommonImageRequest.h index 5115b99e5..b587316f4 100644 --- a/imageseg/include/alibabacloud/imageseg/model/SegmentCommonImageRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/SegmentCommonImageRequest.h @@ -1,51 +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_IMAGESEG_MODEL_SEGMENTCOMMONIMAGEREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTCOMMONIMAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT SegmentCommonImageRequest : public RpcServiceRequest - { - - public: - SegmentCommonImageRequest(); - ~SegmentCommonImageRequest(); - - std::string getReturnForm()const; - void setReturnForm(const std::string& returnForm); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string returnForm_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTCOMMONIMAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTCOMMONIMAGEREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTCOMMONIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT SegmentCommonImageRequest : public RpcServiceRequest { +public: + SegmentCommonImageRequest(); + ~SegmentCommonImageRequest(); + std::string getReturnForm() const; + void setReturnForm(const std::string &returnForm); + 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 returnForm_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTCOMMONIMAGEREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/SegmentFaceRequest.h b/imageseg/include/alibabacloud/imageseg/model/SegmentFaceRequest.h index 037d99e9c..0ec21d4f6 100644 --- a/imageseg/include/alibabacloud/imageseg/model/SegmentFaceRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/SegmentFaceRequest.h @@ -1,48 +1,48 @@ /* * 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_IMAGESEG_MODEL_SEGMENTFACEREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTFACEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT SegmentFaceRequest : public RpcServiceRequest - { - - public: - SegmentFaceRequest(); - ~SegmentFaceRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTFACEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTFACEREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT SegmentFaceRequest : public RpcServiceRequest { +public: + SegmentFaceRequest(); + ~SegmentFaceRequest(); + 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 ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTFACEREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/SegmentFoodRequest.h b/imageseg/include/alibabacloud/imageseg/model/SegmentFoodRequest.h index 671a066c2..d189d8827 100644 --- a/imageseg/include/alibabacloud/imageseg/model/SegmentFoodRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/SegmentFoodRequest.h @@ -1,51 +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_IMAGESEG_MODEL_SEGMENTFOODREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTFOODREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT SegmentFoodRequest : public RpcServiceRequest - { - - public: - SegmentFoodRequest(); - ~SegmentFoodRequest(); - - std::string getReturnForm()const; - void setReturnForm(const std::string& returnForm); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string returnForm_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTFOODREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTFOODREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTFOODREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT SegmentFoodRequest : public RpcServiceRequest { +public: + SegmentFoodRequest(); + ~SegmentFoodRequest(); + std::string getReturnForm() const; + void setReturnForm(const std::string &returnForm); + 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 returnForm_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTFOODREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/SegmentFurnitureRequest.h b/imageseg/include/alibabacloud/imageseg/model/SegmentFurnitureRequest.h index 26e0b9047..55dbba639 100644 --- a/imageseg/include/alibabacloud/imageseg/model/SegmentFurnitureRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/SegmentFurnitureRequest.h @@ -1,48 +1,48 @@ /* * 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_IMAGESEG_MODEL_SEGMENTFURNITUREREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTFURNITUREREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT SegmentFurnitureRequest : public RpcServiceRequest - { - - public: - SegmentFurnitureRequest(); - ~SegmentFurnitureRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTFURNITUREREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTFURNITUREREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTFURNITUREREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT SegmentFurnitureRequest : public RpcServiceRequest { +public: + SegmentFurnitureRequest(); + ~SegmentFurnitureRequest(); + 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 ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTFURNITUREREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/SegmentHDBodyRequest.h b/imageseg/include/alibabacloud/imageseg/model/SegmentHDBodyRequest.h index 937340916..b05470a76 100644 --- a/imageseg/include/alibabacloud/imageseg/model/SegmentHDBodyRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/SegmentHDBodyRequest.h @@ -1,48 +1,48 @@ /* * 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_IMAGESEG_MODEL_SEGMENTHDBODYREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHDBODYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT SegmentHDBodyRequest : public RpcServiceRequest - { - - public: - SegmentHDBodyRequest(); - ~SegmentHDBodyRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHDBODYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHDBODYREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHDBODYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT SegmentHDBodyRequest : public RpcServiceRequest { +public: + SegmentHDBodyRequest(); + ~SegmentHDBodyRequest(); + 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 ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHDBODYREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/SegmentHDCommonImageRequest.h b/imageseg/include/alibabacloud/imageseg/model/SegmentHDCommonImageRequest.h index 7f494dbd5..b52810edb 100644 --- a/imageseg/include/alibabacloud/imageseg/model/SegmentHDCommonImageRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/SegmentHDCommonImageRequest.h @@ -1,51 +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_IMAGESEG_MODEL_SEGMENTHDCOMMONIMAGEREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHDCOMMONIMAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT SegmentHDCommonImageRequest : public RpcServiceRequest - { - - public: - SegmentHDCommonImageRequest(); - ~SegmentHDCommonImageRequest(); - - bool getAsync()const; - void setAsync(bool async); - std::string getImageUrl()const; - void setImageUrl(const std::string& imageUrl); - - private: - bool async_; - std::string imageUrl_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHDCOMMONIMAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHDCOMMONIMAGEREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHDCOMMONIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT SegmentHDCommonImageRequest : public RpcServiceRequest { +public: + SegmentHDCommonImageRequest(); + ~SegmentHDCommonImageRequest(); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + bool getAsync() const; + void setAsync(bool async); + std::string getImageUrl() const; + void setImageUrl(const std::string &imageUrl); + +private: + std::string ossFile_; + std::string requestProxyBy_; + bool async_; + std::string imageUrl_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHDCOMMONIMAGEREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/SegmentHDSkyRequest.h b/imageseg/include/alibabacloud/imageseg/model/SegmentHDSkyRequest.h index fe58f9bdc..6e8c6d857 100644 --- a/imageseg/include/alibabacloud/imageseg/model/SegmentHDSkyRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/SegmentHDSkyRequest.h @@ -1,48 +1,48 @@ /* * 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_IMAGESEG_MODEL_SEGMENTHDSKYREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHDSKYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT SegmentHDSkyRequest : public RpcServiceRequest - { - - public: - SegmentHDSkyRequest(); - ~SegmentHDSkyRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHDSKYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHDSKYREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHDSKYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT SegmentHDSkyRequest : public RpcServiceRequest { +public: + SegmentHDSkyRequest(); + ~SegmentHDSkyRequest(); + 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 ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHDSKYREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/SegmentHairRequest.h b/imageseg/include/alibabacloud/imageseg/model/SegmentHairRequest.h index 412765f9e..499ec0669 100644 --- a/imageseg/include/alibabacloud/imageseg/model/SegmentHairRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/SegmentHairRequest.h @@ -1,48 +1,48 @@ /* * 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_IMAGESEG_MODEL_SEGMENTHAIRREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHAIRREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT SegmentHairRequest : public RpcServiceRequest - { - - public: - SegmentHairRequest(); - ~SegmentHairRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHAIRREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHAIRREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHAIRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT SegmentHairRequest : public RpcServiceRequest { +public: + SegmentHairRequest(); + ~SegmentHairRequest(); + 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 ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHAIRREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/SegmentHeadRequest.h b/imageseg/include/alibabacloud/imageseg/model/SegmentHeadRequest.h index 5514213ed..87b1733bb 100644 --- a/imageseg/include/alibabacloud/imageseg/model/SegmentHeadRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/SegmentHeadRequest.h @@ -1,51 +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_IMAGESEG_MODEL_SEGMENTHEADREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHEADREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT SegmentHeadRequest : public RpcServiceRequest - { - - public: - SegmentHeadRequest(); - ~SegmentHeadRequest(); - - std::string getReturnForm()const; - void setReturnForm(const std::string& returnForm); - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string returnForm_; - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHEADREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHEADREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHEADREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT SegmentHeadRequest : public RpcServiceRequest { +public: + SegmentHeadRequest(); + ~SegmentHeadRequest(); + std::string getReturnForm() const; + void setReturnForm(const std::string &returnForm); + 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 returnForm_; + std::string ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTHEADREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/SegmentHeadResult.h b/imageseg/include/alibabacloud/imageseg/model/SegmentHeadResult.h index e4a267836..2094e5ff2 100644 --- a/imageseg/include/alibabacloud/imageseg/model/SegmentHeadResult.h +++ b/imageseg/include/alibabacloud/imageseg/model/SegmentHeadResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud struct Element { int x; - int y; std::string imageURL; + int y; int height; int width; }; diff --git a/imageseg/include/alibabacloud/imageseg/model/SegmentLogoRequest.h b/imageseg/include/alibabacloud/imageseg/model/SegmentLogoRequest.h index cceede480..eec7dbadb 100644 --- a/imageseg/include/alibabacloud/imageseg/model/SegmentLogoRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/SegmentLogoRequest.h @@ -1,48 +1,48 @@ /* * 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_IMAGESEG_MODEL_SEGMENTLOGOREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTLOGOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT SegmentLogoRequest : public RpcServiceRequest - { - - public: - SegmentLogoRequest(); - ~SegmentLogoRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTLOGOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTLOGOREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTLOGOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT SegmentLogoRequest : public RpcServiceRequest { +public: + SegmentLogoRequest(); + ~SegmentLogoRequest(); + 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 ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTLOGOREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/SegmentSceneRequest.h b/imageseg/include/alibabacloud/imageseg/model/SegmentSceneRequest.h index 7834408b9..6b9a9d3c6 100644 --- a/imageseg/include/alibabacloud/imageseg/model/SegmentSceneRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/SegmentSceneRequest.h @@ -1,48 +1,48 @@ /* * 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_IMAGESEG_MODEL_SEGMENTSCENEREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTSCENEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT SegmentSceneRequest : public RpcServiceRequest - { - - public: - SegmentSceneRequest(); - ~SegmentSceneRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTSCENEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTSCENEREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTSCENEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT SegmentSceneRequest : public RpcServiceRequest { +public: + SegmentSceneRequest(); + ~SegmentSceneRequest(); + 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 ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTSCENEREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/SegmentSkinRequest.h b/imageseg/include/alibabacloud/imageseg/model/SegmentSkinRequest.h index 45c936ab8..f4b65ff74 100644 --- a/imageseg/include/alibabacloud/imageseg/model/SegmentSkinRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/SegmentSkinRequest.h @@ -1,48 +1,48 @@ /* * 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_IMAGESEG_MODEL_SEGMENTSKINREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTSKINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT SegmentSkinRequest : public RpcServiceRequest - { - - public: - SegmentSkinRequest(); - ~SegmentSkinRequest(); - - std::string getURL()const; - void setURL(const std::string& uRL); - - private: - std::string uRL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTSKINREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTSKINREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTSKINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT SegmentSkinRequest : public RpcServiceRequest { +public: + SegmentSkinRequest(); + ~SegmentSkinRequest(); + std::string getOssFile() const; + void setOssFile(const std::string &ossFile); + std::string getRequestProxyBy() const; + void setRequestProxyBy(const std::string &requestProxyBy); + std::string getURL() const; + void setURL(const std::string &uRL); + +private: + std::string ossFile_; + std::string requestProxyBy_; + std::string uRL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTSKINREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/SegmentSkyRequest.h b/imageseg/include/alibabacloud/imageseg/model/SegmentSkyRequest.h index a2b50b679..a13d4fc42 100644 --- a/imageseg/include/alibabacloud/imageseg/model/SegmentSkyRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/SegmentSkyRequest.h @@ -1,48 +1,48 @@ /* * 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_IMAGESEG_MODEL_SEGMENTSKYREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTSKYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT SegmentSkyRequest : public RpcServiceRequest - { - - public: - SegmentSkyRequest(); - ~SegmentSkyRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTSKYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTSKYREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTSKYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT SegmentSkyRequest : public RpcServiceRequest { +public: + SegmentSkyRequest(); + ~SegmentSkyRequest(); + 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 ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTSKYREQUEST_H_ diff --git a/imageseg/include/alibabacloud/imageseg/model/SegmentVehicleRequest.h b/imageseg/include/alibabacloud/imageseg/model/SegmentVehicleRequest.h index 9837265c9..8a7582f9d 100644 --- a/imageseg/include/alibabacloud/imageseg/model/SegmentVehicleRequest.h +++ b/imageseg/include/alibabacloud/imageseg/model/SegmentVehicleRequest.h @@ -1,48 +1,48 @@ /* * 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_IMAGESEG_MODEL_SEGMENTVEHICLEREQUEST_H_ -#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTVEHICLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Imageseg - { - namespace Model - { - class ALIBABACLOUD_IMAGESEG_EXPORT SegmentVehicleRequest : public RpcServiceRequest - { - - public: - SegmentVehicleRequest(); - ~SegmentVehicleRequest(); - - std::string getImageURL()const; - void setImageURL(const std::string& imageURL); - - private: - std::string imageURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTVEHICLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTVEHICLEREQUEST_H_ +#define ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTVEHICLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Imageseg { +namespace Model { +class ALIBABACLOUD_IMAGESEG_EXPORT SegmentVehicleRequest : public RpcServiceRequest { +public: + SegmentVehicleRequest(); + ~SegmentVehicleRequest(); + 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 ossFile_; + std::string requestProxyBy_; + std::string imageURL_; +}; +} // namespace Model +} // namespace Imageseg +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_IMAGESEG_MODEL_SEGMENTVEHICLEREQUEST_H_ diff --git a/imageseg/src/ImagesegClient.cc b/imageseg/src/ImagesegClient.cc index c72d83abf..c6d298e97 100644 --- a/imageseg/src/ImagesegClient.cc +++ b/imageseg/src/ImagesegClient.cc @@ -31,21 +31,21 @@ ImagesegClient::ImagesegClient(const Credentials &credentials, const ClientConfi RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "imageseg"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } ImagesegClient::ImagesegClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "imageseg"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } ImagesegClient::ImagesegClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "imageseg"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); } ImagesegClient::~ImagesegClient() diff --git a/imageseg/src/model/ChangeSkyRequest.cc b/imageseg/src/model/ChangeSkyRequest.cc index 48a6ce940..a746e18dd 100644 --- a/imageseg/src/model/ChangeSkyRequest.cc +++ b/imageseg/src/model/ChangeSkyRequest.cc @@ -1,51 +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::Imageseg::Model::ChangeSkyRequest; - -ChangeSkyRequest::ChangeSkyRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "ChangeSky") -{ - setMethod(HttpRequest::Method::Post); -} - -ChangeSkyRequest::~ChangeSkyRequest() -{} - -std::string ChangeSkyRequest::getReplaceImageURL()const -{ - return replaceImageURL_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::ChangeSkyRequest; + +ChangeSkyRequest::ChangeSkyRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "ChangeSky") { + setMethod(HttpRequest::Method::Post); } -void ChangeSkyRequest::setReplaceImageURL(const std::string& replaceImageURL) -{ - replaceImageURL_ = replaceImageURL; - setParameter("ReplaceImageURL", replaceImageURL); +ChangeSkyRequest::~ChangeSkyRequest() {} + +std::string ChangeSkyRequest::getOssFile() const { + return ossFile_; } -std::string ChangeSkyRequest::getImageURL()const -{ - return imageURL_; +void ChangeSkyRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void ChangeSkyRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setParameter("ImageURL", imageURL); +std::string ChangeSkyRequest::getReplaceImageURL() const { + return replaceImageURL_; +} + +void ChangeSkyRequest::setReplaceImageURL(const std::string &replaceImageURL) { + replaceImageURL_ = replaceImageURL; + setParameter(std::string("ReplaceImageURL"), replaceImageURL); +} + +std::string ChangeSkyRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void ChangeSkyRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string ChangeSkyRequest::getImageURL() const { + return imageURL_; +} + +void ChangeSkyRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setParameter(std::string("ImageURL"), imageURL); } diff --git a/imageseg/src/model/GetAsyncJobResultRequest.cc b/imageseg/src/model/GetAsyncJobResultRequest.cc index 06069830b..146d8b8f1 100644 --- a/imageseg/src/model/GetAsyncJobResultRequest.cc +++ b/imageseg/src/model/GetAsyncJobResultRequest.cc @@ -1,51 +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::Imageseg::Model::GetAsyncJobResultRequest; - -GetAsyncJobResultRequest::GetAsyncJobResultRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "GetAsyncJobResult") -{ - setMethod(HttpRequest::Method::Post); -} - -GetAsyncJobResultRequest::~GetAsyncJobResultRequest() -{} - -bool GetAsyncJobResultRequest::getAsync()const -{ - return async_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::GetAsyncJobResultRequest; + +GetAsyncJobResultRequest::GetAsyncJobResultRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "GetAsyncJobResult") { + setMethod(HttpRequest::Method::Post); } -void GetAsyncJobResultRequest::setAsync(bool async) -{ - async_ = async; - setBodyParameter("Async", async ? "true" : "false"); +GetAsyncJobResultRequest::~GetAsyncJobResultRequest() {} + +std::string GetAsyncJobResultRequest::getJobId() const { + return jobId_; } -std::string GetAsyncJobResultRequest::getJobId()const -{ - return jobId_; +void GetAsyncJobResultRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setBodyParameter(std::string("JobId"), jobId); } -void GetAsyncJobResultRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setBodyParameter("JobId", jobId); +std::string GetAsyncJobResultRequest::getOssFile() const { + return ossFile_; +} + +void GetAsyncJobResultRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string GetAsyncJobResultRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void GetAsyncJobResultRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +bool GetAsyncJobResultRequest::getAsync() const { + return async_; +} + +void GetAsyncJobResultRequest::setAsync(bool async) { + async_ = async; + setBodyParameter(std::string("Async"), async ? "true" : "false"); } diff --git a/imageseg/src/model/GetAsyncJobResultResult.cc b/imageseg/src/model/GetAsyncJobResultResult.cc index fdd02a20a..3404f39d0 100644 --- a/imageseg/src/model/GetAsyncJobResultResult.cc +++ b/imageseg/src/model/GetAsyncJobResultResult.cc @@ -40,16 +40,16 @@ void GetAsyncJobResultResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - if(!dataNode["ErrorCode"].isNull()) - data_.errorCode = dataNode["ErrorCode"].asString(); - if(!dataNode["ErrorMessage"].isNull()) - data_.errorMessage = dataNode["ErrorMessage"].asString(); - if(!dataNode["JobId"].isNull()) - data_.jobId = dataNode["JobId"].asString(); - if(!dataNode["Result"].isNull()) - data_.result = dataNode["Result"].asString(); if(!dataNode["Status"].isNull()) data_.status = dataNode["Status"].asString(); + if(!dataNode["ErrorMessage"].isNull()) + data_.errorMessage = dataNode["ErrorMessage"].asString(); + if(!dataNode["Result"].isNull()) + data_.result = dataNode["Result"].asString(); + if(!dataNode["ErrorCode"].isNull()) + data_.errorCode = dataNode["ErrorCode"].asString(); + if(!dataNode["JobId"].isNull()) + data_.jobId = dataNode["JobId"].asString(); } diff --git a/imageseg/src/model/ParseFaceRequest.cc b/imageseg/src/model/ParseFaceRequest.cc index ef0fdf7d3..491c5fc6a 100644 --- a/imageseg/src/model/ParseFaceRequest.cc +++ b/imageseg/src/model/ParseFaceRequest.cc @@ -1,40 +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. - */ - -#include - -using AlibabaCloud::Imageseg::Model::ParseFaceRequest; - -ParseFaceRequest::ParseFaceRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "ParseFace") -{ - setMethod(HttpRequest::Method::Post); -} - -ParseFaceRequest::~ParseFaceRequest() -{} - -std::string ParseFaceRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::ParseFaceRequest; + +ParseFaceRequest::ParseFaceRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "ParseFace") { + setMethod(HttpRequest::Method::Post); } -void ParseFaceRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setParameter("ImageURL", imageURL); +ParseFaceRequest::~ParseFaceRequest() {} + +std::string ParseFaceRequest::getOssFile() const { + return ossFile_; +} + +void ParseFaceRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string ParseFaceRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void ParseFaceRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string ParseFaceRequest::getImageURL() const { + return imageURL_; +} + +void ParseFaceRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setParameter(std::string("ImageURL"), imageURL); } diff --git a/imageseg/src/model/ParseFaceResult.cc b/imageseg/src/model/ParseFaceResult.cc index 72f92d605..411d99d69 100644 --- a/imageseg/src/model/ParseFaceResult.cc +++ b/imageseg/src/model/ParseFaceResult.cc @@ -46,10 +46,10 @@ void ParseFaceResult::parse(const std::string &payload) for (auto dataNodeElementsElement : allElementsNode) { Data::Element elementObject; - if(!dataNodeElementsElement["Name"].isNull()) - elementObject.name = dataNodeElementsElement["Name"].asString(); if(!dataNodeElementsElement["ImageURL"].isNull()) elementObject.imageURL = dataNodeElementsElement["ImageURL"].asString(); + if(!dataNodeElementsElement["Name"].isNull()) + elementObject.name = dataNodeElementsElement["Name"].asString(); data_.elements.push_back(elementObject); } diff --git a/imageseg/src/model/RefineMaskRequest.cc b/imageseg/src/model/RefineMaskRequest.cc index dc04cdb0a..ba1737a92 100644 --- a/imageseg/src/model/RefineMaskRequest.cc +++ b/imageseg/src/model/RefineMaskRequest.cc @@ -1,51 +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::Imageseg::Model::RefineMaskRequest; - -RefineMaskRequest::RefineMaskRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "RefineMask") -{ - setMethod(HttpRequest::Method::Post); -} - -RefineMaskRequest::~RefineMaskRequest() -{} - -std::string RefineMaskRequest::getMaskImageURL()const -{ - return maskImageURL_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::RefineMaskRequest; + +RefineMaskRequest::RefineMaskRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "RefineMask") { + setMethod(HttpRequest::Method::Post); } -void RefineMaskRequest::setMaskImageURL(const std::string& maskImageURL) -{ - maskImageURL_ = maskImageURL; - setBodyParameter("MaskImageURL", maskImageURL); +RefineMaskRequest::~RefineMaskRequest() {} + +std::string RefineMaskRequest::getMaskImageURL() const { + return maskImageURL_; } -std::string RefineMaskRequest::getImageURL()const -{ - return imageURL_; +void RefineMaskRequest::setMaskImageURL(const std::string &maskImageURL) { + maskImageURL_ = maskImageURL; + setBodyParameter(std::string("MaskImageURL"), maskImageURL); } -void RefineMaskRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +std::string RefineMaskRequest::getOssFile() const { + return ossFile_; +} + +void RefineMaskRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string RefineMaskRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void RefineMaskRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string RefineMaskRequest::getImageURL() const { + return imageURL_; +} + +void RefineMaskRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/imageseg/src/model/SegmentAnimalRequest.cc b/imageseg/src/model/SegmentAnimalRequest.cc index ac0b88c39..97e71b4b9 100644 --- a/imageseg/src/model/SegmentAnimalRequest.cc +++ b/imageseg/src/model/SegmentAnimalRequest.cc @@ -1,51 +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::Imageseg::Model::SegmentAnimalRequest; - -SegmentAnimalRequest::SegmentAnimalRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "SegmentAnimal") -{ - setMethod(HttpRequest::Method::Post); -} - -SegmentAnimalRequest::~SegmentAnimalRequest() -{} - -std::string SegmentAnimalRequest::getReturnForm()const -{ - return returnForm_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::SegmentAnimalRequest; + +SegmentAnimalRequest::SegmentAnimalRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "SegmentAnimal") { + setMethod(HttpRequest::Method::Post); } -void SegmentAnimalRequest::setReturnForm(const std::string& returnForm) -{ - returnForm_ = returnForm; - setParameter("ReturnForm", returnForm); +SegmentAnimalRequest::~SegmentAnimalRequest() {} + +std::string SegmentAnimalRequest::getReturnForm() const { + return returnForm_; } -std::string SegmentAnimalRequest::getImageURL()const -{ - return imageURL_; +void SegmentAnimalRequest::setReturnForm(const std::string &returnForm) { + returnForm_ = returnForm; + setParameter(std::string("ReturnForm"), returnForm); } -void SegmentAnimalRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setParameter("ImageURL", imageURL); +std::string SegmentAnimalRequest::getOssFile() const { + return ossFile_; +} + +void SegmentAnimalRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string SegmentAnimalRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SegmentAnimalRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string SegmentAnimalRequest::getImageURL() const { + return imageURL_; +} + +void SegmentAnimalRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setParameter(std::string("ImageURL"), imageURL); } diff --git a/imageseg/src/model/SegmentBodyRequest.cc b/imageseg/src/model/SegmentBodyRequest.cc index 7287b6669..822b69ca8 100644 --- a/imageseg/src/model/SegmentBodyRequest.cc +++ b/imageseg/src/model/SegmentBodyRequest.cc @@ -1,62 +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::Imageseg::Model::SegmentBodyRequest; - -SegmentBodyRequest::SegmentBodyRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "SegmentBody") -{ - setMethod(HttpRequest::Method::Post); -} - -SegmentBodyRequest::~SegmentBodyRequest() -{} - -std::string SegmentBodyRequest::getReturnForm()const -{ - return returnForm_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::SegmentBodyRequest; + +SegmentBodyRequest::SegmentBodyRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "SegmentBody") { + setMethod(HttpRequest::Method::Post); } -void SegmentBodyRequest::setReturnForm(const std::string& returnForm) -{ - returnForm_ = returnForm; - setParameter("ReturnForm", returnForm); +SegmentBodyRequest::~SegmentBodyRequest() {} + +std::string SegmentBodyRequest::getReturnForm() const { + return returnForm_; } -bool SegmentBodyRequest::getAsync()const -{ - return async_; +void SegmentBodyRequest::setReturnForm(const std::string &returnForm) { + returnForm_ = returnForm; + setParameter(std::string("ReturnForm"), returnForm); } -void SegmentBodyRequest::setAsync(bool async) -{ - async_ = async; - setBodyParameter("Async", async ? "true" : "false"); +std::string SegmentBodyRequest::getOssFile() const { + return ossFile_; } -std::string SegmentBodyRequest::getImageURL()const -{ - return imageURL_; +void SegmentBodyRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void SegmentBodyRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setParameter("ImageURL", imageURL); +std::string SegmentBodyRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SegmentBodyRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +bool SegmentBodyRequest::getAsync() const { + return async_; +} + +void SegmentBodyRequest::setAsync(bool async) { + async_ = async; + setBodyParameter(std::string("Async"), async ? "true" : "false"); +} + +std::string SegmentBodyRequest::getImageURL() const { + return imageURL_; +} + +void SegmentBodyRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setParameter(std::string("ImageURL"), imageURL); } diff --git a/imageseg/src/model/SegmentClothRequest.cc b/imageseg/src/model/SegmentClothRequest.cc index a3bcebd70..2ca41e0c3 100644 --- a/imageseg/src/model/SegmentClothRequest.cc +++ b/imageseg/src/model/SegmentClothRequest.cc @@ -1,40 +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. - */ - -#include - -using AlibabaCloud::Imageseg::Model::SegmentClothRequest; - -SegmentClothRequest::SegmentClothRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "SegmentCloth") -{ - setMethod(HttpRequest::Method::Post); -} - -SegmentClothRequest::~SegmentClothRequest() -{} - -std::string SegmentClothRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::SegmentClothRequest; + +SegmentClothRequest::SegmentClothRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "SegmentCloth") { + setMethod(HttpRequest::Method::Post); } -void SegmentClothRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setParameter("ImageURL", imageURL); +SegmentClothRequest::~SegmentClothRequest() {} + +std::string SegmentClothRequest::getOssFile() const { + return ossFile_; +} + +void SegmentClothRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string SegmentClothRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SegmentClothRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string SegmentClothRequest::getImageURL() const { + return imageURL_; +} + +void SegmentClothRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setParameter(std::string("ImageURL"), imageURL); } diff --git a/imageseg/src/model/SegmentCommodityRequest.cc b/imageseg/src/model/SegmentCommodityRequest.cc index a1562d9f4..c72364467 100644 --- a/imageseg/src/model/SegmentCommodityRequest.cc +++ b/imageseg/src/model/SegmentCommodityRequest.cc @@ -1,51 +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::Imageseg::Model::SegmentCommodityRequest; - -SegmentCommodityRequest::SegmentCommodityRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "SegmentCommodity") -{ - setMethod(HttpRequest::Method::Post); -} - -SegmentCommodityRequest::~SegmentCommodityRequest() -{} - -std::string SegmentCommodityRequest::getReturnForm()const -{ - return returnForm_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::SegmentCommodityRequest; + +SegmentCommodityRequest::SegmentCommodityRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "SegmentCommodity") { + setMethod(HttpRequest::Method::Post); } -void SegmentCommodityRequest::setReturnForm(const std::string& returnForm) -{ - returnForm_ = returnForm; - setParameter("ReturnForm", returnForm); +SegmentCommodityRequest::~SegmentCommodityRequest() {} + +std::string SegmentCommodityRequest::getReturnForm() const { + return returnForm_; } -std::string SegmentCommodityRequest::getImageURL()const -{ - return imageURL_; +void SegmentCommodityRequest::setReturnForm(const std::string &returnForm) { + returnForm_ = returnForm; + setParameter(std::string("ReturnForm"), returnForm); } -void SegmentCommodityRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setParameter("ImageURL", imageURL); +std::string SegmentCommodityRequest::getOssFile() const { + return ossFile_; +} + +void SegmentCommodityRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string SegmentCommodityRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SegmentCommodityRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string SegmentCommodityRequest::getImageURL() const { + return imageURL_; +} + +void SegmentCommodityRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setParameter(std::string("ImageURL"), imageURL); } diff --git a/imageseg/src/model/SegmentCommonImageRequest.cc b/imageseg/src/model/SegmentCommonImageRequest.cc index 8a9d20e1f..bda8d30f4 100644 --- a/imageseg/src/model/SegmentCommonImageRequest.cc +++ b/imageseg/src/model/SegmentCommonImageRequest.cc @@ -1,51 +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::Imageseg::Model::SegmentCommonImageRequest; - -SegmentCommonImageRequest::SegmentCommonImageRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "SegmentCommonImage") -{ - setMethod(HttpRequest::Method::Post); -} - -SegmentCommonImageRequest::~SegmentCommonImageRequest() -{} - -std::string SegmentCommonImageRequest::getReturnForm()const -{ - return returnForm_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::SegmentCommonImageRequest; + +SegmentCommonImageRequest::SegmentCommonImageRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "SegmentCommonImage") { + setMethod(HttpRequest::Method::Post); } -void SegmentCommonImageRequest::setReturnForm(const std::string& returnForm) -{ - returnForm_ = returnForm; - setParameter("ReturnForm", returnForm); +SegmentCommonImageRequest::~SegmentCommonImageRequest() {} + +std::string SegmentCommonImageRequest::getReturnForm() const { + return returnForm_; } -std::string SegmentCommonImageRequest::getImageURL()const -{ - return imageURL_; +void SegmentCommonImageRequest::setReturnForm(const std::string &returnForm) { + returnForm_ = returnForm; + setParameter(std::string("ReturnForm"), returnForm); } -void SegmentCommonImageRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setParameter("ImageURL", imageURL); +std::string SegmentCommonImageRequest::getOssFile() const { + return ossFile_; +} + +void SegmentCommonImageRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string SegmentCommonImageRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SegmentCommonImageRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string SegmentCommonImageRequest::getImageURL() const { + return imageURL_; +} + +void SegmentCommonImageRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setParameter(std::string("ImageURL"), imageURL); } diff --git a/imageseg/src/model/SegmentFaceRequest.cc b/imageseg/src/model/SegmentFaceRequest.cc index c7f279528..d03f05743 100644 --- a/imageseg/src/model/SegmentFaceRequest.cc +++ b/imageseg/src/model/SegmentFaceRequest.cc @@ -1,40 +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. - */ - -#include - -using AlibabaCloud::Imageseg::Model::SegmentFaceRequest; - -SegmentFaceRequest::SegmentFaceRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "SegmentFace") -{ - setMethod(HttpRequest::Method::Post); -} - -SegmentFaceRequest::~SegmentFaceRequest() -{} - -std::string SegmentFaceRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::SegmentFaceRequest; + +SegmentFaceRequest::SegmentFaceRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "SegmentFace") { + setMethod(HttpRequest::Method::Post); } -void SegmentFaceRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setParameter("ImageURL", imageURL); +SegmentFaceRequest::~SegmentFaceRequest() {} + +std::string SegmentFaceRequest::getOssFile() const { + return ossFile_; +} + +void SegmentFaceRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string SegmentFaceRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SegmentFaceRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string SegmentFaceRequest::getImageURL() const { + return imageURL_; +} + +void SegmentFaceRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setParameter(std::string("ImageURL"), imageURL); } diff --git a/imageseg/src/model/SegmentFaceResult.cc b/imageseg/src/model/SegmentFaceResult.cc index 95cef423d..b2ca059cf 100644 --- a/imageseg/src/model/SegmentFaceResult.cc +++ b/imageseg/src/model/SegmentFaceResult.cc @@ -46,14 +46,14 @@ void SegmentFaceResult::parse(const std::string &payload) Data::Element elementObject; if(!dataNodeElementsElement["ImageURL"].isNull()) elementObject.imageURL = dataNodeElementsElement["ImageURL"].asString(); - if(!dataNodeElementsElement["X"].isNull()) - elementObject.x = std::stoi(dataNodeElementsElement["X"].asString()); - if(!dataNodeElementsElement["Y"].isNull()) - elementObject.y = std::stoi(dataNodeElementsElement["Y"].asString()); if(!dataNodeElementsElement["Width"].isNull()) elementObject.width = std::stoi(dataNodeElementsElement["Width"].asString()); if(!dataNodeElementsElement["Height"].isNull()) elementObject.height = std::stoi(dataNodeElementsElement["Height"].asString()); + if(!dataNodeElementsElement["Y"].isNull()) + elementObject.y = std::stoi(dataNodeElementsElement["Y"].asString()); + if(!dataNodeElementsElement["X"].isNull()) + elementObject.x = std::stoi(dataNodeElementsElement["X"].asString()); data_.elements.push_back(elementObject); } diff --git a/imageseg/src/model/SegmentFoodRequest.cc b/imageseg/src/model/SegmentFoodRequest.cc index a9a170a8b..874f05b82 100644 --- a/imageseg/src/model/SegmentFoodRequest.cc +++ b/imageseg/src/model/SegmentFoodRequest.cc @@ -1,51 +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::Imageseg::Model::SegmentFoodRequest; - -SegmentFoodRequest::SegmentFoodRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "SegmentFood") -{ - setMethod(HttpRequest::Method::Post); -} - -SegmentFoodRequest::~SegmentFoodRequest() -{} - -std::string SegmentFoodRequest::getReturnForm()const -{ - return returnForm_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::SegmentFoodRequest; + +SegmentFoodRequest::SegmentFoodRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "SegmentFood") { + setMethod(HttpRequest::Method::Post); } -void SegmentFoodRequest::setReturnForm(const std::string& returnForm) -{ - returnForm_ = returnForm; - setParameter("ReturnForm", returnForm); +SegmentFoodRequest::~SegmentFoodRequest() {} + +std::string SegmentFoodRequest::getReturnForm() const { + return returnForm_; } -std::string SegmentFoodRequest::getImageURL()const -{ - return imageURL_; +void SegmentFoodRequest::setReturnForm(const std::string &returnForm) { + returnForm_ = returnForm; + setParameter(std::string("ReturnForm"), returnForm); } -void SegmentFoodRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setParameter("ImageURL", imageURL); +std::string SegmentFoodRequest::getOssFile() const { + return ossFile_; +} + +void SegmentFoodRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string SegmentFoodRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SegmentFoodRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string SegmentFoodRequest::getImageURL() const { + return imageURL_; +} + +void SegmentFoodRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setParameter(std::string("ImageURL"), imageURL); } diff --git a/imageseg/src/model/SegmentFurnitureRequest.cc b/imageseg/src/model/SegmentFurnitureRequest.cc index 61b30aeb0..6d7cd7131 100644 --- a/imageseg/src/model/SegmentFurnitureRequest.cc +++ b/imageseg/src/model/SegmentFurnitureRequest.cc @@ -1,40 +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. - */ - -#include - -using AlibabaCloud::Imageseg::Model::SegmentFurnitureRequest; - -SegmentFurnitureRequest::SegmentFurnitureRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "SegmentFurniture") -{ - setMethod(HttpRequest::Method::Post); -} - -SegmentFurnitureRequest::~SegmentFurnitureRequest() -{} - -std::string SegmentFurnitureRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::SegmentFurnitureRequest; + +SegmentFurnitureRequest::SegmentFurnitureRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "SegmentFurniture") { + setMethod(HttpRequest::Method::Post); } -void SegmentFurnitureRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +SegmentFurnitureRequest::~SegmentFurnitureRequest() {} + +std::string SegmentFurnitureRequest::getOssFile() const { + return ossFile_; +} + +void SegmentFurnitureRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string SegmentFurnitureRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SegmentFurnitureRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string SegmentFurnitureRequest::getImageURL() const { + return imageURL_; +} + +void SegmentFurnitureRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/imageseg/src/model/SegmentHDBodyRequest.cc b/imageseg/src/model/SegmentHDBodyRequest.cc index d1dca71c3..027eab4cc 100644 --- a/imageseg/src/model/SegmentHDBodyRequest.cc +++ b/imageseg/src/model/SegmentHDBodyRequest.cc @@ -1,40 +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. - */ - -#include - -using AlibabaCloud::Imageseg::Model::SegmentHDBodyRequest; - -SegmentHDBodyRequest::SegmentHDBodyRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "SegmentHDBody") -{ - setMethod(HttpRequest::Method::Post); -} - -SegmentHDBodyRequest::~SegmentHDBodyRequest() -{} - -std::string SegmentHDBodyRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::SegmentHDBodyRequest; + +SegmentHDBodyRequest::SegmentHDBodyRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "SegmentHDBody") { + setMethod(HttpRequest::Method::Post); } -void SegmentHDBodyRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setParameter("ImageURL", imageURL); +SegmentHDBodyRequest::~SegmentHDBodyRequest() {} + +std::string SegmentHDBodyRequest::getOssFile() const { + return ossFile_; +} + +void SegmentHDBodyRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string SegmentHDBodyRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SegmentHDBodyRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string SegmentHDBodyRequest::getImageURL() const { + return imageURL_; +} + +void SegmentHDBodyRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setParameter(std::string("ImageURL"), imageURL); } diff --git a/imageseg/src/model/SegmentHDCommonImageRequest.cc b/imageseg/src/model/SegmentHDCommonImageRequest.cc index 207d7ad58..36c113c81 100644 --- a/imageseg/src/model/SegmentHDCommonImageRequest.cc +++ b/imageseg/src/model/SegmentHDCommonImageRequest.cc @@ -1,51 +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::Imageseg::Model::SegmentHDCommonImageRequest; - -SegmentHDCommonImageRequest::SegmentHDCommonImageRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "SegmentHDCommonImage") -{ - setMethod(HttpRequest::Method::Post); -} - -SegmentHDCommonImageRequest::~SegmentHDCommonImageRequest() -{} - -bool SegmentHDCommonImageRequest::getAsync()const -{ - return async_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::SegmentHDCommonImageRequest; + +SegmentHDCommonImageRequest::SegmentHDCommonImageRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "SegmentHDCommonImage") { + setMethod(HttpRequest::Method::Post); } -void SegmentHDCommonImageRequest::setAsync(bool async) -{ - async_ = async; - setBodyParameter("Async", async ? "true" : "false"); +SegmentHDCommonImageRequest::~SegmentHDCommonImageRequest() {} + +std::string SegmentHDCommonImageRequest::getOssFile() const { + return ossFile_; } -std::string SegmentHDCommonImageRequest::getImageUrl()const -{ - return imageUrl_; +void SegmentHDCommonImageRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); } -void SegmentHDCommonImageRequest::setImageUrl(const std::string& imageUrl) -{ - imageUrl_ = imageUrl; - setBodyParameter("ImageUrl", imageUrl); +std::string SegmentHDCommonImageRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SegmentHDCommonImageRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +bool SegmentHDCommonImageRequest::getAsync() const { + return async_; +} + +void SegmentHDCommonImageRequest::setAsync(bool async) { + async_ = async; + setBodyParameter(std::string("Async"), async ? "true" : "false"); +} + +std::string SegmentHDCommonImageRequest::getImageUrl() const { + return imageUrl_; +} + +void SegmentHDCommonImageRequest::setImageUrl(const std::string &imageUrl) { + imageUrl_ = imageUrl; + setBodyParameter(std::string("ImageUrl"), imageUrl); } diff --git a/imageseg/src/model/SegmentHDSkyRequest.cc b/imageseg/src/model/SegmentHDSkyRequest.cc index de1c9079a..13268157d 100644 --- a/imageseg/src/model/SegmentHDSkyRequest.cc +++ b/imageseg/src/model/SegmentHDSkyRequest.cc @@ -1,40 +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. - */ - -#include - -using AlibabaCloud::Imageseg::Model::SegmentHDSkyRequest; - -SegmentHDSkyRequest::SegmentHDSkyRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "SegmentHDSky") -{ - setMethod(HttpRequest::Method::Post); -} - -SegmentHDSkyRequest::~SegmentHDSkyRequest() -{} - -std::string SegmentHDSkyRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::SegmentHDSkyRequest; + +SegmentHDSkyRequest::SegmentHDSkyRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "SegmentHDSky") { + setMethod(HttpRequest::Method::Post); } -void SegmentHDSkyRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +SegmentHDSkyRequest::~SegmentHDSkyRequest() {} + +std::string SegmentHDSkyRequest::getOssFile() const { + return ossFile_; +} + +void SegmentHDSkyRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string SegmentHDSkyRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SegmentHDSkyRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string SegmentHDSkyRequest::getImageURL() const { + return imageURL_; +} + +void SegmentHDSkyRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/imageseg/src/model/SegmentHairRequest.cc b/imageseg/src/model/SegmentHairRequest.cc index c2bf71823..64253b197 100644 --- a/imageseg/src/model/SegmentHairRequest.cc +++ b/imageseg/src/model/SegmentHairRequest.cc @@ -1,40 +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. - */ - -#include - -using AlibabaCloud::Imageseg::Model::SegmentHairRequest; - -SegmentHairRequest::SegmentHairRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "SegmentHair") -{ - setMethod(HttpRequest::Method::Post); -} - -SegmentHairRequest::~SegmentHairRequest() -{} - -std::string SegmentHairRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::SegmentHairRequest; + +SegmentHairRequest::SegmentHairRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "SegmentHair") { + setMethod(HttpRequest::Method::Post); } -void SegmentHairRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setParameter("ImageURL", imageURL); +SegmentHairRequest::~SegmentHairRequest() {} + +std::string SegmentHairRequest::getOssFile() const { + return ossFile_; +} + +void SegmentHairRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string SegmentHairRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SegmentHairRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string SegmentHairRequest::getImageURL() const { + return imageURL_; +} + +void SegmentHairRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setParameter(std::string("ImageURL"), imageURL); } diff --git a/imageseg/src/model/SegmentHairResult.cc b/imageseg/src/model/SegmentHairResult.cc index 3a0f1293e..e88f5da43 100644 --- a/imageseg/src/model/SegmentHairResult.cc +++ b/imageseg/src/model/SegmentHairResult.cc @@ -46,14 +46,14 @@ void SegmentHairResult::parse(const std::string &payload) Data::Element elementObject; if(!dataNodeElementsElement["ImageURL"].isNull()) elementObject.imageURL = dataNodeElementsElement["ImageURL"].asString(); - if(!dataNodeElementsElement["X"].isNull()) - elementObject.x = std::stoi(dataNodeElementsElement["X"].asString()); - if(!dataNodeElementsElement["Y"].isNull()) - elementObject.y = std::stoi(dataNodeElementsElement["Y"].asString()); if(!dataNodeElementsElement["Width"].isNull()) elementObject.width = std::stoi(dataNodeElementsElement["Width"].asString()); if(!dataNodeElementsElement["Height"].isNull()) elementObject.height = std::stoi(dataNodeElementsElement["Height"].asString()); + if(!dataNodeElementsElement["Y"].isNull()) + elementObject.y = std::stoi(dataNodeElementsElement["Y"].asString()); + if(!dataNodeElementsElement["X"].isNull()) + elementObject.x = std::stoi(dataNodeElementsElement["X"].asString()); data_.elements.push_back(elementObject); } diff --git a/imageseg/src/model/SegmentHeadRequest.cc b/imageseg/src/model/SegmentHeadRequest.cc index 9f6848528..7a7c11ddd 100644 --- a/imageseg/src/model/SegmentHeadRequest.cc +++ b/imageseg/src/model/SegmentHeadRequest.cc @@ -1,51 +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::Imageseg::Model::SegmentHeadRequest; - -SegmentHeadRequest::SegmentHeadRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "SegmentHead") -{ - setMethod(HttpRequest::Method::Post); -} - -SegmentHeadRequest::~SegmentHeadRequest() -{} - -std::string SegmentHeadRequest::getReturnForm()const -{ - return returnForm_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::SegmentHeadRequest; + +SegmentHeadRequest::SegmentHeadRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "SegmentHead") { + setMethod(HttpRequest::Method::Post); } -void SegmentHeadRequest::setReturnForm(const std::string& returnForm) -{ - returnForm_ = returnForm; - setParameter("ReturnForm", returnForm); +SegmentHeadRequest::~SegmentHeadRequest() {} + +std::string SegmentHeadRequest::getReturnForm() const { + return returnForm_; } -std::string SegmentHeadRequest::getImageURL()const -{ - return imageURL_; +void SegmentHeadRequest::setReturnForm(const std::string &returnForm) { + returnForm_ = returnForm; + setParameter(std::string("ReturnForm"), returnForm); } -void SegmentHeadRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setParameter("ImageURL", imageURL); +std::string SegmentHeadRequest::getOssFile() const { + return ossFile_; +} + +void SegmentHeadRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string SegmentHeadRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SegmentHeadRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string SegmentHeadRequest::getImageURL() const { + return imageURL_; +} + +void SegmentHeadRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setParameter(std::string("ImageURL"), imageURL); } diff --git a/imageseg/src/model/SegmentHeadResult.cc b/imageseg/src/model/SegmentHeadResult.cc index 2c7f7bed9..73e989042 100644 --- a/imageseg/src/model/SegmentHeadResult.cc +++ b/imageseg/src/model/SegmentHeadResult.cc @@ -44,16 +44,16 @@ void SegmentHeadResult::parse(const std::string &payload) for (auto dataNodeElementsElement : allElementsNode) { Data::Element elementObject; - if(!dataNodeElementsElement["X"].isNull()) - elementObject.x = std::stoi(dataNodeElementsElement["X"].asString()); - if(!dataNodeElementsElement["Y"].isNull()) - elementObject.y = std::stoi(dataNodeElementsElement["Y"].asString()); if(!dataNodeElementsElement["ImageURL"].isNull()) elementObject.imageURL = dataNodeElementsElement["ImageURL"].asString(); - if(!dataNodeElementsElement["Height"].isNull()) - elementObject.height = std::stoi(dataNodeElementsElement["Height"].asString()); if(!dataNodeElementsElement["Width"].isNull()) elementObject.width = std::stoi(dataNodeElementsElement["Width"].asString()); + if(!dataNodeElementsElement["Height"].isNull()) + elementObject.height = std::stoi(dataNodeElementsElement["Height"].asString()); + if(!dataNodeElementsElement["Y"].isNull()) + elementObject.y = std::stoi(dataNodeElementsElement["Y"].asString()); + if(!dataNodeElementsElement["X"].isNull()) + elementObject.x = std::stoi(dataNodeElementsElement["X"].asString()); data_.elements.push_back(elementObject); } diff --git a/imageseg/src/model/SegmentLogoRequest.cc b/imageseg/src/model/SegmentLogoRequest.cc index 637510e85..3f3462159 100644 --- a/imageseg/src/model/SegmentLogoRequest.cc +++ b/imageseg/src/model/SegmentLogoRequest.cc @@ -1,40 +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. - */ - -#include - -using AlibabaCloud::Imageseg::Model::SegmentLogoRequest; - -SegmentLogoRequest::SegmentLogoRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "SegmentLogo") -{ - setMethod(HttpRequest::Method::Post); -} - -SegmentLogoRequest::~SegmentLogoRequest() -{} - -std::string SegmentLogoRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::SegmentLogoRequest; + +SegmentLogoRequest::SegmentLogoRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "SegmentLogo") { + setMethod(HttpRequest::Method::Post); } -void SegmentLogoRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setParameter("ImageURL", imageURL); +SegmentLogoRequest::~SegmentLogoRequest() {} + +std::string SegmentLogoRequest::getOssFile() const { + return ossFile_; +} + +void SegmentLogoRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string SegmentLogoRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SegmentLogoRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string SegmentLogoRequest::getImageURL() const { + return imageURL_; +} + +void SegmentLogoRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setParameter(std::string("ImageURL"), imageURL); } diff --git a/imageseg/src/model/SegmentSceneRequest.cc b/imageseg/src/model/SegmentSceneRequest.cc index f16028fc1..683fde9f8 100644 --- a/imageseg/src/model/SegmentSceneRequest.cc +++ b/imageseg/src/model/SegmentSceneRequest.cc @@ -1,40 +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. - */ - -#include - -using AlibabaCloud::Imageseg::Model::SegmentSceneRequest; - -SegmentSceneRequest::SegmentSceneRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "SegmentScene") -{ - setMethod(HttpRequest::Method::Post); -} - -SegmentSceneRequest::~SegmentSceneRequest() -{} - -std::string SegmentSceneRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::SegmentSceneRequest; + +SegmentSceneRequest::SegmentSceneRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "SegmentScene") { + setMethod(HttpRequest::Method::Post); } -void SegmentSceneRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setParameter("ImageURL", imageURL); +SegmentSceneRequest::~SegmentSceneRequest() {} + +std::string SegmentSceneRequest::getOssFile() const { + return ossFile_; +} + +void SegmentSceneRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string SegmentSceneRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SegmentSceneRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string SegmentSceneRequest::getImageURL() const { + return imageURL_; +} + +void SegmentSceneRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setParameter(std::string("ImageURL"), imageURL); } diff --git a/imageseg/src/model/SegmentSkinRequest.cc b/imageseg/src/model/SegmentSkinRequest.cc index 3ef3f13cb..fe62e1515 100644 --- a/imageseg/src/model/SegmentSkinRequest.cc +++ b/imageseg/src/model/SegmentSkinRequest.cc @@ -1,40 +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. - */ - -#include - -using AlibabaCloud::Imageseg::Model::SegmentSkinRequest; - -SegmentSkinRequest::SegmentSkinRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "SegmentSkin") -{ - setMethod(HttpRequest::Method::Post); -} - -SegmentSkinRequest::~SegmentSkinRequest() -{} - -std::string SegmentSkinRequest::getURL()const -{ - return uRL_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::SegmentSkinRequest; + +SegmentSkinRequest::SegmentSkinRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "SegmentSkin") { + setMethod(HttpRequest::Method::Post); } -void SegmentSkinRequest::setURL(const std::string& uRL) -{ - uRL_ = uRL; - setBodyParameter("URL", uRL); +SegmentSkinRequest::~SegmentSkinRequest() {} + +std::string SegmentSkinRequest::getOssFile() const { + return ossFile_; +} + +void SegmentSkinRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string SegmentSkinRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SegmentSkinRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string SegmentSkinRequest::getURL() const { + return uRL_; +} + +void SegmentSkinRequest::setURL(const std::string &uRL) { + uRL_ = uRL; + setBodyParameter(std::string("URL"), uRL); } diff --git a/imageseg/src/model/SegmentSkyRequest.cc b/imageseg/src/model/SegmentSkyRequest.cc index 13f93ebf3..b59868ddc 100644 --- a/imageseg/src/model/SegmentSkyRequest.cc +++ b/imageseg/src/model/SegmentSkyRequest.cc @@ -1,40 +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. - */ - -#include - -using AlibabaCloud::Imageseg::Model::SegmentSkyRequest; - -SegmentSkyRequest::SegmentSkyRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "SegmentSky") -{ - setMethod(HttpRequest::Method::Post); -} - -SegmentSkyRequest::~SegmentSkyRequest() -{} - -std::string SegmentSkyRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::SegmentSkyRequest; + +SegmentSkyRequest::SegmentSkyRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "SegmentSky") { + setMethod(HttpRequest::Method::Post); } -void SegmentSkyRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setParameter("ImageURL", imageURL); +SegmentSkyRequest::~SegmentSkyRequest() {} + +std::string SegmentSkyRequest::getOssFile() const { + return ossFile_; +} + +void SegmentSkyRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string SegmentSkyRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SegmentSkyRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string SegmentSkyRequest::getImageURL() const { + return imageURL_; +} + +void SegmentSkyRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setParameter(std::string("ImageURL"), imageURL); } diff --git a/imageseg/src/model/SegmentVehicleRequest.cc b/imageseg/src/model/SegmentVehicleRequest.cc index 0cd82a8ce..c5c534e84 100644 --- a/imageseg/src/model/SegmentVehicleRequest.cc +++ b/imageseg/src/model/SegmentVehicleRequest.cc @@ -1,40 +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. - */ - -#include - -using AlibabaCloud::Imageseg::Model::SegmentVehicleRequest; - -SegmentVehicleRequest::SegmentVehicleRequest() : - RpcServiceRequest("imageseg", "2019-12-30", "SegmentVehicle") -{ - setMethod(HttpRequest::Method::Post); -} - -SegmentVehicleRequest::~SegmentVehicleRequest() -{} - -std::string SegmentVehicleRequest::getImageURL()const -{ - return imageURL_; + */ + +#include + +using AlibabaCloud::Imageseg::Model::SegmentVehicleRequest; + +SegmentVehicleRequest::SegmentVehicleRequest() + : RpcServiceRequest("imageseg", "2019-12-30", "SegmentVehicle") { + setMethod(HttpRequest::Method::Post); } -void SegmentVehicleRequest::setImageURL(const std::string& imageURL) -{ - imageURL_ = imageURL; - setBodyParameter("ImageURL", imageURL); +SegmentVehicleRequest::~SegmentVehicleRequest() {} + +std::string SegmentVehicleRequest::getOssFile() const { + return ossFile_; +} + +void SegmentVehicleRequest::setOssFile(const std::string &ossFile) { + ossFile_ = ossFile; + setParameter(std::string("OssFile"), ossFile); +} + +std::string SegmentVehicleRequest::getRequestProxyBy() const { + return requestProxyBy_; +} + +void SegmentVehicleRequest::setRequestProxyBy(const std::string &requestProxyBy) { + requestProxyBy_ = requestProxyBy; + setParameter(std::string("RequestProxyBy"), requestProxyBy); +} + +std::string SegmentVehicleRequest::getImageURL() const { + return imageURL_; +} + +void SegmentVehicleRequest::setImageURL(const std::string &imageURL) { + imageURL_ = imageURL; + setBodyParameter(std::string("ImageURL"), imageURL); } diff --git a/imageseg/src/model/SegmentVehicleResult.cc b/imageseg/src/model/SegmentVehicleResult.cc index 94133bb18..a6ba65ead 100644 --- a/imageseg/src/model/SegmentVehicleResult.cc +++ b/imageseg/src/model/SegmentVehicleResult.cc @@ -44,10 +44,10 @@ void SegmentVehicleResult::parse(const std::string &payload) for (auto dataNodeElementsElement : allElementsNode) { Data::Element elementObject; - if(!dataNodeElementsElement["OriginImageURL"].isNull()) - elementObject.originImageURL = dataNodeElementsElement["OriginImageURL"].asString(); if(!dataNodeElementsElement["ImageURL"].isNull()) elementObject.imageURL = dataNodeElementsElement["ImageURL"].asString(); + if(!dataNodeElementsElement["OriginImageURL"].isNull()) + elementObject.originImageURL = dataNodeElementsElement["OriginImageURL"].asString(); data_.elements.push_back(elementObject); }