Class Link.Builder (0.32.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
TypeDescription
Descriptor

Methods

public Link.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Link.Builder
Overrides
public Link build()
Returns
TypeDescription
Link
public Link buildPartial()
Returns
TypeDescription
Link
public Link.Builder clear()
Returns
TypeDescription
Link.Builder
Overrides
public Link.Builder clearEndTime()

The end of the last event establishing this link.

.google.protobuf.Timestamp end_time = 5;

Returns
TypeDescription
Link.Builder
public Link.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Link.Builder

This builder for chaining.

public Link.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Link.Builder
public Link.Builder clearStartTime()

The start of the first event establishing this link.

.google.protobuf.Timestamp start_time = 4;

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

The end of the last event establishing this link.

.google.protobuf.Timestamp end_time = 5;

Returns
TypeDescription
Timestamp

The endTime.

public Timestamp.Builder getEndTimeBuilder()

The end of the last event establishing this link.

.google.protobuf.Timestamp end_time = 5;

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

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

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

Returns
TypeDescription
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
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 Timestamp.Builder getStartTimeBuilder()

The start of the first event establishing this link.

.google.protobuf.Timestamp start_time = 4;

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

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

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

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

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

The end of the last event establishing this link.

.google.protobuf.Timestamp end_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Link.Builder
public Link.Builder mergeFrom(Link other)
Parameter
NameDescription
otherLink
Returns
TypeDescription
Link.Builder
public Link.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Link.Builder
Overrides
Exceptions
TypeDescription
IOException
public Link.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueEntityReference
Returns
TypeDescription
Link.Builder
public Link.Builder mergeStartTime(Timestamp value)

The start of the first event establishing this link.

.google.protobuf.Timestamp start_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueEntityReference
Returns
TypeDescription
Link.Builder
public final Link.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
Link.Builder
public Link.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Link.Builder

This builder for chaining.

public Link.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueEntityReference
Returns
TypeDescription
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
NameDescription
builderForValueEntityReference.Builder
Returns
TypeDescription
Link.Builder
public Link.Builder setStartTime(Timestamp value)

The start of the first event establishing this link.

.google.protobuf.Timestamp start_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueEntityReference
Returns
TypeDescription
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
NameDescription
builderForValueEntityReference.Builder
Returns
TypeDescription
Link.Builder
public final Link.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Link.Builder
Overrides