forked from Azure/azure-libraries-for-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from bd6c66b615b94480a1458dde3a8bc42f3a689548
ComputerVision - collection of fixes * fix ocr language parameter to fix [bug](Azure/azure-sdk-for-net#4083) * language parameter missing for /tag path * language parameter missing for /models/*/analyze path * make /models/*/analyze return a more generic type * add specific types for /models/*/analyze to return for current models
- Loading branch information
1 parent
f09e779
commit a8350bf
Showing
30 changed files
with
650 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96 changes: 96 additions & 0 deletions
96
...in/java/com/microsoft/azure/cognitiveservices/vision/computervision/CelebrityResults.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.cognitiveservices.vision.computervision; | ||
|
||
import java.util.List; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* List of celebrities recognized in the image. | ||
*/ | ||
public class CelebrityResults { | ||
/** | ||
* The celebrities property. | ||
*/ | ||
@JsonProperty(value = "celebrities") | ||
private List<CelebritiesModel> celebrities; | ||
|
||
/** | ||
* Id of the REST API request. | ||
*/ | ||
@JsonProperty(value = "requestId") | ||
private String requestId; | ||
|
||
/** | ||
* The metadata property. | ||
*/ | ||
@JsonProperty(value = "metadata") | ||
private ImageMetadata metadata; | ||
|
||
/** | ||
* Get the celebrities value. | ||
* | ||
* @return the celebrities value | ||
*/ | ||
public List<CelebritiesModel> celebrities() { | ||
return this.celebrities; | ||
} | ||
|
||
/** | ||
* Set the celebrities value. | ||
* | ||
* @param celebrities the celebrities value to set | ||
* @return the CelebrityResults object itself. | ||
*/ | ||
public CelebrityResults withCelebrities(List<CelebritiesModel> celebrities) { | ||
this.celebrities = celebrities; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get id of the REST API request. | ||
* | ||
* @return the requestId value | ||
*/ | ||
public String requestId() { | ||
return this.requestId; | ||
} | ||
|
||
/** | ||
* Set id of the REST API request. | ||
* | ||
* @param requestId the requestId value to set | ||
* @return the CelebrityResults object itself. | ||
*/ | ||
public CelebrityResults withRequestId(String requestId) { | ||
this.requestId = requestId; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the metadata value. | ||
* | ||
* @return the metadata value | ||
*/ | ||
public ImageMetadata metadata() { | ||
return this.metadata; | ||
} | ||
|
||
/** | ||
* Set the metadata value. | ||
* | ||
* @param metadata the metadata value to set | ||
* @return the CelebrityResults object itself. | ||
*/ | ||
public CelebrityResults withMetadata(ImageMetadata metadata) { | ||
this.metadata = metadata; | ||
return this; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.