Suppress generation of the proto API's descriptor() method, it conflicts with the...
authorA. Unique TensorFlower <gardener@tensorflow.org>
Thu, 31 May 2018 17:20:00 +0000 (10:20 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 31 May 2018 17:22:56 +0000 (10:22 -0700)
PiperOrigin-RevId: 198739727

tensorflow/tools/api/lib/api_objects.proto

index 7dcde0b..7207b9c 100644 (file)
@@ -27,6 +27,10 @@ message TFAPIClass {
 };
 
 message TFAPIProto {
+  // Suppress generation of the proto API's descriptor() method lest it
+  // conflict with the standard accessor for the field having the same name.
+  option no_standard_descriptor_accessor = true;
+
   optional google.protobuf.DescriptorProto descriptor = 1;
 };