Class EntityContext.Builder (0.3.0)

public static final class EntityContext.Builder extends GeneratedMessage.Builder<EntityContext.Builder> implements EntityContextOrBuilder

Represents the context of an entity (node or edge) in the graph.

Protobuf type google.cloud.apptopology.v1.EntityContext

Static Methods

getDescriptor()

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

Methods

build()

public EntityContext build()
Returns
Type Description
EntityContext

buildPartial()

public EntityContext buildPartial()
Returns
Type Description
EntityContext

clear()

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

clearType()

public EntityContext.Builder clearType()

The primary, namespaced type dictating the node naming format and supported labels, and defined in the Schema (Schema.node_types/edge_types.name), e.g., Base/compute.googleapis.com/Instance.

string type = 1;

Returns
Type Description
EntityContext.Builder

This builder for chaining.

getDefaultInstanceForType()

public EntityContext getDefaultInstanceForType()
Returns
Type Description
EntityContext

getDescriptorForType()

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

getType()

public String getType()

The primary, namespaced type dictating the node naming format and supported labels, and defined in the Schema (Schema.node_types/edge_types.name), e.g., Base/compute.googleapis.com/Instance.

string type = 1;

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

The primary, namespaced type dictating the node naming format and supported labels, and defined in the Schema (Schema.node_types/edge_types.name), e.g., Base/compute.googleapis.com/Instance.

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(EntityContext other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setType(String value)

public EntityContext.Builder setType(String value)

The primary, namespaced type dictating the node naming format and supported labels, and defined in the Schema (Schema.node_types/edge_types.name), e.g., Base/compute.googleapis.com/Instance.

string type = 1;

Parameter
Name Description
value String

The type to set.

Returns
Type Description
EntityContext.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public EntityContext.Builder setTypeBytes(ByteString value)

The primary, namespaced type dictating the node naming format and supported labels, and defined in the Schema (Schema.node_types/edge_types.name), e.g., Base/compute.googleapis.com/Instance.

string type = 1;

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
EntityContext.Builder

This builder for chaining.