-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 0bc892729baf0d049695c873e9afe139211c259d (#2735)
Add areaOfInterest and detectObject * Replace the current swagger with an auto-generated one. * Add example files for areaOfInterest and detectObject. * Fix example validation errors for analyze and describe. * A few fixes for generating java sdk
- Loading branch information
1 parent
f63f53a
commit 9985a66
Showing
23 changed files
with
2,838 additions
and
1,326 deletions.
There are no files selected for viewing
1,296 changes: 849 additions & 447 deletions
1,296
...ava/com/microsoft/azure/cognitiveservices/vision/computervision/ComputerVisionClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
2,134 changes: 1,355 additions & 779 deletions
2,134
...zure/cognitiveservices/vision/computervision/implementation/ComputerVisionClientImpl.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
84 changes: 84 additions & 0 deletions
84
.../microsoft/azure/cognitiveservices/vision/computervision/models/AreaOfInterestResult.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,84 @@ | ||
/** | ||
* 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.models; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Result of AreaOfInterest operation. | ||
*/ | ||
public class AreaOfInterestResult { | ||
/** | ||
* A bounding box for an area of interest inside an image. | ||
*/ | ||
@JsonProperty(value = "areaOfInterest", access = JsonProperty.Access.WRITE_ONLY) | ||
private BoundingRect areaOfInterest; | ||
|
||
/** | ||
* Id of the REST API request. | ||
*/ | ||
@JsonProperty(value = "requestId") | ||
private String requestId; | ||
|
||
/** | ||
* The metadata property. | ||
*/ | ||
@JsonProperty(value = "metadata") | ||
private ImageMetadata metadata; | ||
|
||
/** | ||
* Get a bounding box for an area of interest inside an image. | ||
* | ||
* @return the areaOfInterest value | ||
*/ | ||
public BoundingRect areaOfInterest() { | ||
return this.areaOfInterest; | ||
} | ||
|
||
/** | ||
* 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 AreaOfInterestResult object itself. | ||
*/ | ||
public AreaOfInterestResult 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 AreaOfInterestResult object itself. | ||
*/ | ||
public AreaOfInterestResult withMetadata(ImageMetadata metadata) { | ||
this.metadata = metadata; | ||
return this; | ||
} | ||
|
||
} |
121 changes: 121 additions & 0 deletions
121
...java/com/microsoft/azure/cognitiveservices/vision/computervision/models/BoundingRect.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,121 @@ | ||
/** | ||
* 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.models; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* A bounding box for an area inside an image. | ||
*/ | ||
public class BoundingRect { | ||
/** | ||
* X-coordinate of the top left point of the area, in pixels. | ||
*/ | ||
@JsonProperty(value = "x") | ||
private int x; | ||
|
||
/** | ||
* Y-coordinate of the top left point of the area, in pixels. | ||
*/ | ||
@JsonProperty(value = "y") | ||
private int y; | ||
|
||
/** | ||
* Width measured from the top-left point of the area, in pixels. | ||
*/ | ||
@JsonProperty(value = "w") | ||
private int w; | ||
|
||
/** | ||
* Height measured from the top-left point of the area, in pixels. | ||
*/ | ||
@JsonProperty(value = "h") | ||
private int h; | ||
|
||
/** | ||
* Get x-coordinate of the top left point of the area, in pixels. | ||
* | ||
* @return the x value | ||
*/ | ||
public int x() { | ||
return this.x; | ||
} | ||
|
||
/** | ||
* Set x-coordinate of the top left point of the area, in pixels. | ||
* | ||
* @param x the x value to set | ||
* @return the BoundingRect object itself. | ||
*/ | ||
public BoundingRect withX(int x) { | ||
this.x = x; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get y-coordinate of the top left point of the area, in pixels. | ||
* | ||
* @return the y value | ||
*/ | ||
public int y() { | ||
return this.y; | ||
} | ||
|
||
/** | ||
* Set y-coordinate of the top left point of the area, in pixels. | ||
* | ||
* @param y the y value to set | ||
* @return the BoundingRect object itself. | ||
*/ | ||
public BoundingRect withY(int y) { | ||
this.y = y; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get width measured from the top-left point of the area, in pixels. | ||
* | ||
* @return the w value | ||
*/ | ||
public int w() { | ||
return this.w; | ||
} | ||
|
||
/** | ||
* Set width measured from the top-left point of the area, in pixels. | ||
* | ||
* @param w the w value to set | ||
* @return the BoundingRect object itself. | ||
*/ | ||
public BoundingRect withW(int w) { | ||
this.w = w; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get height measured from the top-left point of the area, in pixels. | ||
* | ||
* @return the h value | ||
*/ | ||
public int h() { | ||
return this.h; | ||
} | ||
|
||
/** | ||
* Set height measured from the top-left point of the area, in pixels. | ||
* | ||
* @param h the h value to set | ||
* @return the BoundingRect object itself. | ||
*/ | ||
public BoundingRect withH(int h) { | ||
this.h = h; | ||
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
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
Oops, something went wrong.