Skip to content

Commit c80004a

Browse files
committed
tests: Add java-showcase-3.21.0.
1 parent a5dd6fd commit c80004a

File tree

324 files changed

+175665
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

324 files changed

+175665
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,13 @@ jobs:
310310
-P enable-integration-tests \
311311
--batch-mode \
312312
--no-transfer-progress
313+
- name: Showcase integration tests - Protobuf gen code 3.21.0
314+
working-directory: java-showcase-3.21.0
315+
run: |
316+
mvn verify \
317+
-P enable-integration-tests \
318+
--batch-mode \
319+
--no-transfer-progress
313320
showcase:
314321
runs-on: ubuntu-22.04
315322
strategy:

java-showcase-3.21.0/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This is a copy of [GAPIC Showcase](https://github.com/googleapis/gapic-showcase) with protobuf 3.21.0 gen code.
2+
This is intended to test the compatibility between protobuf-java runtime v4.33.0 and gen code 3.21.0.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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+
15+
"""
16+
Provides proto_library target
17+
Exports grpc service config
18+
"""
19+
load ("@rules_proto//proto:defs.bzl", "proto_library")
20+
21+
# This is an API workspace, having public visibility by default makes perfect sense.
22+
package(default_visibility = ["//visibility:public"])
23+
24+
# This BUILD file is the framework for gapic-showcase-extended (an extension to the existing gapic-showcase)
25+
# It serves to augment the existing showcase project with generic protos not *yet* suited to the upstream project
26+
#
27+
# gapic-showcase project is used to test the generated client behavior with a showcase server
28+
# gapic-showcase-extension project is used to test the generator's behavior
29+
30+
#proto_library(
31+
# name = "showcase_proto_extended",
32+
# srcs = [],
33+
# deps = []
34+
#)
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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+
15+
syntax = "proto3";
16+
17+
import "google/api/client.proto";
18+
19+
package google.showcase.v1beta1;
20+
21+
option go_package = "github.com/googleapis/gapic-showcase/server/genproto";
22+
option java_package = "com.google.showcase.v1beta1";
23+
option java_multiple_files = true;
24+
option 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`
31+
service 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+
43+
message EvilRequest {
44+
string malicious_idea = 1;
45+
}
46+
47+
message EvilResponse {
48+
string malicious_plan = 1;
49+
}

0 commit comments

Comments
 (0)