Class LineageLink.Builder (0.85.0)

public static final class LineageLink.Builder extends GeneratedMessage.Builder<LineageLink.Builder> implements LineageLinkOrBuilder

Lineage link between two entities.

Protobuf type google.cloud.datacatalog.lineage.v1.LineageLink

Static Methods

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

Methods

public LineageLink.Builder addAllDependencyInfo(Iterable<? extends LineageLink.DependencyInfo> values)

Describes how the target entity is dependent on the source entity.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfo dependency_info = 4;

Parameter
Name Description
values Iterable<? extends com.google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfo>
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder addAllProcesses(Iterable<? extends LineageLink.LineageProcess> values)

Processes metadata associated with the link.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcess processes = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcess>
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder addDependencyInfo(LineageLink.DependencyInfo value)

Describes how the target entity is dependent on the source entity.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfo dependency_info = 4;

Parameter
Name Description
value LineageLink.DependencyInfo
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder addDependencyInfo(LineageLink.DependencyInfo.Builder builderForValue)

Describes how the target entity is dependent on the source entity.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfo dependency_info = 4;

Parameter
Name Description
builderForValue LineageLink.DependencyInfo.Builder
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder addDependencyInfo(int index, LineageLink.DependencyInfo value)

Describes how the target entity is dependent on the source entity.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfo dependency_info = 4;

Parameters
Name Description
index int
value LineageLink.DependencyInfo
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder addDependencyInfo(int index, LineageLink.DependencyInfo.Builder builderForValue)

Describes how the target entity is dependent on the source entity.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfo dependency_info = 4;

Parameters
Name Description
index int
builderForValue LineageLink.DependencyInfo.Builder
Returns
Type Description
LineageLink.Builder
public LineageLink.DependencyInfo.Builder addDependencyInfoBuilder()

Describes how the target entity is dependent on the source entity.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfo dependency_info = 4;

Returns
Type Description
LineageLink.DependencyInfo.Builder
public LineageLink.DependencyInfo.Builder addDependencyInfoBuilder(int index)

Describes how the target entity is dependent on the source entity.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfo dependency_info = 4;

Parameter
Name Description
index int
Returns
Type Description
LineageLink.DependencyInfo.Builder
public LineageLink.Builder addProcesses(LineageLink.LineageProcess value)

Processes metadata associated with the link.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcess processes = 3;

Parameter
Name Description
value LineageLink.LineageProcess
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder addProcesses(LineageLink.LineageProcess.Builder builderForValue)

Processes metadata associated with the link.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcess processes = 3;

Parameter
Name Description
builderForValue LineageLink.LineageProcess.Builder
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder addProcesses(int index, LineageLink.LineageProcess value)

Processes metadata associated with the link.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcess processes = 3;

Parameters
Name Description
index int
value LineageLink.LineageProcess
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder addProcesses(int index, LineageLink.LineageProcess.Builder builderForValue)

Processes metadata associated with the link.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcess processes = 3;

Parameters
Name Description
index int
builderForValue LineageLink.LineageProcess.Builder
Returns
Type Description
LineageLink.Builder
public LineageLink.LineageProcess.Builder addProcessesBuilder()

Processes metadata associated with the link.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcess processes = 3;

Returns
Type Description
LineageLink.LineageProcess.Builder
public LineageLink.LineageProcess.Builder addProcessesBuilder(int index)

Processes metadata associated with the link.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcess processes = 3;

Parameter
Name Description
index int
Returns
Type Description
LineageLink.LineageProcess.Builder
public LineageLink build()
Returns
Type Description
LineageLink
public LineageLink buildPartial()
Returns
Type Description
LineageLink
public LineageLink.Builder clear()
Returns
Type Description
LineageLink.Builder
Overrides
public LineageLink.Builder clearDependencyInfo()

Describes how the target entity is dependent on the source entity.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfo dependency_info = 4;

Returns
Type Description
LineageLink.Builder
public LineageLink.Builder clearDepth()

Depth of the current link in the graph starting from 1.

int32 depth = 5;

Returns
Type Description
LineageLink.Builder

This builder for chaining.

public LineageLink.Builder clearLocation()

The location where the LineageEvent that created the link is stored.

string location = 7;

Returns
Type Description
LineageLink.Builder

This builder for chaining.

public LineageLink.Builder clearProcesses()

Processes metadata associated with the link.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcess processes = 3;

Returns
Type Description
LineageLink.Builder
public LineageLink.Builder clearSource()

