Class RevisionRef.Builder (2.58.0)

public static final class RevisionRef.Builder extends GeneratedMessageV3.Builder<RevisionRef.Builder> implements RevisionRefOrBuilder

The revision reference specifies which revision on the document to read.

Protobuf type google.cloud.documentai.v1beta3.RevisionRef

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RevisionRef.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RevisionRef.Builder
Overrides

build()

public RevisionRef build()
Returns
Type Description
RevisionRef

buildPartial()

public RevisionRef buildPartial()
Returns
Type Description
RevisionRef

clear()

public RevisionRef.Builder clear()
Returns
Type Description
RevisionRef.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public RevisionRef.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RevisionRef.Builder
Overrides

clearLatestProcessorVersion()

public RevisionRef.Builder clearLatestProcessorVersion()

Reads the revision generated by the processor version. The format takes the full resource name of processor version. projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}

string latest_processor_version = 3;

Returns
Type Description
RevisionRef.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RevisionRef.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RevisionRef.Builder
Overrides

clearRevisionCase()

public RevisionRef.Builder clearRevisionCase()

Reads the revision by the predefined case.

.google.cloud.documentai.v1beta3.RevisionRef.RevisionCase revision_case = 1;

Returns
Type Description
RevisionRef.Builder

This builder for chaining.

clearRevisionId()

public RevisionRef.Builder clearRevisionId()

Reads the revision given by the id.

string revision_id = 2;

Returns
Type Description
RevisionRef.Builder

This builder for chaining.

clearSource()

public RevisionRef.Builder clearSource()
Returns
Type Description
RevisionRef.Builder

clone()

public RevisionRef.Builder clone()
Returns
Type Description
RevisionRef.Builder
Overrides

getDefaultInstanceForType()

public RevisionRef getDefaultInstanceForType()
Returns
Type Description
RevisionRef

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLatestProcessorVersion()

public String getLatestProcessorVersion()

Reads the revision generated by the processor version. The format takes the full resource name of processor version. projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}

string latest_processor_version = 3;

Returns
Type Description
String

The latestProcessorVersion.

getLatestProcessorVersionBytes()

public ByteString getLatestProcessorVersionBytes()

Reads the revision generated by the processor version. The format takes the full resource name of processor version. projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}

string latest_processor_version = 3;

Returns
Type Description
ByteString

The bytes for latestProcessorVersion.

getRevisionCase()

public RevisionRef.RevisionCase getRevisionCase()

Reads the revision by the predefined case.

.google.cloud.documentai.v1beta3.RevisionRef.RevisionCase revision_case = 1;

Returns
Type Description
RevisionRef.RevisionCase

The revisionCase.

getRevisionCaseValue()

public int getRevisionCaseValue()

Reads the revision by the predefined case.

.google.cloud.documentai.v1beta3.RevisionRef.RevisionCase revision_case = 1;

Returns
Type Description
int

The enum numeric value on the wire for revisionCase.

getRevisionId()

public String getRevisionId()

Reads the revision given by the id.

string revision_id = 2;

Returns
Type Description
String

The revisionId.

getRevisionIdBytes()

public ByteString getRevisionIdBytes()

Reads the revision given by the id.

string revision_id = 2;

Returns
Type Description
ByteString

The bytes for revisionId.

getSourceCase()

public RevisionRef.SourceCase getSourceCase()
Returns
Type Description
RevisionRef.SourceCase

hasLatestProcessorVersion()

public boolean hasLatestProcessorVersion()

Reads the revision generated by the processor version. The format takes the full resource name of processor version. projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}

string latest_processor_version = 3;

Returns
Type Description
boolean

Whether the latestProcessorVersion field is set.

hasRevisionCase()

public boolean hasRevisionCase()

Reads the revision by the predefined case.

.google.cloud.documentai.v1beta3.RevisionRef.RevisionCase revision_case = 1;

Returns
Type Description
boolean

Whether the revisionCase field is set.

hasRevisionId()

public boolean hasRevisionId()

Reads the revision given by the id.

string revision_id = 2;

Returns
Type Description
boolean

Whether the revisionId field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RevisionRef other)

public RevisionRef.Builder mergeFrom(RevisionRef other)
Parameter
Name Description
other RevisionRef
Returns
Type Description
RevisionRef.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RevisionRef.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RevisionRef.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RevisionRef.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RevisionRef.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RevisionRef.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RevisionRef.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public RevisionRef.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RevisionRef.Builder
Overrides

setLatestProcessorVersion(String value)

public RevisionRef.Builder setLatestProcessorVersion(String value)

Reads the revision generated by the processor version. The format takes the full resource name of processor version. projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}

string latest_processor_version = 3;

Parameter
Name Description
value String

The latestProcessorVersion to set.

Returns
Type Description
RevisionRef.Builder

This builder for chaining.

setLatestProcessorVersionBytes(ByteString value)

public RevisionRef.Builder setLatestProcessorVersionBytes(ByteString value)

Reads the revision generated by the processor version. The format takes the full resource name of processor version. projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}

string latest_processor_version = 3;

Parameter
Name Description
value ByteString

The bytes for latestProcessorVersion to set.

Returns
Type Description
RevisionRef.Builder

This builder for chaining.

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

public RevisionRef.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RevisionRef.Builder
Overrides

setRevisionCase(RevisionRef.RevisionCase value)

public RevisionRef.Builder setRevisionCase(RevisionRef.RevisionCase value)

Reads the revision by the predefined case.

.google.cloud.documentai.v1beta3.RevisionRef.RevisionCase revision_case = 1;

Parameter
Name Description
value RevisionRef.RevisionCase

The revisionCase to set.

Returns
Type Description
RevisionRef.Builder

This builder for chaining.

setRevisionCaseValue(int value)

public RevisionRef.Builder setRevisionCaseValue(int value)

Reads the revision by the predefined case.

.google.cloud.documentai.v1beta3.RevisionRef.RevisionCase revision_case = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for revisionCase to set.

Returns
Type Description
RevisionRef.Builder

This builder for chaining.

setRevisionId(String value)

public RevisionRef.Builder setRevisionId(String value)

Reads the revision given by the id.

string revision_id = 2;

Parameter
Name Description
value String

The revisionId to set.

Returns
Type Description
RevisionRef.Builder

This builder for chaining.

setRevisionIdBytes(ByteString value)

public RevisionRef.Builder setRevisionIdBytes(ByteString value)

Reads the revision given by the id.

string revision_id = 2;

Parameter
Name Description
value ByteString

The bytes for revisionId to set.

Returns
Type Description
RevisionRef.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final RevisionRef.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RevisionRef.Builder
Overrides