/** * <p> * An array of labels detected in the video. Each element contains the detected label and the time, in milliseconds * from the start of the video, that the label was detected. * </p> * * @param labels * An array of labels detected in the video. Each element contains the detected label and the time, in * milliseconds from the start of the video, that the label was detected. * @return Returns a reference to this object so that method calls can be chained together. */ public GetLabelDetectionResult withLabels(java.util.Collection<LabelDetection> labels) { setLabels(labels); return this; }
/** * <p> * An array of labels detected in the video. Each element contains the detected label and the time, in milliseconds * from the start of the video, that the label was detected. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setLabels(java.util.Collection)} or {@link #withLabels(java.util.Collection)} if you want to override the * existing values. * </p> * * @param labels * An array of labels detected in the video. Each element contains the detected label and the time, in * milliseconds from the start of the video, that the label was detected. * @return Returns a reference to this object so that method calls can be chained together. */ public GetLabelDetectionResult withLabels(LabelDetection... labels) { if (this.labels == null) { setLabels(new java.util.ArrayList<LabelDetection>(labels.length)); } for (LabelDetection ele : labels) { this.labels.add(ele); } return this; }
getLabelDetectionResult.setLabels(new ListUnmarshaller<LabelDetection>(LabelDetectionJsonUnmarshaller.getInstance()).unmarshall(context));
/** * <p> * An array of labels detected in the video. Each element contains the * detected label and the time, in milliseconds from the start of the video, * that the label was detected. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param labels <p> * An array of labels detected in the video. Each element * contains the detected label and the time, in milliseconds from * the start of the video, that the label was detected. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public GetLabelDetectionResult withLabels(java.util.Collection<LabelDetection> labels) { setLabels(labels); return this; }
.unmarshall(context)); } else if (name.equals("Labels")) { getLabelDetectionResult.setLabels(new ListUnmarshaller<LabelDetection>( LabelDetectionJsonUnmarshaller.getInstance()