public static final class Node.Builder extends GeneratedMessage.Builder<Node.Builder> implements NodeOrBuilderRepresents a single node in the graph.
Protobuf type google.cloud.apptopology.v1.Node
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Node.BuilderImplements
NodeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllLabels(Iterable<String> values)
public Node.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 = 5;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The labels to add. |
| Returns | |
|---|---|
| Type | Description |
Node.Builder |
This builder for chaining. |
addLabels(String value)
public Node.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 = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe labels to add. |
| Returns | |
|---|---|
| Type | Description |
Node.Builder |
This builder for chaining. |
addLabelsBytes(ByteString value)
public Node.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 = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the labels to add. |
| Returns | |
|---|---|
| Type | Description |
Node.Builder |
This builder for chaining. |
build()
public Node build()| Returns | |
|---|---|
| Type | Description |
Node |
|
buildPartial()
public Node buildPartial()| Returns | |
|---|---|
| Type | Description |
Node |
|
clear()
public Node.Builder clear()| Returns | |
|---|---|
| Type | Description |
Node.Builder |
|
clearContext()
public Node.Builder clearContext()The context of the node.
.google.cloud.apptopology.v1.EntityContext context = 6;
| Returns | |
|---|---|
| Type | Description |
Node.Builder |
|
clearLabels()
public Node.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 = 5;
| Returns | |
|---|---|
| Type | Description |
Node.Builder |
This builder for chaining. |
clearName()
public Node.Builder clearName()The global unique name of the node. For standard Google Cloud Platform resources, this MUST be the canonical Full Resource Name.
Examples:
type: compute.googleapis.com/Instance name: "//compute.googleapis.com/projects/my-project-id/zones/us-central1-a/instances/my-vm-1"
type: container.googleapis.com/Cluster name: "//container.googleapis.com/projects/my-project-id/locations/us-central1/clusters/my-cluster"
string name = 4;
| Returns | |
|---|---|
| Type | Description |
Node.Builder |
This builder for chaining. |
clearProperties()
public Node.Builder clearProperties()Properties associated with the node. Refer to https://apptopology.googleapis.com/v1/GetSchema for a detailed list of node properties.
.google.protobuf.Struct properties = 3;
| Returns | |
|---|---|
| Type | Description |
Node.Builder |
|
getContext()
public EntityContext getContext()The context of the node.
.google.cloud.apptopology.v1.EntityContext context = 6;
| Returns | |
|---|---|
| Type | Description |
EntityContext |
The context. |
getContextBuilder()
public EntityContext.Builder getContextBuilder()The context of the node.
.google.cloud.apptopology.v1.EntityContext context = 6;
| Returns | |
|---|---|
| Type | Description |
EntityContext.Builder |
|
getContextOrBuilder()
public EntityContextOrBuilder getContextOrBuilder()The context of the node.
.google.cloud.apptopology.v1.EntityContext context = 6;
| Returns | |
|---|---|
| Type | Description |
EntityContextOrBuilder |
|
getDefaultInstanceForType()
public Node getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Node |
|
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 = 5;
| 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 = 5;
| 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 = 5;
| 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 = 5;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the labels. |
getName()
public String getName()The global unique name of the node. For standard Google Cloud Platform resources, this MUST be the canonical Full Resource Name.
Examples:
type: compute.googleapis.com/Instance name: "//compute.googleapis.com/projects/my-project-id/zones/us-central1-a/instances/my-vm-1"
type: container.googleapis.com/Cluster name: "//container.googleapis.com/projects/my-project-id/locations/us-central1/clusters/my-cluster"
string name = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()The global unique name of the node. For standard Google Cloud Platform resources, this MUST be the canonical Full Resource Name.
Examples:
type: compute.googleapis.com/Instance name: "//compute.googleapis.com/projects/my-project-id/zones/us-central1-a/instances/my-vm-1"
type: container.googleapis.com/Cluster name: "//container.googleapis.com/projects/my-project-id/locations/us-central1/clusters/my-cluster"
string name = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getProperties()
public Struct getProperties()Properties associated with the node. Refer to https://apptopology.googleapis.com/v1/GetSchema for a detailed list of node properties.
.google.protobuf.Struct properties = 3;
| Returns | |
|---|---|
| Type | Description |
Struct |
The properties. |
getPropertiesBuilder()
public Struct.Builder getPropertiesBuilder()Properties associated with the node. Refer to https://apptopology.googleapis.com/v1/GetSchema for a detailed list of node properties.
.google.protobuf.Struct properties = 3;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getPropertiesOrBuilder()
public StructOrBuilder getPropertiesOrBuilder()Properties associated with the node. Refer to https://apptopology.googleapis.com/v1/GetSchema for a detailed list of node properties.
.google.protobuf.Struct properties = 3;
| Returns | |
|---|---|
| Type | Description |
StructOrBuilder |
|
hasContext()
public boolean hasContext()The context of the node.
.google.cloud.apptopology.v1.EntityContext context = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the context field is set. |
hasProperties()
public boolean hasProperties()Properties associated with the node. Refer to https://apptopology.googleapis.com/v1/GetSchema for a detailed list of node properties.
.google.protobuf.Struct properties = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the properties field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeContext(EntityContext value)
public Node.Builder mergeContext(EntityContext value)The context of the node.
.google.cloud.apptopology.v1.EntityContext context = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
EntityContext |
| Returns | |
|---|---|
| Type | Description |
Node.Builder |
|
mergeFrom(Node other)
public Node.Builder mergeFrom(Node other)| Parameter | |
|---|---|
| Name | Description |
other |
Node |
| Returns | |
|---|---|
| Type | Description |
Node.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Node.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Node.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Node.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Node.Builder |
|
mergeProperties(Struct value)
public Node.Builder mergeProperties(Struct value)Properties associated with the node. Refer to https://apptopology.googleapis.com/v1/GetSchema for a detailed list of node properties.
.google.protobuf.Struct properties = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
Node.Builder |
|
setContext(EntityContext value)
public Node.Builder setContext(EntityContext value)The context of the node.
.google.cloud.apptopology.v1.EntityContext context = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
EntityContext |
| Returns | |
|---|---|
| Type | Description |
Node.Builder |
|
setContext(EntityContext.Builder builderForValue)
public Node.Builder setContext(EntityContext.Builder builderForValue)The context of the node.
.google.cloud.apptopology.v1.EntityContext context = 6;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
EntityContext.Builder |
| Returns | |
|---|---|
| Type | Description |
Node.Builder |
|
setLabels(int index, String value)
public Node.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 = 5;
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe labels to set. |
| Returns | |
|---|---|
| Type | Description |
Node.Builder |
This builder for chaining. |
setName(String value)
public Node.Builder setName(String value)The global unique name of the node. For standard Google Cloud Platform resources, this MUST be the canonical Full Resource Name.
Examples:
type: compute.googleapis.com/Instance name: "//compute.googleapis.com/projects/my-project-id/zones/us-central1-a/instances/my-vm-1"
type: container.googleapis.com/Cluster name: "//container.googleapis.com/projects/my-project-id/locations/us-central1/clusters/my-cluster"
string name = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Node.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Node.Builder setNameBytes(ByteString value)The global unique name of the node. For standard Google Cloud Platform resources, this MUST be the canonical Full Resource Name.
Examples:
type: compute.googleapis.com/Instance name: "//compute.googleapis.com/projects/my-project-id/zones/us-central1-a/instances/my-vm-1"
type: container.googleapis.com/Cluster name: "//container.googleapis.com/projects/my-project-id/locations/us-central1/clusters/my-cluster"
string name = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Node.Builder |
This builder for chaining. |
setProperties(Struct value)
public Node.Builder setProperties(Struct value)Properties associated with the node. Refer to https://apptopology.googleapis.com/v1/GetSchema for a detailed list of node properties.
.google.protobuf.Struct properties = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Struct |
| Returns | |
|---|---|
| Type | Description |
Node.Builder |
|
setProperties(Struct.Builder builderForValue)
public Node.Builder setProperties(Struct.Builder builderForValue)Properties associated with the node. Refer to https://apptopology.googleapis.com/v1/GetSchema for a detailed list of node properties.
.google.protobuf.Struct properties = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Node.Builder |
|