Update protobuf and grpc bzl for incompatible changes
These deprecates were found with `--all_incompatible_changes` when
running buildifier through bazel.
diff --git a/third_party/grpc/build_defs.bzl b/third_party/grpc/build_defs.bzl
index 8ae42ac..aca5b66 100644
--- a/third_party/grpc/build_defs.bzl
+++ b/third_party/grpc/build_defs.bzl
@@ -41,7 +41,7 @@
attrs = {
"srcs": attr.label_list(
mandatory = True,
- non_empty = True,
+ allow_empty = False,
providers = ["proto"],
),
"enable_deprecated": attr.bool(
@@ -51,8 +51,7 @@
default = Label("@com_google_protobuf//:protoc"),
executable = True,
cfg = "host",
- allow_files = True,
- single_file = True,
+ allow_single_file = True,
),
"_java_plugin": attr.label(
default = Label("@io_bazel//third_party/grpc:grpc-java-plugin"),
diff --git a/third_party/protobuf/3.6.1/protobuf.bzl b/third_party/protobuf/3.6.1/protobuf.bzl
index 78f19c6..6e4bbfb 100644
--- a/third_party/protobuf/3.6.1/protobuf.bzl
+++ b/third_party/protobuf/3.6.1/protobuf.bzl
@@ -130,7 +130,7 @@
"protoc": attr.label(
cfg = "host",
executable = True,
- single_file = True,
+ allow_single_file = True,
mandatory = True,
),
"plugin": attr.label(