1 // Copyright 2019 Google LLC.
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
7 // http://www.apache.org/licenses/LICENSE-2.0
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.
20 import "google/protobuf/descriptor.proto";
22 option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
23 option java_multiple_files = true;
24 option java_outer_classname = "ClientProto";
25 option java_package = "com.google.api";
26 option objc_class_prefix = "GAPI";
28 extend google.protobuf.MethodOptions {
29 // A definition of a client library method signature.
31 // In client libraries, each proto RPC corresponds to one or more methods
32 // which the end user is able to call, and calls the underlying RPC.
33 // Normally, this method receives a single argument (a struct or instance
34 // corresponding to the RPC request object). Defining this field will
35 // add one or more overloads providing flattened or simpler method signatures
38 // The fields on the method signature are provided as a comma-separated
41 // For example, the proto RPC and annotation:
43 // rpc CreateSubscription(CreateSubscriptionRequest)
44 // returns (Subscription) {
45 // option (google.api.method_signature) = "name,topic";
48 // Would add the following Java overload (in addition to the method accepting
49 // the request object):
51 // public final Subscription createSubscription(String name, String topic)
53 // The following backwards-compatibility guidelines apply:
55 // * Adding this annotation to an unannotated method is backwards
57 // * Adding this annotation to a method which already has existing
58 // method signature annotations is backwards compatible if and only if
59 // the new method signature annotation is last in the sequence.
60 // * Modifying or removing an existing method signature annotation is
62 // * Re-ordering existing method signature annotations is a breaking
64 repeated string method_signature = 1051;
67 extend google.protobuf.ServiceOptions {
68 // The hostname for this service.
69 // This should be specified with no prefix or protocol.
74 // option (google.api.default_host) = "foo.googleapi.com";
77 string default_host = 1049;
79 // OAuth scopes needed for the client.
84 // option (google.api.oauth_scopes) = \
85 // "https://www.googleapis.com/auth/cloud-platform";
89 // If there is more than one scope, use a comma-separated string:
94 // option (google.api.oauth_scopes) = \
95 // "https://www.googleapis.com/auth/cloud-platform,"
96 // "https://www.googleapis.com/auth/monitoring";
99 string oauth_scopes = 1050;