Class Graph (0.3.0)

public final class Graph extends GeneratedMessage implements GraphOrBuilder

Represents a graph structure composed of nodes and edges.

Protobuf type google.cloud.apptopology.v1.Graph

Implements

GraphOrBuilder

Static Fields

EDGES_FIELD_NUMBER

public static final int EDGES_FIELD_NUMBER
Field Value
Type Description
int

NODES_FIELD_NUMBER

public static final int NODES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Graph getDefaultInstance()
Returns
Type Description
Graph

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Graph.Builder newBuilder()
Returns
Type Description
Graph.Builder

newBuilder(Graph prototype)

public static Graph.Builder newBuilder(Graph prototype)
Parameter
Name Description
prototype Graph
Returns
Type Description
Graph.Builder

parseDelimitedFrom(InputStream input)

public static Graph parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Graph
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Graph parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Graph
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Graph parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Graph
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Graph parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Graph
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Graph parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Graph
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Graph parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Graph
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Graph parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Graph
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Graph parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Graph
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Graph parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Graph
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Graph parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Graph
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Graph parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Graph
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Graph parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Graph
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Graph> parser()
Returns
Type Description
Parser<Graph>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Graph getDefaultInstanceForType()
Returns
Type Description
Graph

getEdges(int index)

public Edge getEdges(int index)

Collection of unique edges connecting the nodes in the graph. Both source and destination nodes for each edges will be present in the nodes list.

repeated .google.cloud.apptopology.v1.Edge edges = 2;

Parameter
Name Description
index int
Returns
Type Description
Edge

getEdgesCount()

public int getEdgesCount()

Collection of unique edges connecting the nodes in the graph. Both source and destination nodes for each edges will be present in the nodes list.

repeated .google.cloud.apptopology.v1.Edge edges = 2;

Returns
Type Description
int

getEdgesList()

public List<Edge> getEdgesList()

Collection of unique edges connecting the nodes in the graph. Both source and destination nodes for each edges will be present in the nodes list.

repeated .google.cloud.apptopology.v1.Edge edges = 2;

Returns
Type Description
List<Edge>

getEdgesOrBuilder(int index)

public EdgeOrBuilder getEdgesOrBuilder(int index)

Collection of unique edges connecting the nodes in the graph. Both source and destination nodes for each edges will be present in the nodes list.

repeated .google.cloud.apptopology.v1.Edge edges = 2;

Parameter
Name Description
index int
Returns
Type Description
EdgeOrBuilder

getEdgesOrBuilderList()

public List<? extends EdgeOrBuilder> getEdgesOrBuilderList()

Collection of unique edges connecting the nodes in the graph. Both source and destination nodes for each edges will be present in the nodes list.

repeated .google.cloud.apptopology.v1.Edge edges = 2;

Returns
Type Description
List<? extends com.google.cloud.apptopology.v1.EdgeOrBuilder>

getNodes(int index)

public Node getNodes(int index)

A collection of unique nodes that make up the graph.

repeated .google.cloud.apptopology.v1.Node nodes = 1;

Parameter
Name Description
index int
Returns
Type Description
Node

getNodesCount()

public int getNodesCount()

A collection of unique nodes that make up the graph.

repeated .google.cloud.apptopology.v1.Node nodes = 1;

Returns
Type Description
int

getNodesList()

public List<Node> getNodesList()

A collection of unique nodes that make up the graph.

repeated .google.cloud.apptopology.v1.Node nodes = 1;

Returns
Type Description
List<Node>

getNodesOrBuilder(int index)

public NodeOrBuilder getNodesOrBuilder(int index)

A collection of unique nodes that make up the graph.

repeated .google.cloud.apptopology.v1.Node nodes = 1;

Parameter
Name Description
index int
Returns
Type Description
NodeOrBuilder

getNodesOrBuilderList()

public List<? extends NodeOrBuilder> getNodesOrBuilderList()

A collection of unique nodes that make up the graph.

repeated .google.cloud.apptopology.v1.Node nodes = 1;

Returns
Type Description
List<? extends com.google.cloud.apptopology.v1.NodeOrBuilder>

getParserForType()

public Parser<Graph> getParserForType()
Returns
Type Description
Parser<Graph>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Graph.Builder newBuilderForType()
Returns
Type Description
Graph.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Graph.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Graph.Builder
Overrides

toBuilder()

public Graph.Builder toBuilder()
Returns
Type Description
Graph.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException