Class Link (0.36.0)

public final class Link extends GeneratedMessageV3 implements LinkOrBuilder

Links represent the data flow between source (upstream) and target (downstream) assets in transformation pipelines.

Links are created when LineageEvents record data transformation between related assets.

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

Implements

LinkOrBuilder

Static Fields

public static final int END_TIME_FIELD_NUMBER
Field Value
Type Description
int
public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int
public static final int SOURCE_FIELD_NUMBER
Field Value
Type Description
int
public static final int START_TIME_FIELD_NUMBER
Field Value
Type Description
int
public static final int TARGET_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

public static Link getDefaultInstance()
Returns
Type Description
Link
public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor
public static Link.Builder newBuilder()
Returns
Type Description
Link.Builder
public static Link.Builder newBuilder(Link prototype)
Parameter
Name Description
prototype Link
Returns
Type Description
Link.Builder
public static Link parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Link
Exceptions
Type Description
IOException
public static Link parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Link
Exceptions
Type Description
IOException
public static Link parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Link
Exceptions
Type Description
InvalidProtocolBufferException
public static Link parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Link
Exceptions
Type Description
InvalidProtocolBufferException
public static Link parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Link
Exceptions
Type Description
InvalidProtocolBufferException
public static Link parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Link
Exceptions
Type Description
InvalidProtocolBufferException
public static Link parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Link
Exceptions
Type Description
IOException
public static Link parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Link
Exceptions
Type Description
IOException
public static Link parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Link
Exceptions
Type Description
IOException
public static Link parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Link
Exceptions
Type Description
IOException
public static Link parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Link
Exceptions
Type Description
InvalidProtocolBufferException
public static Link parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Link
Exceptions
Type Description
InvalidProtocolBufferException
public static Parser<Link> parser()
Returns
Type Description
Parser<Link>

Methods

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides
public Link getDefaultInstanceForType()
Returns
Type Description
Link
public Timestamp getEndTime()

The end of the last event establishing this link.

.google.protobuf.Timestamp end_time = 5;

Returns
Type Description
Timestamp

The endTime.

public TimestampOrBuilder getEndTimeOrBuilder()

The end of the last event establishing this link.

.google.protobuf.Timestamp end_time = 5;

Returns
Type Description
TimestampOrBuilder
public String getName()

Output only. Immutable. The name of the link. Format: projects/{project}/locations/{location}/links/{link}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The name.

public ByteString getNameBytes()

Output only. Immutable. The name of the link. Format: projects/{project}/locations/{location}/links/{link}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for name.

public Parser<Link> getParserForType()
Returns
Type Description
Parser<Link>
Overrides
public int getSerializedSize()
Returns
Type Description
int
Overrides
public EntityReference getSource()

The pointer to the entity that is the source of this link.

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

Returns
Type Description
EntityReference

The source.

public EntityReferenceOrBuilder getSourceOrBuilder()

The pointer to the entity that is the source of this link.

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

Returns
Type Description
EntityReferenceOrBuilder
public Timestamp getStartTime()

The start of the first event establishing this link.

.google.protobuf.Timestamp start_time = 4;

Returns
Type Description
Timestamp

The startTime.

public TimestampOrBuilder getStartTimeOrBuilder()

The start of the first event establishing this link.

.google.protobuf.Timestamp start_time = 4;

Returns
Type Description
TimestampOrBuilder
public EntityReference getTarget()

The pointer to the entity that is the target of this link.

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

Returns
Type Description
EntityReference

The target.

public EntityReferenceOrBuilder getTargetOrBuilder()

The pointer to the entity that is the target of this link.

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

Returns
Type Description
EntityReferenceOrBuilder
public boolean hasEndTime()

The end of the last event establishing this link.

.google.protobuf.Timestamp end_time = 5;

Returns
Type Description
boolean

Whether the endTime field is set.

public boolean hasSource()

The pointer to the entity that is the source of this link.

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

Returns
Type Description
boolean

Whether the source field is set.

public boolean hasStartTime()

The start of the first event establishing this link.

.google.protobuf.Timestamp start_time = 4;

Returns
Type Description
boolean

Whether the startTime field is set.

public boolean hasTarget()

The pointer to the entity that is the target of this link.

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

Returns
Type Description
boolean

Whether the target field is set.

public int hashCode()
Returns
Type Description
int
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public Link.Builder newBuilderForType()
Returns
Type Description
Link.Builder
protected Link.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Link.Builder
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides
public Link.Builder toBuilder()
Returns
Type Description
Link.Builder
public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException