Class CustomToolInputFormat.Grammar.Builder
-
- All Implemented Interfaces:
public final class CustomToolInputFormat.Grammar.Builder
A builder for Grammar.
-
-
Method Summary
-
-
Method Detail
-
definition
final CustomToolInputFormat.Grammar.Builder definition(String definition)
The grammar definition.
-
definition
final CustomToolInputFormat.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 CustomToolInputFormat.Grammar.Builder syntax(CustomToolInputFormat.Grammar.Syntax syntax)
The syntax of the grammar definition. One of
lark
orregex
.
-
syntax
final CustomToolInputFormat.Grammar.Builder syntax(JsonField<CustomToolInputFormat.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 CustomToolInputFormat.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 CustomToolInputFormat.Grammar.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final CustomToolInputFormat.Grammar.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final CustomToolInputFormat.Grammar.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final CustomToolInputFormat.Grammar.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final CustomToolInputFormat.Grammar.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final CustomToolInputFormat.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()
-
-
-
-