public static final class CoreNLPProtos.Relation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CoreNLPProtos.Relation.Builder> implements CoreNLPProtos.RelationOrBuilder
A representation of a relation, mirroring RelationMentionProtobuf type
edu.stanford.nlp.pipeline.Relation
Modifier and Type | Method and Description |
---|---|
CoreNLPProtos.Relation.Builder |
addAllArg(java.lang.Iterable<? extends CoreNLPProtos.Entity> values)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7; |
CoreNLPProtos.Relation.Builder |
addAllArgName(java.lang.Iterable<java.lang.String> values)
repeated string argName = 6; |
CoreNLPProtos.Relation.Builder |
addArg(CoreNLPProtos.Entity.Builder builderForValue)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7; |
CoreNLPProtos.Relation.Builder |
addArg(CoreNLPProtos.Entity value)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7; |
CoreNLPProtos.Relation.Builder |
addArg(int index,
CoreNLPProtos.Entity.Builder builderForValue)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7; |
CoreNLPProtos.Relation.Builder |
addArg(int index,
CoreNLPProtos.Entity value)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7; |
CoreNLPProtos.Entity.Builder |
addArgBuilder()
repeated .edu.stanford.nlp.pipeline.Entity arg = 7; |
CoreNLPProtos.Entity.Builder |
addArgBuilder(int index)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7; |
CoreNLPProtos.Relation.Builder |
addArgName(java.lang.String value)
repeated string argName = 6; |
CoreNLPProtos.Relation.Builder |
addArgNameBytes(com.google.protobuf.ByteString value)
repeated string argName = 6; |
CoreNLPProtos.Relation.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
CoreNLPProtos.Relation |
build() |
CoreNLPProtos.Relation |
buildPartial() |
CoreNLPProtos.Relation.Builder |
clear() |
CoreNLPProtos.Relation.Builder |
clearArg()
repeated .edu.stanford.nlp.pipeline.Entity arg = 7; |
CoreNLPProtos.Relation.Builder |
clearArgName()
repeated string argName = 6; |
CoreNLPProtos.Relation.Builder |
clearExtentEnd()
optional uint32 extentEnd = 3; |
CoreNLPProtos.Relation.Builder |
clearExtentStart()
optional uint32 extentStart = 2; |
CoreNLPProtos.Relation.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CoreNLPProtos.Relation.Builder |
clearObjectID()
inherited from ExtractionObject
|
CoreNLPProtos.Relation.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CoreNLPProtos.Relation.Builder |
clearSignature()
optional string signature = 8; |
CoreNLPProtos.Relation.Builder |
clearSubtype()
Implicit
uint32 sentence @see implicit in sentence
|
CoreNLPProtos.Relation.Builder |
clearType()
optional string type = 4; |
CoreNLPProtos.Relation.Builder |
clone() |
CoreNLPProtos.Entity |
getArg(int index)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7; |
CoreNLPProtos.Entity.Builder |
getArgBuilder(int index)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7; |
java.util.List<CoreNLPProtos.Entity.Builder> |
getArgBuilderList()
repeated .edu.stanford.nlp.pipeline.Entity arg = 7; |
int |
getArgCount()
repeated .edu.stanford.nlp.pipeline.Entity arg = 7; |
java.util.List<CoreNLPProtos.Entity> |
getArgList()
repeated .edu.stanford.nlp.pipeline.Entity arg = 7; |
java.lang.String |
getArgName(int index)
repeated string argName = 6; |
com.google.protobuf.ByteString |
getArgNameBytes(int index)
repeated string argName = 6; |
int |
getArgNameCount()
repeated string argName = 6; |
com.google.protobuf.ProtocolStringList |
getArgNameList()
repeated string argName = 6; |
CoreNLPProtos.EntityOrBuilder |
getArgOrBuilder(int index)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7; |
java.util.List<? extends CoreNLPProtos.EntityOrBuilder> |
getArgOrBuilderList()
repeated .edu.stanford.nlp.pipeline.Entity arg = 7; |
CoreNLPProtos.Relation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getExtentEnd()
optional uint32 extentEnd = 3; |
int |
getExtentStart()
optional uint32 extentStart = 2; |
java.lang.String |
getObjectID()
inherited from ExtractionObject
|
com.google.protobuf.ByteString |
getObjectIDBytes()
inherited from ExtractionObject
|
java.lang.String |
getSignature()
optional string signature = 8; |
com.google.protobuf.ByteString |
getSignatureBytes()
optional string signature = 8; |
java.lang.String |
getSubtype()
Implicit
uint32 sentence @see implicit in sentence
|
com.google.protobuf.ByteString |
getSubtypeBytes()
Implicit
uint32 sentence @see implicit in sentence
|
java.lang.String |
getType()
optional string type = 4; |
com.google.protobuf.ByteString |
getTypeBytes()
optional string type = 4; |
boolean |
hasExtentEnd()
optional uint32 extentEnd = 3; |
boolean |
hasExtentStart()
optional uint32 extentStart = 2; |
boolean |
hasObjectID()
inherited from ExtractionObject
|
boolean |
hasSignature()
optional string signature = 8; |
boolean |
hasSubtype()
Implicit
uint32 sentence @see implicit in sentence
|
boolean |
hasType()
optional string type = 4; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CoreNLPProtos.Relation.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CoreNLPProtos.Relation.Builder |
mergeFrom(CoreNLPProtos.Relation other) |
CoreNLPProtos.Relation.Builder |
mergeFrom(com.google.protobuf.Message other) |
CoreNLPProtos.Relation.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
CoreNLPProtos.Relation.Builder |
removeArg(int index)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7; |
CoreNLPProtos.Relation.Builder |
setArg(int index,
CoreNLPProtos.Entity.Builder builderForValue)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7; |
CoreNLPProtos.Relation.Builder |
setArg(int index,
CoreNLPProtos.Entity value)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7; |
CoreNLPProtos.Relation.Builder |
setArgName(int index,
java.lang.String value)
repeated string argName = 6; |
CoreNLPProtos.Relation.Builder |
setExtentEnd(int value)
optional uint32 extentEnd = 3; |
CoreNLPProtos.Relation.Builder |
setExtentStart(int value)
optional uint32 extentStart = 2; |
CoreNLPProtos.Relation.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
CoreNLPProtos.Relation.Builder |
setObjectID(java.lang.String value)
inherited from ExtractionObject
|
CoreNLPProtos.Relation.Builder |
setObjectIDBytes(com.google.protobuf.ByteString value)
inherited from ExtractionObject
|
CoreNLPProtos.Relation.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
CoreNLPProtos.Relation.Builder |
setSignature(java.lang.String value)
optional string signature = 8; |
CoreNLPProtos.Relation.Builder |
setSignatureBytes(com.google.protobuf.ByteString value)
optional string signature = 8; |
CoreNLPProtos.Relation.Builder |
setSubtype(java.lang.String value)
Implicit
uint32 sentence @see implicit in sentence
|
CoreNLPProtos.Relation.Builder |
setSubtypeBytes(com.google.protobuf.ByteString value)
Implicit
uint32 sentence @see implicit in sentence
|
CoreNLPProtos.Relation.Builder |
setType(java.lang.String value)
optional string type = 4; |
CoreNLPProtos.Relation.Builder |
setTypeBytes(com.google.protobuf.ByteString value)
optional string type = 4; |
CoreNLPProtos.Relation.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<CoreNLPProtos.Relation.Builder>
public CoreNLPProtos.Relation.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<CoreNLPProtos.Relation.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<CoreNLPProtos.Relation.Builder>
public CoreNLPProtos.Relation getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public CoreNLPProtos.Relation build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public CoreNLPProtos.Relation buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public CoreNLPProtos.Relation.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<CoreNLPProtos.Relation.Builder>
public CoreNLPProtos.Relation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<CoreNLPProtos.Relation.Builder>
public CoreNLPProtos.Relation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<CoreNLPProtos.Relation.Builder>
public CoreNLPProtos.Relation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<CoreNLPProtos.Relation.Builder>
public CoreNLPProtos.Relation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<CoreNLPProtos.Relation.Builder>
public CoreNLPProtos.Relation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<CoreNLPProtos.Relation.Builder>
public CoreNLPProtos.Relation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<CoreNLPProtos.Relation.Builder>
public CoreNLPProtos.Relation.Builder mergeFrom(CoreNLPProtos.Relation other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<CoreNLPProtos.Relation.Builder>
public CoreNLPProtos.Relation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<CoreNLPProtos.Relation.Builder>
java.io.IOException
public com.google.protobuf.ProtocolStringList getArgNameList()
repeated string argName = 6;
getArgNameList
in interface CoreNLPProtos.RelationOrBuilder
public int getArgNameCount()
repeated string argName = 6;
getArgNameCount
in interface CoreNLPProtos.RelationOrBuilder
public java.lang.String getArgName(int index)
repeated string argName = 6;
getArgName
in interface CoreNLPProtos.RelationOrBuilder
index
- The index of the element to return.public com.google.protobuf.ByteString getArgNameBytes(int index)
repeated string argName = 6;
getArgNameBytes
in interface CoreNLPProtos.RelationOrBuilder
index
- The index of the value to return.public CoreNLPProtos.Relation.Builder setArgName(int index, java.lang.String value)
repeated string argName = 6;
index
- The index to set the value at.value
- The argName to set.public CoreNLPProtos.Relation.Builder addArgName(java.lang.String value)
repeated string argName = 6;
value
- The argName to add.public CoreNLPProtos.Relation.Builder addAllArgName(java.lang.Iterable<java.lang.String> values)
repeated string argName = 6;
values
- The argName to add.public CoreNLPProtos.Relation.Builder clearArgName()
repeated string argName = 6;
public CoreNLPProtos.Relation.Builder addArgNameBytes(com.google.protobuf.ByteString value)
repeated string argName = 6;
value
- The bytes of the argName to add.public java.util.List<CoreNLPProtos.Entity> getArgList()
repeated .edu.stanford.nlp.pipeline.Entity arg = 7;
getArgList
in interface CoreNLPProtos.RelationOrBuilder
public int getArgCount()
repeated .edu.stanford.nlp.pipeline.Entity arg = 7;
getArgCount
in interface CoreNLPProtos.RelationOrBuilder
public CoreNLPProtos.Entity getArg(int index)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7;
getArg
in interface CoreNLPProtos.RelationOrBuilder
public CoreNLPProtos.Relation.Builder setArg(int index, CoreNLPProtos.Entity value)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7;
public CoreNLPProtos.Relation.Builder setArg(int index, CoreNLPProtos.Entity.Builder builderForValue)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7;
public CoreNLPProtos.Relation.Builder addArg(CoreNLPProtos.Entity value)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7;
public CoreNLPProtos.Relation.Builder addArg(int index, CoreNLPProtos.Entity value)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7;
public CoreNLPProtos.Relation.Builder addArg(CoreNLPProtos.Entity.Builder builderForValue)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7;
public CoreNLPProtos.Relation.Builder addArg(int index, CoreNLPProtos.Entity.Builder builderForValue)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7;
public CoreNLPProtos.Relation.Builder addAllArg(java.lang.Iterable<? extends CoreNLPProtos.Entity> values)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7;
public CoreNLPProtos.Relation.Builder clearArg()
repeated .edu.stanford.nlp.pipeline.Entity arg = 7;
public CoreNLPProtos.Relation.Builder removeArg(int index)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7;
public CoreNLPProtos.Entity.Builder getArgBuilder(int index)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7;
public CoreNLPProtos.EntityOrBuilder getArgOrBuilder(int index)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7;
getArgOrBuilder
in interface CoreNLPProtos.RelationOrBuilder
public java.util.List<? extends CoreNLPProtos.EntityOrBuilder> getArgOrBuilderList()
repeated .edu.stanford.nlp.pipeline.Entity arg = 7;
getArgOrBuilderList
in interface CoreNLPProtos.RelationOrBuilder
public CoreNLPProtos.Entity.Builder addArgBuilder()
repeated .edu.stanford.nlp.pipeline.Entity arg = 7;
public CoreNLPProtos.Entity.Builder addArgBuilder(int index)
repeated .edu.stanford.nlp.pipeline.Entity arg = 7;
public java.util.List<CoreNLPProtos.Entity.Builder> getArgBuilderList()
repeated .edu.stanford.nlp.pipeline.Entity arg = 7;
public boolean hasSignature()
optional string signature = 8;
hasSignature
in interface CoreNLPProtos.RelationOrBuilder
public java.lang.String getSignature()
optional string signature = 8;
getSignature
in interface CoreNLPProtos.RelationOrBuilder
public com.google.protobuf.ByteString getSignatureBytes()
optional string signature = 8;
getSignatureBytes
in interface CoreNLPProtos.RelationOrBuilder
public CoreNLPProtos.Relation.Builder setSignature(java.lang.String value)
optional string signature = 8;
value
- The signature to set.public CoreNLPProtos.Relation.Builder clearSignature()
optional string signature = 8;
public CoreNLPProtos.Relation.Builder setSignatureBytes(com.google.protobuf.ByteString value)
optional string signature = 8;
value
- The bytes for signature to set.public boolean hasObjectID()
inherited from ExtractionObject
optional string objectID = 1;
hasObjectID
in interface CoreNLPProtos.RelationOrBuilder
public java.lang.String getObjectID()
inherited from ExtractionObject
optional string objectID = 1;
getObjectID
in interface CoreNLPProtos.RelationOrBuilder
public com.google.protobuf.ByteString getObjectIDBytes()
inherited from ExtractionObject
optional string objectID = 1;
getObjectIDBytes
in interface CoreNLPProtos.RelationOrBuilder
public CoreNLPProtos.Relation.Builder setObjectID(java.lang.String value)
inherited from ExtractionObject
optional string objectID = 1;
value
- The objectID to set.public CoreNLPProtos.Relation.Builder clearObjectID()
inherited from ExtractionObject
optional string objectID = 1;
public CoreNLPProtos.Relation.Builder setObjectIDBytes(com.google.protobuf.ByteString value)
inherited from ExtractionObject
optional string objectID = 1;
value
- The bytes for objectID to set.public boolean hasExtentStart()
optional uint32 extentStart = 2;
hasExtentStart
in interface CoreNLPProtos.RelationOrBuilder
public int getExtentStart()
optional uint32 extentStart = 2;
getExtentStart
in interface CoreNLPProtos.RelationOrBuilder
public CoreNLPProtos.Relation.Builder setExtentStart(int value)
optional uint32 extentStart = 2;
value
- The extentStart to set.public CoreNLPProtos.Relation.Builder clearExtentStart()
optional uint32 extentStart = 2;
public boolean hasExtentEnd()
optional uint32 extentEnd = 3;
hasExtentEnd
in interface CoreNLPProtos.RelationOrBuilder
public int getExtentEnd()
optional uint32 extentEnd = 3;
getExtentEnd
in interface CoreNLPProtos.RelationOrBuilder
public CoreNLPProtos.Relation.Builder setExtentEnd(int value)
optional uint32 extentEnd = 3;
value
- The extentEnd to set.public CoreNLPProtos.Relation.Builder clearExtentEnd()
optional uint32 extentEnd = 3;
public boolean hasType()
optional string type = 4;
hasType
in interface CoreNLPProtos.RelationOrBuilder
public java.lang.String getType()
optional string type = 4;
getType
in interface CoreNLPProtos.RelationOrBuilder
public com.google.protobuf.ByteString getTypeBytes()
optional string type = 4;
getTypeBytes
in interface CoreNLPProtos.RelationOrBuilder
public CoreNLPProtos.Relation.Builder setType(java.lang.String value)
optional string type = 4;
value
- The type to set.public CoreNLPProtos.Relation.Builder clearType()
optional string type = 4;
public CoreNLPProtos.Relation.Builder setTypeBytes(com.google.protobuf.ByteString value)
optional string type = 4;
value
- The bytes for type to set.public boolean hasSubtype()
Implicit uint32 sentence @see implicit in sentence
optional string subtype = 5;
hasSubtype
in interface CoreNLPProtos.RelationOrBuilder
public java.lang.String getSubtype()
Implicit uint32 sentence @see implicit in sentence
optional string subtype = 5;
getSubtype
in interface CoreNLPProtos.RelationOrBuilder
public com.google.protobuf.ByteString getSubtypeBytes()
Implicit uint32 sentence @see implicit in sentence
optional string subtype = 5;
getSubtypeBytes
in interface CoreNLPProtos.RelationOrBuilder
public CoreNLPProtos.Relation.Builder setSubtype(java.lang.String value)
Implicit uint32 sentence @see implicit in sentence
optional string subtype = 5;
value
- The subtype to set.public CoreNLPProtos.Relation.Builder clearSubtype()
Implicit uint32 sentence @see implicit in sentence
optional string subtype = 5;
public CoreNLPProtos.Relation.Builder setSubtypeBytes(com.google.protobuf.ByteString value)
Implicit uint32 sentence @see implicit in sentence
optional string subtype = 5;
value
- The bytes for subtype to set.public final CoreNLPProtos.Relation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<CoreNLPProtos.Relation.Builder>
public final CoreNLPProtos.Relation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<CoreNLPProtos.Relation.Builder>