Class LineageEvent.Builder

  • All Implemented Interfaces:
    LineageEventOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    LineageEvent

    public static final class LineageEvent.Builder
    extends com.google.protobuf.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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LineageEvent.Builder>
      • clear

        public LineageEvent.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<LineageEvent.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<LineageEvent.Builder>
      • getDefaultInstanceForType

        public LineageEvent getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public LineageEvent build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public LineageEvent buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public LineageEvent.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<LineageEvent.Builder>
      • setField

        public LineageEvent.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<LineageEvent.Builder>
      • clearField

        public LineageEvent.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<LineageEvent.Builder>
      • clearOneof

        public LineageEvent.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<LineageEvent.Builder>
      • setRepeatedField

        public LineageEvent.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     int index,
                                                     Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LineageEvent.Builder>
      • addRepeatedField

        public LineageEvent.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LineageEvent.Builder>
      • mergeFrom

        public LineageEvent.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LineageEvent.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LineageEvent.Builder>
      • mergeFrom

        public LineageEvent.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LineageEvent.Builder>
        Throws:
        IOException
      • 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];
        Specified by:
        getName in interface LineageEventOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.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];
        Specified by:
        getNameBytes in interface LineageEventOrBuilder
        Returns:
        The bytes for name.
      • setName

        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];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setNameBytes

        public LineageEvent.Builder setNameBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getLinksList

        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];
        Specified by:
        getLinksList in interface LineageEventOrBuilder
      • 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];
        Specified by:
        getLinksCount in interface LineageEventOrBuilder
      • getLinks

        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];
        Specified by:
        getLinks in interface LineageEventOrBuilder
      • setLinks

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

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

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

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

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

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

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

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

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

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

        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];
        Specified by:
        getLinksOrBuilder in interface LineageEventOrBuilder
      • 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];
        Specified by:
        getLinksOrBuilderList in interface LineageEventOrBuilder
      • 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];
      • addLinksBuilder

        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];
      • 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];
      • 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];
        Specified by:
        hasStartTime in interface LineageEventOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.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];
        Specified by:
        getStartTime in interface LineageEventOrBuilder
        Returns:
        The startTime.
      • setStartTime

        public LineageEvent.Builder setStartTime​(com.google.protobuf.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];
      • setStartTime

        public LineageEvent.Builder setStartTime​(com.google.protobuf.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];
      • mergeStartTime

        public LineageEvent.Builder mergeStartTime​(com.google.protobuf.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];
      • 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];
      • getStartTimeBuilder

        public com.google.protobuf.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];
      • getStartTimeOrBuilder

        public com.google.protobuf.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];
        Specified by:
        getStartTimeOrBuilder in interface LineageEventOrBuilder
      • 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];
        Specified by:
        hasEndTime in interface LineageEventOrBuilder
        Returns:
        Whether the endTime field is set.
      • getEndTime

        public com.google.protobuf.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];
        Specified by:
        getEndTime in interface LineageEventOrBuilder
        Returns:
        The endTime.
      • setEndTime

        public LineageEvent.Builder setEndTime​(com.google.protobuf.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];
      • setEndTime

        public LineageEvent.Builder setEndTime​(com.google.protobuf.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];
      • mergeEndTime

        public LineageEvent.Builder mergeEndTime​(com.google.protobuf.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];
      • 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];
      • getEndTimeBuilder

        public com.google.protobuf.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];
      • getEndTimeOrBuilder

        public com.google.protobuf.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];
        Specified by:
        getEndTimeOrBuilder in interface LineageEventOrBuilder
      • setUnknownFields

        public final LineageEvent.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LineageEvent.Builder>
      • mergeUnknownFields

        public final LineageEvent.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LineageEvent.Builder>