Class GraphPattern (0.3.0)

public final class GraphPattern extends GeneratedMessage implements GraphPatternOrBuilder

Recursive 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

Static Fields

NEIGHBORS_FIELD_NUMBER

public static final int NEIGHBORS_FIELD_NUMBER
Field Value
Type Description
int

STARTING_NODE_FIELD_NUMBER

public static final int STARTING_NODE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GraphPattern getDefaultInstance()
Returns
Type Description
GraphPattern

getDescriptor()

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

newBuilder()

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

newBuilder(GraphPattern prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public GraphPattern getDefaultInstanceForType()
Returns
Type Description
GraphPattern

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

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>

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

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 GraphPattern.Builder newBuilderForType()
Returns
Type Description
GraphPattern.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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