Class LineageEvent.Builder (0.38.0)

public static final class LineageEvent.Builder extends GeneratedMessageV3.Builder<LineageEvent.Builder> implements LineageEventOrBuilder

A lineage event represents an operation on assets. Within the operation, the data flows from the source to the target defined in the links field.

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

Static Methods

getDescriptor()

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

Methods

public LineageEvent.Builder addAllLinks(Iterable<? extends EventLink> values)

Optional. List of source-target pairs. Can't contain more than 100 tuples.

repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.cloud.datacatalog.lineage.v1.EventLink>
Returns
Type Description
LineageEvent.Builder
public LineageEvent.Builder addLinks(EventLink value)

Optional. List of source-target pairs. Can't contain more than 100 tuples.

repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value EventLink
Returns
Type Description
LineageEvent.Builder
public LineageEvent.Builder addLinks(EventLink.Builder builderForValue)

Optional. List of source-target pairs. Can't contain more than 100 tuples.

repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue EventLink.Builder
Returns
Type Description
LineageEvent.Builder
public LineageEvent.Builder addLinks(int index, EventLink value)

Optional. List of source-target pairs. Can't contain more than 100 tuples.

repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value EventLink
Returns
Type Description
LineageEvent.Builder
public LineageEvent.Builder addLinks(int index, EventLink.Builder builderForValue)

Optional. List of source-target pairs. Can't contain more than 100 tuples.

repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue EventLink.Builder
Returns
Type Description
LineageEvent.Builder

addLinksBuilder()

public EventLink.Builder addLinksBuilder()

Optional. List of source-target pairs. Can't contain more than 100 tuples.

repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EventLink.Builder

addLinksBuilder(int index)

public EventLink.Builder addLinksBuilder(int index)

Optional. List of source-target pairs. Can't contain more than 100 tuples.

repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
EventLink.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LineageEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LineageEvent.Builder
Overrides

build()

public LineageEvent build()
Returns
Type Description
LineageEvent

buildPartial()

public LineageEvent buildPartial()
Returns
Type Description
LineageEvent

clear()

public LineageEvent.Builder clear()
Returns
Type Description
LineageEvent.Builder
Overrides

clearEndTime()

public LineageEvent.Builder clearEndTime()

Optional. The end of the transformation which resulted in this lineage event. For streaming scenarios, it should be the end of the period from which the lineage is being reported.

.google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LineageEvent.Builder

clearField(Descriptors.FieldDescriptor field)

public LineageEvent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LineageEvent.Builder
Overrides
public LineageEvent.Builder clearLinks()

Optional. List of source-target pairs. Can't contain more than 100 tuples.

repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LineageEvent.Builder

clearName()

public LineageEvent.Builder clearName()

Immutable. The resource name of the lineage event. Format: projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}. Can be specified or auto-assigned. {lineage_event} must be not longer than 200 characters and only contain characters in a set: a-zA-Z0-9_-:.

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

Returns
Type Description
LineageEvent.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStartTime()

public LineageEvent.Builder clearStartTime()

Required. The beginning of the transformation which resulted in this lineage event. For streaming scenarios, it should be the beginning of the period from which the lineage is being reported.

.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LineageEvent.Builder

clone()

public LineageEvent.Builder clone()
Returns
Type Description
LineageEvent.Builder
Overrides

getDefaultInstanceForType()

public LineageEvent getDefaultInstanceForType()
Returns
Type Description
LineageEvent

getDescriptorForType()

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

getEndTime()

public Timestamp getEndTime()

Optional. The end of the transformation which resulted in this lineage event. For streaming scenarios, it should be the end of the period from which the lineage is being reported.

.google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Optional. The end of the transformation which resulted in this lineage event. For streaming scenarios, it should be the end of the period from which the lineage is being reported.

.google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Optional. The end of the transformation which resulted in this lineage event. For streaming scenarios, it should be the end of the period from which the lineage is being reported.

.google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder
public EventLink getLinks(int index)

Optional. List of source-target pairs. Can't contain more than 100 tuples.

repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
EventLink

getLinksBuilder(int index)

public EventLink.Builder getLinksBuilder(int index)

Optional. List of source-target pairs. Can't contain more than 100 tuples.

repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
EventLink.Builder

getLinksBuilderList()

public List<EventLink.Builder> getLinksBuilderList()

Optional. List of source-target pairs. Can't contain more than 100 tuples.

repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getLinksCount()

public int getLinksCount()

Optional. List of source-target pairs. Can't contain more than 100 tuples.

repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int
public List<EventLink> getLinksList()

Optional. List of source-target pairs. Can't contain more than 100 tuples.

repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<EventLink>

getLinksOrBuilder(int index)

public EventLinkOrBuilder getLinksOrBuilder(int index)

Optional. List of source-target pairs. Can't contain more than 100 tuples.

repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
EventLinkOrBuilder

getLinksOrBuilderList()

