Class BetaCustomTool.Format.Grammar
-
- All Implemented Interfaces:
public final class BetaCustomTool.Format.GrammarA grammar defined by the user.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaCustomTool.Format.Grammar.BuilderA builder for Grammar.
public final classBetaCustomTool.Format.Grammar.SyntaxThe syntax of the grammar definition. One of
larkorregex.
-
Method Summary
Modifier and Type Method Description final Stringdefinition()The grammar definition. final BetaCustomTool.Format.Grammar.Syntaxsyntax()The syntax of the grammar definition. final JsonValue_type()Grammar format. final JsonField<String>_definition()Returns the raw JSON value of definition. final JsonField<BetaCustomTool.Format.Grammar.Syntax>_syntax()Returns the raw JSON value of syntax. final Map<String, JsonValue>_additionalProperties()final BetaCustomTool.Format.Grammar.BuildertoBuilder()final BetaCustomTool.Format.Grammarvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaCustomTool.Format.Grammar.Builderbuilder()Returns a mutable builder for constructing an instance of Grammar. -
-
Method Detail
-
definition
final String definition()
The grammar definition.
-
syntax
final BetaCustomTool.Format.Grammar.Syntax syntax()
The syntax of the grammar definition. One of
larkorregex.
-
_type
final JsonValue _type()
Grammar format. Always
grammar.Expected to always return the following:
JsonValue.from("grammar")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_definition
final JsonField<String> _definition()
Returns the raw JSON value of definition.
Unlike definition, this method doesn't throw if the JSON field has an unexpected type.
-
_syntax
final JsonField<BetaCustomTool.Format.Grammar.Syntax> _syntax()
Returns the raw JSON value of syntax.
Unlike syntax, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaCustomTool.Format.Grammar.Builder toBuilder()
-
validate
final BetaCustomTool.Format.Grammar validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaCustomTool.Format.Grammar.Builder builder()
Returns a mutable builder for constructing an instance of Grammar.
The following fields are required:
.definition() .syntax()
-
-
-
-