Class Document.EntityRelation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Document.EntityRelation.Builder>
com.google.cloud.documentai.v1.Document.EntityRelation.Builder
All Implemented Interfaces:
Document.EntityRelationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Document.EntityRelation

public static final class Document.EntityRelation.Builder extends com.google.protobuf.GeneratedMessage.Builder<Document.EntityRelation.Builder> implements Document.EntityRelationOrBuilder
 Relationship between
 [Entities][google.cloud.documentai.v1.Document.Entity].
 
Protobuf type google.cloud.documentai.v1.Document.EntityRelation
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Document.EntityRelation.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Document.EntityRelation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Document.EntityRelation.Builder>
    • getDefaultInstanceForType

      public Document.EntityRelation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Document.EntityRelation build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Document.EntityRelation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Document.EntityRelation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.EntityRelation.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Document.EntityRelation.Builder>
    • mergeFrom

      public Document.EntityRelation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.EntityRelation.Builder>
      Throws:
      IOException
    • getSubjectId

      public String getSubjectId()
       Subject entity id.
       
      string subject_id = 1;
      Specified by:
      getSubjectId in interface Document.EntityRelationOrBuilder
      Returns:
      The subjectId.
    • getSubjectIdBytes

      public com.google.protobuf.ByteString getSubjectIdBytes()
       Subject entity id.
       
      string subject_id = 1;
      Specified by:
      getSubjectIdBytes in interface Document.EntityRelationOrBuilder
      Returns:
      The bytes for subjectId.
    • setSubjectId

      public Document.EntityRelation.Builder setSubjectId(String value)
       Subject entity id.
       
      string subject_id = 1;
      Parameters:
      value - The subjectId to set.
      Returns:
      This builder for chaining.
    • clearSubjectId

      public Document.EntityRelation.Builder clearSubjectId()
       Subject entity id.
       
      string subject_id = 1;
      Returns:
      This builder for chaining.
    • setSubjectIdBytes

      public Document.EntityRelation.Builder setSubjectIdBytes(com.google.protobuf.ByteString value)
       Subject entity id.
       
      string subject_id = 1;
      Parameters:
      value - The bytes for subjectId to set.
      Returns:
      This builder for chaining.
    • getObjectId

      public String getObjectId()
       Object entity id.
       
      string object_id = 2;
      Specified by:
      getObjectId in interface Document.EntityRelationOrBuilder
      Returns:
      The objectId.
    • getObjectIdBytes

      public com.google.protobuf.ByteString getObjectIdBytes()
       Object entity id.
       
      string object_id = 2;
      Specified by:
      getObjectIdBytes in interface Document.EntityRelationOrBuilder
      Returns:
      The bytes for objectId.
    • setObjectId

      public Document.EntityRelation.Builder setObjectId(String value)
       Object entity id.
       
      string object_id = 2;
      Parameters:
      value - The objectId to set.
      Returns:
      This builder for chaining.
    • clearObjectId

      public Document.EntityRelation.Builder clearObjectId()
       Object entity id.
       
      string object_id = 2;
      Returns:
      This builder for chaining.
    • setObjectIdBytes

      public Document.EntityRelation.Builder setObjectIdBytes(com.google.protobuf.ByteString value)
       Object entity id.
       
      string object_id = 2;
      Parameters:
      value - The bytes for objectId to set.
      Returns:
      This builder for chaining.
    • getRelation

      public String getRelation()
       Relationship description.
       
      string relation = 3;
      Specified by:
      getRelation in interface Document.EntityRelationOrBuilder
      Returns:
      The relation.
    • getRelationBytes

      public com.google.protobuf.ByteString getRelationBytes()
       Relationship description.
       
      string relation = 3;
      Specified by:
      getRelationBytes in interface Document.EntityRelationOrBuilder
      Returns:
      The bytes for relation.
    • setRelation

      public Document.EntityRelation.Builder setRelation(String value)
       Relationship description.
       
      string relation = 3;
      Parameters:
      value - The relation to set.
      Returns:
      This builder for chaining.
    • clearRelation

      public Document.EntityRelation.Builder clearRelation()
       Relationship description.
       
      string relation = 3;
      Returns:
      This builder for chaining.
    • setRelationBytes

      public Document.EntityRelation.Builder setRelationBytes(com.google.protobuf.ByteString value)
       Relationship description.
       
      string relation = 3;
      Parameters:
      value - The bytes for relation to set.
      Returns:
      This builder for chaining.