Class V1AnnotateParams.Body.Builder
-
- All Implemented Interfaces:
public final class V1AnnotateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
document
final V1AnnotateParams.Body.Builder document(V1AnnotateParams.Document document)
Document source - provide either URL or base64
-
document
final V1AnnotateParams.Body.Builder document(JsonField<V1AnnotateParams.Document> document)
Sets Builder.document to an arbitrary JSON value.
You should usually call Builder.document with a well-typed Document value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fields
final V1AnnotateParams.Body.Builder fields(List<V1AnnotateParams.Field> fields)
Fields to populate in the template
-
fields
final V1AnnotateParams.Body.Builder fields(JsonField<List<V1AnnotateParams.Field>> fields)
Sets Builder.fields to an arbitrary JSON value.
You should usually call Builder.fields with a well-typed
List<Field>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addField
final V1AnnotateParams.Body.Builder addField(V1AnnotateParams.Field field)
-
outputFormat
final V1AnnotateParams.Body.Builder outputFormat(V1AnnotateParams.OutputFormat outputFormat)
Output format for the annotated document
-
outputFormat
final V1AnnotateParams.Body.Builder outputFormat(JsonField<V1AnnotateParams.OutputFormat> outputFormat)
Sets Builder.outputFormat to an arbitrary JSON value.
You should usually call Builder.outputFormat with a well-typed OutputFormat value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final V1AnnotateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final V1AnnotateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final V1AnnotateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final V1AnnotateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final V1AnnotateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final V1AnnotateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.document() .fields()
-
-
-
-