Class Edge.Builder (0.3.0)

public static final class Edge.Builder extends GeneratedMessage.Builder<Edge.Builder> implements EdgeOrBuilder

Represents a single edge connecting two nodes in the graph.

Protobuf type google.cloud.apptopology.v1.Edge

Implements

EdgeOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllLabels(Iterable<String> values)

public Edge.Builder addAllLabels(Iterable<String> values)

Labels attached to the edge. 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 edge type.

repeated string labels = 8;

Parameter
Name Description
values Iterable<String>

The labels to add.

Returns
Type Description
Edge.Builder

This builder for chaining.

addLabels(String value)

public Edge.Builder addLabels(String value)

Labels attached to the edge. 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 edge type.

repeated string labels = 8;

Parameter
Name Description
value String

The labels to add.

Returns
Type Description
Edge.Builder

This builder for chaining.

addLabelsBytes(ByteString value)

public Edge.Builder addLabelsBytes(ByteString value)

Labels attached to the edge. 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 edge type.

repeated string labels = 8;

Parameter
Name Description
value ByteString

The bytes of the labels to add.

Returns
Type Description
Edge.Builder

This builder for chaining.

build()

public Edge build()
Returns
Type Description
Edge

buildPartial()

public Edge buildPartial()
Returns
Type Description
Edge

clear()

public Edge.Builder clear()
Returns
Type Description
Edge.Builder
Overrides

clearContext()

public Edge.Builder clearContext()

The context of the edge.

.google.cloud.apptopology.v1.EntityContext context = 9;

Returns
Type Description
Edge.Builder

clearDestinationNodeName()

public Edge.Builder clearDestinationNodeName()

The name of the destination node for this edge. This is the name field in the Node.

string destination_node_name = 7;

Returns
Type Description
Edge.Builder

This builder for chaining.

clearLabels()

public Edge.Builder clearLabels()

Labels attached to the edge. 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 edge type.

repeated string labels = 8;

Returns
Type Description
Edge.Builder

This builder for chaining.

clearProperties()

public Edge.Builder clearProperties()

Properties associated with the edge. Refer to https://apptopology.googleapis.com/v1/GetSchema for a detailed list of edge properties.

.google.protobuf.Struct properties = 5;

Returns
Type Description
Edge.Builder

clearSourceNodeName()

public Edge.Builder clearSourceNodeName()

The name of the source node for this edge. This is the name field in the Node.

string source_node_name = 6;

Returns
Type Description
Edge.Builder

This builder for chaining.

getContext()

public EntityContext getContext()

The context of the edge.

.google.cloud.apptopology.v1.EntityContext context = 9;

Returns
Type Description
EntityContext

The context.

getContextBuilder()

public EntityContext.Builder getContextBuilder()

The context of the edge.

.google.cloud.apptopology.v1.EntityContext context = 9;

Returns
Type Description
EntityContext.Builder

getContextOrBuilder()

public EntityContextOrBuilder getContextOrBuilder()

The context of the edge.

.google.cloud.apptopology.v1.EntityContext context = 9;

Returns
Type Description
EntityContextOrBuilder

getDefaultInstanceForType()

public Edge getDefaultInstanceForType()
Returns
Type Description
Edge

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDestinationNodeName()

public String getDestinationNodeName()

The name of the destination node for this edge. This is the name field in the Node.

string destination_node_name = 7;

Returns
Type Description
String

The destinationNodeName.

getDestinationNodeNameBytes()

public ByteString getDestinationNodeNameBytes()

The name of the destination node for this edge. This is the name field in the Node.

string destination_node_name = 7;

Returns
Type Description
ByteString

The bytes for destinationNodeName.

getLabels(int index)

public String getLabels(int index)

Labels attached to the edge. 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 edge type.

repeated string labels = 8;

Parameter
Name Description
index int

The 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 edge. 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 edge type.

repeated string labels = 8;

Parameter
Name Description
index int

The 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 edge. 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 edge type.

repeated string labels = 8;

Returns
Type Description
int

The count of labels.

getLabelsList()

public ProtocolStringList getLabelsList()

Labels attached to the edge. 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 edge type.

repeated string labels = 8;

Returns
Type Description
ProtocolStringList

A list containing the labels.

getProperties()

public Struct getProperties()

Properties associated with the edge. Refer to https://apptopology.googleapis.com/v1/GetSchema for a detailed list of edge properties.

.google.protobuf.Struct properties = 5;

Returns
Type Description
Struct

The properties.

getPropertiesBuilder()

public Struct.Builder getPropertiesBuilder()

Properties associated with the edge. Refer to https://apptopology.googleapis.com/v1/GetSchema for a detailed list of edge properties.

.google.protobuf.Struct properties = 5;

Returns
Type Description
Builder

getPropertiesOrBuilder()

