Class Link (0.23.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
TypeDescription
int
public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int START_TIME_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int TARGET_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

public static Link getDefaultInstance()
Returns
TypeDescription
Link
public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor
public static Link.Builder newBuilder()
Returns
TypeDescription
Link.Builder
public static Link.Builder newBuilder(Link prototype)
Parameter
NameDescription
prototypeLink
Returns
TypeDescription
Link.Builder
public static Link parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Link
Exceptions
TypeDescription
IOException
public static Link parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Link
Exceptions
TypeDescription
IOException
public static Link parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Link
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Link parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Link
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Link parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Link
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Link parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Link
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Link parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Link
Exceptions
TypeDescription
IOException
public static Link parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Link
Exceptions
TypeDescription
IOException
public static Link parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Link
Exceptions
TypeDescription
IOException
public static Link parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Link
Exceptions
TypeDescription
IOException
public static Link parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Link
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Link parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Link
Exceptions
TypeDescription
InvalidProtocolBufferException
public static Parser<Link> parser()
Returns
TypeDescription
Parser<Link>

Methods

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides
public Link getDefaultInstanceForType()
Returns
TypeDescription
Link
public Timestamp getEndTime()

The end of the last event establishing this link.

.google.protobuf.Timestamp end_time = 5;

Returns
TypeDescription
Timestamp

The endTime.

public TimestampOrBuilder getEndTimeOrBuilder()

The end of the last event establishing this link.

.google.protobuf.Timestamp end_time = 5;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

public Parser<Link> getParserForType()
Returns
TypeDescription
Parser<Link>
Overrides
public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
EntityReferenceOrBuilder
public Timestamp getStartTime()

The start of the first event establishing this link.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
Timestamp

The startTime.

public TimestampOrBuilder getStartTimeOrBuilder()

The start of the first event establishing this link.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
EntityReferenceOrBuilder
public boolean hasEndTime()

The end of the last event establishing this link.

.google.protobuf.Timestamp end_time = 5;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the target field is set.

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