xref: /aosp_15_r20/external/tensorflow/tensorflow/tools/api/lib/api_objects.proto (revision b6fb3261f9314811a0f4371741dbb8839866f948)
1syntax = "proto2";
2
3import "google/protobuf/descriptor.proto";
4
5package third_party.tensorflow.tools.api;
6
7message TFAPIMember {
8  optional string name = 1;
9  optional string mtype = 2;
10};
11
12message TFAPIMethod {
13  optional string name = 1;
14  optional string path = 2;
15  optional string argspec = 3;
16};
17
18message TFAPIModule {
19  repeated TFAPIMember member = 1;
20  repeated TFAPIMethod member_method = 2;
21};
22
23message TFAPIClass {
24  repeated string is_instance = 1;
25  repeated TFAPIMember member = 2;
26  repeated TFAPIMethod member_method = 3;
27};
28
29message TFAPIProto {
30  // Suppress generation of the proto API's descriptor() method lest it
31  // conflict with the standard accessor for the field having the same name.
32  option no_standard_descriptor_accessor = true;
33
34  optional google.protobuf.DescriptorProto descriptor = 1;
35};
36
37message TFAPIObject {
38  optional string path = 1;
39  optional TFAPIModule tf_module = 2;
40  optional TFAPIClass tf_class = 3;
41  optional TFAPIProto tf_proto = 4;
42};
43