Class LineageEvent.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LineageEvent.Builder>
com.google.cloud.datacatalog.lineage.v1.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.GeneratedMessage.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 Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public LineageEvent.Builder mergeFrom(LineageEvent other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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()
       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];
      Specified by:
      hasStartTime in interface LineageEventOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

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

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

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

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

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

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