Class Link.Builder (0.46.0)

public static final class Link.Builder extends GeneratedMessageV3.Builder<Link.Builder> 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 Methods

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

Methods

public Link.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Link.Builder
Overrides
public Link build()
Returns
Type Description
Link
public Link buildPartial()
Returns
Type Description
Link
public Link.Builder clear()
Returns
Type Description
Link.Builder
Overrides
public Link.Builder clearEndTime()

The end of the last event establishing this link.

.google.protobuf.Timestamp end_time = 5;

Returns
Type Description
Link.Builder
public Link.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Link.Builder
Overrides
public Link.Builder clearName()

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
Link.Builder

This builder for chaining.

public Link.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Link.Builder
Overrides
public Link.Builder clearSource()

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

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

Returns
Type Description
Link.Builder
public Link.Builder clearStartTime()

The start of the first event establishing this link.

.google.protobuf.Timestamp start_time = 4;

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

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

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

Returns
Type Description
Link.Builder
public Link.Builder clone()
Returns
Type Description
Link.Builder
Overrides
public Link getDefaultInstanceForType()
Returns
Type Description
Link
public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides
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 Timestamp.Builder getEndTimeBuilder()

The end of the last event establishing this link.

.google.protobuf.Timestamp end_time = 5;

Returns
Type Description
Builder
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 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 EntityReference.Builder getSourceBuilder()

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

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

Returns
Type Description
EntityReference.Builder
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 Timestamp.Builder getStartTimeBuilder()

The start of the first event establishing this link.

.google.protobuf.Timestamp start_time = 4;

Returns
Type Description
Builder
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 EntityReference.Builder getTargetBuilder()

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

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

Returns
Type Description
EntityReference.Builder
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.

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public Link.Builder mergeEndTime(Timestamp value)

The end of the last event establishing this link.

.google.protobuf.Timestamp end_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
Link.Builder
public Link.Builder mergeFrom(Link other)
Parameter
Name Description
other Link
Returns
Type Description
Link.Builder
public Link.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Link.Builder
Overrides
Exceptions
Type Description
IOException
public Link.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Link.Builder
Overrides
public Link.Builder mergeSource(EntityReference value)

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

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

Parameter
Name Description
value EntityReference
Returns
Type Description
Link.Builder
public Link.Builder mergeStartTime(Timestamp value)

The start of the first event establishing this link.

.google.protobuf.Timestamp start_time = 4;

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

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

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

Parameter
Name Description
value EntityReference
Returns
Type Description
Link.Builder
public final Link.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Link.Builder
Overrides
public Link.Builder setEndTime(Timestamp value)

The end of the last event establishing this link.

.google.protobuf.Timestamp end_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
Link.Builder
public Link.Builder setEndTime(Timestamp.Builder builderForValue)

The end of the last event establishing this link.

.google.protobuf.Timestamp end_time = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Link.Builder
public Link.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Link.Builder
Overrides
public Link.Builder setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
Link.Builder

This builder for chaining.

public Link.Builder setNameBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
Link.Builder

This builder for chaining.

public Link.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Link.Builder
Overrides
public Link.Builder setSource(EntityReference value)

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

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

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

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

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

Parameter
Name Description
builderForValue EntityReference.Builder
Returns
Type Description
Link.Builder
public Link.Builder setStartTime(Timestamp value)

The start of the first event establishing this link.

.google.protobuf.Timestamp start_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
Link.Builder
public Link.Builder setStartTime(Timestamp.Builder builderForValue)

The start of the first event establishing this link.

.google.protobuf.Timestamp start_time = 4;

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

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

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

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

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

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

Parameter
Name Description
builderForValue EntityReference.Builder
Returns
Type Description
Link.Builder
public final Link.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Link.Builder
Overrides