Class Run.Builder

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

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Run.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Run.Builder>
    • internalGetFieldAccessorTable

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

      public Run.Builder mergeFrom(Run other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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. Should only be used for the purpose of
       non-semantic management (classifying, describing or labeling the run).
      
       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. Should only be used for the purpose of
       non-semantic management (classifying, describing or labeling the run).
      
       Up to 100 attributes are allowed.
       
      map<string, .google.protobuf.Value> attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsAttributes in interface RunOrBuilder
    • getAttributes

      @Deprecated public Map<String,com.google.protobuf.Value> getAttributes()
      Deprecated.
      Use getAttributesMap() instead.
      Specified by:
      getAttributes in interface RunOrBuilder
    • getAttributesMap

      public Map<String,com.google.protobuf.Value> getAttributesMap()
       Optional. The attributes of the run. Should only be used for the purpose of
       non-semantic management (classifying, describing or labeling the run).
      
       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. Should only be used for the purpose of
       non-semantic management (classifying, describing or labeling the run).
      
       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. Should only be used for the purpose of
       non-semantic management (classifying, describing or labeling the run).
      
       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. Should only be used for the purpose of
       non-semantic management (classifying, describing or labeling the run).
      
       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. Should only be used for the purpose of
       non-semantic management (classifying, describing or labeling the run).
      
       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. Should only be used for the purpose of
       non-semantic management (classifying, describing or labeling the run).
      
       Up to 100 attributes are allowed.
       
      map<string, .google.protobuf.Value> attributes = 3 [(.google.api.field_behavior) = OPTIONAL];
    • putAttributesBuilderIfAbsent

      public com.google.protobuf.Value.Builder putAttributesBuilderIfAbsent(String key)
       Optional. The attributes of the run. Should only be used for the purpose of
       non-semantic management (classifying, describing or labeling the run).
      
       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.