Class RevisionRef.Builder (2.40.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RevisionRef build()
Returns
TypeDescription
RevisionRef

buildPartial()

public RevisionRef buildPartial()
Returns
TypeDescription
RevisionRef

clear()

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

clearField(Descriptors.FieldDescriptor field)

public RevisionRef.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
RevisionRef.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RevisionRef.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
RevisionRef.Builder

This builder for chaining.

clearRevisionId()

public RevisionRef.Builder clearRevisionId()

Reads the revision given by the id.

string revision_id = 2;

Returns
TypeDescription
RevisionRef.Builder

This builder for chaining.

clearSource()

public RevisionRef.Builder clearSource()
Returns
TypeDescription
RevisionRef.Builder

clone()

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

getDefaultInstanceForType()

public RevisionRef getDefaultInstanceForType()
Returns
TypeDescription
RevisionRef

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The revisionId.

getRevisionIdBytes()

public ByteString getRevisionIdBytes()

Reads the revision given by the id.

string revision_id = 2;

Returns
TypeDescription
ByteString

The bytes for revisionId.

getSourceCase()

public RevisionRef.SourceCase getSourceCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the revisionCase field is set.

hasRevisionId()

public boolean hasRevisionId()

Reads the revision given by the id.

string revision_id = 2;

Returns
TypeDescription
boolean

Whether the revisionId field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RevisionRef other)

public RevisionRef.Builder mergeFrom(RevisionRef other)
Parameter
NameDescription
otherRevisionRef
Returns
TypeDescription
RevisionRef.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public RevisionRef.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The latestProcessorVersion to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for latestProcessorVersion to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueRevisionRef.RevisionCase

The revisionCase to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
valueString

The revisionId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for revisionId to set.

Returns
TypeDescription
RevisionRef.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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