class_docstr: Base class for a TFX pipeline component.
  
  An instance of a subclass of BaseComponent represents the parameters for a
  single execution of that TFX pipeline component.
  
  All subclasses of BaseComponent must override the SPEC_CLASS field with the
  ComponentSpec subclass that defines the interface of this component.
  
  Attributes:
    SPEC_CLASS: a subclass of types.ComponentSpec used by this component
      (required). This is a class level value.
    EXECUTOR_SPEC: an instance of executor_spec.ExecutorSpec which describes how
      to execute this component (required). This is a class level value.
    DRIVER_CLASS: a subclass of base_driver.BaseDriver as a custom driver for
      this component (optional, defaults to base_driver.BaseDriver). This is a
      class level value.
    PRE_EXECUTABLE_SPEC: an optional PythonClassExecutableSpec of pre-execution
      hook.
    POST_EXECUTABLE_SPEC an optional PythonClassExecutableSpec of post-execution
      hook.
    spec: an instance of `SPEC_CLASS`. See types.ComponentSpec for more details.
    platform_config: a protobuf message representing platform config for a
      component instance.
class_docstr_tok: ["Base","class","for","a","TFX","pipeline","component",".","An","instance","of","a","subclass","of","BaseComponent","represents","the","parameters","for","a","single","execution","of","that","TFX","pipeline","component",".","All","subclasses","of","BaseComponent","must","override","the","SPEC_CLASS","field","with","the","ComponentSpec","subclass","that","defines","the","interface","of","this","component",".","Attributes",":","SPEC_CLASS",":","a","subclass","of","types.ComponentSpec","used","by","this","component","(","required",")",".","This","is","a","class","level","value",".","EXECUTOR_SPEC",":","an","instance","of","executor_spec.ExecutorSpec","which","describes","how","to","execute","this","component","(","required",")",".","This","is","a","class","level","value",".","DRIVER_CLASS",":","a","subclass","of","base_driver.BaseDriver","as","a","custom","driver","for","this","component","(","optional",",","defaults","to","base_driver.BaseDriver",")",".","This","is","a","class","level","value",".","PRE_EXECUTABLE_SPEC",":","an","optional","PythonClassExecutableSpec","of","pre-execution","hook",".","POST_EXECUTABLE_SPEC","an","optional","PythonClassExecutableSpec","of","post-execution","hook",".","spec",":","an","instance","of","`","SPEC_CLASS","`",".","See","types.ComponentSpec","for","more","details",".","platform_config",":","a","protobuf","message","representing","platform","config","for","a","component","instance","."]
docstr: Attaches a proto-form platform config to a component.
  
  The config will be a per-node platform-specific config.
  
  Args:
    config: platform config to attach to the component.
  
  Returns:
    the same component itself.
docstr_tok: ["Attaches","a","proto-form","platform","config","to","a","component",".","The","config","will","be","a","per-node","platform-specific","config",".","Args",":","config",":","platform","config","to","attach","to","the","component",".","Returns",":","the","same","component","itself","."]
code: def with_platform_config(
      self, config: message.Message
  ) -> "BaseComponent":
      """Attaches a proto-form platform config to a component.
  
      The config will be a per-node platform-specific config.
  
      Args:
        config: platform config to attach to the component.
  
      Returns:
        the same component itself.
      """
      self.platform_config = config
      return self
  
imports: import abc
  import inspect
  from typing import Any, Dict, Optional, Type, Union
  from tfx import types
  from tfx.dsl.components.base import base_driver
  from tfx.dsl.components.base import base_node
  from tfx.dsl.components.base import executor_spec
  from tfx.types import channel
  from tfx.types.system_executions import SystemExecution
  from tfx.utils import abc_utils
  from tfx.utils import doc_controls
  from google.protobuf import message
label_desc: Use image node_id 4 for calling the BaseComponent obj's underlying member method code with example usage: obj.with_platform_config(config) and returns: self