Interface FieldDef._FinalStage
- All Known Implementing Classes:
FieldDef.Builder
- Enclosing class:
FieldDef
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()cardinality(String cardinality) cardinality(Optional<String> cardinality) For areferencefield:one(a single id, the default) ormany(an array of ids).description(String description) description(Optional<String> description) Human-readable description of the field.enumValues(List<Map<String, Object>> enumValues) The set of allowed values, for an enum-type field.filterable(Boolean filterable) filterable(Optional<Boolean> filterable) Whether this field can be used as a filter in queries.Whether this field is required when a record is created.searchable(Boolean searchable) searchable(Optional<Boolean> searchable) Whether this field's value contributes to full-text search.Marks the field as sensitive (PHI/PII).targetField(String targetField) targetField(Optional<String> targetField) For areferencefield: the target's lookup field to resolve against.targetSurface(String targetSurface) targetSurface(Optional<String> targetSurface) For areferencefield: where the target lives —record,document,user, or the name of an identity namespace (org,client, or one you registered, such asteam).targetTypeName(String targetTypeName) targetTypeName(Optional<String> targetTypeName) For areferencefield: the target type this field points at.validation(Map<String, Object> validation) validation(Optional<Map<String, Object>> validation) Validation rules for this field's value (such as minimum/maximum length or a regex pattern).
-
Method Details
-
build
FieldDef build() -
additionalProperty
-
additionalProperties
-
required
Whether this field is required when a record is created.
-
required
-
searchable
Whether this field's value contributes to full-text search.
-
searchable
-
filterable
Whether this field can be used as a filter in queries.
-
filterable
-
description
Human-readable description of the field.
-
description
-
validation
Validation rules for this field's value (such as minimum/maximum length or a regex pattern).
-
validation
-
enumValues
The set of allowed values, for an enum-type field.
-
enumValues
-
targetTypeName
For a
referencefield: the target type this field points at. Required for reference fields. -
targetTypeName
-
targetField
For a
referencefield: the target's lookup field to resolve against. Defaults toexternalId, and must name a unique lookup on the target type. -
targetField
-
cardinality
For a
referencefield:one(a single id, the default) ormany(an array of ids). -
cardinality
-
targetSurface
For a
referencefield: where the target lives —record,document,user, or the name of an identity namespace (org,client, or one you registered, such asteam). Required for reference fields. The same type name can exist in more than one place, so this disambiguates which lookup resolves the reference. A namespace must already be registered and entity-backed, otherwise the schema is rejected — a reference that could never resolve fails when you define it, not on every write. -
targetSurface
-
sensitive
Marks the field as sensitive (PHI/PII). Sensitive fields are redacted in logs, audit trails, and errors; blind-indexed for lookups; excluded from search; and masked in responses unless the token carries the
sreveal scope for this record type. -
sensitive
-