
com.google.api.services.vision.v1.model.AnnotateImageResponse Maven / Gradle / Ivy
/*
* Copyright 2010 Google Inc.
*
* 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.
*/
/*
* This code was generated by https://github.com/google/apis-client-generator/
* (build: 2016-05-27 16:00:31 UTC)
* on 2016-07-26 at 19:10:38 UTC
* Modify at your own risk.
*/
package com.google.api.services.vision.v1.model;
/**
* Response to an image annotation request.
*
* This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Google Cloud Vision API. For a detailed explanation
* see:
* https://developers.google.com/api-client-library/java/google-http-java-client/json
*
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class AnnotateImageResponse extends com.google.api.client.json.GenericJson {
/**
* If set, represents the error message for the operation. Note that filled-in mage annotations
* are guaranteed to be correct, even when error is non-empty.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private Status error;
/**
* If present, face detection completed successfully.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List faceAnnotations;
/**
* If present, image properties were extracted successfully.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private ImageProperties imagePropertiesAnnotation;
/**
* If present, label detection completed successfully.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List labelAnnotations;
/**
* If present, landmark detection completed successfully.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List landmarkAnnotations;
/**
* If present, logo detection completed successfully.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List logoAnnotations;
/**
* If present, safe-search annotation completed successfully.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private SafeSearchAnnotation safeSearchAnnotation;
/**
* If present, text (OCR) detection completed successfully.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List textAnnotations;
/**
* If set, represents the error message for the operation. Note that filled-in mage annotations
* are guaranteed to be correct, even when error is non-empty.
* @return value or {@code null} for none
*/
public Status getError() {
return error;
}
/**
* If set, represents the error message for the operation. Note that filled-in mage annotations
* are guaranteed to be correct, even when error is non-empty.
* @param error error or {@code null} for none
*/
public AnnotateImageResponse setError(Status error) {
this.error = error;
return this;
}
/**
* If present, face detection completed successfully.
* @return value or {@code null} for none
*/
public java.util.List getFaceAnnotations() {
return faceAnnotations;
}
/**
* If present, face detection completed successfully.
* @param faceAnnotations faceAnnotations or {@code null} for none
*/
public AnnotateImageResponse setFaceAnnotations(java.util.List faceAnnotations) {
this.faceAnnotations = faceAnnotations;
return this;
}
/**
* If present, image properties were extracted successfully.
* @return value or {@code null} for none
*/
public ImageProperties getImagePropertiesAnnotation() {
return imagePropertiesAnnotation;
}
/**
* If present, image properties were extracted successfully.
* @param imagePropertiesAnnotation imagePropertiesAnnotation or {@code null} for none
*/
public AnnotateImageResponse setImagePropertiesAnnotation(ImageProperties imagePropertiesAnnotation) {
this.imagePropertiesAnnotation = imagePropertiesAnnotation;
return this;
}
/**
* If present, label detection completed successfully.
* @return value or {@code null} for none
*/
public java.util.List getLabelAnnotations() {
return labelAnnotations;
}
/**
* If present, label detection completed successfully.
* @param labelAnnotations labelAnnotations or {@code null} for none
*/
public AnnotateImageResponse setLabelAnnotations(java.util.List labelAnnotations) {
this.labelAnnotations = labelAnnotations;
return this;
}
/**
* If present, landmark detection completed successfully.
* @return value or {@code null} for none
*/
public java.util.List getLandmarkAnnotations() {
return landmarkAnnotations;
}
/**
* If present, landmark detection completed successfully.
* @param landmarkAnnotations landmarkAnnotations or {@code null} for none
*/
public AnnotateImageResponse setLandmarkAnnotations(java.util.List landmarkAnnotations) {
this.landmarkAnnotations = landmarkAnnotations;
return this;
}
/**
* If present, logo detection completed successfully.
* @return value or {@code null} for none
*/
public java.util.List getLogoAnnotations() {
return logoAnnotations;
}
/**
* If present, logo detection completed successfully.
* @param logoAnnotations logoAnnotations or {@code null} for none
*/
public AnnotateImageResponse setLogoAnnotations(java.util.List logoAnnotations) {
this.logoAnnotations = logoAnnotations;
return this;
}
/**
* If present, safe-search annotation completed successfully.
* @return value or {@code null} for none
*/
public SafeSearchAnnotation getSafeSearchAnnotation() {
return safeSearchAnnotation;
}
/**
* If present, safe-search annotation completed successfully.
* @param safeSearchAnnotation safeSearchAnnotation or {@code null} for none
*/
public AnnotateImageResponse setSafeSearchAnnotation(SafeSearchAnnotation safeSearchAnnotation) {
this.safeSearchAnnotation = safeSearchAnnotation;
return this;
}
/**
* If present, text (OCR) detection completed successfully.
* @return value or {@code null} for none
*/
public java.util.List getTextAnnotations() {
return textAnnotations;
}
/**
* If present, text (OCR) detection completed successfully.
* @param textAnnotations textAnnotations or {@code null} for none
*/
public AnnotateImageResponse setTextAnnotations(java.util.List textAnnotations) {
this.textAnnotations = textAnnotations;
return this;
}
@Override
public AnnotateImageResponse set(String fieldName, Object value) {
return (AnnotateImageResponse) super.set(fieldName, value);
}
@Override
public AnnotateImageResponse clone() {
return (AnnotateImageResponse) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy