Debian Codegraph @

google/gapic/metadata/gapic_metadata.proto

raw
1 // Copyright 2020 Google LLC.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 //
15
16 syntax = "proto3";
17
18 package google.gapic.metadata;
19
20 option csharp_namespace = "Google.Gapic.Metadata";
21 option go_package = "google.golang.org/genproto/googleapis/gapic/metadata;metadata";
22 option java_multiple_files = true;
23 option java_outer_classname = "GapicMetadataProto";
24 option java_package = "com.google.gapic.metadata";
25 option php_namespace = "Google\\Gapic\\Metadata";
26 option ruby_package = "Google::Gapic::Metadata";
27
28 // Metadata about a GAPIC library service for a specific combination of API,
29 // version, and computer language.
30 message GapicMetadata {
31 // Schema version of this proto. Current value: 1.0
32 string schema = 1;
33
34 // Any human-readable comments to be included in this file.
35 string comment = 2;
36
37 // Computer language of this generated language. This must be
38 // spelled out as it spoken in English, with no capitalization or
39 // separators (e.g. "csharp", "nodejs").
40 string language = 3;
41
42 // The proto package containing the API definition for which this
43 // GAPIC library was generated.
44 string proto_package = 4;
45
46 // The language-specific library package for this GAPIC library.
47 string library_package = 5;
48
49 // A map from each proto-defined service to ServiceForTransports,
50 // which allows listing information about transport-specific
51 // implementations of the service.
52 //
53 // The key is the name of the service as it appears in the .proto
54 // file.
55 map<string, ServiceForTransport> services = 6;
56
57 // A map from a transport name to ServiceAsClient, which allows
58 // listing information about the client objects that implement the
59 // parent RPC service for the specified transport.
60 message ServiceForTransport {
61 // Map of transport name to ServiceAsClient. The key name is the transport,
62 // lower-cased with no separators (e.g. "grpc", "rest").
63 map<string, ServiceAsClient> clients = 1;
64
65 // The API version for the interface definition found in the
66 // `google.api.api_version` annotation of this proto-defined service during
67 // code generation.
68 // This is the value populated by the client in the API version request
69 // parameter as per
70 // [AIP-4236](https://google.aip.dev/client-libraries/4236).
71 string api_version = 2;
72 }
73
74 // Information about a specific client implementing a proto-defined service.
75 message ServiceAsClient {
76 // The name of the library client formatted as it appears in the source code
77 string library_client = 1;
78
79 // A mapping from each proto-defined RPC name to the the list of
80 // methods in library_client that implement it. There can be more
81 // than one library_client method for each RPC. RPCs with no
82 // library_client methods need not be included.
83 //
84 // The key name is the name of the RPC as defined and formatted in
85 // the proto file.
86 map<string, MethodList> rpcs = 2;
87 }
88
89 // List of GAPIC client methods implementing the proto-defined RPC
90 // for the transport and service specified in the containing
91 // structures.
92 message MethodList {
93 // List of methods for a specific proto-service client in the
94 // GAPIC. These names should be formatted as they appear in the
95 // source code.
96 repeated string methods = 1;
97 }
98 }