public static final class NodeType.Builder extends GeneratedMessage.Builder<NodeType.Builder> implements NodeTypeOrBuilderNodeType defines the schema of a node type in the graph.
Protobuf type google.cloud.apptopology.v1.NodeType
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > NodeType.BuilderImplements
NodeTypeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllLabels(Iterable<String> values)
public NodeType.Builder addAllLabels(Iterable<String> values)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.
repeated string labels = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The labels to add. |
| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
This builder for chaining. |
addAllOptionalLabels(Iterable<String> values)
public NodeType.Builder addAllOptionalLabels(Iterable<String> values)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.
repeated string optional_labels = 4;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The optionalLabels to add. |
| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
This builder for chaining. |
addLabels(String value)
public NodeType.Builder addLabels(String value)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.
repeated string labels = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe labels to add. |
| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
This builder for chaining. |
addLabelsBytes(ByteString value)
public NodeType.Builder addLabelsBytes(ByteString value)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.
repeated string labels = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the labels to add. |
| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
This builder for chaining. |
addOptionalLabels(String value)
public NodeType.Builder addOptionalLabels(String value)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.
repeated string optional_labels = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe optionalLabels to add. |
| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
This builder for chaining. |
addOptionalLabelsBytes(ByteString value)
public NodeType.Builder addOptionalLabelsBytes(ByteString value)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.
repeated string optional_labels = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the optionalLabels to add. |
| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
This builder for chaining. |
build()
public NodeType build()| Returns | |
|---|---|
| Type | Description |
NodeType |
|
buildPartial()
public NodeType buildPartial()| Returns | |
|---|---|
| Type | Description |
NodeType |
|
clear()
public NodeType.Builder clear()| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
|
clearDescription()
public NodeType.Builder clearDescription() A human-readable description of the NodeType.
string description = 3;
| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
This builder for chaining. |
clearLabels()
public NodeType.Builder clearLabels()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.
repeated string labels = 2;
| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
This builder for chaining. |
clearOptionalLabels()
public NodeType.Builder clearOptionalLabels()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.
repeated string optional_labels = 4;
| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
This builder for chaining. |
clearType()
public NodeType.Builder clearType()REQUIRED Name of the node type. This name is used to access the node type while defining the schema.
string type = 1;
| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public NodeType getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
NodeType |
|
getDescription()
public String getDescription() A human-readable description of the NodeType.
string description = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes() A human-readable description of the NodeType.
string description = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLabels(int index)
public String getLabels(int index)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.
repeated string labels = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The labels at the given index. |
getLabelsBytes(int index)
public ByteString getLabelsBytes(int index)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.
repeated string labels = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the labels at the given index. |
getLabelsCount()
public int getLabelsCount()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.
repeated string labels = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The count of labels. |
getLabelsList()
public ProtocolStringList getLabelsList()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.
repeated string labels = 2;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the labels. |
getOptionalLabels(int index)
public String getOptionalLabels(int index)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.
repeated string optional_labels = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The optionalLabels at the given index. |
getOptionalLabelsBytes(int index)
public ByteString getOptionalLabelsBytes(int index)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.
repeated string optional_labels = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the optionalLabels at the given index. |
getOptionalLabelsCount()
public int getOptionalLabelsCount()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.
repeated string optional_labels = 4;
| Returns | |
|---|---|
| Type | Description |
int |
The count of optionalLabels. |
getOptionalLabelsList()
public ProtocolStringList getOptionalLabelsList()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.
repeated string optional_labels = 4;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the optionalLabels. |
getType()
public String getType()REQUIRED Name of the node type. This name is used to access the node type while defining the schema.
string type = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The type. |
getTypeBytes()
public ByteString getTypeBytes()REQUIRED Name of the node type. This name is used to access the node type while defining the schema.
string type = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for type. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(NodeType other)
public NodeType.Builder mergeFrom(NodeType other)| Parameter | |
|---|---|
| Name | Description |
other |
NodeType |
| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public NodeType.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public NodeType.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
|
setDescription(String value)
public NodeType.Builder setDescription(String value) A human-readable description of the NodeType.
string description = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public NodeType.Builder setDescriptionBytes(ByteString value) A human-readable description of the NodeType.
string description = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
This builder for chaining. |
setLabels(int index, String value)
public NodeType.Builder setLabels(int index, String value)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.
repeated string labels = 2;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe labels to set. |
| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
This builder for chaining. |
setOptionalLabels(int index, String value)
public NodeType.Builder setOptionalLabels(int index, String value)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.
repeated string optional_labels = 4;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe optionalLabels to set. |
| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
This builder for chaining. |
setType(String value)
public NodeType.Builder setType(String value)REQUIRED Name of the node type. This name is used to access the node type while defining the schema.
string type = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe type to set. |
| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
This builder for chaining. |
setTypeBytes(ByteString value)
public NodeType.Builder setTypeBytes(ByteString value)REQUIRED Name of the node type. This name is used to access the node type while defining the schema.
string type = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for type to set. |
| Returns | |
|---|---|
| Type | Description |
NodeType.Builder |
This builder for chaining. |