Class BetaCustomTool.Format.Grammar.Builder
-
- All Implemented Interfaces:
public final class BetaCustomTool.Format.Grammar.BuilderA builder for Grammar.
-
-
Method Summary
-
-
Method Detail
-
definition
final BetaCustomTool.Format.Grammar.Builder definition(String definition)
The grammar definition.
-
definition
final BetaCustomTool.Format.Grammar.Builder definition(JsonField<String> definition)
Sets Builder.definition to an arbitrary JSON value.
You should usually call Builder.definition with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
syntax
final BetaCustomTool.Format.Grammar.Builder syntax(BetaCustomTool.Format.Grammar.Syntax syntax)
The syntax of the grammar definition. One of
larkorregex.
-
syntax
final BetaCustomTool.Format.Grammar.Builder syntax(JsonField<BetaCustomTool.Format.Grammar.Syntax> syntax)
Sets Builder.syntax to an arbitrary JSON value.
You should usually call Builder.syntax with a well-typed Syntax value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaCustomTool.Format.Grammar.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("grammar")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaCustomTool.Format.Grammar.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaCustomTool.Format.Grammar.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaCustomTool.Format.Grammar.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaCustomTool.Format.Grammar.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaCustomTool.Format.Grammar.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaCustomTool.Format.Grammar build()
Returns an immutable instance of Grammar.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.definition() .syntax()
-
-
-
-