The entity that is the source of this link.

.google.cloud.datacatalog.lineage.v1.EntityReference source = 1;

Returns
Type Description
LineageLink.Builder
public LineageLink.Builder clearTarget()

The entity that is the target of this link.

.google.cloud.datacatalog.lineage.v1.EntityReference target = 2;

Returns
Type Description
LineageLink.Builder
public LineageLink getDefaultInstanceForType()
Returns
Type Description
LineageLink
public LineageLink.DependencyInfo getDependencyInfo(int index)

Describes how the target entity is dependent on the source entity.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfo dependency_info = 4;

Parameter
Name Description
index int
Returns
Type Description
LineageLink.DependencyInfo
public LineageLink.DependencyInfo.Builder getDependencyInfoBuilder(int index)

Describes how the target entity is dependent on the source entity.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfo dependency_info = 4;

Parameter
Name Description
index int
Returns
Type Description
LineageLink.DependencyInfo.Builder
public List<LineageLink.DependencyInfo.Builder> getDependencyInfoBuilderList()

Describes how the target entity is dependent on the source entity.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfo dependency_info = 4;

Returns
Type Description
List<Builder>
public int getDependencyInfoCount()

Describes how the target entity is dependent on the source entity.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfo dependency_info = 4;

Returns
Type Description
int
public List<LineageLink.DependencyInfo> getDependencyInfoList()

Describes how the target entity is dependent on the source entity.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfo dependency_info = 4;

Returns
Type Description
List<DependencyInfo>
public LineageLink.DependencyInfoOrBuilder getDependencyInfoOrBuilder(int index)

Describes how the target entity is dependent on the source entity.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfo dependency_info = 4;

Parameter
Name Description
index int
Returns
Type Description
LineageLink.DependencyInfoOrBuilder
public List<? extends LineageLink.DependencyInfoOrBuilder> getDependencyInfoOrBuilderList()

Describes how the target entity is dependent on the source entity.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfo dependency_info = 4;

Returns
Type Description
List<? extends com.google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfoOrBuilder>
public int getDepth()

Depth of the current link in the graph starting from 1.

int32 depth = 5;

Returns
Type Description
int

The depth.

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

The location where the LineageEvent that created the link is stored.

string location = 7;

Returns
Type Description
String

The location.

public ByteString getLocationBytes()

The location where the LineageEvent that created the link is stored.

string location = 7;

Returns
Type Description
ByteString

The bytes for location.

public LineageLink.LineageProcess getProcesses(int index)

Processes metadata associated with the link.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcess processes = 3;

Parameter
Name Description
index int
Returns
Type Description
LineageLink.LineageProcess
public LineageLink.LineageProcess.Builder getProcessesBuilder(int index)

Processes metadata associated with the link.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcess processes = 3;

Parameter
Name Description
index int
Returns
Type Description
LineageLink.LineageProcess.Builder
public List<LineageLink.LineageProcess.Builder> getProcessesBuilderList()

Processes metadata associated with the link.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcess processes = 3;

Returns
Type Description
List<Builder>
public int getProcessesCount()

Processes metadata associated with the link.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcess processes = 3;

Returns
Type Description
int
public List<LineageLink.LineageProcess> getProcessesList()

Processes metadata associated with the link.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcess processes = 3;

Returns
Type Description
List<LineageProcess>
public LineageLink.LineageProcessOrBuilder getProcessesOrBuilder(int index)

Processes metadata associated with the link.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcess processes = 3;

Parameter
Name Description
index int
Returns
Type Description
LineageLink.LineageProcessOrBuilder
public List<? extends LineageLink.LineageProcessOrBuilder> getProcessesOrBuilderList()

Processes metadata associated with the link.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcess processes = 3;

Returns
Type Description
List<? extends com.google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcessOrBuilder>
public EntityReference getSource()

The entity that is the source of this link.

.google.cloud.datacatalog.lineage.v1.EntityReference source = 1;

Returns
Type Description
EntityReference

The source.

public EntityReference.Builder getSourceBuilder()

The entity that is the source of this link.

.google.cloud.datacatalog.lineage.v1.EntityReference source = 1;

Returns
Type Description
EntityReference.Builder
public EntityReferenceOrBuilder getSourceOrBuilder()

The entity that is the source of this link.

.google.cloud.datacatalog.lineage.v1.EntityReference source = 1;

Returns
Type Description
EntityReferenceOrBuilder
public EntityReference getTarget()

The entity that is the target of this link.