public StructOrBuilder getPropertiesOrBuilder()

Properties associated with the edge. Refer to https://apptopology.googleapis.com/v1/GetSchema for a detailed list of edge properties.

.google.protobuf.Struct properties = 5;

Returns
Type Description
StructOrBuilder

getSourceNodeName()

public String getSourceNodeName()

The name of the source node for this edge. This is the name field in the Node.

string source_node_name = 6;

Returns
Type Description
String

The sourceNodeName.

getSourceNodeNameBytes()

public ByteString getSourceNodeNameBytes()

The name of the source node for this edge. This is the name field in the Node.

string source_node_name = 6;

Returns
Type Description
ByteString

The bytes for sourceNodeName.

hasContext()

public boolean hasContext()

The context of the edge.

.google.cloud.apptopology.v1.EntityContext context = 9;

Returns
Type Description
boolean

Whether the context field is set.

hasProperties()

public boolean hasProperties()

Properties associated with the edge. Refer to https://apptopology.googleapis.com/v1/GetSchema for a detailed list of edge properties.

.google.protobuf.Struct properties = 5;

Returns
Type Description
boolean

Whether the properties field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeContext(EntityContext value)

public Edge.Builder mergeContext(EntityContext value)

The context of the edge.

.google.cloud.apptopology.v1.EntityContext context = 9;

Parameter
Name Description
value EntityContext
Returns
Type Description
Edge.Builder

mergeFrom(Edge other)

public Edge.Builder mergeFrom(Edge other)
Parameter
Name Description
other Edge
Returns
Type Description
Edge.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Edge.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Edge.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Edge.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Edge.Builder
Overrides

mergeProperties(Struct value)

public Edge.Builder mergeProperties(Struct value)

Properties associated with the edge. Refer to https://apptopology.googleapis.com/v1/GetSchema for a detailed list of edge properties.

.google.protobuf.Struct properties = 5;

Parameter
Name Description
value Struct
Returns
Type Description
Edge.Builder

setContext(EntityContext value)

public Edge.Builder setContext(EntityContext value)

The context of the edge.

.google.cloud.apptopology.v1.EntityContext context = 9;

Parameter
Name Description
value EntityContext
Returns
Type Description
Edge.Builder

setContext(EntityContext.Builder builderForValue)

public Edge.Builder setContext(EntityContext.Builder builderForValue)

The context of the edge.

.google.cloud.apptopology.v1.EntityContext context = 9;

Parameter
Name Description
builderForValue EntityContext.Builder
Returns
Type Description
Edge.Builder

setDestinationNodeName(String value)

public Edge.Builder setDestinationNodeName(String value)

The name of the destination node for this edge. This is the name field in the Node.

string destination_node_name = 7;

Parameter
Name Description
value String

The destinationNodeName to set.

Returns
Type Description
Edge.Builder

This builder for chaining.

setDestinationNodeNameBytes(ByteString value)

public Edge.Builder setDestinationNodeNameBytes(ByteString value)

The name of the destination node for this edge. This is the name field in the Node.

string destination_node_name = 7;

Parameter
Name Description
value ByteString

The bytes for destinationNodeName to set.

Returns
Type Description
Edge.Builder

This builder for chaining.

setLabels(int index, String value)

public Edge.Builder setLabels(int index, String value)

Labels attached to the edge. 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 edge type.

repeated string labels = 8;

Parameters
Name Description
index int

The index to set the value at.

value String

The labels to set.

Returns
Type Description
Edge.Builder

This builder for chaining.

setProperties(Struct value)

public Edge.Builder setProperties(Struct value)

Properties associated with the edge. Refer to https://apptopology.googleapis.com/v1/GetSchema for a detailed list of edge properties.

.google.protobuf.Struct properties = 5;

Parameter
Name Description
value Struct
Returns
Type Description
Edge.Builder

setProperties(Struct.Builder builderForValue)

public Edge.Builder setProperties(Struct.Builder builderForValue)

Properties associated with the edge. Refer to https://apptopology.googleapis.com/v1/GetSchema for a detailed list of edge properties.

.google.protobuf.Struct properties = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Edge.Builder

setSourceNodeName(String value)

public Edge.Builder setSourceNodeName(String value)

The name of the source node for this edge. This is the name field in the Node.

string source_node_name = 6;

Parameter
Name Description
value String

The sourceNodeName to set.

Returns
Type Description
Edge.Builder

This builder for chaining.

setSourceNodeNameBytes(ByteString value)

public Edge.Builder setSourceNodeNameBytes(ByteString value)

The name of the source node for this edge. This is the name field in the Node.

string source_node_name = 6;

Parameter
Name Description
value ByteString

The bytes for sourceNodeName to set.

Returns
Type Description
Edge.Builder

This builder for chaining.