java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
de.uni_trier.recap.arg_services.graph.v1.Graph
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GraphOrBuilder, Serializable

public final class Graph extends com.google.protobuf.GeneratedMessageV3 implements GraphOrBuilder
 Main message to store the argument graph.
 Each attribute having of type `map<string, X>` is a dictionary where a unique ID points to a message.
 The ID does not follow a specific format, but we reccomend to use UUIDv1 everywhere.
 An alternative could be to use a counter for each attribute, but this is error prone and not recommended.
 The ID should be treated the same way as a primary key in a database and may be referenced in other places of the argument.
 For instance, edges only store the IDs of connected nodes.
 
Protobuf type arg_services.graph.v1.Graph
See Also:
  • Field Details

    • NODES_FIELD_NUMBER

      public static final int NODES_FIELD_NUMBER
      See Also:
    • EDGES_FIELD_NUMBER

      public static final int EDGES_FIELD_NUMBER
      See Also:
    • RESOURCES_FIELD_NUMBER

      public static final int RESOURCES_FIELD_NUMBER
      See Also:
    • PARTICIPANTS_FIELD_NUMBER

      public static final int PARTICIPANTS_FIELD_NUMBER
      See Also:
    • ANALYSTS_FIELD_NUMBER

      public static final int ANALYSTS_FIELD_NUMBER
      See Also:
    • MAJOR_CLAIM_FIELD_NUMBER

      public static final int MAJOR_CLAIM_FIELD_NUMBER
      See Also:
    • SCHEMA_VERSION_FIELD_NUMBER

      public static final int SCHEMA_VERSION_FIELD_NUMBER
      See Also:
    • LIBRARY_VERSION_FIELD_NUMBER

      public static final int LIBRARY_VERSION_FIELD_NUMBER
      See Also:
    • METADATA_FIELD_NUMBER

      public static final int METADATA_FIELD_NUMBER
      See Also:
    • USERDATA_FIELD_NUMBER

      public static final int USERDATA_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getNodesCount

      public int getNodesCount()
      Description copied from interface: GraphOrBuilder
       Dictionary of atom/scheme nodes.
       
      map<string, .arg_services.graph.v1.Node> nodes = 1 [json_name = "nodes"];
      Specified by:
      getNodesCount in interface GraphOrBuilder
    • containsNodes

      public boolean containsNodes(String key)
       Dictionary of atom/scheme nodes.
       
      map<string, .arg_services.graph.v1.Node> nodes = 1 [json_name = "nodes"];
      Specified by:
      containsNodes in interface GraphOrBuilder
    • getNodes

      @Deprecated public Map<String,Node> getNodes()
      Deprecated.
      Use getNodesMap() instead.
      Specified by:
      getNodes in interface GraphOrBuilder
    • getNodesMap

      public Map<String,Node> getNodesMap()
       Dictionary of atom/scheme nodes.
       
      map<string, .arg_services.graph.v1.Node> nodes = 1 [json_name = "nodes"];
      Specified by:
      getNodesMap in interface GraphOrBuilder
    • getNodesOrDefault

      public Node getNodesOrDefault(String key, Node defaultValue)
       Dictionary of atom/scheme nodes.
       
      map<string, .arg_services.graph.v1.Node> nodes = 1 [json_name = "nodes"];
      Specified by:
      getNodesOrDefault in interface GraphOrBuilder
    • getNodesOrThrow

      public Node getNodesOrThrow(String key)
       Dictionary of atom/scheme nodes.
       
      map<string, .arg_services.graph.v1.Node> nodes = 1 [json_name = "nodes"];
      Specified by:
      getNodesOrThrow in interface GraphOrBuilder
    • getEdgesCount

      public int getEdgesCount()
      Description copied from interface: GraphOrBuilder
       Dictionary of edges connecting nodes.
       
      map<string, .arg_services.graph.v1.Edge> edges = 2 [json_name = "edges"];
      Specified by:
      getEdgesCount in interface GraphOrBuilder
    • containsEdges

      public boolean containsEdges(String key)
       Dictionary of edges connecting nodes.
       
      map<string, .arg_services.graph.v1.Edge> edges = 2 [json_name = "edges"];
      Specified by:
      containsEdges in interface GraphOrBuilder
    • getEdges

      @Deprecated public Map<String,Edge> getEdges()
      Deprecated.
      Use getEdgesMap() instead.
      Specified by:
      getEdges in interface GraphOrBuilder
    • getEdgesMap

      public Map<String,Edge> getEdgesMap()
       Dictionary of edges connecting nodes.
       
      map<string, .arg_services.graph.v1.Edge> edges = 2 [json_name = "edges"];
      Specified by:
      getEdgesMap in interface GraphOrBuilder
    • getEdgesOrDefault

      public Edge getEdgesOrDefault(String key, Edge defaultValue)
       Dictionary of edges connecting nodes.
       
      map<string, .arg_services.graph.v1.Edge> edges = 2 [json_name = "edges"];
      Specified by:
      getEdgesOrDefault in interface GraphOrBuilder
    • getEdgesOrThrow

      public Edge getEdgesOrThrow(String key)
       Dictionary of edges connecting nodes.
       
      map<string, .arg_services.graph.v1.Edge> edges = 2 [json_name = "edges"];
      Specified by:
      getEdgesOrThrow in interface GraphOrBuilder
    • getResourcesCount

      public int getResourcesCount()
      Description copied from interface: GraphOrBuilder
       Dictionary of resources (i.e., source texts) of the argument such as newspaper articles.
       
      map<string, .arg_services.graph.v1.Resource> resources = 3 [json_name = "resources"];
      Specified by:
      getResourcesCount in interface GraphOrBuilder
    • containsResources

      public boolean containsResources(String key)
       Dictionary of resources (i.e., source texts) of the argument such as newspaper articles.
       
      map<string, .arg_services.graph.v1.Resource> resources = 3 [json_name = "resources"];
      Specified by:
      containsResources in interface GraphOrBuilder
    • getResources

      @Deprecated public Map<String,Resource> getResources()
      Deprecated.
      Use getResourcesMap() instead.
      Specified by:
      getResources in interface GraphOrBuilder
    • getResourcesMap

      public Map<String,Resource> getResourcesMap()
       Dictionary of resources (i.e., source texts) of the argument such as newspaper articles.
       
      map<string, .arg_services.graph.v1.Resource> resources = 3 [json_name = "resources"];
      Specified by:
      getResourcesMap in interface GraphOrBuilder
    • getResourcesOrDefault

      public Resource getResourcesOrDefault(String key, Resource defaultValue)
       Dictionary of resources (i.e., source texts) of the argument such as newspaper articles.
       
      map<string, .arg_services.graph.v1.Resource> resources = 3 [json_name = "resources"];
      Specified by:
      getResourcesOrDefault in interface GraphOrBuilder
    • getResourcesOrThrow

      public Resource getResourcesOrThrow(String key)
       Dictionary of resources (i.e., source texts) of the argument such as newspaper articles.
       
      map<string, .arg_services.graph.v1.Resource> resources = 3 [json_name = "resources"];
      Specified by:
      getResourcesOrThrow in interface GraphOrBuilder
    • getParticipantsCount

      public int getParticipantsCount()
      Description copied from interface: GraphOrBuilder
       Dictionary of participants (i.e., persons, users) that created the original argument.
       
      map<string, .arg_services.graph.v1.Participant> participants = 4 [json_name = "participants"];
      Specified by:
      getParticipantsCount in interface GraphOrBuilder
    • containsParticipants

      public boolean containsParticipants(String key)
       Dictionary of participants (i.e., persons, users) that created the original argument.
       
      map<string, .arg_services.graph.v1.Participant> participants = 4 [json_name = "participants"];
      Specified by:
      containsParticipants in interface GraphOrBuilder
    • getParticipants

      @Deprecated public Map<String,Participant> getParticipants()
      Deprecated.
      Specified by:
      getParticipants in interface GraphOrBuilder
    • getParticipantsMap

      public Map<String,Participant> getParticipantsMap()
       Dictionary of participants (i.e., persons, users) that created the original argument.
       
      map<string, .arg_services.graph.v1.Participant> participants = 4 [json_name = "participants"];
      Specified by:
      getParticipantsMap in interface GraphOrBuilder
    • getParticipantsOrDefault

      public Participant getParticipantsOrDefault(String key, Participant defaultValue)
       Dictionary of participants (i.e., persons, users) that created the original argument.
       
      map<string, .arg_services.graph.v1.Participant> participants = 4 [json_name = "participants"];
      Specified by:
      getParticipantsOrDefault in interface GraphOrBuilder
    • getParticipantsOrThrow

      public Participant getParticipantsOrThrow(String key)
       Dictionary of participants (i.e., persons, users) that created the original argument.
       
      map<string, .arg_services.graph.v1.Participant> participants = 4 [json_name = "participants"];
      Specified by:
      getParticipantsOrThrow in interface GraphOrBuilder
    • getAnalystsCount

      public int getAnalystsCount()
      Description copied from interface: GraphOrBuilder
       Dictionary of analysts/annotators that created the graph-based representation of the original argument.
       
      map<string, .arg_services.graph.v1.Analyst> analysts = 5 [json_name = "analysts"];
      Specified by:
      getAnalystsCount in interface GraphOrBuilder
    • containsAnalysts

      public boolean containsAnalysts(String key)
       Dictionary of analysts/annotators that created the graph-based representation of the original argument.
       
      map<string, .arg_services.graph.v1.Analyst> analysts = 5 [json_name = "analysts"];
      Specified by:
      containsAnalysts in interface GraphOrBuilder
    • getAnalysts

      @Deprecated public Map<String,Analyst> getAnalysts()
      Deprecated.
      Use getAnalystsMap() instead.
      Specified by:
      getAnalysts in interface GraphOrBuilder
    • getAnalystsMap

      public Map<String,Analyst> getAnalystsMap()
       Dictionary of analysts/annotators that created the graph-based representation of the original argument.
       
      map<string, .arg_services.graph.v1.Analyst> analysts = 5 [json_name = "analysts"];
      Specified by:
      getAnalystsMap in interface GraphOrBuilder
    • getAnalystsOrDefault

      public Analyst getAnalystsOrDefault(String key, Analyst defaultValue)
       Dictionary of analysts/annotators that created the graph-based representation of the original argument.
       
      map<string, .arg_services.graph.v1.Analyst> analysts = 5 [json_name = "analysts"];
      Specified by:
      getAnalystsOrDefault in interface GraphOrBuilder
    • getAnalystsOrThrow

      public Analyst getAnalystsOrThrow(String key)
       Dictionary of analysts/annotators that created the graph-based representation of the original argument.
       
      map<string, .arg_services.graph.v1.Analyst> analysts = 5 [json_name = "analysts"];
      Specified by:
      getAnalystsOrThrow in interface GraphOrBuilder
    • hasMajorClaim

      public boolean hasMajorClaim()
       ID of the atom node being the major claim of the graph.
       
      optional string major_claim = 6 [json_name = "majorClaim"];
      Specified by:
      hasMajorClaim in interface GraphOrBuilder
      Returns:
      Whether the majorClaim field is set.
    • getMajorClaim

      public String getMajorClaim()
       ID of the atom node being the major claim of the graph.
       
      optional string major_claim = 6 [json_name = "majorClaim"];
      Specified by:
      getMajorClaim in interface GraphOrBuilder
      Returns:
      The majorClaim.
    • getMajorClaimBytes

      public com.google.protobuf.ByteString getMajorClaimBytes()
       ID of the atom node being the major claim of the graph.
       
      optional string major_claim = 6 [json_name = "majorClaim"];
      Specified by:
      getMajorClaimBytes in interface GraphOrBuilder
      Returns:
      The bytes for majorClaim.
    • getSchemaVersion

      public int getSchemaVersion()
       Version of the protobuf schema. Should be always `1`.
       
      uint32 schema_version = 7 [json_name = "schemaVersion"];
      Specified by:
      getSchemaVersion in interface GraphOrBuilder
      Returns:
      The schemaVersion.
    • getLibraryVersion

      public String getLibraryVersion()
       Library used for serializing the graph.
       Should be unique accross programming languages (e.g., `arguebuf-python:1.2.0`).
       
      string library_version = 8 [json_name = "libraryVersion"];
      Specified by:
      getLibraryVersion in interface GraphOrBuilder
      Returns:
      The libraryVersion.
    • getLibraryVersionBytes

      public com.google.protobuf.ByteString getLibraryVersionBytes()
       Library used for serializing the graph.
       Should be unique accross programming languages (e.g., `arguebuf-python:1.2.0`).
       
      string library_version = 8 [json_name = "libraryVersion"];
      Specified by:
      getLibraryVersionBytes in interface GraphOrBuilder
      Returns:
      The bytes for libraryVersion.
    • hasMetadata

      public boolean hasMetadata()
       Store programmatic data like creation times.
       
      .arg_services.graph.v1.Metadata metadata = 14 [json_name = "metadata"];
      Specified by:
      hasMetadata in interface GraphOrBuilder
      Returns:
      Whether the metadata field is set.
    • getMetadata

      public Metadata getMetadata()
       Store programmatic data like creation times.
       
      .arg_services.graph.v1.Metadata metadata = 14 [json_name = "metadata"];
      Specified by:
      getMetadata in interface GraphOrBuilder
      Returns:
      The metadata.
    • getMetadataOrBuilder

      public MetadataOrBuilder getMetadataOrBuilder()
       Store programmatic data like creation times.
       
      .arg_services.graph.v1.Metadata metadata = 14 [json_name = "metadata"];
      Specified by:
      getMetadataOrBuilder in interface GraphOrBuilder
    • hasUserdata

      public boolean hasUserdata()
       Store arbitrary data as needed by a user.
       May contain all valid JSON values.
       
      .google.protobuf.Struct userdata = 15 [json_name = "userdata"];
      Specified by:
      hasUserdata in interface GraphOrBuilder
      Returns:
      Whether the userdata field is set.
    • getUserdata

      public com.google.protobuf.Struct getUserdata()
       Store arbitrary data as needed by a user.
       May contain all valid JSON values.
       
      .google.protobuf.Struct userdata = 15 [json_name = "userdata"];
      Specified by:
      getUserdata in interface GraphOrBuilder
      Returns:
      The userdata.
    • getUserdataOrBuilder

      public com.google.protobuf.StructOrBuilder getUserdataOrBuilder()
       Store arbitrary data as needed by a user.
       May contain all valid JSON values.
       
      .google.protobuf.Struct userdata = 15 [json_name = "userdata"];
      Specified by:
      getUserdataOrBuilder in interface GraphOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Graph parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Graph parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Graph parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Graph parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Graph parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Graph parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Graph parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Graph parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Graph parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Graph parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Graph parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Graph parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Graph.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Graph.Builder newBuilder()
    • newBuilder

      public static Graph.Builder newBuilder(Graph prototype)
    • toBuilder

      public Graph.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Graph.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Graph getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Graph> parser()
    • getParserForType

      public com.google.protobuf.Parser<Graph> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Graph getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder