Reference documentation and code samples for the Google Cloud App Topology V1 Client class NodeType.
NodeType defines the schema of a node type in the graph.
Generated from protobuf message google.cloud.apptopology.v1.NodeType
Namespace
Google \ Cloud \ AppTopology \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ type |
string
REQUIRED Name of the node type. This name is used to access the node type while defining the schema. |
↳ labels |
string[]
Labels attached to the node. Composable, namespaced building blocks that define core attributes through associated properties. Multiple labels aggregate to fully specify the functional traits and property schema of the node type. |
↳ description |
string
A human-readable description of the |
↳ optional_labels |
string[]
A node of this node type can have 0 or more of these labels. These node objects of this node type will have these labels alongside the required labels. |
getType
REQUIRED Name of the node type.
This name is used to access the node type while defining the schema.
| Returns | |
|---|---|
| Type | Description |
string |
|
setType
REQUIRED Name of the node type.
This name is used to access the node type while defining the schema.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLabels
Labels attached to the node. Composable, namespaced building blocks that define core attributes through associated properties. Multiple labels aggregate to fully specify the functional traits and property schema of the node type.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setLabels
Labels attached to the node. Composable, namespaced building blocks that define core attributes through associated properties. Multiple labels aggregate to fully specify the functional traits and property schema of the node type.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDescription
A human-readable description of the NodeType.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDescription
A human-readable description of the NodeType.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getOptionalLabels
A node of this node type can have 0 or more of these labels. These node objects of this node type will have these labels alongside the required labels.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setOptionalLabels
A node of this node type can have 0 or more of these labels. These node objects of this node type will have these labels alongside the required labels.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|