/** * <p> * The parent labels for a label. The response includes all ancestor labels. * </p> * * @param parents * The parent labels for a label. The response includes all ancestor labels. * @return Returns a reference to this object so that method calls can be chained together. */ public Label withParents(java.util.Collection<Parent> parents) { setParents(parents); return this; }
/** * <p> * The parent labels for a label. The response includes all ancestor labels. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setParents(java.util.Collection)} or {@link #withParents(java.util.Collection)} if you want to override * the existing values. * </p> * * @param parents * The parent labels for a label. The response includes all ancestor labels. * @return Returns a reference to this object so that method calls can be chained together. */ public Label withParents(Parent... parents) { if (this.parents == null) { setParents(new java.util.ArrayList<Parent>(parents.length)); } for (Parent ele : parents) { this.parents.add(ele); } return this; }
label.setParents(new ListUnmarshaller<Parent>(ParentJsonUnmarshaller.getInstance()).unmarshall(context));