Class Graph.Builder (0.3.0)

public static final class Graph.Builder extends GeneratedMessage.Builder<Graph.Builder> implements GraphOrBuilder

Represents a graph structure composed of nodes and edges.

Protobuf type google.cloud.apptopology.v1.Graph

Implements

GraphOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllEdges(Iterable<? extends Edge> values)

public Graph.Builder addAllEdges(Iterable<? extends Edge> values)

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
values Iterable<? extends com.google.cloud.apptopology.v1.Edge>
Returns
Type Description
Graph.Builder

addAllNodes(Iterable<? extends Node> values)

public Graph.Builder addAllNodes(Iterable<? extends Node> values)

A collection of unique nodes that make up the graph.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.apptopology.v1.Node>
Returns
Type Description
Graph.Builder

addEdges(Edge value)

public Graph.Builder addEdges(Edge value)

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
value Edge
Returns
Type Description
Graph.Builder

addEdges(Edge.Builder builderForValue)

public Graph.Builder addEdges(Edge.Builder builderForValue)

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
builderForValue Edge.Builder
Returns
Type Description
Graph.Builder

addEdges(int index, Edge value)

public Graph.Builder addEdges(int index, Edge value)

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;

Parameters
Name Description
index int
value Edge
Returns
Type Description
Graph.Builder

addEdges(int index, Edge.Builder builderForValue)

public Graph.Builder addEdges(int index, Edge.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue Edge.Builder
Returns
Type Description
Graph.Builder

addEdgesBuilder()

public Edge.Builder addEdgesBuilder()

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
Edge.Builder

addEdgesBuilder(int index)

public Edge.Builder addEdgesBuilder(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.Builder

addNodes(Node value)

public Graph.Builder addNodes(Node value)

A collection of unique nodes that make up the graph.

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

Parameter
Name Description
value Node
Returns
Type Description
Graph.Builder

addNodes(Node.Builder builderForValue)

public Graph.Builder addNodes(Node.Builder builderForValue)

A collection of unique nodes that make up the graph.

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

Parameter
Name Description
builderForValue Node.Builder
Returns
Type Description
Graph.Builder

addNodes(int index, Node value)

public Graph.Builder addNodes(int index, Node value)

A collection of unique nodes that make up the graph.

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

Parameters
Name Description
index int
value Node
Returns
Type Description
Graph.Builder

addNodes(int index, Node.Builder builderForValue)

public Graph.Builder addNodes(int index, Node.Builder builderForValue)

A collection of unique nodes that make up the graph.

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

Parameters
Name Description
index int
builderForValue Node.Builder
Returns
Type Description
Graph.Builder

addNodesBuilder()

public Node.Builder addNodesBuilder()

A collection of unique nodes that make up the graph.

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

Returns
Type Description
Node.Builder

addNodesBuilder(int index)

public Node.Builder addNodesBuilder(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.Builder

build()

public Graph build()
Returns
Type Description
Graph

buildPartial()

public Graph buildPartial()
Returns
Type Description
Graph

clear()

public Graph.Builder clear()
Returns
Type Description
Graph.Builder
Overrides

clearEdges()

public Graph.Builder clearEdges()

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
Graph.Builder

clearNodes()

public Graph.Builder clearNodes()

A collection of unique nodes that make up the graph.

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

Returns
Type Description
Graph.Builder

getDefaultInstanceForType()

public Graph getDefaultInstanceForType()
Returns
Type Description
Graph

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

getEdgesBuilder(int index)

public Edge.Builder getEdgesBuilder(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.Builder

getEdgesBuilderList()

public List<Edge.Builder> getEdgesBuilderList()

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<Builder>

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

getNodesBuilder(int index)

public Node.Builder getNodesBuilder(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.Builder

getNodesBuilderList()

public List<Node.Builder> getNodesBuilderList()

A collection of unique nodes that make up the graph.

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

Returns
Type Description
List<Builder>

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>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Graph other)

public Graph.Builder mergeFrom(Graph other)
Parameter
Name Description
other Graph
Returns
Type Description
Graph.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Graph.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Graph.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Graph.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Graph.Builder
Overrides

removeEdges(int index)

public Graph.Builder removeEdges(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
Graph.Builder

removeNodes(int index)

public Graph.Builder removeNodes(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
Graph.Builder

setEdges(int index, Edge value)

public Graph.Builder setEdges(int index, Edge value)

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;

Parameters
Name Description
index int
value Edge
Returns
Type Description
Graph.Builder

setEdges(int index, Edge.Builder builderForValue)

public Graph.Builder setEdges(int index, Edge.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue Edge.Builder
Returns
Type Description
Graph.Builder

setNodes(int index, Node value)

public Graph.Builder setNodes(int index, Node value)

A collection of unique nodes that make up the graph.

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

Parameters
Name Description
index int
value Node
Returns
Type Description
Graph.Builder

setNodes(int index, Node.Builder builderForValue)

public Graph.Builder setNodes(int index, Node.Builder builderForValue)

A collection of unique nodes that make up the graph.

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

Parameters
Name Description
index int
builderForValue Node.Builder
Returns
Type Description
Graph.Builder