public final class Relation extends GeneratedMessage implements RelationOrBuilder
Defines the relationship between the entity (a) and another entity (b).
Protobuf type google.backstory.Relation
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
DIRECTION_FIELD_NUMBER
public static final int DIRECTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ENTITY_FIELD_NUMBER
public static final int ENTITY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ENTITY_LABEL_FIELD_NUMBER
public static final int ENTITY_LABEL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ENTITY_TYPE_FIELD_NUMBER
public static final int ENTITY_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
RELATIONSHIP_FIELD_NUMBER
public static final int RELATIONSHIP_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
UID_FIELD_NUMBER
public static final int UID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Relation getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Relation.Builder newBuilder()
newBuilder(Relation prototype)
public static Relation.Builder newBuilder(Relation prototype)
| Parameter |
| Name |
Description |
prototype |
Relation
|
parseDelimitedFrom(InputStream input)
public static Relation parseDelimitedFrom(InputStream input)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Relation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Relation parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Relation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Relation parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Relation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
parseFrom(CodedInputStream input)
public static Relation parseFrom(CodedInputStream input)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Relation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(InputStream input)
public static Relation parseFrom(InputStream input)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Relation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Relation parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Relation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Relation> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Relation getDefaultInstanceForType()
getDirection()
public Relation.Directionality getDirection()
Directionality of relationship between primary entity (a) and the
related entity (b).
.google.backstory.Relation.Directionality direction = 4;
getDirectionValue()
public int getDirectionValue()
Directionality of relationship between primary entity (a) and the
related entity (b).
.google.backstory.Relation.Directionality direction = 4;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for direction.
|
getEntity()
Entity (b) that the primary entity (a) is related to.
.google.backstory.Noun entity = 1;
| Returns |
| Type |
Description |
Noun |
The entity.
|
getEntityLabel()
public Relation.EntityLabel getEntityLabel()
Label to identify the Noun of the relation.
.google.backstory.Relation.EntityLabel entity_label = 6;
getEntityLabelValue()
public int getEntityLabelValue()
Label to identify the Noun of the relation.
.google.backstory.Relation.EntityLabel entity_label = 6;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for entityLabel.
|
getEntityOrBuilder()
public NounOrBuilder getEntityOrBuilder()
Entity (b) that the primary entity (a) is related to.
.google.backstory.Noun entity = 1;
getEntityType()
public EntityMetadata.EntityType getEntityType()
Type of the related entity (b) in this relationship.
.google.backstory.EntityMetadata.EntityType entity_type = 2;
getEntityTypeValue()
public int getEntityTypeValue()
Type of the related entity (b) in this relationship.
.google.backstory.EntityMetadata.EntityType entity_type = 2;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for entityType.
|
getParserForType()
public Parser<Relation> getParserForType()
Overrides
getRelationship()
public Relation.Relationship getRelationship()
Type of relationship.
.google.backstory.Relation.Relationship relationship = 3;
getRelationshipValue()
public int getRelationshipValue()
Type of relationship.
.google.backstory.Relation.Relationship relationship = 3;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for relationship.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getUid()
public ByteString getUid()
UID of the relationship.
bytes uid = 5;
hasEntity()
public boolean hasEntity()
Entity (b) that the primary entity (a) is related to.
.google.backstory.Noun entity = 1;
| Returns |
| Type |
Description |
boolean |
Whether the entity field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Relation.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Relation.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Relation.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides