message: Makes protobuf dep in tf.contrib.data conditional using if_static().
  In non-monolithic builds, adding it unconditionally would duplicate of protobuf symbols among tf.contrib op libraries.  Guarding it with if_static() restricts the dep to monolithic builds, which should be able to dedupe the symbols at link time.
diff: @@ -9,6 +9,10 @@ load(
  "tf_custom_op_library",
  "tf_gen_op_libs",
  )
  +load(
  + "//tensorflow/core:platform/default/build_config_root.bzl",
  + "if_static",
  +)
  py_library(
  name = "data",
  @@ -29,10 +33,11 @@ py_library(
  tf_custom_op_library(
  name = "_dataset_ops.so",
  srcs = ["ops/dataset_ops.cc"],
  - deps = [
  - "//tensorflow/contrib/data/kernels:dataset_kernels",
  - "//tensorflow/core:lib_proto_parsing",
  - ],
  + deps = ["//tensorflow/contrib/data/kernels:dataset_kernels"] +
  + if_static(
  + extra_deps = ["//tensorflow/core:lib_proto_parsing"],
  + otherwise = [],
  + ),
  )
  tf_gen_op_libs(
  