xref: /aosp_15_r20/external/sdk-platform-java/showcase/gapic-showcase-extended/proto/wicked.proto (revision 882aa7c72c3cd3b66e72a261bdd69b93f7de7670)
1*882aa7c7SMatt Gilbride// Copyright 2023 Google LLC
2*882aa7c7SMatt Gilbride//
3*882aa7c7SMatt Gilbride// Licensed under the Apache License, Version 2.0 (the "License");
4*882aa7c7SMatt Gilbride// you may not use this file except in compliance with the License.
5*882aa7c7SMatt Gilbride// You may obtain a copy of the License at
6*882aa7c7SMatt Gilbride//
7*882aa7c7SMatt Gilbride//     https://www.apache.org/licenses/LICENSE-2.0
8*882aa7c7SMatt Gilbride//
9*882aa7c7SMatt Gilbride// Unless required by applicable law or agreed to in writing, software
10*882aa7c7SMatt Gilbride// distributed under the License is distributed on an "AS IS" BASIS,
11*882aa7c7SMatt Gilbride// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*882aa7c7SMatt Gilbride// See the License for the specific language governing permissions and
13*882aa7c7SMatt Gilbride// limitations under the License.
14*882aa7c7SMatt Gilbride
15*882aa7c7SMatt Gilbridesyntax = "proto3";
16*882aa7c7SMatt Gilbride
17*882aa7c7SMatt Gilbrideimport "google/api/client.proto";
18*882aa7c7SMatt Gilbride
19*882aa7c7SMatt Gilbridepackage google.showcase.v1beta1;
20*882aa7c7SMatt Gilbride
21*882aa7c7SMatt Gilbrideoption go_package = "github.com/googleapis/gapic-showcase/server/genproto";
22*882aa7c7SMatt Gilbrideoption java_package = "com.google.showcase.v1beta1";
23*882aa7c7SMatt Gilbrideoption java_multiple_files = true;
24*882aa7c7SMatt Gilbrideoption ruby_package = "Google::Showcase::V1beta1";
25*882aa7c7SMatt Gilbride
26*882aa7c7SMatt Gilbride// This service is used to show a Service with either non-enabled or non-eligible
27*882aa7c7SMatt Gilbride// RPCs for HttpJson (Http 1.1).
28*882aa7c7SMatt Gilbride// Non-Enabled: Missing the (google.api.http) annotation to enabled it
29*882aa7c7SMatt Gilbride// Non-Eligible: BIDI and Client side streaming are not supported with Http 1.1
30*882aa7c7SMatt Gilbride// Service name is reference to `No REST for the Wicked`
31*882aa7c7SMatt Gilbrideservice Wicked {
32*882aa7c7SMatt Gilbride  // This service is meant to only run locally on the port 7469 (keypad digits
33*882aa7c7SMatt Gilbride  // for "show").
34*882aa7c7SMatt Gilbride  option (google.api.default_host) = "localhost:7469";
35*882aa7c7SMatt Gilbride
36*882aa7c7SMatt Gilbride  rpc CraftEvilPlan(EvilRequest) returns (EvilResponse);
37*882aa7c7SMatt Gilbride
38*882aa7c7SMatt Gilbride  rpc BrainstormEvilPlans(stream EvilRequest) returns (stream EvilResponse);
39*882aa7c7SMatt Gilbride
40*882aa7c7SMatt Gilbride  rpc PersuadeEvilPlan(stream EvilRequest) returns (EvilResponse);
41*882aa7c7SMatt Gilbride}
42*882aa7c7SMatt Gilbride
43*882aa7c7SMatt Gilbridemessage EvilRequest {
44*882aa7c7SMatt Gilbride  string malicious_idea = 1;
45*882aa7c7SMatt Gilbride}
46*882aa7c7SMatt Gilbride
47*882aa7c7SMatt Gilbridemessage EvilResponse {
48*882aa7c7SMatt Gilbride  string malicious_plan = 1;
49*882aa7c7SMatt Gilbride}