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
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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>
|
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
|
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;
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
|
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;
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;
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
|
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
|
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;
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
|
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;
addNodesBuilder()
public Node.Builder addNodesBuilder()
A collection of unique nodes that make up the graph.
repeated .google.cloud.apptopology.v1.Node nodes = 1;
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
|
build()
| Returns |
| Type |
Description |
Graph |
|
buildPartial()
public Graph buildPartial()
| Returns |
| Type |
Description |
Graph |
|
clear()
public Graph.Builder clear()
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;
clearNodes()
public Graph.Builder clearNodes()
A collection of unique nodes that make up the graph.
repeated .google.cloud.apptopology.v1.Node nodes = 1;
getDefaultInstanceForType()
public Graph getDefaultInstanceForType()
| Returns |
| Type |
Description |
Graph |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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;
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;
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
|
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
|
getNodesBuilderList()
public List<Node.Builder> getNodesBuilderList()
A collection of unique nodes that make up the graph.
repeated .google.cloud.apptopology.v1.Node nodes = 1;
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;
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Graph other)
public Graph.Builder mergeFrom(Graph other)
| Parameter |
| Name |
Description |
other |
Graph
|
public Graph.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Graph.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
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
|
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
|
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
|
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;
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
|
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;