public static final class GraphPattern.Builder extends GeneratedMessage.Builder<GraphPattern.Builder> implements GraphPatternOrBuilderRecursive graph pattern matcher to select and constrain the returned topology. AppTopology API allows cycle in the graph traversal and will return unique node and edge results in the response. SLO is guaranteed for at most 5 hops in the graph traversal.
Protobuf type google.cloud.apptopology.v1.GraphPattern
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GraphPattern.BuilderImplements
GraphPatternOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllNeighbors(Iterable<? extends ConnectedNodePattern> values)
public GraphPattern.Builder addAllNeighbors(Iterable<? extends ConnectedNodePattern> values)Optional. Pattern matcher to match the connected subgraphs; all of these are ANDed.
repeated .google.cloud.apptopology.v1.ConnectedNodePattern neighbors = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.apptopology.v1.ConnectedNodePattern> |
| Returns | |
|---|---|
| Type | Description |
GraphPattern.Builder |
|
addNeighbors(ConnectedNodePattern value)
public GraphPattern.Builder addNeighbors(ConnectedNodePattern value)Optional. Pattern matcher to match the connected subgraphs; all of these are ANDed.
repeated .google.cloud.apptopology.v1.ConnectedNodePattern neighbors = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ConnectedNodePattern |
| Returns | |
|---|---|
| Type | Description |
GraphPattern.Builder |
|
addNeighbors(ConnectedNodePattern.Builder builderForValue)
public GraphPattern.Builder addNeighbors(ConnectedNodePattern.Builder builderForValue)Optional. Pattern matcher to match the connected subgraphs; all of these are ANDed.
repeated .google.cloud.apptopology.v1.ConnectedNodePattern neighbors = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ConnectedNodePattern.Builder |
| Returns | |
|---|---|
| Type | Description |
GraphPattern.Builder |
|
addNeighbors(int index, ConnectedNodePattern value)
public GraphPattern.Builder addNeighbors(int index, ConnectedNodePattern value)Optional. Pattern matcher to match the connected subgraphs; all of these are ANDed.
repeated .google.cloud.apptopology.v1.ConnectedNodePattern neighbors = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ConnectedNodePattern |
| Returns | |
|---|---|
| Type | Description |
GraphPattern.Builder |
|
addNeighbors(int index, ConnectedNodePattern.Builder builderForValue)
public GraphPattern.Builder addNeighbors(int index, ConnectedNodePattern.Builder builderForValue)Optional. Pattern matcher to match the connected subgraphs; all of these are ANDed.
repeated .google.cloud.apptopology.v1.ConnectedNodePattern neighbors = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ConnectedNodePattern.Builder |
| Returns | |
|---|---|
| Type | Description |
GraphPattern.Builder |
|
addNeighborsBuilder()
public ConnectedNodePattern.Builder addNeighborsBuilder()Optional. Pattern matcher to match the connected subgraphs; all of these are ANDed.
repeated .google.cloud.apptopology.v1.ConnectedNodePattern neighbors = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ConnectedNodePattern.Builder |
|
addNeighborsBuilder(int index)
public ConnectedNodePattern.Builder addNeighborsBuilder(int index)Optional. Pattern matcher to match the connected subgraphs; all of these are ANDed.
repeated .google.cloud.apptopology.v1.ConnectedNodePattern neighbors = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ConnectedNodePattern.Builder |
|
build()
public GraphPattern build()| Returns | |
|---|---|
| Type | Description |
GraphPattern |
|
buildPartial()
public GraphPattern buildPartial()| Returns | |
|---|---|
| Type | Description |
GraphPattern |
|
clear()
public GraphPattern.Builder clear()| Returns | |
|---|---|
| Type | Description |
GraphPattern.Builder |
|
clearNeighbors()
public GraphPattern.Builder clearNeighbors()Optional. Pattern matcher to match the connected subgraphs; all of these are ANDed.
repeated .google.cloud.apptopology.v1.ConnectedNodePattern neighbors = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GraphPattern.Builder |
|
clearStartingNode()
public GraphPattern.Builder clearStartingNode()Required. Pattern matcher to select the starting nodes in the graph.
.google.cloud.apptopology.v1.NodePattern starting_node = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
GraphPattern.Builder |
|
getDefaultInstanceForType()
public GraphPattern getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GraphPattern |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getNeighbors(int index)
public ConnectedNodePattern getNeighbors(int index)Optional. Pattern matcher to match the connected subgraphs; all of these are ANDed.
repeated .google.cloud.apptopology.v1.ConnectedNodePattern neighbors = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ConnectedNodePattern |
|
getNeighborsBuilder(int index)
public ConnectedNodePattern.Builder getNeighborsBuilder(int index)Optional. Pattern matcher to match the connected subgraphs; all of these are ANDed.
repeated .google.cloud.apptopology.v1.ConnectedNodePattern neighbors = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ConnectedNodePattern.Builder |
|
getNeighborsBuilderList()
public List<ConnectedNodePattern.Builder> getNeighborsBuilderList()Optional. Pattern matcher to match the connected subgraphs; all of these are ANDed.
repeated .google.cloud.apptopology.v1.ConnectedNodePattern neighbors = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getNeighborsCount()
public int getNeighborsCount()Optional. Pattern matcher to match the connected subgraphs; all of these are ANDed.
repeated .google.cloud.apptopology.v1.ConnectedNodePattern neighbors = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getNeighborsList()
public List<ConnectedNodePattern> getNeighborsList()Optional. Pattern matcher to match the connected subgraphs; all of these are ANDed.
repeated .google.cloud.apptopology.v1.ConnectedNodePattern neighbors = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<ConnectedNodePattern> |
|
getNeighborsOrBuilder(int index)
public ConnectedNodePatternOrBuilder getNeighborsOrBuilder(int index)Optional. Pattern matcher to match the connected subgraphs; all of these are ANDed.
repeated .google.cloud.apptopology.v1.ConnectedNodePattern neighbors = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ConnectedNodePatternOrBuilder |
|
getNeighborsOrBuilderList()
public List<? extends ConnectedNodePatternOrBuilder> getNeighborsOrBuilderList()Optional. Pattern matcher to match the connected subgraphs; all of these are ANDed.
repeated .google.cloud.apptopology.v1.ConnectedNodePattern neighbors = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.apptopology.v1.ConnectedNodePatternOrBuilder> |
|
getStartingNode()
public NodePattern getStartingNode()Required. Pattern matcher to select the starting nodes in the graph.
.google.cloud.apptopology.v1.NodePattern starting_node = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
NodePattern |
The startingNode. |
getStartingNodeBuilder()
public NodePattern.Builder getStartingNodeBuilder()Required. Pattern matcher to select the starting nodes in the graph.
.google.cloud.apptopology.v1.NodePattern starting_node = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
NodePattern.Builder |
|
getStartingNodeOrBuilder()
public NodePatternOrBuilder getStartingNodeOrBuilder()Required. Pattern matcher to select the starting nodes in the graph.
.google.cloud.apptopology.v1.NodePattern starting_node = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
NodePatternOrBuilder |
|
hasStartingNode()
public boolean hasStartingNode()Required. Pattern matcher to select the starting nodes in the graph.
.google.cloud.apptopology.v1.NodePattern starting_node = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the startingNode field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GraphPattern other)
public GraphPattern.Builder mergeFrom(GraphPattern other)| Parameter | |
|---|---|
| Name | Description |
other |
GraphPattern |
| Returns | |
|---|---|
| Type | Description |
GraphPattern.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GraphPattern.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GraphPattern.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GraphPattern.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GraphPattern.Builder |
|
mergeStartingNode(NodePattern value)
public GraphPattern.Builder mergeStartingNode(NodePattern value)Required. Pattern matcher to select the starting nodes in the graph.
.google.cloud.apptopology.v1.NodePattern starting_node = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
NodePattern |
| Returns | |
|---|---|
| Type | Description |
GraphPattern.Builder |
|
removeNeighbors(int index)
public GraphPattern.Builder removeNeighbors(int index)Optional. Pattern matcher to match the connected subgraphs; all of these are ANDed.
repeated .google.cloud.apptopology.v1.ConnectedNodePattern neighbors = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
GraphPattern.Builder |
|
setNeighbors(int index, ConnectedNodePattern value)
public GraphPattern.Builder setNeighbors(int index, ConnectedNodePattern value)Optional. Pattern matcher to match the connected subgraphs; all of these are ANDed.
repeated .google.cloud.apptopology.v1.ConnectedNodePattern neighbors = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ConnectedNodePattern |
| Returns | |
|---|---|
| Type | Description |
GraphPattern.Builder |
|
setNeighbors(int index, ConnectedNodePattern.Builder builderForValue)
public GraphPattern.Builder setNeighbors(int index, ConnectedNodePattern.Builder builderForValue)Optional. Pattern matcher to match the connected subgraphs; all of these are ANDed.
repeated .google.cloud.apptopology.v1.ConnectedNodePattern neighbors = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ConnectedNodePattern.Builder |
| Returns | |
|---|---|
| Type | Description |
GraphPattern.Builder |
|
setStartingNode(NodePattern value)
public GraphPattern.Builder setStartingNode(NodePattern value)Required. Pattern matcher to select the starting nodes in the graph.
.google.cloud.apptopology.v1.NodePattern starting_node = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
NodePattern |
| Returns | |
|---|---|
| Type | Description |
GraphPattern.Builder |
|
setStartingNode(NodePattern.Builder builderForValue)
public GraphPattern.Builder setStartingNode(NodePattern.Builder builderForValue)Required. Pattern matcher to select the starting nodes in the graph.
.google.cloud.apptopology.v1.NodePattern starting_node = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
NodePattern.Builder |
| Returns | |
|---|---|
| Type | Description |
GraphPattern.Builder |
|