-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
147 additions
and
1 deletion.
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
86 changes: 86 additions & 0 deletions
86
src/main/java/com/baidubce/services/vca/model/ImageAnalyzeResponse.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,86 @@ | ||
package com.baidubce.services.vca.model; | ||
|
||
import java.util.Date; | ||
import java.util.List; | ||
|
||
import com.baidubce.model.AbstractBceResponse; | ||
|
||
public class ImageAnalyzeResponse extends AbstractBceResponse { | ||
private String source; | ||
private String title; | ||
private String preset; | ||
private String status; | ||
private Date publishTime; // finish time | ||
private String error; // exists only when status = ERROR | ||
private List<ImageAnalyzeResult> results; // exists only when status = FINISHED | ||
|
||
@Override | ||
public String toString() { | ||
final StringBuilder sb = new StringBuilder("ImageAnalyzeResponse{"); | ||
sb.append("source='").append(source).append('\''); | ||
sb.append(", title='").append(title).append('\''); | ||
sb.append(", preset='").append(preset).append('\''); | ||
sb.append(", status='").append(status).append('\''); | ||
sb.append(", finishTime='").append(publishTime).append('\''); | ||
sb.append(", results='").append(results).append('\''); | ||
sb.append(", error=").append(error); | ||
sb.append('}'); | ||
return sb.toString(); | ||
} | ||
|
||
public String getSource() { | ||
return source; | ||
} | ||
|
||
public void setSource(String source) { | ||
this.source = source; | ||
} | ||
|
||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
public void setTitle(String title) { | ||
this.title = title; | ||
} | ||
|
||
public String getPreset() { | ||
return preset; | ||
} | ||
|
||
public void setPreset(String preset) { | ||
this.preset = preset; | ||
} | ||
|
||
public String getStatus() { | ||
return status; | ||
} | ||
|
||
public void setStatus(String status) { | ||
this.status = status; | ||
} | ||
|
||
public Date getPublishTime() { | ||
return publishTime; | ||
} | ||
|
||
public void setPublishTime(Date publishTime) { | ||
this.publishTime = publishTime; | ||
} | ||
|
||
public String getError() { | ||
return error; | ||
} | ||
|
||
public void setError(String error) { | ||
this.error = error; | ||
} | ||
|
||
public List<ImageAnalyzeResult> getResults() { | ||
return results; | ||
} | ||
|
||
public void setResults(List<ImageAnalyzeResult> results) { | ||
this.results = results; | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
src/main/java/com/baidubce/services/vca/model/ImageAnalyzeResult.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,33 @@ | ||
package com.baidubce.services.vca.model; | ||
|
||
import java.io.Serializable; | ||
|
||
public class ImageAnalyzeResult implements Serializable { | ||
String type; | ||
String data; | ||
|
||
@Override | ||
public String toString() { | ||
final StringBuilder sb = new StringBuilder("ImageAnalyzeResult{"); | ||
sb.append("type='").append(type).append('\''); | ||
sb.append(", data=").append(data); | ||
sb.append('}'); | ||
return sb.toString(); | ||
} | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
|
||
public String getData() { | ||
return data; | ||
} | ||
|
||
public void setData(String data) { | ||
this.data = data; | ||
} | ||
} |