.google.cloud.datacatalog.lineage.v1.EntityReference target = 2;

Returns
Type Description
EntityReference

The target.

public EntityReference.Builder getTargetBuilder()

The entity that is the target of this link.

.google.cloud.datacatalog.lineage.v1.EntityReference target = 2;

Returns
Type Description
EntityReference.Builder
public EntityReferenceOrBuilder getTargetOrBuilder()

The entity that is the target of this link.

.google.cloud.datacatalog.lineage.v1.EntityReference target = 2;

Returns
Type Description
EntityReferenceOrBuilder
public boolean hasSource()

The entity that is the source of this link.

.google.cloud.datacatalog.lineage.v1.EntityReference source = 1;

Returns
Type Description
boolean

Whether the source field is set.

public boolean hasTarget()

The entity that is the target of this link.

.google.cloud.datacatalog.lineage.v1.EntityReference target = 2;

Returns
Type Description
boolean

Whether the target field is set.

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public LineageLink.Builder mergeFrom(LineageLink other)
Parameter
Name Description
other LineageLink
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LineageLink.Builder
Overrides
Exceptions
Type Description
IOException
public LineageLink.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LineageLink.Builder
Overrides
public LineageLink.Builder mergeSource(EntityReference value)

The entity that is the source of this link.

.google.cloud.datacatalog.lineage.v1.EntityReference source = 1;

Parameter
Name Description
value EntityReference
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder mergeTarget(EntityReference value)

The entity that is the target of this link.

.google.cloud.datacatalog.lineage.v1.EntityReference target = 2;

Parameter
Name Description
value EntityReference
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder removeDependencyInfo(int index)

Describes how the target entity is dependent on the source entity.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfo dependency_info = 4;

Parameter
Name Description
index int
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder removeProcesses(int index)

Processes metadata associated with the link.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcess processes = 3;

Parameter
Name Description
index int
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder setDependencyInfo(int index, LineageLink.DependencyInfo value)

Describes how the target entity is dependent on the source entity.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfo dependency_info = 4;

Parameters
Name Description
index int
value LineageLink.DependencyInfo
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder setDependencyInfo(int index, LineageLink.DependencyInfo.Builder builderForValue)

Describes how the target entity is dependent on the source entity.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.DependencyInfo dependency_info = 4;

Parameters
Name Description
index int
builderForValue LineageLink.DependencyInfo.Builder
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder setDepth(int value)

Depth of the current link in the graph starting from 1.

int32 depth = 5;

Parameter
Name Description
value int

The depth to set.

Returns
Type Description
LineageLink.Builder

This builder for chaining.

public LineageLink.Builder setLocation(String value)

The location where the LineageEvent that created the link is stored.

string location = 7;

Parameter
Name Description
value String

The location to set.

Returns
Type Description
LineageLink.Builder

This builder for chaining.

public LineageLink.Builder setLocationBytes(ByteString value)

The location where the LineageEvent that created the link is stored.

string location = 7;

Parameter
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
LineageLink.Builder

This builder for chaining.

public LineageLink.Builder setProcesses(int index, LineageLink.LineageProcess value)

Processes metadata associated with the link.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcess processes = 3;

Parameters
Name Description
index int
value LineageLink.LineageProcess
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder setProcesses(int index, LineageLink.LineageProcess.Builder builderForValue)

Processes metadata associated with the link.

repeated .google.cloud.datacatalog.lineage.v1.LineageLink.LineageProcess processes = 3;

Parameters
Name Description
index int
builderForValue LineageLink.LineageProcess.Builder
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder setSource(EntityReference value)

The entity that is the source of this link.

.google.cloud.datacatalog.lineage.v1.EntityReference source = 1;

Parameter
Name Description
value EntityReference
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder setSource(EntityReference.Builder builderForValue)

The entity that is the source of this link.

.google.cloud.datacatalog.lineage.v1.EntityReference source = 1;

Parameter
Name Description
builderForValue EntityReference.Builder
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder setTarget(EntityReference value)

The entity that is the target of this link.

.google.cloud.datacatalog.lineage.v1.EntityReference target = 2;

Parameter
Name Description
value EntityReference
Returns
Type Description
LineageLink.Builder
public LineageLink.Builder setTarget(EntityReference.Builder builderForValue)

The entity that is the target of this link.

.google.cloud.datacatalog.lineage.v1.EntityReference target = 2;

Parameter
Name Description
builderForValue EntityReference.Builder
Returns
Type Description
LineageLink.Builder