Class RawDocument.Builder (2.2.1)

public static final class RawDocument.Builder extends GeneratedMessageV3.Builder<RawDocument.Builder> implements RawDocumentOrBuilder

Payload message of raw document content (bytes).

Protobuf type google.cloud.documentai.v1.RawDocument

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RawDocument build()
Returns
TypeDescription
RawDocument

buildPartial()

public RawDocument buildPartial()
Returns
TypeDescription
RawDocument

clear()

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

clearContent()

public RawDocument.Builder clearContent()

Inline document content.

bytes content = 1;

Returns
TypeDescription
RawDocument.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public RawDocument.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
RawDocument.Builder
Overrides

clearMimeType()

public RawDocument.Builder clearMimeType()

An IANA MIME type (RFC6838) indicating the nature and format of the [content].

string mime_type = 2;

Returns
TypeDescription
RawDocument.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RawDocument.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RawDocument.Builder
Overrides

clone()

public RawDocument.Builder clone()
Returns
TypeDescription
RawDocument.Builder
Overrides

getContent()

public ByteString getContent()

Inline document content.

bytes content = 1;

Returns
TypeDescription
ByteString

The content.

getDefaultInstanceForType()

public RawDocument getDefaultInstanceForType()
Returns
TypeDescription
RawDocument

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMimeType()

public String getMimeType()

An IANA MIME type (RFC6838) indicating the nature and format of the [content].

string mime_type = 2;

Returns
TypeDescription
String

The mimeType.

getMimeTypeBytes()

public ByteString getMimeTypeBytes()

An IANA MIME type (RFC6838) indicating the nature and format of the [content].

string mime_type = 2;

Returns
TypeDescription
ByteString

The bytes for mimeType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RawDocument other)

public RawDocument.Builder mergeFrom(RawDocument other)
Parameter
NameDescription
otherRawDocument
Returns
TypeDescription
RawDocument.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RawDocument.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RawDocument.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RawDocument.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RawDocument.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RawDocument.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RawDocument.Builder
Overrides

setContent(ByteString value)

public RawDocument.Builder setContent(ByteString value)

Inline document content.

bytes content = 1;

Parameter
NameDescription
valueByteString

The content to set.

Returns
TypeDescription
RawDocument.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMimeType(String value)

public RawDocument.Builder setMimeType(String value)

An IANA MIME type (RFC6838) indicating the nature and format of the [content].

string mime_type = 2;

Parameter
NameDescription
valueString

The mimeType to set.

Returns
TypeDescription
RawDocument.Builder

This builder for chaining.

setMimeTypeBytes(ByteString value)

public RawDocument.Builder setMimeTypeBytes(ByteString value)

An IANA MIME type (RFC6838) indicating the nature and format of the [content].

string mime_type = 2;

Parameter
NameDescription
valueByteString

The bytes for mimeType to set.

Returns
TypeDescription
RawDocument.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RawDocument.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RawDocument.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RawDocument.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RawDocument.Builder
Overrides