Class Run.Builder

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

    public static final class Run.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Run.Builder>
    implements RunOrBuilder
     A lineage run represents an execution of a process that creates
     lineage events.
     
    Protobuf type google.cloud.datacatalog.lineage.v1.Run
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Run.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Run.Builder>
      • internalGetFieldAccessorTable

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public String getName()
         Immutable. The resource name of the run. Format:
         `projects/{project}/locations/{location}/processes/{process}/runs/{run}`.
         Can be specified or auto-assigned.
         {run} 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 RunOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Immutable. The resource name of the run. Format:
         `projects/{project}/locations/{location}/processes/{process}/runs/{run}`.
         Can be specified or auto-assigned.
         {run} 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 RunOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Run.Builder setName​(String value)
         Immutable. The resource name of the run. Format:
         `projects/{project}/locations/{location}/processes/{process}/runs/{run}`.
         Can be specified or auto-assigned.
         {run} 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 Run.Builder clearName()
         Immutable. The resource name of the run. Format:
         `projects/{project}/locations/{location}/processes/{process}/runs/{run}`.
         Can be specified or auto-assigned.
         {run} 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 Run.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Immutable. The resource name of the run. Format:
         `projects/{project}/locations/{location}/processes/{process}/runs/{run}`.
         Can be specified or auto-assigned.
         {run} 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.
      • getDisplayName

        public String getDisplayName()
         Optional. A human-readable name you can set to display in a user interface.
         Must be not longer than 1024 characters and only contain UTF-8 letters
         or numbers, spaces or characters like `_-:&.`
         
        string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDisplayName in interface RunOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         Optional. A human-readable name you can set to display in a user interface.
         Must be not longer than 1024 characters and only contain UTF-8 letters
         or numbers, spaces or characters like `_-:&.`
         
        string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDisplayNameBytes in interface RunOrBuilder
        Returns:
        The bytes for displayName.
      • setDisplayName

        public Run.Builder setDisplayName​(String value)
         Optional. A human-readable name you can set to display in a user interface.
         Must be not longer than 1024 characters and only contain UTF-8 letters
         or numbers, spaces or characters like `_-:&.`
         
        string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • clearDisplayName

        public Run.Builder clearDisplayName()
         Optional. A human-readable name you can set to display in a user interface.
         Must be not longer than 1024 characters and only contain UTF-8 letters
         or numbers, spaces or characters like `_-:&.`
         
        string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setDisplayNameBytes

        public Run.Builder setDisplayNameBytes​(com.google.protobuf.ByteString value)
         Optional. A human-readable name you can set to display in a user interface.
         Must be not longer than 1024 characters and only contain UTF-8 letters
         or numbers, spaces or characters like `_-:&.`
         
        string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • getAttributesCount

        public int getAttributesCount()
        Description copied from interface: RunOrBuilder
         Optional. The attributes of the run. Can be anything, for example, a string
         with an SQL request. Up to 100 attributes are allowed.
         
        map<string, .google.protobuf.Value> attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAttributesCount in interface RunOrBuilder
      • containsAttributes

        public boolean containsAttributes​(String key)
         Optional. The attributes of the run. Can be anything, for example, a string
         with an SQL request. Up to 100 attributes are allowed.
         
        map<string, .google.protobuf.Value> attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsAttributes in interface RunOrBuilder
      • getAttributesMap

        public Map<String,​com.google.protobuf.Value> getAttributesMap()
         Optional. The attributes of the run. Can be anything, for example, a string
         with an SQL request. Up to 100 attributes are allowed.
         
        map<string, .google.protobuf.Value> attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAttributesMap in interface RunOrBuilder
      • getAttributesOrDefault

        public com.google.protobuf.Value getAttributesOrDefault​(String key,
                                                                com.google.protobuf.Value defaultValue)
         Optional. The attributes of the run. Can be anything, for example, a string
         with an SQL request. Up to 100 attributes are allowed.
         
        map<string, .google.protobuf.Value> attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAttributesOrDefault in interface RunOrBuilder
      • getAttributesOrThrow

        public com.google.protobuf.Value getAttributesOrThrow​(String key)
         Optional. The attributes of the run. Can be anything, for example, a string
         with an SQL request. Up to 100 attributes are allowed.
         
        map<string, .google.protobuf.Value> attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAttributesOrThrow in interface RunOrBuilder
      • clearAttributes

        public Run.Builder clearAttributes()
      • removeAttributes

        public Run.Builder removeAttributes​(String key)
         Optional. The attributes of the run. Can be anything, for example, a string
         with an SQL request. Up to 100 attributes are allowed.
         
        map<string, .google.protobuf.Value> attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
      • getMutableAttributes

        @Deprecated
        public Map<String,​com.google.protobuf.Value> getMutableAttributes()
        Deprecated.
        Use alternate mutation accessors instead.
      • putAttributes

        public Run.Builder putAttributes​(String key,
                                         com.google.protobuf.Value value)
         Optional. The attributes of the run. Can be anything, for example, a string
         with an SQL request. Up to 100 attributes are allowed.
         
        map<string, .google.protobuf.Value> attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
      • putAllAttributes

        public Run.Builder putAllAttributes​(Map<String,​com.google.protobuf.Value> values)
         Optional. The attributes of the run. Can be anything, for example, a string
         with an SQL request. Up to 100 attributes are allowed.
         
        map<string, .google.protobuf.Value> attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
      • hasStartTime

        public boolean hasStartTime()
         Required. The timestamp of the start of the run.
         
        .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasStartTime in interface RunOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.Timestamp getStartTime()
         Required. The timestamp of the start of the run.
         
        .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getStartTime in interface RunOrBuilder
        Returns:
        The startTime.
      • setStartTime

        public Run.Builder setStartTime​(com.google.protobuf.Timestamp value)
         Required. The timestamp of the start of the run.
         
        .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = REQUIRED];
      • setStartTime

        public Run.Builder setStartTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Required. The timestamp of the start of the run.
         
        .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = REQUIRED];
      • mergeStartTime

        public Run.Builder mergeStartTime​(com.google.protobuf.Timestamp value)
         Required. The timestamp of the start of the run.
         
        .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = REQUIRED];
      • clearStartTime

        public Run.Builder clearStartTime()
         Required. The timestamp of the start of the run.
         
        .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = REQUIRED];
      • getStartTimeBuilder

        public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
         Required. The timestamp of the start of the run.
         
        .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = REQUIRED];
      • getStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
         Required. The timestamp of the start of the run.
         
        .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getStartTimeOrBuilder in interface RunOrBuilder
      • hasEndTime

        public boolean hasEndTime()
         Optional. The timestamp of the end of the run.
         
        .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasEndTime in interface RunOrBuilder
        Returns:
        Whether the endTime field is set.
      • getEndTime

        public com.google.protobuf.Timestamp getEndTime()
         Optional. The timestamp of the end of the run.
         
        .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEndTime in interface RunOrBuilder
        Returns:
        The endTime.
      • setEndTime

        public Run.Builder setEndTime​(com.google.protobuf.Timestamp value)
         Optional. The timestamp of the end of the run.
         
        .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OPTIONAL];
      • setEndTime

        public Run.Builder setEndTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Optional. The timestamp of the end of the run.
         
        .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OPTIONAL];
      • mergeEndTime

        public Run.Builder mergeEndTime​(com.google.protobuf.Timestamp value)
         Optional. The timestamp of the end of the run.
         
        .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OPTIONAL];
      • clearEndTime

        public Run.Builder clearEndTime()
         Optional. The timestamp of the end of the run.
         
        .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getEndTimeBuilder

        public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
         Optional. The timestamp of the end of the run.
         
        .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getEndTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
         Optional. The timestamp of the end of the run.
         
        .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEndTimeOrBuilder in interface RunOrBuilder
      • getStateValue

        public int getStateValue()
         Required. The state of the run.
         
        .google.cloud.datacatalog.lineage.v1.Run.State state = 6 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getStateValue in interface RunOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public Run.Builder setStateValue​(int value)
         Required. The state of the run.
         
        .google.cloud.datacatalog.lineage.v1.Run.State state = 6 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public Run.State getState()
         Required. The state of the run.
         
        .google.cloud.datacatalog.lineage.v1.Run.State state = 6 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getState in interface RunOrBuilder
        Returns:
        The state.
      • setState

        public Run.Builder setState​(Run.State value)
         Required. The state of the run.
         
        .google.cloud.datacatalog.lineage.v1.Run.State state = 6 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Run.Builder clearState()
         Required. The state of the run.
         
        .google.cloud.datacatalog.lineage.v1.Run.State state = 6 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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