public List<? extends EventLinkOrBuilder> getLinksOrBuilderList()

Optional. List of source-target pairs. Can't contain more than 100 tuples.

repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.datacatalog.lineage.v1.EventLinkOrBuilder>

getName()

public String getName()

Immutable. The resource name of the lineage event. Format: projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}. Can be specified or auto-assigned. {lineage_event} must be not longer than 200 characters and only contain characters in a set: a-zA-Z0-9_-:.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Immutable. The resource name of the lineage event. Format: projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}. Can be specified or auto-assigned. {lineage_event} must be not longer than 200 characters and only contain characters in a set: a-zA-Z0-9_-:.

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

Returns
Type Description
ByteString

The bytes for name.

getStartTime()

public Timestamp getStartTime()

Required. The beginning of the transformation which resulted in this lineage event. For streaming scenarios, it should be the beginning of the period from which the lineage is being reported.

.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Required. The beginning of the transformation which resulted in this lineage event. For streaming scenarios, it should be the beginning of the period from which the lineage is being reported.

.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Required. The beginning of the transformation which resulted in this lineage event. For streaming scenarios, it should be the beginning of the period from which the lineage is being reported.

.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

Optional. The end of the transformation which resulted in this lineage event. For streaming scenarios, it should be the end of the period from which the lineage is being reported.

.google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Required. The beginning of the transformation which resulted in this lineage event. For streaming scenarios, it should be the beginning of the period from which the lineage is being reported.

.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public LineageEvent.Builder mergeEndTime(Timestamp value)

Optional. The end of the transformation which resulted in this lineage event. For streaming scenarios, it should be the end of the period from which the lineage is being reported.

.google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
LineageEvent.Builder

mergeFrom(LineageEvent other)

public LineageEvent.Builder mergeFrom(LineageEvent other)
Parameter
Name Description
other LineageEvent
Returns
Type Description
LineageEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LineageEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LineageEvent.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LineageEvent.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LineageEvent.Builder
Overrides

mergeStartTime(Timestamp value)

public LineageEvent.Builder mergeStartTime(Timestamp value)

Required. The beginning of the transformation which resulted in this lineage event. For streaming scenarios, it should be the beginning of the period from which the lineage is being reported.

.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
LineageEvent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LineageEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LineageEvent.Builder
Overrides
public LineageEvent.Builder removeLinks(int index)

Optional. List of source-target pairs. Can't contain more than 100 tuples.

repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
LineageEvent.Builder

setEndTime(Timestamp value)

public LineageEvent.Builder setEndTime(Timestamp value)

Optional. The end of the transformation which resulted in this lineage event. For streaming scenarios, it should be the end of the period from which the lineage is being reported.

.google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Timestamp
Returns
Type Description
LineageEvent.Builder

setEndTime(Timestamp.Builder builderForValue)

public LineageEvent.Builder setEndTime(Timestamp.Builder builderForValue)

Optional. The end of the transformation which resulted in this lineage event. For streaming scenarios, it should be the end of the period from which the lineage is being reported.

.google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LineageEvent.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LineageEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LineageEvent.Builder
Overrides
public LineageEvent.Builder setLinks(int index, EventLink value)

Optional. List of source-target pairs. Can't contain more than 100 tuples.

repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value EventLink
Returns
Type Description
LineageEvent.Builder
public LineageEvent.Builder setLinks(int index, EventLink.Builder builderForValue)

Optional. List of source-target pairs. Can't contain more than 100 tuples.

repeated .google.cloud.datacatalog.lineage.v1.EventLink links = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue EventLink.Builder
Returns
Type Description
LineageEvent.Builder

setName(String value)

public LineageEvent.Builder setName(String value)

Immutable. The resource name of the lineage event. Format: projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}. Can be specified or auto-assigned. {lineage_event} must be not longer than 200 characters and only contain characters in a set: a-zA-Z0-9_-:.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
LineageEvent.Builder

This builder for chaining.

setNameBytes(ByteString value)

public LineageEvent.Builder setNameBytes(ByteString value)

Immutable. The resource name of the lineage event. Format: projects/{project}/locations/{location}/processes/{process}/runs/{run}/lineageEvents/{lineage_event}. Can be specified or auto-assigned. {lineage_event} must be not longer than 200 characters and only contain characters in a set: a-zA-Z0-9_-:.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
LineageEvent.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

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

setStartTime(Timestamp value)

public LineageEvent.Builder setStartTime(Timestamp value)

Required. The beginning of the transformation which resulted in this lineage event. For streaming scenarios, it should be the beginning of the period from which the lineage is being reported.

.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
LineageEvent.Builder

setStartTime(Timestamp.Builder builderForValue)

public LineageEvent.Builder setStartTime(Timestamp.Builder builderForValue)

Required. The beginning of the transformation which resulted in this lineage event. For streaming scenarios, it should be the beginning of the period from which the lineage is being reported.

.google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
LineageEvent.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final LineageEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LineageEvent.Builder
Overrides