public class Label extends Object
Label is additional information that can be added to an entity.
Java class for Label complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Label">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="id" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
<element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="description" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
<element name="isActive" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
<element name="types" type="{https://www.google.com/apis/ads/publisher/v201711}LabelType" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected Long |
id |
protected Boolean |
isActive |
protected String |
name |
protected List<LabelType> |
types |
| Constructor and Description |
|---|
Label() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Gets the value of the description property.
|
Long |
getId()
Gets the value of the id property.
|
String |
getName()
Gets the value of the name property.
|
List<LabelType> |
getTypes()
Gets the value of the types property.
|
Boolean |
isIsActive()
Gets the value of the isActive property.
|
void |
setDescription(String value)
Sets the value of the description property.
|
void |
setId(Long value)
Sets the value of the id property.
|
void |
setIsActive(Boolean value)
Sets the value of the isActive property.
|
void |
setName(String value)
Sets the value of the name property.
|
protected Long id
protected String name
protected String description
protected Boolean isActive
public void setId(Long value)
value - allowed object is
Longpublic String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic String getDescription()
Stringpublic void setDescription(String value)
value - allowed object is
Stringpublic Boolean isIsActive()
Booleanpublic void setIsActive(Boolean value)
value - allowed object is
Booleanpublic List<LabelType> getTypes()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the types property.
For example, to add a new item, do as follows:
getTypes().add(newItem);
Objects of the following type(s) are allowed in the list
LabelType
Copyright © 2018. All Rights Reserved.