Class EdgeType.Builder (0.3.0)

public static final class EdgeType.Builder extends GeneratedMessage.Builder<EdgeType.Builder> implements EdgeTypeOrBuilder

EdgeType defines the schema of an edge type in the graph.

Protobuf type google.cloud.apptopology.v1.EdgeType

Implements

EdgeTypeOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllLabels(Iterable<String> values)

public EdgeType.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 = 2;

Parameter
Name Description
values Iterable<String>

The labels to add.

Returns
Type Description
EdgeType.Builder

This builder for chaining.

addAllOptionalLabels(Iterable<String> values)

public EdgeType.Builder addAllOptionalLabels(Iterable<String> values)

An edge of this edge type can have 0 or more of these labels. These edge objects of this edge 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
EdgeType.Builder

This builder for chaining.

addLabels(String value)

public EdgeType.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 = 2;

Parameter
Name Description
value String

The labels to add.

Returns
Type Description
EdgeType.Builder

This builder for chaining.

addLabelsBytes(ByteString value)

public EdgeType.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 = 2;

Parameter
Name Description
value ByteString

The bytes of the labels to add.

Returns
Type Description
EdgeType.Builder

This builder for chaining.

addOptionalLabels(String value)

public EdgeType.Builder addOptionalLabels(String value)

An edge of this edge type can have 0 or more of these labels. These edge objects of this edge type will have these labels alongside the required labels.

repeated string optional_labels = 4;

Parameter
Name Description
value String

The optionalLabels to add.

Returns
Type Description
EdgeType.Builder

This builder for chaining.

addOptionalLabelsBytes(ByteString value)

public EdgeType.Builder addOptionalLabelsBytes(ByteString value)

An edge of this edge type can have 0 or more of these labels. These edge objects of this edge type will have these labels alongside the required labels.

repeated string optional_labels = 4;

Parameter
Name Description
value ByteString

The bytes of the optionalLabels to add.

Returns
Type Description
EdgeType.Builder

This builder for chaining.

build()

public EdgeType build()
Returns
Type Description
EdgeType

buildPartial()

public EdgeType buildPartial()
Returns
Type Description
EdgeType

clear()

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

clearDescription()

public EdgeType.Builder clearDescription()

A human-readable description of the EdgeType.

string description = 3;

Returns
Type Description
EdgeType.Builder

This builder for chaining.

clearLabels()

public EdgeType.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 = 2;

Returns
Type Description
EdgeType.Builder

This builder for chaining.

clearOptionalLabels()

public EdgeType.Builder clearOptionalLabels()

An edge of this edge type can have 0 or more of these labels. These edge objects of this edge type will have these labels alongside the required labels.

repeated string optional_labels = 4;

Returns
Type Description
EdgeType.Builder

This builder for chaining.

clearType()

public EdgeType.Builder clearType()

REQUIRED Name of the edge type. This name is used to access the edge type while defining the schema.

string type = 1;

Returns
Type Description
EdgeType.Builder

This builder for chaining.

getDefaultInstanceForType()

public EdgeType getDefaultInstanceForType()
Returns
Type Description
EdgeType

getDescription()

public String getDescription()

A human-readable description of the EdgeType.

string description = 3;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A human-readable description of the EdgeType.

string description = 3;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

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 = 2;

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 = 2;

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 = 2;

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 = 2;

Returns
Type Description
ProtocolStringList

A list containing the labels.

getOptionalLabels(int index)

public String getOptionalLabels(int index)

An edge of this edge type can have 0 or more of these labels. These edge objects of this edge type will have these labels alongside the required labels.

repeated string optional_labels = 4;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The optionalLabels at the given index.

getOptionalLabelsBytes(int index)

public ByteString getOptionalLabelsBytes(int index)

An edge of this edge type can have 0 or more of these labels. These edge objects of this edge type will have these labels alongside the required labels.

repeated string optional_labels = 4;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the optionalLabels at the given index.

getOptionalLabelsCount()

public int getOptionalLabelsCount()

An edge of this edge type can have 0 or more of these labels. These edge objects of this edge 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()

An edge of this edge type can have 0 or more of these labels. These edge objects of this edge 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 edge type. This name is used to access the edge type while defining the schema.

string type = 1;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

REQUIRED Name of the edge type. This name is used to access the edge 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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EdgeType other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDescription(String value)

public EdgeType.Builder setDescription(String value)

A human-readable description of the EdgeType.

string description = 3;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
EdgeType.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public EdgeType.Builder setDescriptionBytes(ByteString value)

A human-readable description of the EdgeType.

string description = 3;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
EdgeType.Builder

This builder for chaining.

setLabels(int index, String value)

public EdgeType.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 = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The labels to set.

Returns
Type Description
EdgeType.Builder

This builder for chaining.

setOptionalLabels(int index, String value)

public EdgeType.Builder setOptionalLabels(int index, String value)

An edge of this edge type can have 0 or more of these labels. These edge objects of this edge type will have these labels alongside the required labels.

repeated string optional_labels = 4;

Parameters
Name Description
index int

The index to set the value at.

value String

The optionalLabels to set.

Returns
Type Description
EdgeType.Builder

This builder for chaining.

setType(String value)

public EdgeType.Builder setType(String value)

REQUIRED Name of the edge type. This name is used to access the edge type while defining the schema.

string type = 1;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
EdgeType.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public EdgeType.Builder setTypeBytes(ByteString value)

REQUIRED Name of the edge type. This name is used to access the edge type while defining the schema.

string type = 1;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
EdgeType.Builder

This builder for chaining.