Class DocumentInputConfig.Builder (2.13.0)

Stay organized with collections Save and categorize content based on your preferences.
public static final class DocumentInputConfig.Builder extends GeneratedMessageV3.Builder<DocumentInputConfig.Builder> implements DocumentInputConfigOrBuilder

A document translation request input config.

Protobuf type google.cloud.translation.v3.DocumentInputConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DocumentInputConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DocumentInputConfig.Builder
Overrides

build()

public DocumentInputConfig build()
Returns
TypeDescription
DocumentInputConfig

buildPartial()

public DocumentInputConfig buildPartial()
Returns
TypeDescription
DocumentInputConfig

clear()

public DocumentInputConfig.Builder clear()
Returns
TypeDescription
DocumentInputConfig.Builder
Overrides

clearContent()

public DocumentInputConfig.Builder clearContent()

Document's content represented as a stream of bytes.

bytes content = 1;

Returns
TypeDescription
DocumentInputConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DocumentInputConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter