Class Schema (0.3.0)

public final class Schema extends GeneratedMessage implements SchemaOrBuilder

Schema is a collection of supported node & edge labels and properties for an overlay.

Protobuf type google.cloud.apptopology.v1.Schema

Implements

SchemaOrBuilder

Static Fields

EDGE_RULES_FIELD_NUMBER

public static final int EDGE_RULES_FIELD_NUMBER
Field Value
Type Description
int

EDGE_TYPES_FIELD_NUMBER

public static final int EDGE_TYPES_FIELD_NUMBER
Field Value
Type Description
int

LABEL_PROPERTIES_FIELD_NUMBER

public static final int LABEL_PROPERTIES_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

NODE_TYPES_FIELD_NUMBER

public static final int NODE_TYPES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Schema getDefaultInstance()
Returns
Type Description
Schema

getDescriptor()

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

newBuilder()

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

newBuilder(Schema prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Schema getDefaultInstanceForType()
Returns
Type Description
Schema

getEdgeRules(int index)

public EdgeRule getEdgeRules(int index)

Edge rules. These will indicate which node types can be connected and through what edge type. This is a list of (source_node_type, edge_type, destination_node_type) tuples.

repeated .google.cloud.apptopology.v1.EdgeRule edge_rules = 5;

Parameter
Name Description
index int
Returns
Type Description
EdgeRule

getEdgeRulesCount()

public int getEdgeRulesCount()

Edge rules. These will indicate which node types can be connected and through what edge type. This is a list of (source_node_type, edge_type, destination_node_type) tuples.

repeated .google.cloud.apptopology.v1.EdgeRule edge_rules = 5;

Returns
Type Description
int

getEdgeRulesList()

public List<EdgeRule> getEdgeRulesList()

Edge rules. These will indicate which node types can be connected and through what edge type. This is a list of (source_node_type, edge_type, destination_node_type) tuples.

repeated .google.cloud.apptopology.v1.EdgeRule edge_rules = 5;

Returns
Type Description
List<EdgeRule>

getEdgeRulesOrBuilder(int index)

public EdgeRuleOrBuilder getEdgeRulesOrBuilder(int index)

Edge rules. These will indicate which node types can be connected and through what edge type. This is a list of (source_node_type, edge_type, destination_node_type) tuples.

repeated .google.cloud.apptopology.v1.EdgeRule edge_rules = 5;

Parameter
Name Description
index int
Returns
Type Description
EdgeRuleOrBuilder

getEdgeRulesOrBuilderList()

public List<? extends EdgeRuleOrBuilder> getEdgeRulesOrBuilderList()

Edge rules. These will indicate which node types can be connected and through what edge type. This is a list of (source_node_type, edge_type, destination_node_type) tuples.

repeated .google.cloud.apptopology.v1.EdgeRule edge_rules = 5;

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

getEdgeTypes(int index)

public EdgeType getEdgeTypes(int index)

A list of EdgeTypes defined within this schema. Refer to the documentation of EdgeType for more details.

repeated .google.cloud.apptopology.v1.EdgeType edge_types = 3;

Parameter
Name Description
index int
Returns
Type Description
EdgeType

getEdgeTypesCount()

public int getEdgeTypesCount()

A list of EdgeTypes defined within this schema. Refer to the documentation of EdgeType for more details.

repeated .google.cloud.apptopology.v1.EdgeType edge_types = 3;

Returns
Type Description
int

getEdgeTypesList()

public List<EdgeType> getEdgeTypesList()

A list of EdgeTypes defined within this schema. Refer to the documentation of EdgeType for more details.

repeated .google.cloud.apptopology.v1.EdgeType edge_types = 3;

Returns
Type Description
List<EdgeType>

getEdgeTypesOrBuilder(int index)

public EdgeTypeOrBuilder getEdgeTypesOrBuilder(int index)

A list of EdgeTypes defined within this schema. Refer to the documentation of EdgeType for more details.

repeated .google.cloud.apptopology.v1.EdgeType edge_types = 3;

Parameter
Name Description
index int
Returns
Type Description
EdgeTypeOrBuilder

getEdgeTypesOrBuilderList()

public List<? extends EdgeTypeOrBuilder> getEdgeTypesOrBuilderList()

A list of EdgeTypes defined within this schema. Refer to the documentation of EdgeType for more details.

repeated .google.cloud.apptopology.v1.EdgeType edge_types = 3;

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

getLabelProperties(int index)

public LabelProperties getLabelProperties(int index)

A list of supported labels and corresponding properties.

repeated .google.cloud.apptopology.v1.LabelProperties label_properties = 4;

Parameter
Name Description
index int
Returns
Type Description
LabelProperties

getLabelPropertiesCount()

public int getLabelPropertiesCount()

A list of supported labels and corresponding properties.

repeated .google.cloud.apptopology.v1.LabelProperties label_properties = 4;

Returns
Type Description
int

getLabelPropertiesList()

public List<LabelProperties> getLabelPropertiesList()

A list of supported labels and corresponding properties.

repeated .google.cloud.apptopology.v1.LabelProperties label_properties = 4;

Returns
Type Description
List<LabelProperties>

getLabelPropertiesOrBuilder(int index)

public LabelPropertiesOrBuilder getLabelPropertiesOrBuilder(int index)

A list of supported labels and corresponding properties.

repeated .google.cloud.apptopology.v1.LabelProperties label_properties = 4;

Parameter
Name Description
index int
Returns
Type Description
LabelPropertiesOrBuilder

getLabelPropertiesOrBuilderList()

public List<? extends LabelPropertiesOrBuilder> getLabelPropertiesOrBuilderList()

A list of supported labels and corresponding properties.

repeated .google.cloud.apptopology.v1.LabelProperties label_properties = 4;

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

getName()

public String getName()

Identifier. The resource name of the schema. Format: projects/{project}/locations/{location}/domains/{domain}/schema

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the schema. Format: projects/{project}/locations/{location}/domains/{domain}/schema

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getNodeTypes(int index)

public NodeType getNodeTypes(int index)

A list of NodeTypes defined within this schema. Refer to the documentation of NodeType for more details.

repeated .google.cloud.apptopology.v1.NodeType node_types = 2;

Parameter
Name Description
index int
Returns
Type Description
NodeType

getNodeTypesCount()

public int getNodeTypesCount()

A list of NodeTypes defined within this schema. Refer to the documentation of NodeType for more details.

repeated .google.cloud.apptopology.v1.NodeType node_types = 2;

Returns
Type Description
int

getNodeTypesList()

public List<NodeType> getNodeTypesList()

A list of NodeTypes defined within this schema. Refer to the documentation of NodeType for more details.

repeated .google.cloud.apptopology.v1.NodeType node_types = 2;

Returns
Type Description
List<NodeType>

getNodeTypesOrBuilder(int index)

public NodeTypeOrBuilder getNodeTypesOrBuilder(int index)

A list of NodeTypes defined within this schema. Refer to the documentation of NodeType for more details.

repeated .google.cloud.apptopology.v1.NodeType node_types = 2;

Parameter
Name Description
index int
Returns
Type Description
NodeTypeOrBuilder

getNodeTypesOrBuilderList()

public List<? extends NodeTypeOrBuilder> getNodeTypesOrBuilderList()

A list of NodeTypes defined within this schema. Refer to the documentation of NodeType for more details.

repeated .google.cloud.apptopology.v1.NodeType node_types = 2;

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

getParserForType()

public Parser<Schema> getParserForType()
Returns
Type Description
Parser<Schema>
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 Schema.Builder newBuilderForType()
Returns
Type Description
Schema.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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