Class RawDocument.Builder (2.36.0)

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.

clearDisplayName()

public RawDocument.Builder clearDisplayName()

The display name of the document, it supports all Unicode characters except the following: *, ?, [, ], %, {, },', \", , ~, = and : are reserved. If not specified, a default ID is generated.

string display_name = 3;

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

getDisplayName()

public String getDisplayName()

The display name of the document, it supports all Unicode characters except the following: *, ?, [, ], %, {, },', \", , ~, = and : are reserved. If not specified, a default ID is generated.

string display_name = 3;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The display name of the document, it supports all Unicode characters except the following: *, ?, [, ], %, {, },', \", , ~, = and : are reserved. If not specified, a default ID is generated.

string display_name = 3;

Returns
TypeDescription
ByteString

The bytes for displayName.

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.

setDisplayName(String value)

public RawDocument.Builder setDisplayName(String value)

The display name of the document, it supports all Unicode characters except the following: *, ?, [, ], %, {, },', \", , ~, = and : are reserved. If not specified, a default ID is generated.

string display_name = 3;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
RawDocument.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public RawDocument.Builder setDisplayNameBytes(ByteString value)

The display name of the document, it supports all Unicode characters except the following: *, ?, [, ], %, {, },', \", , ~, = and : are reserved. If not specified, a default ID is generated.

string display_name = 3;

Parameter
NameDescription
valueByteString

The bytes for displayName 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