Class LineageEvent.Builder (0.21.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.datacatalog.lineage.v1.EventLink>
Returns
TypeDescription
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
NameDescription
valueEventLink
Returns
TypeDescription
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
NameDescription
builderForValueEventLink.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueEventLink
Returns
TypeDescription
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
NameDescription
indexint
builderForValueEventLink.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
EventLink.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LineageEvent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LineageEvent.Builder
Overrides

build()

public LineageEvent build()
Returns
TypeDescription
LineageEvent

buildPartial()

public LineageEvent buildPartial()
Returns
TypeDescription
LineageEvent

clear()

public LineageEvent.Builder clear()
Returns
TypeDescription
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
TypeDescription
LineageEvent.Builder

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LineageEvent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LineageEvent.Builder
Overrides

clearStartTime()

public LineageEvent.Builder clearStartTime()

Optional. 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) = OPTIONAL];

Returns
TypeDescription
LineageEvent.Builder

clone()

public LineageEvent.Builder clone()
Returns
TypeDescription
LineageEvent.Builder
Overrides

getDefaultInstanceForType()

public LineageEvent getDefaultInstanceForType()
Returns
TypeDescription
LineageEvent

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

getStartTime()

public Timestamp getStartTime()

Optional. 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) = OPTIONAL];

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Optional. 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) = OPTIONAL];

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Optional. 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) = OPTIONAL];

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

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Optional. 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) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
LineageEvent.Builder

mergeFrom(LineageEvent other)

public LineageEvent.Builder mergeFrom(LineageEvent other)
Parameter
NameDescription
otherLineageEvent
Returns
TypeDescription
LineageEvent.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LineageEvent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LineageEvent.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LineageEvent.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LineageEvent.Builder
Overrides

mergeStartTime(Timestamp value)

public LineageEvent.Builder mergeStartTime(Timestamp value)

Optional. 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) = OPTIONAL];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
LineageEvent.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LineageEvent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
LineageEvent.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LineageEvent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueEventLink
Returns
TypeDescription
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
NameDescription
indexint
builderForValueEventLink.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LineageEvent.Builder
Overrides

setStartTime(Timestamp value)

public LineageEvent.Builder setStartTime(Timestamp value)

Optional. 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) = OPTIONAL];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
LineageEvent.Builder

setStartTime(Timestamp.Builder builderForValue)

public LineageEvent.Builder setStartTime(Timestamp.Builder builderForValue)

Optional. 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) = OPTIONAL];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
LineageEvent.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final LineageEvent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LineageEvent.Builder
Overrides