xref: /aosp_15_r20/external/sdk-platform-java/gapic-generator-java/src/test/proto/wicked.proto (revision 882aa7c72c3cd3b66e72a261bdd69b93f7de7670)
1// Copyright 2023 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/client.proto";
18
19package google.showcase.v1beta1;
20
21option go_package = "github.com/googleapis/gapic-showcase/server/genproto";
22option java_package = "com.google.showcase.v1beta1";
23option java_multiple_files = true;
24option ruby_package = "Google::Showcase::V1beta1";
25
26// This service is used to show a Service with either non-enabled or non-eligible
27// RPCs for HttpJson (Http 1.1).
28// Non-Enabled: Missing the (google.api.http) annotation to enabled it
29// Non-Eligible: BIDI and Client side streaming are not supported with Http 1.1
30// Service name is reference to `No REST for the Wicked`
31service Wicked {
32  // This service is meant to only run locally on the port 7469 (keypad digits
33  // for "show").
34  option (google.api.default_host) = "localhost:7469";
35
36  rpc CraftEvilPlan(EvilRequest) returns (EvilResponse);
37
38  rpc BrainstormEvilPlans(stream EvilRequest) returns (stream EvilResponse);
39
40  rpc PersuadeEvilPlan(stream EvilRequest) returns (EvilResponse);
41}
42
43message EvilRequest {
44  string malicious_idea = 1;
45}
46
47message EvilResponse {
48  string malicious_plan = 1;
49}