/** Adds group attribute. */ public void addGroupAttribute(String groupName, Group group) { addAttribute(ConversionUtil.createAttribute(groupName, group)); }
/** Adds group attribute. */ public void addGroupAttribute(String groupName, Group group) { addAttribute(ConversionUtil.createAttribute(groupName, group)); }
/** * Adds an attribute of type * {@link com.google.api.gbase.client.GoogleBaseAttributeType#TAX}. * * This method will never remove an attribute, even if it has * the same name as the new attribute. If you would like to set * an attribute that can only appear once, call * {@link #removeAttributes(String, GoogleBaseAttributeType)} first. * * @param name attribute name * @param tax attribute value */ public void addTaxAttribute(String name, Tax tax) { addAttribute(ConversionUtil.createAttribute(name, tax)); }
/** * Adds an attribute of type * {@link com.google.api.gbase.client.GoogleBaseAttributeType#SHIPPING}. * * This method will never remove an attribute, even if it has * the same name as the new attribute. If you would like to set * an attribute that can only appear once, call * {@link #removeAttributes(String, GoogleBaseAttributeType)} first. * * @param name attribute name * @param shipping attribute value */ public void addShippingAttribute(String name, Shipping shipping) { addAttribute(ConversionUtil.createAttribute(name, shipping)); }
/** * Adds an attribute of type * {@link com.google.api.gbase.client.GoogleBaseAttributeType#SHIPPING}. * * This method will never remove an attribute, even if it has * the same name as the new attribute. If you would like to set * an attribute that can only appear once, call * {@link #removeAttributes(String, GoogleBaseAttributeType)} first. * * @param name attribute name * @param shipping attribute value */ public void addShippingAttribute(String name, Shipping shipping) { addAttribute(ConversionUtil.createAttribute(name, shipping)); }
/** * Adds an attribute of type * {@link com.google.api.gbase.client.GoogleBaseAttributeType#TAX}. * * This method will never remove an attribute, even if it has * the same name as the new attribute. If you would like to set * an attribute that can only appear once, call * {@link #removeAttributes(String, GoogleBaseAttributeType)} first. * * @param name attribute name * @param tax attribute value */ public void addTaxAttribute(String name, Tax tax) { addAttribute(ConversionUtil.createAttribute(name, tax)); }
/** * Adds an attribute of type * {@link com.google.api.gbase.client.GoogleBaseAttributeType#LOCATION}. * * This method will never remove an attribute, even if it has * the same name as the new attribute. If you would like to set * an attribute that can only appear once, call * {@link #removeAttributes(String, GoogleBaseAttributeType)} first. * * @param name attribute name * @param location attribute value * @return the attribute object that has been created and added to the item */ public GoogleBaseAttribute addLocationAttribute(String name, Location location) { return addAttribute(ConversionUtil.createAttribute(name, location)); }
/** * Adds an attribute of type * {@link com.google.api.gbase.client.GoogleBaseAttributeType#REFERENCE}. * * This method will never remove an attribute, even if it has * the same name as the new attribute. If you would like to set * an attribute that can only appear once, call * {@link #removeAttributes(String, GoogleBaseAttributeType)} first. * * @param name attribute name * @param value attribute value * @return the attribute object that has been created and added to the item */ public GoogleBaseAttribute addReferenceAttribute(String name, String value) { return addAttribute(new GoogleBaseAttribute(name, GoogleBaseAttributeType.REFERENCE, value)); }
/** * Adds an attribute of type * {@link com.google.api.gbase.client.GoogleBaseAttributeType#BOOLEAN}. * * This method will never remove an attribute, even if it has * the same name as the new attribute. If you would like to set * an attribute that can only appear once, call * {@link #removeAttributes(String, GoogleBaseAttributeType)} first. * * @param name attribute name * @param value attribute value * @return the attribute object that has been created and added to the item */ public GoogleBaseAttribute addBooleanAttribute(String name, boolean value) { return addAttribute(new GoogleBaseAttribute(name, GoogleBaseAttributeType.BOOLEAN, Boolean.toString(value))); }
/** * Adds an attribute of type * {@link com.google.api.gbase.client.GoogleBaseAttributeType#LOCATION}. * * This method will never remove an attribute, even if it has * the same name as the new attribute. If you would like to set * an attribute that can only appear once, call * {@link #removeAttributes(String, GoogleBaseAttributeType)} first. * * @param name attribute name * @param location attribute value * @return the attribute object that has been created and added to the item */ public GoogleBaseAttribute addLocationAttribute(String name, String location) { return addAttribute(new GoogleBaseAttribute(name, GoogleBaseAttributeType.LOCATION, location)); }
/** * Adds an attribute of type * {@link com.google.api.gbase.client.GoogleBaseAttributeType#BOOLEAN}. * * This method will never remove an attribute, even if it has * the same name as the new attribute. If you would like to set * an attribute that can only appear once, call * {@link #removeAttributes(String, GoogleBaseAttributeType)} first. * * @param name attribute name * @param value attribute value * @return the attribute object that has been created and added to the item */ public GoogleBaseAttribute addBooleanAttribute(String name, boolean value) { return addAttribute(new GoogleBaseAttribute(name, GoogleBaseAttributeType.BOOLEAN, Boolean.toString(value))); }
/** * Adds an attribute of type * {@link com.google.api.gbase.client.GoogleBaseAttributeType#LOCATION}. * * This method will never remove an attribute, even if it has * the same name as the new attribute. If you would like to set * an attribute that can only appear once, call * {@link #removeAttributes(String, GoogleBaseAttributeType)} first. * * @param name attribute name * @param location attribute value * @return the attribute object that has been created and added to the item */ public GoogleBaseAttribute addLocationAttribute(String name, Location location) { return addAttribute(ConversionUtil.createAttribute(name, location)); }
/** * Adds an attribute of type * {@link com.google.api.gbase.client.GoogleBaseAttributeType#INT}. * * This method will never remove an attribute, even if it has * the same name as the new attribute. If you would like to set * an attribute that can only appear once, call * {@link #removeAttributes(String, GoogleBaseAttributeType)} first. * * @param name attribute name * @param value attribute value * @return the attribute object that has been created and added to the item */ public GoogleBaseAttribute addIntAttribute(String name, int value) { return addAttribute(new GoogleBaseAttribute(name, GoogleBaseAttributeType.INT, Integer.toString(value))); }
/** * Adds an attribute of type * {@link com.google.api.gbase.client.GoogleBaseAttributeType#FLOAT}. * * This method will never remove an attribute, even if it has * the same name as the new attribute. If you would like to set * an attribute that can only appear once, call * {@link #removeAttributes(String, GoogleBaseAttributeType)} first. * * @param name attribute name * @param value attribute value * @return the attribute object that has been created and added to the item */ public GoogleBaseAttribute addFloatAttribute(String name, float value) { return addAttribute(new GoogleBaseAttribute(name, GoogleBaseAttributeType.FLOAT, Float.toString(value))); }
/** * Adds an attribute of type * {@link com.google.api.gbase.client.GoogleBaseAttributeType#URL}. * * This method will never remove an attribute, even if it has * the same name as the new attribute. If you would like to set * an attribute that can only appear once, call * {@link #removeAttributes(String, GoogleBaseAttributeType)} first. * * @param name attribute name * @param value attribute value * @return the attribute object that has been created and added to the item */ public GoogleBaseAttribute addUrlAttribute(String name, String value) { return addAttribute(new GoogleBaseAttribute(name, GoogleBaseAttributeType.URL, value)); }
/** * Adds an attribute of type * {@link com.google.api.gbase.client.GoogleBaseAttributeType#NUMBER}. * * This method will never remove an attribute, even if it has * the same name as the new attribute. If you would like to set * an attribute that can only appear once, call * {@link #removeAttributes(String, GoogleBaseAttributeType)} first. * * @param name attribute name * @param value attribute value * @return the attribute object that has been created and added to the item */ public GoogleBaseAttribute addNumberAttribute(String name, Number value) { return addAttribute(new GoogleBaseAttribute(name, GoogleBaseAttributeType.NUMBER, value.toString())); }
/** * Adds an attribute of type * {@link com.google.api.gbase.client.GoogleBaseAttributeType#NUMBER}. * * This method will never remove an attribute, even if it has * the same name as the new attribute. If you would like to set * an attribute that can only appear once, call * {@link #removeAttributes(String, GoogleBaseAttributeType)} first. * * @param name attribute name * @param value attribute value * @return the attribute object that has been created and added to the item */ public GoogleBaseAttribute addNumberAttribute(String name, Number value) { return addAttribute(new GoogleBaseAttribute(name, GoogleBaseAttributeType.NUMBER, value.toString())); }
/** * Adds an attribute of type * {@link com.google.api.gbase.client.GoogleBaseAttributeType#FLOAT_UNIT}. * * This method will never remove an attribute, even if it has * the same name as the new attribute. If you would like to set * an attribute that can only appear once, call * {@link #removeAttributes(String, GoogleBaseAttributeType)} first. * * @param name attribute name * @param value attribute value * @return the attribute object that has been created and added to the item */ public GoogleBaseAttribute addFloatUnitAttribute(String name, NumberUnit<Float> value) { return addAttribute(new GoogleBaseAttribute(name, GoogleBaseAttributeType.FLOAT_UNIT, value.toString())); }
/** * Adds an attribute of type * {@link com.google.api.gbase.client.GoogleBaseAttributeType#INT_UNIT}. * * This method will never remove an attribute, even if it has * the same name as the new attribute. If you would like to set * an attribute that can only appear once, call * {@link #removeAttributes(String, GoogleBaseAttributeType)} first. * * @param name attribute name * @param value attribute value * @return the attribute object that has been created and added to the item */ public GoogleBaseAttribute addIntUnitAttribute(String name, NumberUnit<Integer> value) { return addAttribute(new GoogleBaseAttribute(name, GoogleBaseAttributeType.INT_UNIT, value.toString())); }
/** * Adds an attribute of type * {@link com.google.api.gbase.client.GoogleBaseAttributeType#DATE_TIME}. * * This method will never remove an attribute, even if it has * the same name as the new attribute. If you would like to set * an attribute that can only appear once, call * {@link #removeAttributes(String, GoogleBaseAttributeType)} first. * * @param name attribute name * @param dateTime attribute value * @return the attribute object that has been created and added to the item */ public GoogleBaseAttribute addDateTimeAttribute(String name, DateTime dateTime) { return addAttribute(new GoogleBaseAttribute(name, GoogleBaseAttributeType.DATE_TIME, dateTime.toString())); }