Class Link.Builder

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

    public static final class Link.Builder
    extends com.google.protobuf.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
    • 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<Link.Builder>
      • clear

        public Link.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<Link.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<Link.Builder>
      • getDefaultInstanceForType

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

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

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

        public Link.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<Link.Builder>
      • setField

        public Link.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<Link.Builder>
      • clearField

        public Link.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<Link.Builder>
      • clearOneof

        public Link.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<Link.Builder>
      • setRepeatedField

        public Link.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<Link.Builder>
      • addRepeatedField

        public Link.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<Link.Builder>
      • mergeFrom

        public Link.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<Link.Builder>
      • isInitialized

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

        public Link.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<Link.Builder>
        Throws:
        IOException
      • getName

        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];
        Specified by:
        getName in interface LinkOrBuilder
        Returns:
        The name.
      • getNameBytes

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

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

        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:
        This builder for chaining.
      • setNameBytes

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

        public boolean hasSource()
         The pointer to the entity that is the **source** of this link.
         
        .google.cloud.datacatalog.lineage.v1.EntityReference source = 2;
        Specified by:
        hasSource in interface LinkOrBuilder
        Returns:
        Whether the source field is set.
      • getSource

        public EntityReference getSource()
         The pointer to the entity that is the **source** of this link.
         
        .google.cloud.datacatalog.lineage.v1.EntityReference source = 2;
        Specified by:
        getSource in interface LinkOrBuilder
        Returns:
        The source.
      • setSource

        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;
      • setSource

        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;
      • mergeSource

        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;
      • clearSource

        public Link.Builder clearSource()
         The pointer to the entity that is the **source** of this link.
         
        .google.cloud.datacatalog.lineage.v1.EntityReference source = 2;
      • getSourceBuilder

        public EntityReference.Builder getSourceBuilder()
         The pointer to the entity that is the **source** of this link.
         
        .google.cloud.datacatalog.lineage.v1.EntityReference source = 2;
      • hasTarget

        public boolean hasTarget()
         The pointer to the entity that is the **target** of this link.
         
        .google.cloud.datacatalog.lineage.v1.EntityReference target = 3;
        Specified by:
        hasTarget in interface LinkOrBuilder
        Returns:
        Whether the target field is set.
      • getTarget

        public EntityReference getTarget()
         The pointer to the entity that is the **target** of this link.
         
        .google.cloud.datacatalog.lineage.v1.EntityReference target = 3;
        Specified by:
        getTarget in interface LinkOrBuilder
        Returns:
        The target.
      • setTarget

        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;
      • setTarget

        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;
      • mergeTarget

        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;
      • clearTarget

        public Link.Builder clearTarget()
         The pointer to the entity that is the **target** of this link.
         
        .google.cloud.datacatalog.lineage.v1.EntityReference target = 3;
      • getTargetBuilder

        public EntityReference.Builder getTargetBuilder()
         The pointer to the entity that is the **target** of this link.
         
        .google.cloud.datacatalog.lineage.v1.EntityReference target = 3;
      • hasStartTime

        public boolean hasStartTime()
         The start of the first event establishing this link.
         
        .google.protobuf.Timestamp start_time = 4;
        Specified by:
        hasStartTime in interface LinkOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.Timestamp getStartTime()
         The start of the first event establishing this link.
         
        .google.protobuf.Timestamp start_time = 4;
        Specified by:
        getStartTime in interface LinkOrBuilder
        Returns:
        The startTime.
      • setStartTime

        public Link.Builder setStartTime​(com.google.protobuf.Timestamp value)
         The start of the first event establishing this link.
         
        .google.protobuf.Timestamp start_time = 4;
      • setStartTime

        public Link.Builder setStartTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The start of the first event establishing this link.
         
        .google.protobuf.Timestamp start_time = 4;
      • mergeStartTime

        public Link.Builder mergeStartTime​(com.google.protobuf.Timestamp value)
         The start of the first event establishing this link.
         
        .google.protobuf.Timestamp start_time = 4;
      • clearStartTime

        public Link.Builder clearStartTime()
         The start of the first event establishing this link.
         
        .google.protobuf.Timestamp start_time = 4;
      • getStartTimeBuilder

        public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
         The start of the first event establishing this link.
         
        .google.protobuf.Timestamp start_time = 4;
      • getStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
         The start of the first event establishing this link.
         
        .google.protobuf.Timestamp start_time = 4;
        Specified by:
        getStartTimeOrBuilder in interface LinkOrBuilder
      • hasEndTime

        public boolean hasEndTime()
         The end of the last event establishing this link.
         
        .google.protobuf.Timestamp end_time = 5;
        Specified by:
        hasEndTime in interface LinkOrBuilder
        Returns:
        Whether the endTime field is set.
      • getEndTime

        public com.google.protobuf.Timestamp getEndTime()
         The end of the last event establishing this link.
         
        .google.protobuf.Timestamp end_time = 5;
        Specified by:
        getEndTime in interface LinkOrBuilder
        Returns:
        The endTime.
      • setEndTime

        public Link.Builder setEndTime​(com.google.protobuf.Timestamp value)
         The end of the last event establishing this link.
         
        .google.protobuf.Timestamp end_time = 5;
      • setEndTime

        public Link.Builder setEndTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The end of the last event establishing this link.
         
        .google.protobuf.Timestamp end_time = 5;
      • mergeEndTime

        public Link.Builder mergeEndTime​(com.google.protobuf.Timestamp value)
         The end of the last event establishing this link.
         
        .google.protobuf.Timestamp end_time = 5;
      • clearEndTime

        public Link.Builder clearEndTime()
         The end of the last event establishing this link.
         
        .google.protobuf.Timestamp end_time = 5;
      • getEndTimeBuilder

        public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
         The end of the last event establishing this link.
         
        .google.protobuf.Timestamp end_time = 5;
      • getEndTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
         The end of the last event establishing this link.
         
        .google.protobuf.Timestamp end_time = 5;
        Specified by:
        getEndTimeOrBuilder in interface LinkOrBuilder
      • setUnknownFields

        public final Link.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<Link.Builder>
      • mergeUnknownFields

        public final Link.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<Link.Builder>