• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2018 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//     https://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
15syntax = "proto3";
16
17import "google/api/annotations.proto";
18import "google/api/client.proto";
19import "google/protobuf/empty.proto";
20
21package google.testdata.v1;
22
23option java_package = "com.google.testdata.v1";
24option java_multiple_files = true;
25
26// This is a service description.
27// It takes up multiple lines, like so.
28service DeprecatedService {
29  option (google.api.default_host) = "localhost:7469";
30  option (google.api.oauth_scopes) =
31      "https://www.googleapis.com/auth/cloud-platform";
32
33  option deprecated = true;
34
35  // Calculates Fibonacci on the provided value, quickly.
36  rpc FastFibonacci(FibonacciRequest) returns (google.protobuf.Empty);
37
38  // Calculates Fibonacci on the provided value, slowly.
39  rpc SlowFibonacci(FibonacciRequest) returns (google.protobuf.Empty) {
40    option deprecated = true;
41  };
42}
43
44// This is a message descxription.
45// Lorum ipsum dolor sit amet consectetur adipiscing elit.
46message FibonacciRequest {
47  // The nth term to retrieve in the Fibonacci sequence.
48  int32 value = 1;
49}
50