codekingpro/portable-devtools
114k
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 at6//7// http://www.apache.org/licenses/LICENSE-2.08//9// Unless required by applicable law or agreed to in writing, software10// 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 and13// limitations under the License.14//15 16syntax = "proto3";17 18package google.gapic.metadata;19 20option csharp_namespace = "Google.Gapic.Metadata";21option go_package = "google.golang.org/genproto/googleapis/gapic/metadata;metadata";22option java_multiple_files = true;23option java_outer_classname = "GapicMetadataProto";24option java_package = "com.google.gapic.metadata";25option php_namespace = "Google\\Gapic\\Metadata";26option ruby_package = "Google::Gapic::Metadata";27 28// Metadata about a GAPIC library service for a specific combination of API,29// version, and computer language.30message GapicMetadata {31 // Schema version of this proto. Current value: 1.032 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 be38 // spelled out as it spoken in English, with no capitalization or39 // separators (e.g. "csharp", "nodejs").40 string language = 3;41 42 // The proto package containing the API definition for which this43 // 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-specific51 // implementations of the service.52 //53 // The key is the name of the service as it appears in the .proto54 // file.55 map<string, ServiceForTransport> services = 6;56 57 // A map from a transport name to ServiceAsClient, which allows58 // listing information about the client objects that implement the59 // 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 the66 // `google.api.api_version` annotation of this proto-defined service during67 // code generation.68 // This is the value populated by the client in the API version request69 // parameter as per70 // [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 code77 string library_client = 1;78 79 // A mapping from each proto-defined RPC name to the the list of80 // methods in library_client that implement it. There can be more81 // than one library_client method for each RPC. RPCs with no82 // library_client methods need not be included.83 //84 // The key name is the name of the RPC as defined and formatted in85 // the proto file.86 map<string, MethodList> rpcs = 2;87 }88 89 // List of GAPIC client methods implementing the proto-defined RPC90 // for the transport and service specified in the containing91 // structures.92 message MethodList {93 // List of methods for a specific proto-service client in the94 // GAPIC. These names should be formatted as they appear in the95 // source code.96 repeated string methods = 1;97 }98}99 