public class MetadataTemplateFieldsField extends SerializableObject
| Modifier and Type | Class and Description |
|---|---|
static class |
MetadataTemplateFieldsField.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
description
A description of the field.
|
protected String |
displayName
The display name of the field as it is shown to the user in the web and mobile apps.
|
protected Boolean |
hidden
Whether this field is hidden in the UI for the user and can only be set through the API
instead.
|
protected String |
id
The unique ID of the metadata template field.
|
protected String |
key
A unique identifier for the field.
|
protected String |
namespace
The namespace of the metadata taxonomy to use for this taxonomy field.
|
protected List<MetadataTemplateFieldsOptionsField> |
options
A list of options for this field.
|
protected MetadataTemplateFieldsOptionsRulesField |
optionsRules
An object defining additional rules for the options of the taxonomy field.
|
protected String |
taxonomyId
The unique ID of the metadata taxonomy to use for this taxonomy field.
|
protected String |
taxonomyKey
The unique key of the metadata taxonomy to use for this taxonomy field.
|
protected EnumWrapper<MetadataTemplateFieldsTypeField> |
type
The type of field.
|
explicitlySetNullableFields| Modifier | Constructor and Description |
|---|---|
|
MetadataTemplateFieldsField(EnumWrapper<MetadataTemplateFieldsTypeField> type,
String key,
String displayName) |
protected |
MetadataTemplateFieldsField(MetadataTemplateFieldsField.Builder builder) |
|
MetadataTemplateFieldsField(MetadataTemplateFieldsTypeField type,
String key,
String displayName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getDescription() |
String |
getDisplayName() |
Boolean |
getHidden() |
String |
getId() |
String |
getKey() |
String |
getNamespace() |
List<MetadataTemplateFieldsOptionsField> |
getOptions() |
MetadataTemplateFieldsOptionsRulesField |
getOptionsRules() |
String |
getTaxonomyId() |
String |
getTaxonomyKey() |
EnumWrapper<MetadataTemplateFieldsTypeField> |
getType() |
int |
hashCode() |
String |
toString() |
getRawData, setRawDatagetExplicitlySetNullableFields, isFieldExplicitlySet, markNullableFieldAsSet, markNullableFieldsAsSetprotected final EnumWrapper<MetadataTemplateFieldsTypeField> type
Additionally, metadata templates support an `enum` field for a basic list of items, and `multiSelect` field for a similar list of items where the user can select more than one value.
Metadata taxonomies are also supported as a `taxonomy` field type with a specific set of additional properties, which describe its structure.
**Note**: The `integer` value is deprecated. It is still present in the response, but cannot be used in the POST request.
protected final String key
protected final String displayName
protected String description
protected Boolean hidden
protected List<MetadataTemplateFieldsOptionsField> options
protected String taxonomyKey
protected String taxonomyId
protected String namespace
protected MetadataTemplateFieldsOptionsRulesField optionsRules
public MetadataTemplateFieldsField(MetadataTemplateFieldsTypeField type, String key, String displayName)
public MetadataTemplateFieldsField(EnumWrapper<MetadataTemplateFieldsTypeField> type, String key, String displayName)
protected MetadataTemplateFieldsField(MetadataTemplateFieldsField.Builder builder)
public EnumWrapper<MetadataTemplateFieldsTypeField> getType()
public String getDisplayName()
public String getDescription()
public List<MetadataTemplateFieldsOptionsField> getOptions()
public String getTaxonomyKey()
public String getTaxonomyId()
public String getNamespace()
public MetadataTemplateFieldsOptionsRulesField getOptionsRules()