Class Document.EntityRelation (2.17.0)

public static final class Document.EntityRelation extends GeneratedMessageV3 implements Document.EntityRelationOrBuilder

Relationship between Entities.

Protobuf type google.cloud.documentai.v1beta3.Document.EntityRelation

Static Fields

OBJECT_ID_FIELD_NUMBER

public static final int OBJECT_ID_FIELD_NUMBER
Field Value
TypeDescription
int

RELATION_FIELD_NUMBER

public static final int RELATION_FIELD_NUMBER
Field Value
TypeDescription
int

SUBJECT_ID_FIELD_NUMBER

public static final int SUBJECT_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Document.EntityRelation getDefaultInstance()
Returns
TypeDescription
Document.EntityRelation

getDescriptor()

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

newBuilder()

public static Document.EntityRelation.Builder newBuilder()
Returns
TypeDescription
Document.EntityRelation.Builder

newBuilder(Document.EntityRelation prototype)

public static Document.EntityRelation.Builder newBuilder(Document.EntityRelation prototype)
Parameter
NameDescription
prototypeDocument.EntityRelation
Returns
TypeDescription
Document.EntityRelation.Builder

parseDelimitedFrom(InputStream input)

public static Document.EntityRelation parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Document.EntityRelation
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Document.EntityRelation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.EntityRelation
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Document.EntityRelation parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Document.EntityRelation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Document.EntityRelation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.EntityRelation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Document.EntityRelation parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Document.EntityRelation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Document.EntityRelation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.EntityRelation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Document.EntityRelation parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Document.EntityRelation
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Document.EntityRelation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.EntityRelation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Document.EntityRelation parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Document.EntityRelation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Document.EntityRelation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.EntityRelation
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Document.EntityRelation parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Document.EntityRelation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Document.EntityRelation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.EntityRelation
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Document.EntityRelation> parser()
Returns
TypeDescription
Parser<EntityRelation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Document.EntityRelation getDefaultInstanceForType()
Returns
TypeDescription
Document.EntityRelation

getObjectId()

public String getObjectId()

Object entity id.

string object_id = 2;

Returns
TypeDescription
String

The objectId.

getObjectIdBytes()

public ByteString getObjectIdBytes()

Object entity id.

string object_id = 2;

Returns
TypeDescription
ByteString

The bytes for objectId.

getParserForType()

public Parser<Document.EntityRelation> getParserForType()
Returns
TypeDescription
Parser<EntityRelation>
Overrides

getRelation()

public String getRelation()

Relationship description.

string relation = 3;

Returns
TypeDescription
String

The relation.

getRelationBytes()

public ByteString getRelationBytes()

Relationship description.

string relation = 3;

Returns
TypeDescription
ByteString

The bytes for relation.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSubjectId()

public String getSubjectId()

Subject entity id.

string subject_id = 1;

Returns
TypeDescription
String

The subjectId.

getSubjectIdBytes()

public ByteString getSubjectIdBytes()

Subject entity id.

string subject_id = 1;

Returns
TypeDescription
ByteString

The bytes for subjectId.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Document.EntityRelation.Builder newBuilderForType()
Returns
TypeDescription
Document.EntityRelation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Document.EntityRelation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Document.EntityRelation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Document.EntityRelation.Builder toBuilder()
Returns
TypeDescription
Document.EntityRelation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException