class_docstr: Artifact Value Operator extracts the value from a primitive artifact Placeholder.
  
  Prefer to use the .value property of ArtifactPlaceholder.
class_docstr_tok: ["Artifact","Value","Operator","extracts","the","value","from","a","primitive","artifact","Placeholder",".","Prefer","to","use","the",".value","property","of","ArtifactPlaceholder","."]
code: def encode(
      self,
      component_spec: Optional[Type["_types.ComponentSpec"]] = None,
  ) -> placeholder_pb2.PlaceholderExpression:
      result = placeholder_pb2.PlaceholderExpression()
      result.operator.artifact_value_op.expression.CopyFrom(
          self._value.encode(component_spec)
      )
      return result
  
imports: from __future__ import annotations
  from typing import Any, Optional, Type
  from tfx.dsl.placeholder import placeholder_base
  from tfx.proto.orchestration import placeholder_pb2
label_desc: Use image node_id 2 for calling the _ArtifactValueOperator obj's underlying member method code with example usage: obj.encode(component_spec) and returns: result