Resource: TagTemplateField
The template for an individual field within a tag template.
JSON representation |
---|
{
"name": string,
"displayName": string,
"type": {
object ( |
Fields | |
---|---|
name |
Output only. Identifier. The resource name of the tag template field in URL format. Example:
Note that this TagTemplateField may not actually be stored in the location in this name. |
displayName |
The display name for this field. Defaults to an empty string. |
type |
Required. The type of value this tag field can contain. |
isRequired |
Whether this is a required field. Defaults to false. |
description |
The description for this field. Defaults to an empty string. |
order |
The order of this field with respect to other fields in this tag template. A higher value indicates a more important field. The value can be negative. Multiple fields can have the same order, and field orders within a tag do not have to be sequential. |
FieldType
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field type_decl . Required. type_decl can be only one of the following: |
|
primitiveType |
Represents primitive types - string, bool etc. |
enumType |
Represents an enum type. |
PrimitiveType
Enums | |
---|---|
PRIMITIVE_TYPE_UNSPECIFIED |
This is the default invalid value for a type. |
DOUBLE |
A double precision number. |
STRING |
An UTF-8 string. |
BOOL |
A boolean value. |
TIMESTAMP |
A timestamp. |
EnumType
JSON representation |
---|
{
"allowedValues": [
{
object ( |
Fields | |
---|---|
allowedValues[] |
|
EnumValue
JSON representation |
---|
{ "displayName": string } |
Fields | |
---|---|
displayName |
Required. The display name of the enum value. Must not be an empty string. |
Methods |
|
---|---|
|
Creates a field in a tag template. |
|
Deletes a field in a tag template and all uses of that field. |
|
Updates a field in a tag template. |
|
Renames a field in a tag template. |